@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Roboto:wght@400;500;700&family=Source+Serif+4:ital,wght@0,400;0,600;1,400&display=swap");

:root {
  --bg: #0a1628;
  --surface: #0d1f3c;
  --surface-strong: rgba(13, 31, 60, 0.88);
  --text: #f4f6fa;
  --muted: rgba(244, 246, 250, 0.62);
  --border: rgba(62, 207, 170, 0.18);
  --primary: #3ecfaa;
  --primary-dark: #2ab995;
  --accent: #f0a32b;
  --warning: #f0a32b;
  --success: #3ecfaa;
  --danger: #ef4444;
  --navy-deep: #07111f;
  --navy-mid: #0d1f3c;
  --teal-dim: rgba(62, 207, 170, 0.15);
  --gold-dim: rgba(240, 163, 43, 0.12);
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
  --font-display: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E"),
    linear-gradient(180deg, var(--bg) 0%, var(--navy-deep) 100%);
  background-attachment: fixed;
  font-family: var(--font-body);
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.auth-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(280px, 420px);
  width: min(100%, 930px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.auth-shell-simple {
  grid-template-columns: minmax(0, 440px);
  width: min(100%, 460px);
}

.auth-panel,
.auth-aside {
  padding: clamp(28px, 5vw, 48px);
}

.auth-panel {
  background: var(--surface-strong);
}

.auth-shell-simple .auth-panel {
  padding: clamp(26px, 5vw, 40px);
}

.auth-aside {
  display: flex;
  min-height: 520px;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(145deg, rgba(62, 207, 170, 0.14), rgba(240, 163, 43, 0.1)),
    var(--navy-mid);
}

.auth-aside h2 {
  max-width: 330px;
  margin: 34px 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.auth-aside p,
.dashboard-heading p,
.helper-text {
  color: var(--muted);
  line-height: 1.6;
}

.brand-row,
.brand-link,
.topbar nav,
.payment-card-header,
.button-row {
  display: flex;
  align-items: center;
}

.brand-row {
  gap: 14px;
  margin-bottom: 30px;
}

.auth-shell-simple .brand-row {
  margin-bottom: 16px;
}

.brand-link {
  gap: 10px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 8px;
  background: var(--primary);
  color: #04342c;
  font-family: var(--font-display);
  font-weight: 700;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.auth-shell-simple h1 {
  margin-bottom: 0;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  line-height: 1.08;
}

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
}

.auth-lead {
  margin-bottom: 22px;
  color: var(--muted);
  line-height: 1.55;
}

.auth-form-title {
  margin-bottom: 2px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 22px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(244, 246, 250, 0.06);
}

.tabs-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tab {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.tab.is-active {
  background: var(--primary);
  color: #04342c;
  box-shadow: 0 10px 28px rgba(62, 207, 170, 0.18);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: grid;
}

.auth-form {
  gap: 16px;
}

.auth-secondary-actions {
  display: grid;
  gap: 6px;
  margin-top: 2px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.text-button {
  min-height: 36px;
  border: 0;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font-weight: 700;
}

.text-button:hover {
  color: var(--accent);
}

label,
.pix-code-label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(244, 246, 250, 0.06);
  color: var(--text);
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: rgba(244, 246, 250, 0.36);
}

input {
  min-height: 48px;
  padding: 0 14px;
}

select {
  min-height: 44px;
  padding: 0 12px;
}

textarea {
  min-height: 164px;
  resize: vertical;
  padding: 14px;
  color: var(--text);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.88rem;
  line-height: 1.55;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(62, 207, 170, 0.14);
}

.primary-button,
.secondary-button,
.ghost-button {
  min-height: 46px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.primary-button {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #04342c;
  box-shadow: 0 0 34px rgba(62, 207, 170, 0.2);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.primary-button:hover {
  background: var(--primary-dark);
}

.secondary-button,
.ghost-button {
  border: 1px solid var(--border);
  background: rgba(244, 246, 250, 0.06);
  color: var(--text);
}

.link-button {
  display: inline-grid;
  place-items: center;
  padding: 0 18px;
}

.secondary-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.alert {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 700;
}

.alert-error {
  border: 1px solid rgba(201, 85, 56, 0.26);
  background: rgba(201, 85, 56, 0.1);
  color: #9d321f;
}

.alert-success {
  border: 1px solid rgba(23, 114, 69, 0.24);
  background: rgba(23, 114, 69, 0.1);
  color: var(--success);
}

.alert-warning {
  border: 1px solid rgba(240, 163, 43, 0.28);
  background: rgba(240, 163, 43, 0.1);
  color: var(--warning);
}

.tabs-three .tab {
  line-height: 1.2;
  padding: 0 8px;
  white-space: normal;
}

.status-visual {
  display: grid;
  grid-template-columns: 1.3fr 0.75fr;
  grid-template-rows: 120px 120px;
  gap: 12px;
}

.status-visual span {
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 60px rgba(34, 40, 49, 0.12);
}

.status-visual span:nth-child(1) {
  background: var(--primary);
}

.status-visual span:nth-child(2) {
  background: var(--accent);
}

.status-visual span:nth-child(3) {
  grid-column: 1 / 3;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 0 clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 250, 242, 0.9);
  backdrop-filter: blur(18px);
}

.topbar nav {
  gap: 14px;
  color: var(--muted);
}

.ghost-button {
  display: inline-grid;
  min-height: 38px;
  place-items: center;
  padding: 0 16px;
}

.topbar nav .ghost-button.is-active,
.topbar nav .ghost-button[aria-current="page"] {
  border-color: rgba(62, 207, 170, 0.55);
  background: rgba(62, 207, 170, 0.12);
  color: var(--primary);
}

.enem-topbar nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 8px;
}

.enem-menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.enem-menu-bars {
  display: grid;
  gap: 4px;
  width: 18px;
}

.enem-menu-bars span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.dashboard {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) 18px;
}

.dashboard-heading {
  max-width: 720px;
  margin-bottom: 26px;
}

.dashboard-heading h1 {
  margin-bottom: 12px;
}

.checkout-heading {
  max-width: 760px;
  margin-bottom: 0;
}

.payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 22px;
  align-items: start;
}

.payment-layout-checkout {
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.payment-options {
  display: grid;
  gap: 18px;
  grid-column: 1;
  grid-row: 1;
}

.payment-layout-checkout .payment-options,
.payment-layout-checkout .payment-summary {
  grid-column: 1;
  grid-row: auto;
}

.payment-methods {
  gap: 12px;
}

.payment-methods .tab-panel {
  display: none;
}

.payment-methods .tab-panel.is-active {
  display: grid;
}

.payment-tabs {
  margin-bottom: 0;
}

.plan-choice {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 2px;
}

.plan-choice-card {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(13, 31, 60, 0.72);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
}

.plan-choice-card.is-active {
  border-color: rgba(62, 207, 170, 0.68);
  background: rgba(62, 207, 170, 0.12);
}

.plan-choice-card span {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.plan-choice-card strong {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.05;
}

.plan-choice-card small {
  color: var(--muted);
  line-height: 1.45;
}

.renewal-setup {
  grid-template-columns: minmax(0, 760px);
}

.payment-card,
.payment-summary,
.access-panel,
.welcome-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: 0 18px 50px rgba(34, 40, 49, 0.08);
}

.welcome-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.6fr);
  gap: 24px;
  align-items: center;
  padding: clamp(24px, 4vw, 34px);
}

.welcome-copy h2 {
  margin-bottom: 10px;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.1;
}

.welcome-copy p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
}

.welcome-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.welcome-action {
  display: inline-grid;
  width: fit-content;
  min-height: 44px;
  place-items: center;
  margin-top: 18px;
  padding: 0 18px;
}

.welcome-status {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
}

.welcome-status div {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.welcome-status div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.welcome-status dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.welcome-status dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.payment-card {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 4vw, 30px);
}

.payment-card-header {
  justify-content: space-between;
  gap: 16px;
}

.payment-card-header h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.card-payment-card .payment-card-header h2 {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.15;
}

.coupon-payment-card .payment-card-header h2 {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.15;
}

.coupon-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.coupon-form label {
  display: grid;
  gap: 7px;
}

.coupon-form button {
  min-width: 150px;
  padding: 0 16px;
}

.card-brick {
  min-height: 360px;
}

.consent-copy {
  margin-bottom: 0;
  padding: 12px 14px;
  border: 1px solid rgba(19, 111, 99, 0.18);
  border-radius: 8px;
  background: rgba(19, 111, 99, 0.08);
}

.check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-weight: 700;
  line-height: 1.35;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--primary);
}

.status-pill {
  display: inline-grid;
  min-height: 34px;
  place-items: center;
  border-radius: 999px;
  padding: 0 13px;
  background: rgba(154, 107, 0, 0.12);
  color: var(--warning);
  font-weight: 700;
}

.status-pill.is-paid {
  background: rgba(23, 114, 69, 0.12);
  color: var(--success);
}

.status-pill.is-rejected {
  background: rgba(180, 35, 24, 0.12);
  color: #b42318;
}

.status-pill.is-warning {
  background: rgba(154, 107, 0, 0.12);
  color: var(--warning);
}

.button-row {
  flex-wrap: wrap;
  gap: 10px;
}

.button-row button,
.button-row .link-button {
  min-width: 190px;
  padding: 0 18px;
}

.payment-summary {
  grid-column: 2;
  grid-row: 1;
  padding: 24px;
  position: sticky;
  top: 92px;
}

.payment-summary-top {
  position: static;
}

.payment-summary-header {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.payment-summary-header h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
}

.payment-summary dl,
.payment-summary dd {
  margin: 0;
}

.payment-summary dl {
  display: grid;
  gap: 18px;
}

.payment-summary-top dl {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0 18px;
}

.payment-summary dl > div {
  display: grid;
  gap: 4px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.payment-summary dl > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.payment-summary dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.payment-summary dd {
  overflow-wrap: anywhere;
  font-weight: 700;
}

.access-panel {
  display: flex;
  max-width: 720px;
  gap: 18px;
  align-items: center;
  padding: 24px;
}

.access-panel h2,
.access-panel p {
  margin-bottom: 0;
}

.access-icon {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-items: center;
  border-radius: 8px;
  background: rgba(23, 114, 69, 0.14);
  color: var(--success);
  font-weight: 950;
}

.course-home {
  width: min(100%, 1160px);
}

.course-hero,
.course-list-panel,
.course-shortcuts {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: 0 18px 50px rgba(34, 40, 49, 0.08);
}

.course-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.68fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
  padding: clamp(26px, 5vw, 42px);
}

.course-hero h1 {
  max-width: 720px;
}

.course-hero p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.course-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.course-stats div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fffaf2;
}

.course-stats dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.course-stats dd {
  margin: 6px 0 0;
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  font-weight: 950;
  line-height: 1.08;
  overflow-wrap: normal;
  white-space: nowrap;
  word-break: normal;
}

.course-grid,
.course-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.course-shortcuts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0 0;
  padding: 14px;
}

.course-card,
.course-shortcut-card {
  display: grid;
  gap: 10px;
  min-height: 190px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: 0 14px 40px rgba(34, 40, 49, 0.07);
  transition: transform 160ms ease, border-color 160ms ease;
}

.course-shortcut-card {
  min-height: 116px;
  background: #fffaf2;
}

.course-card:hover,
.course-shortcut-card:hover {
  transform: translateY(-2px);
  border-color: rgba(19, 111, 99, 0.38);
}

.course-card-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: rgba(19, 111, 99, 0.12);
  color: var(--primary);
  font-weight: 950;
}

.course-card-kicker,
.course-shortcut-card span {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.course-card strong,
.course-shortcut-card strong {
  font-size: 1.15rem;
  line-height: 1.18;
}

.course-card > span:last-child {
  color: var(--muted);
  line-height: 1.55;
}

.course-card-featured {
  background:
    linear-gradient(145deg, rgba(19, 111, 99, 0.08), rgba(201, 85, 56, 0.08)),
    var(--surface-strong);
}

.course-list-panel {
  padding: clamp(22px, 4vw, 30px);
}

.course-section-heading {
  margin-bottom: 18px;
}

.course-section-heading h2 {
  margin-bottom: 0;
}

.schedule-list {
  display: grid;
  gap: 12px;
}

.schedule-day-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fffaf2;
}

.schedule-day-number {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 94px;
  border-radius: 8px;
  background: var(--text);
  color: #ffffff;
}

.schedule-day-number span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
}

.schedule-day-number strong {
  font-size: 2rem;
  line-height: 1;
}

.schedule-day-body {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.schedule-day-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.schedule-day-heading h3 {
  margin: 0;
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  line-height: 1.18;
}

.schedule-day-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.schedule-type-pill {
  display: inline-grid;
  min-height: 28px;
  place-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(19, 111, 99, 0.12);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.schedule-type-revisao .schedule-type-pill {
  background: rgba(154, 107, 0, 0.12);
  color: var(--warning);
}

.schedule-type-simulado .schedule-type-pill {
  background: rgba(201, 85, 56, 0.12);
  color: var(--accent);
}

.schedule-type-diagnostico .schedule-type-pill {
  background: rgba(34, 40, 49, 0.1);
  color: var(--text);
}

.schedule-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.schedule-actions a,
.schedule-actions span {
  display: inline-grid;
  min-height: 36px;
  place-items: center;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
}

.schedule-actions a:hover {
  border-color: rgba(19, 111, 99, 0.38);
  color: var(--primary);
}

.schedule-actions .is-complete {
  border-color: rgba(23, 114, 69, 0.28);
  background: rgba(23, 114, 69, 0.1);
  color: var(--success);
}

.schedule-actions .is-disabled {
  color: var(--muted);
  opacity: 0.55;
}

.lesson-content-page {
  display: grid;
  gap: 22px;
}

.study-hero,
.study-card,
.exercise-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: 0 18px 50px rgba(34, 40, 49, 0.08);
}

.study-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  padding: clamp(26px, 5vw, 42px);
}

.study-hero h1 {
  max-width: 780px;
}

.study-hero p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.study-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.study-hero-actions a {
  display: inline-grid;
  min-width: 164px;
  place-items: center;
  padding: 0 18px;
}

.study-card {
  padding: clamp(20px, 4vw, 30px);
}

.study-card h2,
.exercise-card h2 {
  margin-bottom: 12px;
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  line-height: 1.2;
}

.study-card p,
.study-card li {
  color: var(--muted);
  line-height: 1.65;
}

.study-card p:last-child {
  margin-bottom: 0;
}

.generated-summary-card {
  display: grid;
  gap: 16px;
}

.generated-summary-card h2 {
  margin-top: 10px;
}

.generated-summary-card h2:first-child {
  margin-top: 0;
}

.generated-summary-card h3 {
  color: var(--text);
  font-size: 1.05rem;
  margin: 8px 0 0;
}

.generated-summary-card .answer-table-wrap,
.generated-summary-card .formula-box {
  margin: 4px 0;
}

.study-objective > p:last-child {
  max-width: 860px;
  color: var(--text);
  font-size: 1.05rem;
}

.study-grid,
.study-two-columns {
  display: grid;
  gap: 14px;
}

.study-grid {
  grid-template-columns: minmax(0, 1fr);
}

.study-two-columns {
  grid-template-columns: minmax(0, 1fr);
}

.formula-box {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 14px;
  border-radius: 8px;
  background: var(--text);
}

.formula-box code {
  color: #ffffff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: normal;
}

.study-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.study-list li::marker {
  color: var(--primary);
  font-weight: 700;
}

.warning-list li::marker {
  color: var(--accent);
}

.question-progress {
  display: inline-grid;
  min-height: 46px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 16px;
  background: #fffaf2;
  color: var(--text);
  font-weight: 950;
}

.exercise-player {
  display: grid;
  gap: 14px;
}

.exercise-card {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 26px);
}

.exercise-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.exercise-meta span {
  display: inline-grid;
  min-height: 28px;
  place-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(19, 111, 99, 0.1);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.exercise-meta span:first-child {
  background: rgba(34, 40, 49, 0.1);
  color: var(--text);
}

.exercise-card h2 {
  margin-bottom: 0;
}

.exercise-alternatives {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.exercise-option {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fffaf2;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.exercise-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.exercise-option input:focus {
  box-shadow: none;
}

.exercise-option:focus-within {
  border-color: rgba(19, 111, 99, 0.5);
  box-shadow: 0 0 0 4px rgba(19, 111, 99, 0.12);
}

.exercise-option strong {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 8px;
  background: var(--text);
  color: #ffffff;
  font-size: 0.82rem;
}

.exercise-option span {
  overflow-wrap: anywhere;
  font-weight: 700;
}

.exercise-option.is-selected {
  border-color: rgba(19, 111, 99, 0.5);
  box-shadow: 0 0 0 4px rgba(19, 111, 99, 0.12);
}

.exercise-option.is-correct {
  border-color: rgba(23, 114, 69, 0.4);
  background: rgba(23, 114, 69, 0.1);
}

.exercise-option.is-correct strong {
  background: var(--success);
}

.exercise-option.is-wrong {
  border-color: rgba(201, 85, 56, 0.45);
  background: rgba(201, 85, 56, 0.1);
}

.exercise-option.is-wrong strong {
  background: var(--accent);
}

.exercise-option.is-locked,
.exercise-option.is-locked input {
  cursor: default;
}

.exercise-feedback {
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 700;
  line-height: 1.45;
}

.exercise-feedback.is-correct {
  border: 1px solid rgba(23, 114, 69, 0.24);
  background: rgba(23, 114, 69, 0.1);
  color: var(--success);
}

.exercise-feedback.is-wrong,
.exercise-feedback.is-warning {
  border: 1px solid rgba(201, 85, 56, 0.26);
  background: rgba(201, 85, 56, 0.1);
  color: #9d321f;
}

.exercise-resolution {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(19, 111, 99, 0.2);
  border-radius: 8px;
  background: rgba(19, 111, 99, 0.07);
}

.exercise-resolution h3 {
  margin: 0;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 950;
}

.exercise-resolution p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.answer-pill {
  display: inline-grid;
  width: fit-content;
  min-height: 32px;
  place-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--success);
  color: #ffffff !important;
  font-weight: 950;
}

.exercise-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: 0 18px 50px rgba(34, 40, 49, 0.08);
}

.exercise-nav-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.exercise-nav button {
  min-width: 150px;
  padding: 0 18px;
}

.exercise-nav button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.exercise-result-card p:last-child {
  margin-bottom: 0;
}

.answer-table-card {
  scroll-margin-top: 20px;
}

.answer-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.answer-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.answer-table th,
.answer-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.answer-table th {
  background: #f1eadf;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.answer-table td:nth-child(2) {
  color: var(--success);
  font-weight: 950;
}

.mindmap-page {
  gap: 18px;
}

.mindmap-board {
  position: relative;
  display: grid;
  gap: 18px;
  padding: clamp(18px, 4vw, 30px);
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(19, 111, 99, 0.06), rgba(201, 85, 56, 0.06)),
    var(--surface-strong);
  box-shadow: 0 18px 50px rgba(34, 40, 49, 0.08);
}

.mindmap-center {
  display: grid;
  gap: 8px;
  width: min(100%, 360px);
  justify-self: center;
  min-height: 150px;
  place-items: center;
  padding: 22px;
  border: 1px solid rgba(34, 40, 49, 0.16);
  border-radius: 8px;
  background: var(--text);
  color: #ffffff;
  text-align: center;
}

.mindmap-center span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mindmap-center strong {
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1.05;
}

.mindmap-center small {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 750;
  line-height: 1.45;
}

.mindmap-branches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mindmap-node {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: clamp(18px, 3vw, 24px);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fffaf2;
}

.mindmap-node:nth-child(3n + 1) {
  border-top: 5px solid var(--primary);
}

.mindmap-node:nth-child(3n + 2) {
  border-top: 5px solid var(--accent);
}

.mindmap-node:nth-child(3n + 3) {
  border-top: 5px solid var(--warning);
}

.mindmap-node-header {
  display: grid;
  gap: 8px;
}

.mindmap-node-header span {
  display: inline-grid;
  width: fit-content;
  min-height: 26px;
  place-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(19, 111, 99, 0.1);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mindmap-node h2 {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.18;
}

.mindmap-node ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 19px;
}

.mindmap-node li,
.mindmap-node p {
  color: var(--muted);
  line-height: 1.58;
}

.mindmap-node li::marker {
  color: var(--primary);
  font-weight: 700;
}

.mindmap-node p {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font-weight: 700;
}

.subject-list {
  display: grid;
  gap: 18px;
}

.subject-panel {
  display: grid;
  gap: 14px;
  padding: clamp(16px, 3vw, 22px);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fffaf2;
}

.subject-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.subject-header h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  line-height: 1.15;
}

.subject-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(82px, 1fr));
  gap: 8px;
  margin: 0;
}

.subject-stats div {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
}

.subject-stats dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.subject-stats dd {
  margin: 4px 0 0;
  font-size: 1.25rem;
  font-weight: 950;
}

.lesson-list {
  display: grid;
  gap: 8px;
}

.lesson-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fffaf2;
}

.lesson-number {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: var(--text);
  color: #ffffff;
  font-weight: 950;
}

.lesson-row strong {
  display: block;
  margin-bottom: 4px;
}

.lesson-info {
  min-width: 0;
}

.lesson-row small {
  color: var(--muted);
  font-weight: 700;
}

.lesson-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.lesson-actions a,
.lesson-actions span {
  display: inline-grid;
  min-height: 36px;
  place-items: center;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
}

.lesson-actions a:hover {
  border-color: rgba(19, 111, 99, 0.38);
  color: var(--primary);
}

.lesson-actions .is-disabled {
  color: var(--muted);
  opacity: 0.55;
}

.subject-empty {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.subject-empty a {
  color: var(--primary);
  font-weight: 700;
}

.admin-topbar nav {
  flex-wrap: wrap;
}

.admin-auth-shell {
  grid-template-columns: minmax(320px, 460px) minmax(280px, 420px);
}

.admin-dashboard {
  width: min(100%, 1240px);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.admin-stats article,
.admin-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: 0 18px 50px rgba(34, 40, 49, 0.08);
}

.admin-stats article {
  display: grid;
  gap: 8px;
  padding: 20px;
}

.admin-stats span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-stats strong {
  overflow-wrap: anywhere;
  font-size: 1.55rem;
  line-height: 1.1;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.admin-coupon-grid {
  align-items: start;
}

.admin-panel {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 26px);
}

.admin-panel-header {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.admin-panel-header h2 {
  margin-bottom: 0;
}

.admin-search {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 12px;
  align-items: end;
}

.admin-search button,
.admin-search .link-button {
  min-width: 120px;
  padding: 0 16px;
}

.admin-period-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: 0 18px 50px rgba(34, 40, 49, 0.08);
}

.admin-period-panel strong {
  display: block;
  margin-top: 4px;
  font-size: 1.1rem;
}

.admin-period-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.admin-period-options .ghost-button {
  min-height: 40px;
}

.admin-period-options .ghost-button.is-active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.admin-period-custom {
  display: grid;
  grid-template-columns: repeat(2, minmax(132px, 1fr)) auto;
  gap: 10px;
  align-items: end;
}

.admin-period-custom label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-period-custom input {
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
}

.admin-period-custom button {
  min-height: 40px;
  padding: 0 16px;
}

.analytics-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.analytics-stats small {
  color: var(--muted);
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.journey-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.journey-layout {
  align-items: start;
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
}

.journey-session-list {
  display: grid;
  gap: 10px;
  max-height: 760px;
  overflow: auto;
  padding-right: 4px;
}

.journey-session-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(244, 246, 250, 0.055);
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.journey-session-card:hover,
.journey-session-card.is-selected {
  border-color: rgba(62, 207, 170, 0.46);
  background: rgba(62, 207, 170, 0.1);
  transform: translateY(-1px);
}

.journey-session-card strong {
  color: var(--text);
}

.journey-session-card small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.journey-timeline {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.journey-timeline li {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
}

.journey-time {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.4;
}

.journey-event {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(244, 246, 250, 0.055);
}

.journey-event strong {
  color: var(--text);
}

.journey-event small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.admin-form-grid label {
  display: grid;
  gap: 7px;
}

.admin-form-wide,
.admin-check-group {
  grid-column: 1 / -1;
}

.admin-check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.admin-check-group legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-form-grid small {
  color: var(--muted);
  line-height: 1.4;
}

.admin-check-row {
  align-self: end;
}

.admin-form-actions,
.admin-action-inline {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-form-actions {
  grid-column: 1 / -1;
}

.admin-action-inline {
  margin-top: 8px;
}

.admin-action-inline .secondary-button {
  min-height: 38px;
  padding: 0 14px;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-table td {
  line-height: 1.45;
}

.admin-table a {
  color: var(--primary);
  font-weight: 700;
}

.admin-table small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.admin-actions-cell {
  min-width: 260px;
}

.inline-details summary {
  width: max-content;
  cursor: pointer;
  color: var(--primary);
  font-weight: 700;
}

.admin-inline-form {
  display: grid;
  max-width: 330px;
  gap: 10px;
  margin-top: 10px;
}

.admin-inline-form textarea {
  min-height: 84px;
}

.admin-inline-form .primary-button {
  min-height: 40px;
}

.admin-config-list {
  box-shadow: none;
}

/* AprovaBB visual system */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 0.5px solid var(--border);
  background: rgba(10, 22, 40, 0.9);
  backdrop-filter: blur(16px);
}

.brand-link {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
}

.topbar nav {
  color: var(--muted);
}

.dashboard {
  position: relative;
  z-index: 1;
}

.auth-shell,
.payment-card,
.payment-summary,
.access-panel,
.welcome-panel,
.course-hero,
.course-list-panel,
.course-shortcuts,
.course-card,
.course-shortcut-card,
.study-hero,
.study-card,
.exercise-card,
.exercise-nav,
.answer-table-card,
.subject-panel,
.subject-stats div,
.lesson-row,
.lesson-actions a,
.lesson-actions span,
.admin-panel,
.admin-stats article,
.admin-config-list {
  border-color: var(--border);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.payment-card,
.payment-summary,
.access-panel,
.welcome-panel,
.course-hero,
.course-list-panel,
.course-shortcuts,
.course-card,
.course-shortcut-card,
.study-hero,
.study-card,
.exercise-card,
.exercise-nav,
.answer-table-card,
.subject-panel,
.subject-stats div,
.lesson-row,
.lesson-actions a,
.lesson-actions span,
.admin-panel,
.admin-stats article {
  border-radius: 8px;
}

.status-visual span,
.course-stats div,
.course-shortcut-card,
.schedule-day-card,
.question-progress,
.exercise-option,
.answer-table th,
.subject-panel,
.check-row,
.consent-copy {
  border-color: var(--border);
  background: rgba(244, 246, 250, 0.055);
}

.course-hero,
.study-hero,
.welcome-panel {
  background:
    linear-gradient(135deg, rgba(62, 207, 170, 0.11), rgba(240, 163, 43, 0.06)),
    var(--surface-strong);
}

.course-hero h1,
.study-hero h1,
.welcome-copy h2,
.dashboard-heading h1 {
  letter-spacing: -0.02em;
}

.course-hero h1,
.study-hero h1 {
  color: var(--text);
}

.course-stats dd,
.payment-card-header h2,
.course-card strong,
.course-shortcut-card strong,
.schedule-day-heading h3,
.study-card h2,
.exercise-card h2 {
  color: var(--text);
}

.course-stats dt,
.payment-summary dt,
.welcome-status dt,
.admin-stats span {
  color: var(--primary);
}

.course-stats div {
  transition: border-color 160ms ease, background 160ms ease;
}

.course-stats div:hover,
.course-card:hover,
.course-shortcut-card:hover,
.schedule-day-card:hover,
.study-card:hover {
  border-color: rgba(62, 207, 170, 0.42);
}

.schedule-day-card {
  transition: border-color 160ms ease, background 160ms ease;
}

.schedule-day-number {
  background: var(--primary);
  color: #04342c;
  font-family: var(--font-display);
}

.schedule-day-number span {
  opacity: 0.7;
}

.schedule-type-pill,
.exercise-meta span,
.mindmap-node-header span {
  background: var(--teal-dim);
  color: var(--primary);
}

.schedule-type-revisao .schedule-type-pill,
.schedule-type-simulado .schedule-type-pill {
  background: var(--gold-dim);
  color: var(--accent);
}

.schedule-type-diagnostico .schedule-type-pill,
.exercise-meta span:first-child {
  background: rgba(244, 246, 250, 0.08);
  color: var(--text);
}

.schedule-actions a,
.schedule-actions span {
  border-color: var(--border);
  background: rgba(244, 246, 250, 0.06);
  color: var(--text);
}

.schedule-actions a:hover {
  border-color: rgba(62, 207, 170, 0.55);
  color: var(--primary);
}

.schedule-actions .is-complete {
  border-color: rgba(62, 207, 170, 0.36);
  background: var(--teal-dim);
  color: var(--primary);
}

.formula-box {
  border: 1px solid rgba(240, 163, 43, 0.2);
  background: rgba(7, 17, 31, 0.72);
}

.formula-box code {
  color: var(--accent);
}

.exercise-question-map {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(244, 246, 250, 0.055);
  box-shadow: var(--shadow);
}

.exercise-question-chip {
  position: relative;
  display: grid;
  width: 42px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(244, 246, 250, 0.06);
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.exercise-question-chip.is-active {
  border-color: rgba(62, 207, 170, 0.58);
  color: var(--primary);
  box-shadow: 0 0 0 4px rgba(62, 207, 170, 0.12);
}

.exercise-question-chip.is-done {
  color: var(--text);
}

.exercise-question-chip.is-correct {
  border-color: rgba(62, 207, 170, 0.42);
  background: rgba(62, 207, 170, 0.14);
}

.exercise-question-chip.is-wrong {
  border-color: rgba(239, 68, 68, 0.38);
  background: rgba(239, 68, 68, 0.12);
}

.exercise-question-chip.is-done::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.exercise-option strong {
  background: var(--primary);
  color: #04342c;
}

.exercise-option.is-selected {
  border-color: rgba(62, 207, 170, 0.56);
  box-shadow: 0 0 0 4px rgba(62, 207, 170, 0.12);
}

.exercise-option.is-correct {
  border-color: rgba(62, 207, 170, 0.5);
  background: rgba(62, 207, 170, 0.12);
}

.exercise-option.is-wrong {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.12);
}

.exercise-option.is-wrong strong,
.status-pill.is-rejected {
  background: rgba(239, 68, 68, 0.14);
  color: #ff8f8f;
}

.exercise-resolution {
  border-color: rgba(62, 207, 170, 0.22);
  background: rgba(62, 207, 170, 0.08);
}

.answer-pill {
  color: #04342c !important;
}

.answer-table th {
  color: var(--primary);
}

.answer-table td {
  border-bottom-color: var(--border);
}

.alert-error,
.exercise-feedback.is-wrong,
.exercise-feedback.is-warning {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.12);
  color: #ffb4b4;
}

.alert-success,
.exercise-feedback.is-correct,
.status-pill.is-paid {
  border-color: rgba(62, 207, 170, 0.28);
  background: rgba(62, 207, 170, 0.12);
  color: var(--primary);
}

.status-pill,
.status-pill.is-warning {
  background: var(--gold-dim);
  color: var(--accent);
}

.admin-table th,
.admin-table td {
  border-bottom-color: var(--border);
}

.admin-table a {
  color: var(--primary);
}

.dashboard-heading p,
.course-section-heading p,
.payment-summary dd,
.welcome-status dd,
.subject-stats dd,
.admin-stats strong,
.admin-table td,
.inline-details summary {
  color: var(--text);
}

.access-icon,
.course-card-icon,
.lesson-number,
.mindmap-center {
  background: var(--primary);
  color: #04342c;
}

.mindmap-board {
  border-color: var(--border);
  background:
    linear-gradient(135deg, rgba(62, 207, 170, 0.11), rgba(240, 163, 43, 0.06)),
    var(--surface-strong);
  box-shadow: var(--shadow);
}

.mindmap-node,
.mindmap-node p,
.subject-empty,
.admin-table th,
.admin-config-list div {
  border-color: var(--border);
  background: rgba(244, 246, 250, 0.055);
}

.mindmap-center span,
.mindmap-center small {
  color: rgba(4, 52, 44, 0.72);
}

.mindmap-node h2,
.lesson-row strong,
.subject-header h3,
.admin-panel-header h2 {
  color: var(--text);
}

.mindmap-node p,
.subject-empty {
  color: var(--muted);
}

.lesson-actions a:hover,
.inline-details summary:hover,
.admin-table a:hover {
  color: var(--accent);
}

.card-brick,
.mp-card-form,
.mp-checkout-bricks__payment-form {
  color-scheme: dark;
}

#pix-code {
  min-height: 190px;
}

mark {
  border-radius: 4px;
  background: var(--gold-dim);
  color: var(--accent);
}

@media (max-width: 780px) {
  .auth-page {
    padding: 16px;
  }

  .auth-shell,
  .payment-layout,
  .plan-choice,
  .welcome-panel,
  .course-hero,
  .course-grid,
  .course-shortcuts,
  .study-hero,
  .study-grid,
  .study-two-columns,
  .mindmap-branches,
  .subject-header,
  .admin-stats,
  .admin-search,
  .admin-period-panel,
  .admin-period-custom,
  .admin-form-grid,
  .journey-stats,
  .journey-layout,
  .coupon-form {
    grid-template-columns: 1fr;
  }

  .admin-period-options {
    justify-content: flex-start;
  }

  .journey-timeline li {
    grid-template-columns: 1fr;
  }

  .exam-result-stats,
  .exam-result-groups {
    grid-template-columns: 1fr;
  }

  .subject-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-stats {
    grid-template-columns: 1fr;
  }

  .schedule-day-card {
    grid-template-columns: 1fr;
  }

  .schedule-day-number {
    min-height: 68px;
  }

  .lesson-row {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .lesson-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .study-hero-actions {
    justify-content: stretch;
  }

  .question-progress,
  .study-hero-actions a {
    width: 100%;
  }

  .exercise-nav,
  .exercise-nav-actions {
    width: 100%;
  }

  .exercise-nav button {
    width: 100%;
  }

  .auth-aside {
    min-height: auto;
  }

  .status-visual {
    grid-template-rows: 84px 84px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .topbar nav {
    width: 100%;
    justify-content: space-between;
  }

  .enem-topbar nav {
    justify-content: flex-start;
  }

  .payment-options,
  .payment-summary {
    grid-column: 1;
    grid-row: auto;
  }

  .payment-summary {
    order: -1;
    position: static;
  }

  .payment-summary-top dl {
    grid-template-columns: 1fr;
  }

  .button-row button,
  .button-row .link-button {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .enem-topbar {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px;
  }

  .enem-topbar .brand-link {
    flex: 1 1 auto;
    min-width: 0;
  }

  .enem-menu-toggle {
    display: inline-flex;
  }

  .enem-topbar nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-top: 6px;
  }

  .enem-topbar.is-menu-open nav {
    display: flex;
  }

  .enem-topbar nav .ghost-button {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .auth-panel,
  .auth-aside {
    padding: 22px;
  }

  h1 {
    font-size: 2rem;
  }

  .payment-card-header,
  .payment-summary-header,
  .access-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

.enem-home,
.enem-exam-page {
  gap: 24px;
}

.enem-exam-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.provas-offer-panel {
  margin: 22px 0 0;
}

.enem-exam-inline-ad {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid #f0d58e;
  border-radius: 8px;
  background: #fffbef;
  padding: 18px;
}

.enem-exam-inline-ad.is-course {
  border-color: #cfd6e4;
  background: #eef2ff;
}

.enem-exam-inline-ad h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.18;
}

.enem-exam-inline-ad p:not(.eyebrow) {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.enem-exam-inline-ad .link-button {
  justify-content: center;
  min-width: 220px;
}

.enem-exam-inline-ad:not(.is-course) .primary-button {
  border-color: #f2b632;
  background: #f2b632;
  color: #1b1f2a;
}

.enem-load-more-years {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: #fffaf2;
  padding: 16px;
}

.enem-load-more-years p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.enem-exam-card {
  display: grid;
  gap: 18px;
}

.enem-exam-card-head {
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.enem-exam-card-head h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.enem-exam-card-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.enem-exam-card-head strong {
  color: var(--primary);
  white-space: nowrap;
}

.status-pill {
  display: inline-flex;
  width: fit-content;
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--teal-dim);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 10px;
}

.enem-progress-bar {
  height: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(244, 246, 250, 0.08);
}

.enem-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.enem-card-stats,
.enem-live-stats {
  display: grid;
  gap: 12px;
}

.enem-card-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.enem-card-stats dt,
.enem-live-stats dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.enem-card-stats dd,
.enem-live-stats dd {
  margin: 5px 0 0;
  font-weight: 800;
}

.enem-hero {
  align-items: stretch;
}

.enem-live-stats {
  min-width: min(100%, 320px);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-strong);
  padding: 18px;
}

.enem-player-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.enem-toolbar-actions {
  display: flex;
  gap: 10px;
}

.enem-question-map {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.enem-question-chip {
  width: 42px;
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(244, 246, 250, 0.06);
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.enem-question-chip.is-active {
  border-color: var(--accent);
  color: var(--text);
}

.enem-question-chip.is-done {
  background: var(--teal-dim);
  border-color: rgba(62, 207, 170, 0.55);
  color: var(--primary);
}

.enem-question-chip.is-correct {
  background: rgba(62, 207, 170, 0.18);
  border-color: rgba(62, 207, 170, 0.7);
  color: var(--primary);
}

.enem-question-chip.is-wrong {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.65);
  color: #ff9f9f;
}

.enem-question-chip.is-blank {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.62);
  color: #f8c46c;
}

.enem-question-chip.is-ungraded {
  background: rgba(148, 163, 184, 0.16);
  border-color: rgba(148, 163, 184, 0.48);
  color: #cbd5e1;
}

.enem-question-card {
  display: grid;
  gap: 18px;
  padding: clamp(14px, 2.5vw, 24px);
}

.enem-question-text {
  display: grid;
  gap: 0.75rem;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.65;
}

.enem-question-text p {
  margin: 0;
}

.enem-question-figure {
  display: grid;
  gap: 10px;
  margin: 0;
}

.enem-question-figure figcaption {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.enem-question-image-wrap {
  overflow: auto;
  border: 1px solid rgba(244, 246, 250, 0.14);
  border-radius: 8px;
  background: #fff;
}

.enem-question-image {
  display: block;
  width: 100%;
  height: auto;
}

.enem-answer-panel {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

.enem-option-button {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 52px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(244, 246, 250, 0.08);
  color: var(--text);
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.45;
  padding: 14px 16px;
  text-align: left;
}

.enem-option-button strong {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: rgba(244, 246, 250, 0.1);
  color: var(--primary);
  font-size: 0.92rem;
}

.enem-option-button span {
  flex: 1;
}

.enem-option-button:hover,
.enem-option-button.is-selected {
  border-color: rgba(62, 207, 170, 0.72);
  background: var(--primary);
  color: #061424;
}

.enem-option-button:hover strong,
.enem-option-button.is-selected strong {
  background: rgba(6, 20, 36, 0.16);
  color: #061424;
}

.enem-option-button.is-correct-answer {
  border-color: rgba(62, 207, 170, 0.82);
  background: rgba(62, 207, 170, 0.16);
  color: var(--text);
}

.enem-option-button.is-correct-answer strong {
  background: var(--primary);
  color: #061424;
}

.enem-option-button.is-wrong-answer {
  border-color: rgba(239, 68, 68, 0.75);
  background: rgba(239, 68, 68, 0.14);
  color: var(--text);
}

.enem-option-button.is-wrong-answer strong {
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
}

.enem-nav {
  margin-top: 18px;
}

.enem-result-card {
  display: grid;
  gap: 18px;
  border-color: rgba(62, 207, 170, 0.55);
}

.enem-result-card h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.1rem);
}

.enem-result-card h2 span {
  color: var(--primary);
}

.enem-result-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.exam-result-stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.exam-result-stats article {
  display: grid;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(244, 246, 250, 0.06);
  padding: 16px;
}

.exam-result-stats span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.exam-result-stats strong {
  color: var(--text);
  font-size: 2rem;
}

.exam-result-stats .is-correct {
  border-color: rgba(62, 207, 170, 0.45);
}

.exam-result-stats .is-wrong {
  border-color: rgba(239, 68, 68, 0.42);
}

.exam-result-stats .is-blank {
  border-color: rgba(245, 158, 11, 0.42);
}

.exam-result-stats .is-ungraded {
  border-color: rgba(148, 163, 184, 0.42);
}

.exam-result-details {
  display: grid;
  gap: 14px;
}

.exam-result-details-head h3,
.exam-result-group h3 {
  margin: 0;
}

.exam-result-details-head h3 {
  font-size: 1.2rem;
}

.exam-result-groups {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.exam-result-group {
  display: grid;
  gap: 12px;
  align-content: start;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(244, 246, 250, 0.055);
  padding: 16px;
}

.exam-result-group h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
  font-size: 1rem;
}

.exam-result-group h3 span {
  color: var(--primary);
}

.exam-result-chip-list {
  display: grid;
  gap: 8px;
}

.exam-result-question-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(244, 246, 250, 0.045);
  padding: 10px;
}

.exam-result-chip {
  display: grid;
  gap: 3px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(244, 246, 250, 0.07);
  color: var(--text);
  cursor: pointer;
  padding: 10px;
  text-align: left;
}

.exam-result-chip strong {
  color: var(--text);
  font-size: 1.05rem;
}

.exam-result-chip span {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 900;
}

.exam-result-chip small {
  color: var(--muted);
  font-weight: 800;
}

.exam-result-group.is-correct,
.exam-result-question-card.is-correct,
.exam-result-chip.is-correct {
  border-color: rgba(62, 207, 170, 0.45);
}

.exam-result-group.is-wrong,
.exam-result-question-card.is-wrong,
.exam-result-chip.is-wrong {
  border-color: rgba(239, 68, 68, 0.45);
}

.exam-result-group.is-blank,
.exam-result-question-card.is-blank,
.exam-result-chip.is-blank {
  border-color: rgba(245, 158, 11, 0.45);
}

.exam-result-group.is-ungraded,
.exam-result-question-card.is-ungraded,
.exam-result-chip.is-ungraded {
  border-color: rgba(148, 163, 184, 0.42);
}

.exam-result-resolution {
  border-top: 1px solid rgba(244, 246, 250, 0.1);
  padding-top: 8px;
}

.exam-result-resolution summary {
  color: var(--primary);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 900;
}

.exam-result-resolution p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  white-space: pre-line;
}

.exam-result-study-link {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: 10px;
  border: 1px solid rgba(62, 207, 170, 0.45);
  border-radius: 8px;
  background: rgba(62, 207, 170, 0.12);
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 900;
  padding: 9px 11px;
  text-decoration: none;
}

.exam-result-study-link span {
  color: var(--text);
}

.exam-result-study-link.is-locked {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.11);
  color: var(--warning);
}

.exam-correction-list {
  display: grid;
  gap: 12px;
}

.exam-correction-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(244, 246, 250, 0.055);
  padding: 16px;
}

.exam-correction-card.is-correct {
  border-color: rgba(62, 207, 170, 0.45);
}

.exam-correction-card.is-wrong {
  border-color: rgba(239, 68, 68, 0.45);
}

.exam-correction-card.is-blank {
  border-color: rgba(245, 158, 11, 0.45);
}

.exam-correction-head {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.exam-correction-head div {
  display: grid;
  gap: 4px;
}

.exam-correction-head span,
.exam-correction-head small,
.exam-correction-answer {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.exam-correction-head strong {
  color: var(--text);
  font-size: 1.05rem;
}

.exam-correction-head b {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(244, 246, 250, 0.08);
  color: var(--primary);
  font-size: 0.78rem;
  padding: 7px 10px;
}

.exam-correction-card.is-wrong .exam-correction-head b {
  color: var(--danger);
}

.exam-correction-card.is-blank .exam-correction-head b {
  color: var(--warning);
}

.exam-correction-answer strong {
  color: var(--text);
}

.exam-correction-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
  white-space: pre-line;
}

.exam-correction-ad {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1px solid rgba(245, 158, 11, 0.48);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(244, 246, 250, 0.06));
  padding: 16px;
}

.exam-correction-ad.is-course {
  border-color: rgba(62, 207, 170, 0.42);
  background: linear-gradient(135deg, rgba(62, 207, 170, 0.14), rgba(244, 246, 250, 0.06));
}

.exam-correction-ad div {
  display: grid;
  gap: 5px;
}

.exam-correction-ad span {
  color: var(--warning);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.exam-correction-ad.is-course span {
  color: var(--primary);
}

.exam-correction-ad strong {
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.2;
}

.exam-correction-ad p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.exam-correction-ad .link-button {
  justify-content: center;
  min-width: 190px;
  min-height: 44px;
  white-space: nowrap;
}

.exam-correction-ad:not(.is-course) .primary-button {
  border-color: var(--warning);
  background: var(--warning);
  color: #1b1f2a;
}

.diagnostic-result-summary {
  display: grid;
  gap: 14px;
}

.diagnostic-result-offers {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.diagnostic-offer-card {
  display: grid;
  gap: 14px;
  align-content: start;
  border: 1px solid rgba(245, 158, 11, 0.36);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.16), rgba(244, 246, 250, 0.06));
  padding: 18px;
}

.diagnostic-offer-card.is-course {
  border-color: rgba(62, 207, 170, 0.34);
  background: linear-gradient(145deg, rgba(62, 207, 170, 0.13), rgba(244, 246, 250, 0.055));
}

.diagnostic-offer-card h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.18;
}

.diagnostic-offer-card p {
  margin: 0;
}

.diagnostic-offer-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.diagnostic-offer-card li {
  position: relative;
  color: var(--text);
  font-weight: 850;
  line-height: 1.35;
  padding-left: 24px;
}

.diagnostic-offer-card li::before {
  content: "";
  position: absolute;
  top: 0.42em;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--warning);
}

.diagnostic-offer-card.is-course li::before {
  background: var(--primary);
}

.diagnostic-offer-price {
  color: var(--warning);
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1;
}

.diagnostic-offer-old-price {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.diagnostic-offer-card.is-course .diagnostic-offer-price {
  color: var(--primary);
}

.diagnostic-offer-card .link-button {
  justify-content: center;
  width: 100%;
  min-height: 48px;
}

.save-question-button {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  width: fit-content;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(244, 246, 250, 0.08);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  padding: 9px 12px;
}

.save-question-button span[aria-hidden="true"] {
  color: rgba(244, 246, 250, 0.45);
}

.save-question-button.is-saved {
  border-color: rgba(62, 207, 170, 0.65);
  background: var(--teal-dim);
  color: var(--primary);
}

.save-question-button.is-saved span[aria-hidden="true"] {
  color: var(--primary);
}

.enem-filter-card {
  display: grid;
  gap: 16px;
}

.enem-filter-form {
  align-items: end;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(6, minmax(0, 1fr)) auto;
}

.enem-filter-form label {
  color: var(--muted);
  display: grid;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 800;
}

.enem-filter-form input,
.enem-filter-form select {
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(244, 246, 250, 0.08);
  color: var(--text);
  font: inherit;
  padding: 0 12px;
}

.enem-question-list {
  display: grid;
  gap: 14px;
}

.enem-bank-card {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.enem-bank-card h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.enem-bank-card p {
  margin: 0;
  color: var(--muted);
}

.enem-bank-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.knowledge-page,
.enem-bank-page,
.single-question-page,
.subject-page {
  gap: 24px;
}

.knowledge-legend {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  font-weight: 800;
}

.legend-dot {
  display: inline-flex;
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.legend-dot.knowledge-red,
.knowledge-row.knowledge-red .knowledge-meter span,
.knowledge-mini-card.knowledge-red {
  background: #ef4444;
}

.legend-dot.knowledge-yellow,
.knowledge-row.knowledge-yellow .knowledge-meter span,
.knowledge-mini-card.knowledge-yellow {
  background: #f59e0b;
}

.legend-dot.knowledge-green,
.knowledge-row.knowledge-green .knowledge-meter span,
.knowledge-mini-card.knowledge-green {
  background: var(--primary);
}

.legend-dot.knowledge-muted,
.knowledge-row.knowledge-muted .knowledge-meter span,
.knowledge-mini-card.knowledge-muted {
  background: #64748b;
}

.knowledge-list {
  display: grid;
  gap: 16px;
}

.knowledge-subject-card {
  display: grid;
  gap: 14px;
}

.knowledge-row {
  display: grid;
  gap: 8px;
}

.knowledge-row-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.knowledge-row-head a {
  color: inherit;
  text-decoration: none;
}

.knowledge-row-head span,
.knowledge-row small {
  color: var(--muted);
  font-weight: 800;
}

.knowledge-meter {
  height: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(244, 246, 250, 0.08);
}

.knowledge-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.knowledge-topic {
  border-top: 1px solid rgba(244, 246, 250, 0.1);
  padding-top: 12px;
}

.knowledge-topic summary {
  cursor: pointer;
  list-style: none;
}

.knowledge-topic summary::-webkit-details-marker {
  display: none;
}

.knowledge-subtopic-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding-left: 18px;
}

.knowledge-mini-card {
  align-self: stretch;
  min-width: min(100%, 240px);
  border: 1px solid rgba(244, 246, 250, 0.14);
  border-radius: 8px;
  color: #061424;
  display: grid;
  gap: 4px;
  padding: 18px;
}

.knowledge-mini-card span,
.knowledge-mini-card small {
  color: rgba(6, 20, 36, 0.76);
  font-weight: 800;
}

.knowledge-mini-card strong {
  font-size: 2.4rem;
}

.question-result-card {
  border: 1px solid rgba(244, 246, 250, 0.14);
  border-radius: 8px;
  background: rgba(244, 246, 250, 0.08);
  padding: 14px;
}

.question-result-card.is-correct {
  border-color: rgba(62, 207, 170, 0.65);
}

.question-result-card.is-wrong {
  border-color: rgba(239, 68, 68, 0.65);
}

.diagnostic-page,
.diagnostic-home {
  gap: 24px;
}

.diagnostic-note,
.diagnostic-redaction-card {
  display: grid;
  gap: 10px;
}

.diagnostic-note h2,
.diagnostic-redaction-card h2 {
  margin: 0;
}

.diagnostic-note p,
.diagnostic-redaction-card p {
  margin: 0;
}

.diagnostic-result-card {
  display: grid;
  gap: 16px;
}

.diagnostic-result-card h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.diagnostic-area-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 8px;
}

.diagnostic-area-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(244, 246, 250, 0.06);
  padding: 16px;
}

.diagnostic-area-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.diagnostic-area-head strong {
  color: var(--text);
}

.diagnostic-area-head span,
.diagnostic-level {
  color: var(--primary);
  font-weight: 800;
}

.diagnostic-area-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.diagnostic-focus {
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(244, 246, 250, 0.12);
  padding-top: 12px;
}

.diagnostic-focus strong {
  color: var(--text);
}

.diagnostic-focus ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.material-delivery {
  display: grid;
  gap: 22px;
}

.material-delivery-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.material-resource-card {
  align-content: start;
  display: grid;
  gap: 12px;
}

.material-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.material-actions .link-button,
.material-next-button {
  min-height: 44px;
  min-width: 150px;
  padding: 0 18px;
  font-size: 0.92rem;
  font-weight: 850;
}

.material-actions .primary-button,
.material-next-button {
  color: #04281f;
}

.material-actions .secondary-button {
  border-color: rgba(244, 246, 250, 0.22);
  background: rgba(244, 246, 250, 0.08);
}

.material-video-frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #061424;
}

.material-video-frame iframe {
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

.material-video-placeholder {
  border: 1px dashed rgba(244, 246, 250, 0.25);
  border-radius: 8px;
  background: rgba(244, 246, 250, 0.06);
  color: var(--muted);
  padding: 18px;
}

.material-video-placeholder strong {
  color: var(--text);
  display: block;
  margin-bottom: 6px;
}

.planning-purchase-card {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.35fr);
}

.planning-purchase-card h2 {
  margin-bottom: 8px;
}

.planning-purchase-card p {
  color: var(--muted);
}

.planning-price-box {
  display: grid;
  gap: 10px;
  justify-items: start;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(244, 246, 250, 0.06);
  padding: 18px;
}

.planning-price-box span {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.planning-price-box strong {
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.planning-price-box small {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.45;
}

.planning-price-box small b {
  color: var(--primary);
}

.planning-price-box .link-button {
  width: 100%;
}

@media (max-width: 980px) {
  .enem-exam-grid {
    grid-template-columns: 1fr;
  }

  .enem-exam-inline-ad {
    grid-template-columns: 1fr;
  }

  .enem-exam-inline-ad .link-button {
    width: 100%;
  }

  .enem-load-more-years {
    align-items: stretch;
    flex-direction: column;
  }

  .enem-load-more-years .link-button {
    width: 100%;
  }

  .enem-card-stats {
    grid-template-columns: 1fr;
  }

  .material-delivery-grid {
    grid-template-columns: 1fr;
  }

  .material-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .material-actions .link-button,
  .material-next-button {
    width: 100%;
  }

  .planning-purchase-card {
    grid-template-columns: 1fr;
  }

  .diagnostic-area-grid {
    grid-template-columns: 1fr;
  }

  .enem-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .enem-bank-card {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .enem-bank-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .enem-player-toolbar,
  .enem-exam-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .enem-toolbar-actions {
    flex-direction: column;
  }

  .enem-question-chip {
    width: 40px;
  }

  .enem-option-button {
    min-height: 48px;
  }

  .enem-filter-form {
    grid-template-columns: 1fr;
  }

  .knowledge-row-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

body.enem-light {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --text: #1b1f2a;
  --muted: #5d6475;
  --border: #e3dfd5;
  --primary: #2448c8;
  --primary-dark: #1c3ba8;
  --accent: #f2b632;
  --warning: #c98a00;
  --success: #1f8a4c;
  --danger: #c0392b;
  --navy-deep: #f6f4ef;
  --navy-mid: #ffffff;
  --teal-dim: #eef2ff;
  --gold-dim: #fffaf0;
  --shadow: 0 20px 54px rgba(27, 31, 42, 0.11);
  --font-display: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  background: var(--bg);
  background-image: none;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.enem-light .topbar {
  min-height: 70px;
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 1px 0 rgba(27, 31, 42, 0.03);
}

body.enem-light .brand-link {
  color: var(--text);
  font-weight: 800;
}

body.enem-light .brand-mark {
  background: var(--primary);
  color: #ffffff;
}

body.enem-light .ghost-button,
body.enem-light .secondary-button {
  border-color: var(--border);
  background: #ffffff;
  color: var(--text);
  box-shadow: none;
}

body.enem-light .topbar nav .ghost-button.is-active,
body.enem-light .topbar nav .ghost-button[aria-current="page"] {
  border-color: var(--primary);
  background: var(--teal-dim);
  color: var(--primary);
}

body.enem-light .primary-button {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
  box-shadow: none;
}

body.enem-light .primary-button:hover {
  background: var(--primary-dark);
}

body.enem-light input,
body.enem-light textarea,
body.enem-light select {
  background: #ffffff;
  color: var(--text);
}

body.enem-light input::placeholder,
body.enem-light textarea::placeholder {
  color: rgba(93, 100, 117, 0.58);
}

body.enem-light input:focus,
body.enem-light textarea:focus,
body.enem-light select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(36, 72, 200, 0.12);
}

body.enem-light .dashboard-heading p,
body.enem-light .helper-text {
  color: var(--muted);
}

body.enem-light .payment-card,
body.enem-light .payment-summary,
body.enem-light .access-panel,
body.enem-light .welcome-panel,
body.enem-light .course-shortcuts,
body.enem-light .course-shortcut-card {
  border-color: var(--border);
  background: #ffffff;
  box-shadow: var(--shadow);
}

body.enem-light .payment-summary-header h2,
body.enem-light .payment-card-header h2,
body.enem-light .welcome-copy h2 {
  color: var(--text);
}

body.enem-light .payment-summary-top dl > div,
body.enem-light .payment-summary dl > div,
body.enem-light .welcome-status div {
  border-color: var(--border);
}

body.enem-light .payment-summary dt,
body.enem-light .welcome-status dt,
body.enem-light label,
body.enem-light .pix-code-label {
  color: var(--text);
}

body.enem-light .tabs {
  border-color: var(--border);
  background: #ffffff;
}

body.enem-light .tab {
  color: var(--muted);
}

body.enem-light .tab.is-active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: none;
}

body.enem-light .consent-copy {
  border-color: rgba(36, 72, 200, 0.14);
  background: #eef2ff;
}

body.enem-light .check-row {
  border-color: var(--border);
  background: #ffffff;
}

body.enem-light .course-shortcut-card {
  box-shadow: none;
}

.order-bump-card {
  border: 1px solid rgba(242, 182, 50, 0.68);
  border-radius: 12px;
  background: var(--gold-dim);
  box-shadow: var(--shadow);
}

.order-bump-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
}

.order-bump-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0;
  color: var(--text);
  cursor: pointer;
}

.order-bump-check input {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.order-bump-check span {
  display: grid;
  gap: 4px;
}

.order-bump-check strong {
  font-size: 1rem;
  line-height: 1.25;
}

.order-bump-check small {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.order-bump-action {
  min-height: 42px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #1b1f2a;
  cursor: pointer;
  font-weight: 800;
  padding: 0 16px;
}

body.enem-light .order-bump-card {
  background: #fffaf0;
}

body.enem-light .enem-menu-toggle {
  border-color: var(--border);
  background: #ffffff;
  color: var(--text);
}

.diagnostic-public-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  padding: 12px clamp(16px, 5vw, 44px);
}

.diagnostic-public-topbar .brand-link {
  color: var(--text);
}

.diagnostic-public-topbar .brand-link span span {
  color: var(--primary);
}

.diagnostic-light-shell {
  width: min(100%, 760px);
  padding: 16px 16px 56px;
}

.diagnostic-access-shell {
  width: min(100%, 1040px);
  padding-top: clamp(18px, 4vw, 42px);
}

.diagnostic-access-hero {
  display: grid;
  align-items: stretch;
  gap: clamp(18px, 4vw, 28px);
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.75fr);
}

.diagnostic-access-copy,
.diagnostic-access-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.diagnostic-access-copy {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(24px, 5vw, 42px);
}

.diagnostic-access-copy h1 {
  max-width: 10.8em;
  margin: 0;
  color: var(--text);
  font-size: clamp(2.35rem, 6vw, 4.5rem);
  font-weight: 850;
  line-height: 0.98;
  letter-spacing: 0;
}

.diagnostic-access-copy > p {
  max-width: 54ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.diagnostic-access-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(20px, 4vw, 28px);
}

.diagnostic-access-card h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.08;
}

.diagnostic-access-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.diagnostic-lead-form {
  display: grid;
  gap: 13px;
  margin-top: 4px;
}

.diagnostic-lead-form label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
}

.diagnostic-lead-form input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  min-height: 50px;
  outline: none;
  padding: 0 14px;
}

.diagnostic-lead-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(36, 72, 200, 0.12);
}

.diagnostic-lead-form .primary-button {
  min-height: 52px;
  border-radius: 12px;
}

.diagnostic-lead-form .primary-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.diagnostic-lead-form .form-message {
  color: var(--muted);
  font-size: 0.9rem;
}

.diagnostic-lead-form .form-message.is-success {
  color: var(--success);
}

.diagnostic-lead-form .form-message.is-error {
  color: var(--danger);
}

.diagnostic-code-box {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.diagnostic-code-box .auth-form-title {
  margin: 0;
  font-size: 1rem;
}

.diagnostic-code-box p {
  color: var(--muted);
  font-size: 0.92rem;
}

.diagnostic-code-form {
  display: grid;
  gap: 12px;
}

.diagnostic-code-form label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
}

.diagnostic-code-form input {
  width: 100%;
  min-height: 48px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  outline: none;
  padding: 0 14px;
}

.diagnostic-code-form input[name="code"] {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-align: center;
}

.diagnostic-code-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(36, 72, 200, 0.12);
}

.diagnostic-code-form .primary-button,
.diagnostic-code-form .secondary-button {
  min-height: 48px;
  justify-content: center;
  border-radius: 12px;
}

.diagnostic-access-user {
  display: grid;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #faf9f6;
  padding: 14px;
}

.diagnostic-access-user span {
  color: var(--text);
  font-weight: 800;
}

.diagnostic-access-user strong {
  color: var(--muted);
  font-size: 0.9rem;
}

.diagnostic-confirmation {
  display: grid;
  gap: 12px;
  text-align: left;
}

.diagnostic-confirmation-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  background: var(--success);
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 900;
}

.diagnostic-confirmation-email {
  display: grid;
  gap: 4px;
  overflow-wrap: anywhere;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--teal-dim);
  padding: 12px 14px;
}

.diagnostic-confirmation-email span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.diagnostic-confirmation-email strong {
  color: var(--primary);
}

.diagnostic-confirmation small {
  color: var(--muted);
  line-height: 1.5;
}

.diagnostic-correct-email {
  justify-self: start;
}

.diagnostic-conversation-page {
  min-height: 100vh;
  background: var(--bg);
}

.diagnostic-conversation-shell {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: clamp(28px, 7vw, 70px) 16px 48px;
}

.diagnostic-conversation-intro {
  display: grid;
  gap: 15px;
  margin-bottom: 24px;
  text-align: center;
}

.diagnostic-conversation-intro .diagnostic-light-pill {
  justify-self: center;
}

.diagnostic-conversation-intro h1 {
  max-width: 14em;
  margin: 0 auto;
  color: var(--text);
  font-size: clamp(2rem, 7vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.diagnostic-conversation-intro > p {
  max-width: 58ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.diagnostic-conversation-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
}

.diagnostic-conversation-facts span::before {
  content: "✓";
  margin-right: 6px;
  color: var(--success);
}

.diagnostic-conversation-card {
  display: grid;
  gap: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: clamp(20px, 5vw, 34px);
}

.diagnostic-chat-line {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
}

.diagnostic-chat-avatar {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-weight: 900;
}

.diagnostic-chat-line div {
  display: grid;
  gap: 6px;
  border-radius: 4px 14px 14px;
  background: var(--teal-dim);
  padding: 14px 16px;
}

.diagnostic-chat-line strong {
  color: var(--text);
}

.diagnostic-chat-line p {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
}

.diagnostic-conversation-form {
  margin-left: 59px;
}

.diagnostic-conversation-form input {
  min-height: 56px;
  font-size: 1rem;
}

.diagnostic-conversation-form .primary-button {
  min-height: 56px;
}

.diagnostic-conversation-privacy {
  max-width: 60ch;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: center;
}

.diagnostic-name-capture {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.75fr);
  gap: 22px;
  align-items: end;
  margin: 22px 0;
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  background: var(--gold-dim);
  padding: 20px;
}

.diagnostic-name-capture h3,
.diagnostic-name-saved h3 {
  margin: 3px 0 8px;
  color: var(--text);
}

.diagnostic-name-capture p,
.diagnostic-name-saved p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.diagnostic-name-capture form {
  display: grid;
  gap: 9px;
}

.diagnostic-name-capture label {
  display: grid;
  gap: 6px;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 800;
}

.diagnostic-name-capture input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  outline: none;
  padding: 0 12px;
}

.diagnostic-name-capture input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(36, 72, 200, 0.12);
}

.diagnostic-name-capture .form-message {
  min-height: 1.2em;
  color: var(--danger);
  font-size: 0.82rem;
}

.diagnostic-name-saved {
  grid-column: 1 / -1;
}

.diagnostic-flow-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.diagnostic-flow-grid article {
  display: grid;
  gap: 9px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #faf9f6;
  padding: 16px;
}

.diagnostic-flow-grid span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-weight: 900;
}

.diagnostic-flow-grid strong {
  color: var(--text);
  font-size: 1.02rem;
}

.diagnostic-flow-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.diagnostic-light-hero,
.diagnostic-light-card,
.diagnostic-day-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
}

.diagnostic-light-hero {
  display: grid;
  gap: 14px;
  padding: clamp(22px, 5vw, 34px);
}

.diagnostic-light-hero h1 {
  max-width: 11.5em;
  margin: 0;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

.diagnostic-light-hero p,
.diagnostic-light-heading p,
.diagnostic-ray-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.diagnostic-light-pill {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: var(--accent);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 5px 11px;
  text-transform: uppercase;
}

.diagnostic-light-checklist {
  display: grid;
  gap: 10px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.diagnostic-light-checklist li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
  font-weight: 650;
}

.diagnostic-light-checklist li::before {
  content: "";
  position: absolute;
  top: 0.38em;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--accent);
}

.diagnostic-light-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
  margin-top: 6px;
}

.diagnostic-light-actions .link-button,
.diagnostic-day-card .link-button,
.diagnostic-ray-card .link-button {
  min-height: 50px;
  border-radius: 12px;
}

.diagnostic-light-stats {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.diagnostic-light-stats article {
  border-top: 2px solid var(--text);
  padding-top: 9px;
}

.diagnostic-light-stats span,
.diagnostic-day-head strong,
.diagnostic-card-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.diagnostic-light-stats strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.diagnostic-light-card {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 4vw, 24px);
}

.diagnostic-light-heading {
  display: grid;
  gap: 6px;
}

.diagnostic-light-heading h2,
.diagnostic-ray-card h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1.16;
  letter-spacing: 0;
}

.diagnostic-day-list {
  display: grid;
  gap: 12px;
}

.diagnostic-day-card {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.diagnostic-day-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.diagnostic-day-head h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 1.08rem;
  letter-spacing: 0;
}

.diagnostic-day-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

body.enem-light .status-pill {
  border-color: var(--border);
  background: var(--teal-dim);
  color: var(--primary);
}

body.enem-light .enem-progress-bar {
  border-color: var(--border);
  background: #f0ece4;
}

body.enem-light .enem-progress-bar span {
  background: var(--primary);
}

body.enem-light .enem-card-stats dt,
body.enem-light .enem-live-stats dt {
  color: var(--muted);
}

body.enem-light .enem-card-stats dd,
body.enem-light .enem-live-stats dd {
  color: var(--text);
}

.diagnostic-ray-card {
  border-style: dashed;
  background: linear-gradient(135deg, #ffffff 0%, #fffaf0 100%);
}

.diagnostic-ray-card .secondary-button {
  width: fit-content;
  min-width: 230px;
}

body.enem-light .diagnostic-page {
  width: min(100%, 920px);
  padding: 18px 16px 56px;
}

body.enem-light .diagnostic-hero,
body.enem-light .diagnostic-note,
body.enem-light .diagnostic-redaction-card,
body.enem-light .enem-question-card,
body.enem-light .enem-result-card,
body.enem-light .exam-result-group,
body.enem-light .exam-result-question-card,
body.enem-light .exam-correction-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: none;
}

body.enem-light .diagnostic-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.45fr);
  gap: 22px;
  align-items: center;
  padding: clamp(20px, 4vw, 28px);
}

body.enem-light .diagnostic-hero h1 {
  max-width: 12em;
  margin: 0 0 10px;
  color: var(--text);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

body.enem-light .diagnostic-hero p,
body.enem-light .diagnostic-note p,
body.enem-light .diagnostic-redaction-card p,
body.enem-light .enem-result-card p {
  color: var(--muted);
}

body.enem-light .enem-live-stats {
  border-color: var(--border);
  border-radius: 12px;
  background: #faf9f6;
}

body.enem-light .diagnostic-note,
body.enem-light .diagnostic-redaction-card {
  padding: 18px;
}

body.enem-light .diagnostic-note h2,
body.enem-light .diagnostic-redaction-card h2 {
  color: var(--text);
  font-size: 1.25rem;
}

body.enem-light .enem-player-toolbar {
  position: sticky;
  top: 76px;
  z-index: 4;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(246, 244, 239, 0.92);
  backdrop-filter: blur(14px);
  padding: 10px;
}

body.enem-light .question-progress {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 800;
  padding: 9px 13px;
}

body.enem-light .enem-question-map {
  gap: 7px;
}

body.enem-light .enem-question-chip {
  border-color: var(--border);
  background: #ffffff;
  color: var(--muted);
}

body.enem-light .enem-question-chip.is-active {
  border-color: var(--primary);
  color: var(--primary);
}

body.enem-light .enem-question-chip.is-done {
  border-color: var(--primary);
  background: var(--teal-dim);
  color: var(--primary);
}

body.enem-light .enem-question-card {
  gap: 16px;
}

body.enem-light .exercise-meta {
  color: var(--muted);
}

body.enem-light .exercise-meta span {
  border-color: var(--border);
  background: #faf9f6;
  color: var(--muted);
}

body.enem-light .exercise-meta span:last-child {
  background: var(--text);
  color: #ffffff;
}

body.enem-light .save-question-button {
  border-color: var(--border);
  background: #ffffff;
  color: var(--muted);
}

body.enem-light .save-question-button span[aria-hidden="true"] {
  color: #c1c7d0;
}

body.enem-light .save-question-button.is-saved {
  border-color: var(--primary);
  background: var(--teal-dim);
  color: var(--primary);
}

body.enem-light .enem-question-text {
  border-left: 3px solid var(--border);
  border-radius: 0 10px 10px 0;
  background: #faf9f6;
  color: var(--text);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.06rem;
  line-height: 1.68;
  padding: 14px 16px;
}

body.enem-light .enem-question-figure figcaption {
  color: var(--muted);
}

body.enem-light .enem-question-image-wrap {
  border-color: var(--border);
  background: #ffffff;
}

body.enem-light .enem-option-button {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  font-weight: 650;
}

body.enem-light .enem-option-button strong {
  border: 1.5px solid var(--border);
  background: #ffffff;
  color: var(--primary);
}

body.enem-light .enem-option-button:hover,
body.enem-light .enem-option-button.is-selected {
  border-color: var(--primary);
  background: var(--teal-dim);
  color: var(--text);
}

body.enem-light .enem-option-button:hover strong,
body.enem-light .enem-option-button.is-selected strong {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

body.enem-light .enem-option-button.is-correct-answer {
  border-color: rgba(31, 138, 76, 0.45);
  background: rgba(31, 138, 76, 0.08);
}

body.enem-light .enem-option-button.is-correct-answer strong {
  border-color: var(--success);
  background: var(--success);
  color: #ffffff;
}

body.enem-light .enem-option-button.is-wrong-answer {
  border-color: rgba(192, 57, 43, 0.45);
  background: rgba(192, 57, 43, 0.08);
}

body.enem-light .enem-option-button.is-wrong-answer strong {
  border-color: var(--danger);
  background: var(--danger);
  color: #ffffff;
}

body.enem-light .exam-result-stats article,
body.enem-light .diagnostic-area-card,
body.enem-light .exam-result-chip,
body.enem-light .exam-correction-head b {
  border-color: var(--border);
  background: #faf9f6;
}

body.enem-light .exam-result-stats strong,
body.enem-light .exam-result-chip strong,
body.enem-light .diagnostic-area-head strong,
body.enem-light .diagnostic-focus strong,
body.enem-light .exam-correction-head strong,
body.enem-light .exam-correction-answer strong,
body.enem-light .diagnostic-offer-card h3,
body.enem-light .diagnostic-offer-card li {
  color: var(--text);
}

body.enem-light .exam-result-chip span,
body.enem-light .exam-result-resolution summary,
body.enem-light .diagnostic-area-head span,
body.enem-light .diagnostic-level,
body.enem-light .exam-correction-head b {
  color: var(--primary);
}

body.enem-light .exam-result-resolution {
  border-color: var(--border);
}

body.enem-light .exam-result-resolution p,
body.enem-light .diagnostic-area-card p,
body.enem-light .diagnostic-focus ul,
body.enem-light .exam-result-details-head p,
body.enem-light .exam-correction-head span,
body.enem-light .exam-correction-head small,
body.enem-light .exam-correction-answer,
body.enem-light .exam-correction-text,
body.enem-light .diagnostic-offer-card p {
  color: var(--muted);
}

body.enem-light .diagnostic-offer-card {
  border-color: #f0d58e;
  background: #1b1f2a;
}

body.enem-light .diagnostic-offer-card.is-course {
  border-color: #cfd6e4;
  background: #ffffff;
}

body.enem-light .diagnostic-offer-card:not(.is-course) h3,
body.enem-light .diagnostic-offer-card:not(.is-course) li {
  color: #ffffff;
}

body.enem-light .diagnostic-offer-card:not(.is-course) p {
  color: rgba(255, 255, 255, 0.78);
}

body.enem-light .diagnostic-offer-card:not(.is-course) .diagnostic-offer-old-price {
  color: rgba(255, 255, 255, 0.62);
}

body.enem-light .diagnostic-offer-card:not(.is-course) .primary-button {
  border-color: #f2b632;
  background: #f2b632;
  color: #1b1f2a;
}

body.enem-light .exam-correction-ad {
  border-color: #f0d58e;
  background: #fffbef;
}

body.enem-light .exam-correction-ad.is-course {
  border-color: #cfd6e4;
  background: #eef2ff;
}

body.enem-light .exam-correction-ad strong {
  color: var(--text);
}

body.enem-light .exam-correction-ad p {
  color: var(--muted);
}

body.enem-light .exam-correction-ad:not(.is-course) .primary-button {
  border-color: #f2b632;
  background: #f2b632;
  color: #1b1f2a;
}

body.auth-page.enem-light {
  align-content: center;
  background:
    linear-gradient(180deg, #ffffff 0%, #f6f4ef 58%, #eef2ff 100%);
  padding: clamp(18px, 4vw, 42px);
}

body.auth-page.enem-light .auth-shell {
  width: min(100%, 500px);
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.auth-page.enem-light .auth-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(27, 31, 42, 0.11);
}

body.auth-page.enem-light .auth-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--accent);
}

body.auth-page.enem-light .brand-row {
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

body.auth-page.enem-light .brand-mark {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  border-radius: 8px;
  background: var(--primary);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 900;
}

body.auth-page.enem-light .eyebrow {
  margin-bottom: 5px;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 900;
}

body.auth-page.enem-light h1 {
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 5vw, 2.05rem);
  font-weight: 900;
}

body.auth-page.enem-light .auth-lead {
  margin-bottom: 22px;
  color: var(--muted);
}

body.auth-page.enem-light .auth-form {
  gap: 14px;
}

body.auth-page.enem-light .auth-form-title {
  margin: 0;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 900;
}

body.auth-page.enem-light label {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 800;
}

body.auth-page.enem-light input {
  min-height: 50px;
  border-color: var(--border);
  background: #ffffff;
  color: var(--text);
}

body.auth-page.enem-light input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(36, 72, 200, 0.12);
}

body.auth-page.enem-light input::placeholder {
  color: rgba(93, 100, 117, 0.58);
}

body.auth-page.enem-light .primary-button {
  min-height: 50px;
  border-radius: 8px;
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
  font-weight: 900;
  box-shadow: none;
}

body.auth-page.enem-light .primary-button:hover {
  background: var(--primary-dark);
}

body.auth-page.enem-light .auth-secondary-actions {
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 2px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

body.auth-page.enem-light .text-button {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--primary);
  font-weight: 900;
}

body.auth-page.enem-light .text-button:hover,
body.auth-page.enem-light .text-button:focus-visible {
  border-color: var(--primary);
  background: var(--teal-dim);
  color: var(--primary);
  outline: none;
}

body.auth-page.enem-light .helper-text {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

body.auth-page.enem-light .alert {
  border-radius: 8px;
  font-weight: 800;
}

body.auth-page.enem-light .alert-success {
  border-color: rgba(31, 138, 76, 0.22);
  background: rgba(31, 138, 76, 0.08);
  color: var(--success);
}

body.auth-page.enem-light .alert-error {
  border-color: rgba(192, 57, 43, 0.22);
  background: rgba(192, 57, 43, 0.08);
  color: var(--danger);
}

@media (max-width: 760px) {
  body.enem-light .topbar {
    padding: 12px 16px;
  }

  .order-bump-form {
    grid-template-columns: 1fr;
  }

  .order-bump-action {
    width: 100%;
  }

  body.enem-light .diagnostic-hero {
    grid-template-columns: 1fr;
  }

  .diagnostic-light-hero h1 {
    font-size: 2rem;
  }

  .diagnostic-light-heading h2,
  .diagnostic-ray-card h2 {
    font-size: 1.5rem;
  }

  body.enem-light .diagnostic-hero h1 {
    font-size: 1.8rem;
  }

  body.enem-light .enem-player-toolbar {
    top: 12px;
  }

  .exam-result-stats,
  .diagnostic-area-grid,
  .diagnostic-result-offers {
    grid-template-columns: 1fr;
  }

  .exam-correction-head {
    align-items: stretch;
    flex-direction: column;
  }

  .exam-correction-head b {
    width: fit-content;
  }

  .exam-correction-ad {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .exam-correction-ad .link-button {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .diagnostic-light-actions,
  .diagnostic-light-stats {
    grid-template-columns: 1fr;
  }

  .diagnostic-public-topbar {
    min-height: 62px;
    padding: 10px 14px;
  }

  .diagnostic-public-topbar .secondary-button {
    min-height: 40px;
    padding-inline: 12px;
  }

  .diagnostic-access-shell {
    padding-inline: 12px;
  }

  .diagnostic-access-hero,
  .diagnostic-flow-grid {
    grid-template-columns: 1fr;
  }

  .diagnostic-access-card {
    order: -1;
  }

  .diagnostic-access-copy,
  .diagnostic-access-card {
    border-radius: 14px;
  }

  .diagnostic-access-copy h1 {
    font-size: 2.2rem;
    line-height: 1.04;
  }

  .diagnostic-conversation-shell {
    padding: 28px 12px 42px;
  }

  .diagnostic-conversation-intro {
    text-align: left;
  }

  .diagnostic-conversation-intro .diagnostic-light-pill {
    justify-self: start;
  }

  .diagnostic-conversation-intro h1,
  .diagnostic-conversation-intro > p {
    margin-inline: 0;
  }

  .diagnostic-conversation-facts {
    justify-content: flex-start;
  }

  .diagnostic-conversation-form {
    margin-left: 0;
  }

  .diagnostic-name-capture {
    grid-template-columns: 1fr;
    margin-inline: -14px;
    padding: 18px 14px;
  }

  .diagnostic-day-head {
    align-items: stretch;
    flex-direction: column;
  }

  .diagnostic-ray-card .secondary-button {
    width: 100%;
    min-width: 0;
  }
}

/* ===== Vitrine de concursos: página inicial e "Meus cursos" (2026-12-03) ===== */
body.auth-page.home-page {
  display: block;
  align-content: normal;
  min-height: 100vh;
  padding: clamp(16px, 3vw, 36px);
  background: linear-gradient(180deg, #ffffff 0%, #f6f4ef 420px, #f6f4ef 100%);
}
.home-shell {
  width: min(100%, 1180px);
  margin: 0 auto;
}
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
  margin-bottom: clamp(28px, 5vw, 52px);
}
.home-intro {
  padding-top: clamp(4px, 2vw, 22px);
}
.home-page .home-marca {
  margin: 0;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 900;
}
.home-page .home-intro h1,
.home-page .cursos-boas-vindas h1,
.home-page .cursos-atual h1 {
  margin: 14px 0 12px;
  color: var(--text);
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.home-page .cursos-atual h1 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); margin-top: 4px; }
.home-lead {
  max-width: 60ch;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}
.home-acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.home-acoes .primary-button,
.home-acoes .text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 900;
}
.home-acoes .primary-button { border: 1px solid var(--primary); background: var(--primary); color: #fff; }
.home-acoes .primary-button:hover { background: var(--primary-dark); }
.home-numeros {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.home-numeros li {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}
.home-numeros strong { color: var(--primary); font-size: 1.35rem; font-weight: 900; }
.home-numeros span { color: var(--muted); font-size: .9rem; font-weight: 700; }
.home-page .home-painel-titulo { margin: 2px 0 6px; color: var(--text); font-size: 1.5rem; font-weight: 900; }

/* Vitrine */
.vt-cabeca h2,
.vt-recolhida summary h2 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 900;
}
.vt-cabeca p { margin: 0 0 16px; color: var(--muted); }
.vt-atalhos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 26px;
}
.vt-atalho {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: .9rem;
  font-weight: 800;
}
.vt-atalho small { color: var(--muted); font-weight: 800; }
.vt-atalho:hover, .vt-atalho:focus-visible { border-color: var(--primary); outline: none; }
.vt-atalho .vt-area-ico { width: 26px; height: 26px; border-radius: 999px; }
.vt-area { margin: 0 0 30px; scroll-margin-top: 16px; }
.vt-area-titulo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 900;
}
.vt-area-titulo small { margin-left: auto; color: var(--muted); font-size: .85rem; font-weight: 700; }
.vt-area-ico {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
}
.vt-area-extra { margin: -4px 0 12px; color: var(--muted); font-size: .92rem; }
.vt-area-extra a { color: var(--primary); font-weight: 800; text-decoration: underline; }
.vt-grade {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}
.vt-card {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 6px 18px rgba(27, 31, 42, .05);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.vt-card:hover, .vt-card:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 14px 32px rgba(36, 72, 200, .14);
  transform: translateY(-2px);
  outline: none;
}
.vt-card-atual { border: 2px solid var(--primary); }
.vt-card-atual::after {
  content: "Seu concurso";
  position: absolute;
  top: -10px;
  right: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: .72rem;
  font-weight: 900;
}
.vt-selo { display: block; width: 72px; height: 72px; filter: drop-shadow(0 6px 10px rgba(27, 31, 42, .18)); }
.vt-info { display: grid; gap: 3px; min-width: 0; }
.vt-status {
  justify-self: start;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 900;
}
.vt-tag-ok { background: rgba(31, 138, 76, .12); color: #17703d; }
.vt-tag-parcial { background: rgba(201, 138, 0, .14); color: #8a5d00; }
.vt-tag-trilha { background: #eef0f4; color: #4a5160; }
.vt-nome { font-size: 1rem; font-weight: 900; line-height: 1.25; }
.vt-cargo, .vt-banca {
  overflow: hidden;
  color: var(--muted);
  font-size: .85rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.vt-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.vt-tag {
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 800;
}
.vt-tag-prova { border-color: rgba(36, 72, 200, .3); background: #eef2ff; color: var(--primary); }
.vt-seta { align-self: center; color: var(--primary); font-size: 1.2rem; font-weight: 900; }
.vt-aviso { margin: 8px 0 20px; color: var(--muted); font-size: .82rem; }
.vt-vazio { color: var(--muted); }
.vt-recolhida > summary { cursor: pointer; list-style: none; margin-bottom: 16px; }
.vt-recolhida > summary::-webkit-details-marker { display: none; }
.vt-recolhida > summary h2 { display: inline; }
.vt-recolhida > summary::after { content: " ▾"; color: var(--primary); font-weight: 900; }
.vt-recolhida[open] > summary::after { content: " ▴"; }

/* Página "Meus cursos" */
.cursos-topo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(100%, 1180px);
  margin: 0 auto 26px;
}
.cursos-marca { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 1.1rem; font-weight: 900; }
.cursos-marca .brand-mark { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: var(--primary); color: #fff; font-weight: 900; }
.cursos-menu { display: flex; flex-wrap: wrap; gap: 6px; }
.cursos-menu a { padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--primary); font-weight: 800; font-size: .92rem; }
.cursos-menu a:hover, .cursos-menu a:focus-visible { border-color: var(--primary); outline: none; }
.cursos-boas-vindas { margin-bottom: 22px; }
.cursos-atual {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 30px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 54px rgba(27, 31, 42, .08);
}

@media (max-width: 860px) {
  .home-hero { grid-template-columns: 1fr; }
  .vt-grade { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .vt-card { grid-template-columns: 56px minmax(0, 1fr); }
  .vt-selo { width: 56px; height: 56px; }
  .vt-seta { display: none; }
  .vt-area-titulo small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .vt-card { transition: none; }
  .vt-card:hover { transform: none; }
}


/* Padroniza centralização vertical e horizontal dos botões em todas as páginas */
.primary-button,
.text-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
}
