/* =========================================================
   Plataforma de simulados · identidade náutica
   Azul-marinho, branco, dourado (marca) e toques de turquesa
   ========================================================= */

@font-face { font-family: 'Playfair Display'; font-weight: 600; font-display: swap; src: url('/fonts/playfair-display-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-weight: 700; font-display: swap; src: url('/fonts/playfair-display-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-weight: 400; font-display: swap; src: url('/fonts/source-sans-3-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-weight: 600; font-display: swap; src: url('/fonts/source-sans-3-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-weight: 700; font-display: swap; src: url('/fonts/source-sans-3-latin-700-normal.woff2') format('woff2'); }

:root {
  --navy-950: #071631;
  --navy-900: #0b1d3a;
  --navy-800: #112a50;
  --navy-700: #1a3a68;
  --navy-600: #2a4d80;
  --gold-300: #ecd29a;
  --gold-400: #ddb66b;
  --gold-500: #c99a45;
  --gold-700: #8a6420;
  --teal-500: #1f8fa3;
  --teal-100: #dff1f4;
  --sea-50: #f3f7fa;
  --sea-100: #e8eff5;
  --line: #d9e2eb;
  --ink: #12213a;
  --muted: #55657c;
  --white: #ffffff;
  --ok: #19744a;
  --ok-bg: #e5f4ec;
  --bad: #b02a22;
  --bad-bg: #fbeceb;
  --warn: #7a5200;
  --warn-bg: #fdf3dc;
  --info: #1d5f8a;
  --info-bg: #e5f1f9;

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(11, 29, 58, .06), 0 6px 20px rgba(11, 29, 58, .06);
  --shadow-lg: 0 18px 48px rgba(7, 22, 49, .28);
  --gutter: 16px;

  /* ----- Cores por função (tema claro) ----- */
  color-scheme: light;
  --bg: #f3f7fa;
  --surface: #ffffff;
  --surface-2: #f3f7fa;
  --surface-3: #e8eff5;
  --surface-hover: #fbfdff;
  --surface-muted: #fafbfc;
  --selected-bg: #eef3fa;
  --heading: #0b1d3a;
  --text: #12213a;
  --text-strong: #112a50;
  --link: #1a3a68;
  --line-strong: #b8c6d4;
  --border-strong: #1a3a68;
  --accent-fill: #112a50;
  --primary-bg: #112a50;
  --primary-hover: #071631;
  --gold-text: #8a6420;
  --invalid-bg: #fffafa;
  --demo-bg: #fff4dc;
  --demo-border: #d9b25f;
  --wa-bg: #e3f3eb;
  --wa-text: #13744b;
  --ok-text: #0f4f31;
  --ok-border: #b9dfca;
  --bad-text: #8a1f19;
  --bad-border: #efc4c0;
  --warn-border: #f0d9a3;
  --info-text: #164a6c;
  --info-border: #bfdcef;
  --teal-text: #105866;
  --dark-card-border: transparent;
}

/* ----- Tema escuro: segue o aparelho, a menos que a pessoa escolha "claro" no botão ----- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #07111f;
    --surface: #0f1d33;
    --surface-2: #0b1729;
    --surface-3: #1a2b45;
    --surface-hover: #142440;
    --surface-muted: #0c1a2e;
    --selected-bg: #1b3255;
    --heading: #eef3fa;
    --text: #dbe4ef;
    --text-strong: #cfdbea;
    --link: #9cc5f2;
    --muted: #9fb0c5;
    --line: #22365a;
    --line-strong: #3a5378;
    --border-strong: #9cc5f2;
    --accent-fill: #2a4d80;
    --primary-bg: #2f5c9a;
    --primary-hover: #3a6cb0;
    --gold-text: #e3bf78;
    --teal-100: #12363f;
    --teal-500: #4fc3d6;
    --ok: #5fd0a0;
    --ok-bg: #0f2e22;
    --ok-text: #b8ecd3;
    --ok-border: #1f5a40;
    --bad: #ff8f86;
    --bad-bg: #341618;
    --bad-text: #ffc9c4;
    --bad-border: #6a2a2a;
    --warn: #f2c46b;
    --warn-bg: #30250f;
    --warn-border: #6b5220;
    --info: #8cc4ef;
    --info-bg: #10283d;
    --info-text: #c4e0f7;
    --info-border: #24506f;
    --invalid-bg: #2a1416;
    --demo-bg: #33270f;
    --demo-border: #8a6a2a;
    --wa-bg: #0f3324;
    --wa-text: #7fdcaf;
    --teal-text: #9fe3ee;
    --dark-card-border: rgba(156, 197, 242, .14);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, .45);
  }
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #07111f;
    --surface: #0f1d33;
    --surface-2: #0b1729;
    --surface-3: #1a2b45;
    --surface-hover: #142440;
    --surface-muted: #0c1a2e;
    --selected-bg: #1b3255;
    --heading: #eef3fa;
    --text: #dbe4ef;
    --text-strong: #cfdbea;
    --link: #9cc5f2;
    --muted: #9fb0c5;
    --line: #22365a;
    --line-strong: #3a5378;
    --border-strong: #9cc5f2;
    --accent-fill: #2a4d80;
    --primary-bg: #2f5c9a;
    --primary-hover: #3a6cb0;
    --gold-text: #e3bf78;
    --teal-100: #12363f;
    --teal-500: #4fc3d6;
    --ok: #5fd0a0;
    --ok-bg: #0f2e22;
    --ok-text: #b8ecd3;
    --ok-border: #1f5a40;
    --bad: #ff8f86;
    --bad-bg: #341618;
    --bad-text: #ffc9c4;
    --bad-border: #6a2a2a;
    --warn: #f2c46b;
    --warn-bg: #30250f;
    --warn-border: #6b5220;
    --info: #8cc4ef;
    --info-bg: #10283d;
    --info-text: #c4e0f7;
    --info-border: #24506f;
    --invalid-bg: #2a1416;
    --demo-bg: #33270f;
    --demo-border: #8a6a2a;
    --wa-bg: #0f3324;
    --wa-text: #7fdcaf;
    --teal-text: #9fe3ee;
    --dark-card-border: rgba(156, 197, 242, .14);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; outline: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--heading); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; color: var(--heading); }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 3.6vw, 2.4rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.22em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold-400); color: var(--navy-950); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; }
.muted { color: var(--muted); }
.small { font-size: .925rem; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 820px; }
.page-pad { padding-top: 32px; padding-bottom: 56px; }
@media (min-width: 720px) { :root { --gutter: 28px; } .page-pad { padding-top: 44px; padding-bottom: 72px; } }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .65rem 1.25rem;
  border: 2px solid transparent; border-radius: 999px;
  font: 700 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-sm { min-height: 40px; padding: .4rem .95rem; font-size: .95rem; }
.btn-lg { min-height: 56px; padding: .8rem 1.6rem; font-size: 1.075rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary-bg); color: var(--white); }
.btn-primary:hover { background: var(--primary-hover); color: var(--white); }
.btn-gold { background: var(--gold-400); color: var(--navy-950); box-shadow: inset 0 -2px 0 rgba(0,0,0,.08); }
.btn-gold:hover { background: var(--gold-300); color: var(--navy-950); }
.btn-outline { background: var(--surface); border-color: var(--border-strong); color: var(--text-strong); }
.btn-outline:hover { background: var(--surface-3); color: var(--heading); }
.btn-ghost { background: transparent; color: var(--text-strong); }
.btn-ghost:hover { background: var(--surface-3); color: var(--heading); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); color: var(--white); border-color: var(--white); }
.btn-whatsapp { background: #13744b; color: var(--white); }
.btn-whatsapp:hover { background: #0d5b3a; color: var(--white); }
.btn-danger-ghost { background: transparent; color: var(--bad); border-color: var(--bad-border); }
.btn-danger-ghost:hover { background: var(--bad-bg); color: var(--bad); }
.link-btn { background: none; border: 0; padding: 6px 0; color: var(--link); text-decoration: underline; cursor: pointer; font: inherit; }
.spinner { width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } * { scroll-behavior: auto !important; } }

/* ---------- Cabeçalho ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--heading); min-width: 0; }
.brand-badge { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #fff; border: 2px solid var(--gold-400); flex: none; padding: 4px; }
.brand-badge img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { font-family: var(--serif); font-size: 1.15rem; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { color: var(--muted); font-size: .8rem; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-actions { display: flex; align-items: center; gap: 8px; margin: 0; }
.header-nav { display: none; gap: 4px; margin-left: auto; }
.header-user { color: rgba(255,255,255,.85); font-size: .95rem; display: none; align-items: center; gap: 6px; text-decoration: none; padding: 6px 10px; border-radius: 999px; }
.header-user:hover { color: var(--white); background: rgba(255,255,255,.08); }
.nav-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; text-decoration: none; color: var(--text-strong); font-weight: 600; }
.nav-link:hover { background: var(--surface-3); }
.nav-link.is-current { background: var(--surface-3); color: var(--heading); box-shadow: inset 0 0 0 1px var(--line); }
@media (min-width: 720px) { .header-nav { display: flex; } .header-user { display: inline-flex; } }
@media (max-width: 719px) {
  .area-student .header-actions .btn span { display: none; }
  .area-student .header-nav { display: flex; }
  .area-student .header-nav .nav-link { padding: 10px; }
  .area-student .header-nav .nav-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hide-xs { display: none; }
  .brand-text small { display: none; }
  .header-inner { gap: 8px; }
  .brand { gap: 8px; }
  .brand-badge { width: 44px; height: 44px; }
  .brand-badge { padding: 3px; }
  .brand-text strong { font-size: 1.05rem; }
  .header-actions { gap: 4px; }
  .theme-toggle { width: 38px; height: 38px; }
}

.site-header--admin { background: var(--navy-900); border-bottom: 0; }
.site-header--admin .brand, .site-header--admin .brand-text strong { color: var(--white); }
.site-header--admin .brand-text small { color: var(--gold-300); display: block; }
.admin-nav { background: var(--navy-800); }
.admin-nav-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-top: 6px; padding-bottom: 6px; }
.admin-nav .nav-link { color: rgba(255,255,255,.85); white-space: nowrap; }
.admin-nav .nav-link:hover { background: rgba(255,255,255,.08); color: var(--white); }
.admin-nav .nav-link.is-current { background: var(--surface); color: var(--heading); box-shadow: none; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,.78); padding: 36px 0; font-size: .95rem; margin-top: auto; }
.site-footer strong { color: var(--white); font-family: var(--serif); font-size: 1.1rem; }
.footer-inner { display: grid; gap: 18px; }
.footer-note { max-width: 560px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { color: var(--gold-300); }
@media (min-width: 900px) { .footer-inner { grid-template-columns: 1fr 1.6fr auto; align-items: start; } .footer-links { flex-direction: column; } }

/* ---------- Alertas ---------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); margin: 20px 0; border: 1px solid transparent; }
.alert .i { margin-top: 3px; }
.alert p { margin: 0; }
.alert-success { background: var(--ok-bg); color: var(--ok-text); border-color: var(--ok-border); }
.alert-error { background: var(--bad-bg); color: var(--bad-text); border-color: var(--bad-border); }
.alert-warning { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-border); }
.alert-info { background: var(--info-bg); color: var(--info-text); border-color: var(--info-border); }
.alert a { color: inherit; font-weight: 700; }

/* ---------- Página inicial ---------- */
.hero { position: relative; background: radial-gradient(1200px 500px at 85% -10%, #24508a 0%, transparent 60%), linear-gradient(160deg, var(--navy-900) 0%, var(--navy-950) 100%); color: var(--white); overflow: hidden; }
.hero-inner { display: grid; gap: 40px; padding-top: 48px; padding-bottom: 96px; align-items: center; }
.hero h1 { color: var(--white); font-size: clamp(2rem, 5vw, 3.25rem); margin-bottom: 1rem; }
.hero h1 em { font-style: normal; color: var(--gold-400); }
.hero .lead { font-size: 1.15rem; color: rgba(255,255,255,.85); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--gold-300); margin-bottom: 14px; }
.eyebrow--dark { color: var(--gold-text); }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 56px; fill: var(--bg); }
.hero-preview { margin: 0; }
.preview-card { background: var(--surface); color: var(--text); border-radius: 20px; padding: 22px; box-shadow: var(--shadow-lg); max-width: 440px; margin-left: auto; border-top: 4px solid var(--gold-400); }
.preview-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.preview-progress { flex: 1; height: 6px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.preview-progress span { display: block; width: 20%; height: 100%; background: var(--teal-500); }
.preview-q { font-weight: 600; color: var(--heading); }
.preview-opts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.preview-opts li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; font-size: .98rem; }
.preview-opts b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--text-strong); font-size: .85rem; flex: none; }
.preview-opts .is-picked { border-color: var(--border-strong); background: var(--selected-bg); font-weight: 600; }
.preview-opts .is-picked b { background: var(--accent-fill); color: var(--white); }
.preview-opts .is-picked .i { margin-left: auto; color: var(--link); }
.hero-preview figcaption { text-align: right; font-size: .8rem; color: rgba(255,255,255,.6); margin-top: 10px; max-width: 440px; margin-left: auto; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.15fr 1fr; padding-top: 72px; padding-bottom: 120px; } }
@media (max-width: 899px) { .preview-card, .hero-preview figcaption { margin-left: 0; } }

.section { padding: 56px 0; }
.section--tint { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-lead { color: var(--muted); font-size: 1.1rem; }
@media (min-width: 720px) { .section { padding: 80px 0; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px 22px; box-shadow: var(--shadow); }
.step-num { position: absolute; top: 18px; right: 20px; font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--surface-3); font-weight: 700; }
.step-icon, .benefit-icon, .stat-icon, .start-icon, .auth-icon, .empty-icon, .contact-icon {
  display: inline-grid; place-items: center; border-radius: 50%; flex: none;
}
.step-icon { width: 52px; height: 52px; background: var(--accent-fill); color: var(--gold-400); margin-bottom: 14px; }
.step-icon .i { width: 26px; height: 26px; }
.step p { color: var(--muted); }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.benefits li { display: flex; gap: 16px; padding: 18px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.benefits h3 { font-size: 1.05rem; margin-bottom: 4px; }
.benefits p { color: var(--muted); font-size: .98rem; }
.benefit-icon { width: 44px; height: 44px; background: var(--teal-100); color: var(--teal-500); }
.benefit-icon .i { width: 22px; height: 22px; }
@media (min-width: 720px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .benefits { grid-template-columns: repeat(3, 1fr); } }

.cta-panel { display: grid; gap: 22px; align-items: center; padding: 32px 26px; border-radius: 22px; color: var(--white); background: linear-gradient(135deg, var(--navy-800), var(--navy-950)); position: relative; overflow: hidden; }
.cta-panel::after { content: ''; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; border: 2px solid rgba(221,182,107,.25); box-shadow: 0 0 0 30px rgba(221,182,107,.06); }
.cta-panel h2 { color: var(--white); }
.cta-panel p { color: rgba(255,255,255,.8); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }
@media (min-width: 900px) { .cta-panel { grid-template-columns: 1fr auto; padding: 40px 44px; } }

.contact-row { display: grid; gap: 16px; margin-top: 24px; }
.contact-card { display: grid; gap: 14px; grid-template-columns: auto 1fr; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.contact-card .btn { grid-column: 1 / -1; justify-self: start; }
.contact-icon { width: 52px; height: 52px; background: var(--wa-bg); color: var(--wa-text); }
.contact-icon .i { width: 26px; height: 26px; }
.contact-card p { color: var(--muted); }
.notice-card { display: flex; gap: 12px; padding: 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px dashed var(--line-strong); color: var(--muted); font-size: .98rem; }
.notice-card .i { color: var(--link); margin-top: 3px; }
.notice-card strong { color: var(--heading); }
@media (min-width: 900px) { .contact-row { grid-template-columns: 1.2fr 1fr; } }

/* ---------- Cartões e blocos ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
@media (min-width: 720px) { .card { padding: 28px; } }
.card-head { margin-bottom: 16px; }
.block { margin-top: 32px; }
.block-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.block-head h2 { margin: 0; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.page-head h1 { margin-bottom: 4px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; font-weight: 600; text-decoration: none; }
.back-link:hover { text-decoration: underline; }

/* ---------- Chips e selos ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; font-size: .85rem; font-weight: 700; background: var(--accent-fill); color: var(--white); }
.chip-soft { background: var(--surface-3); color: var(--text-strong); font-weight: 600; }
.chip-demo { background: var(--demo-bg); color: var(--warn); border: 1px dashed var(--demo-border); font-weight: 600; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .84rem; font-weight: 700; white-space: nowrap; }
.badge .i { width: 1em; height: 1em; stroke-width: 2.4; }
.badge-success { background: var(--ok-bg); color: var(--ok); }
.badge-error { background: var(--bad-bg); color: var(--bad); }
.badge-neutral { background: var(--surface-3); color: var(--muted); }
.badge-info { background: var(--info-bg); color: var(--info); }

/* ---------- Formulários ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; align-content: start; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
label, .label, legend { font-weight: 700; color: var(--heading); }
.optional { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="tel"], input[type="password"], input[type="search"], input[type="number"], input[type="url"], input[type="email"], input[type="date"], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: 400 1.05rem/1.4 var(--sans); color: var(--text);
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--border-strong); box-shadow: 0 0 0 4px rgba(31,143,163,.22); }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--bad); background: var(--invalid-bg); }
input[type="file"] { font: inherit; padding: 10px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-2); width: 100%; }
.hint { font-size: .9rem; color: var(--muted); margin: 0; font-weight: 400; }
.field-error { color: var(--bad); font-weight: 600; font-size: .95rem; margin: 0; }
.field-error::before { content: '⚠ '; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; color: var(--text); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--navy-800); flex: none; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 52px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: none; color: var(--muted); border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.pw-toggle.is-on { color: var(--text-strong); }
.input-icon { position: relative; }
.input-icon .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-icon input { padding-left: 44px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form-actions form { margin: 0; }
.segmented { display: flex; flex-wrap: wrap; gap: 8px; }
.segmented label { position: relative; font-weight: 600; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: inline-flex; align-items: center; min-height: 46px; padding: 8px 16px; border: 1.5px solid var(--line-strong); border-radius: 999px; cursor: pointer; background: var(--surface); }
.segmented input:checked + span { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--white); }
.segmented input:focus-visible + span { outline: 3px solid var(--teal-500); outline-offset: 2px; }

/* ---------- Telas de acesso ---------- */
.auth-wrap { padding-top: 36px; padding-bottom: 64px; display: grid; justify-items: center; }
.auth-card { width: 100%; max-width: 680px; background: var(--surface); border-radius: 20px; padding: 28px 20px; box-shadow: var(--shadow); border: 1px solid var(--line); border-top: 4px solid var(--gold-400); }
.auth-card--narrow { max-width: 460px; }
@media (min-width: 640px) { .auth-card { padding: 40px 44px; } }
.auth-head { text-align: center; margin-bottom: 22px; }
.auth-head p { color: var(--muted); }
.auth-icon { width: 60px; height: 60px; background: var(--accent-fill); color: var(--gold-400); margin-bottom: 12px; }
.auth-icon .i { width: 28px; height: 28px; }
.auth-foot { text-align: center; margin-top: 22px; color: var(--muted); }
.auth-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; font-weight: 600; }
.recover-steps { margin: 0 0 22px; padding-left: 1.3rem; display: grid; gap: 12px; color: var(--text); }
.recover-steps .btn { margin-top: 10px; display: flex; width: fit-content; }

/* ---------- Painel do aluno ---------- */
.start-card { display: grid; gap: 20px; align-items: center; padding: 26px 22px; border-radius: 20px; color: var(--white); background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-950) 100%); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.start-card::after { content: ''; position: absolute; right: -50px; top: -70px; width: 220px; height: 220px; border-radius: 50%; border: 2px solid rgba(221,182,107,.22); pointer-events: none; }
.start-card h2 { color: var(--white); margin-bottom: 8px; }
.start-card p { color: rgba(255,255,255,.82); }
.start-card .muted { color: rgba(255,255,255,.62); }
.start-copy { display: flex; gap: 16px; align-items: flex-start; }
.start-icon { width: 56px; height: 56px; background: rgba(221,182,107,.16); color: var(--gold-400); border: 1px solid rgba(221,182,107,.4); }
.start-icon .i { width: 28px; height: 28px; }
.start-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 8px; }
.start-meta span { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--white); }
.start-meta .i { color: var(--gold-400); }
.start-card form { margin: 0; position: relative; z-index: 1; }
.start-card--resume { background: linear-gradient(135deg, #14496a 0%, var(--navy-950) 100%); }
@media (min-width: 900px) { .start-card { grid-template-columns: 1fr auto; padding: 32px 36px; } }
@media (max-width: 899px) { .start-card .btn { width: 100%; } }

.stats { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 24px; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stats--4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .stats--4 { grid-template-columns: repeat(4, 1fr); } }
.stats--compact { margin-top: 0; grid-template-columns: repeat(3, 1fr); }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); display: grid; gap: 2px; align-content: start; position: relative; }
.stat-icon { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; background: var(--teal-100); color: var(--teal-500); }
.stat-label { color: var(--muted); font-size: .95rem; font-weight: 600; padding-right: 44px; }
.stats--compact .stat-label, .stats--4 .stat-label { padding-right: 0; }
.stat-value { font-family: var(--serif); font-size: 2.1rem; line-height: 1.15; color: var(--heading); }
.stats--compact .stat-value { font-size: 1.6rem; }
.stat-note { font-size: .88rem; color: var(--muted); }
.stat--ok .stat-value { color: var(--ok); }
.stat--bad .stat-value { color: var(--bad); }

.evo-chart { position: relative; display: flex; align-items: flex-end; gap: 8px; height: 220px; border-bottom: 1px solid var(--line); }
.evo-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.evo-bar { width: 100%; max-width: 46px; height: 0; background: var(--navy-600); border-radius: 8px 8px 2px 2px; }
.evo-bar.is-met { background: var(--teal-500); }
.evo-val { font-size: .8rem; font-weight: 700; color: var(--text-strong); margin-bottom: 4px; }
.evo-date { font-size: .75rem; color: var(--muted); height: 26px; line-height: 26px; flex: none; }
.evo-goal { position: absolute; left: 0; right: 0; border-top: 2px dashed var(--gold-500); pointer-events: none; }

/* ---------- Tabelas (viram cartões no celular) ---------- */
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.table th { text-align: left; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 14px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .td-action { text-align: right; }
.table .td-title a { font-weight: 700; }
.row-open td { background: var(--surface-muted); }
@media (max-width: 859px) {
  .table--cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table--cards, .table--cards tbody, .table--cards tr, .table--cards td { display: block; width: 100%; }
  .table--cards tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .table--cards tr:last-child { border-bottom: 0; }
  .table--cards td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 5px 0; border: 0; text-align: right; }
  .table--cards td::before { content: attr(data-label); font-weight: 600; color: var(--muted); text-align: left; font-size: .92rem; }
  .table--cards td.td-title { display: block; text-align: left; font-size: 1.05rem; padding-bottom: 6px; }
  .table--cards td.td-title::before { display: none; }
  .table--cards .td-action { padding-top: 10px; }
  .table--cards .td-action::before { display: none; }
  .table--cards .td-action .btn { width: 100%; }
}

/* ---------- Estados vazios ---------- */
.empty-state { text-align: center; padding: 40px 20px; display: grid; justify-items: center; gap: 6px; }
.empty-state--card { background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty-state p { color: var(--muted); max-width: 460px; }
.empty-state .btn { margin-top: 10px; }
.empty-icon { width: 64px; height: 64px; background: var(--surface-3); color: var(--link); margin-bottom: 8px; }
.empty-icon .i { width: 30px; height: 30px; }

/* ---------- Simulado ---------- */
.page-quiz { background: var(--surface-2); }
.page-quiz .site-header { position: static; }
.quiz-bar { position: sticky; top: 0; z-index: 15; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 4px 16px rgba(11,29,58,.05); }
.quiz-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.quiz-progress-text { display: grid; line-height: 1.3; }
.quiz-progress-text strong { font-size: 1.1rem; color: var(--heading); }
.quiz-bar-right { display: flex; align-items: center; gap: 12px; }
.quiz-progress { height: 5px; background: var(--surface-3); }
.quiz-progress span { display: block; height: 100%; width: 0; background: var(--teal-500); transition: width .3s; }
.save-status { font-size: .88rem; color: var(--muted); text-align: right; max-width: 260px; }
.save-status.is-ok { color: var(--ok); }
.save-status.is-ok::before { content: '✓ '; }
.save-status.is-error { color: var(--bad); font-weight: 600; }
.timer { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--accent-fill); color: var(--white); font-weight: 700; font-variant-numeric: tabular-nums; font-size: 1.05rem; }
.timer.is-low { background: var(--bad); }
@media (max-width: 559px) { .save-status { font-size: .8rem; max-width: 130px; } }

.quiz-layout { display: grid; gap: 22px; padding-top: 24px; padding-bottom: 48px; }
@media (min-width: 901px) { .quiz-layout { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; } .quiz-side { position: sticky; top: 92px; } }
.question { padding: 22px 18px; }
@media (min-width: 720px) { .question { padding: 32px; } }
.question-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.options { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; min-width: 0; }
.question-text { font-family: var(--sans); font-size: 1.2rem; font-weight: 600; line-height: 1.5; color: var(--heading); margin-bottom: 10px; padding: 0; }
@media (min-width: 720px) { .question-text { font-size: 1.3rem; } }
.question-image { margin: 4px 0 8px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.question-image img { margin: 0 auto; max-height: 420px; width: auto; }
.question-image--sm img { max-height: 200px; }
.option { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 60px; border: 2px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; font-weight: 400; color: var(--text); transition: border-color .12s, background .12s; }
.option:hover { border-color: var(--line-strong); background: var(--surface-hover); }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option-letter { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--text-strong); font-weight: 700; flex: none; }
.option-text { font-size: 1.05rem; }
.option:has(input:checked) { border-color: var(--border-strong); background: var(--selected-bg); }
.option:has(input:checked) .option-letter { background: var(--accent-fill); color: var(--white); }
.option:has(input:focus-visible) { outline: 3px solid var(--teal-500); outline-offset: 2px; }
.quiz-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.quiz-nav .btn { width: 100%; }
.quiz-nav [data-prev]:disabled { visibility: hidden; }
.map-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.map-panel summary { font-weight: 700; color: var(--heading); cursor: pointer; min-height: 32px; display: flex; align-items: center; }
.map-legend { display: flex; gap: 16px; margin: 12px 0; color: var(--muted); }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.dot-answered { background: var(--accent-fill); }
.dot-pending { background: var(--surface); border: 1.5px solid var(--line-strong); }
.map-grid { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 8px; }
.map-btn { width: 100%; height: 44px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--text-strong); font: 700 .98rem var(--sans); cursor: pointer; }
.map-btn.is-answered { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--white); }
.map-btn.is-current { box-shadow: 0 0 0 3px var(--gold-400); }
.side-note { display: flex; gap: 8px; margin-top: 14px; padding: 0 4px; }
.side-note .i { color: var(--ok); margin-top: 2px; }

.dialog { border: 0; border-radius: 18px; padding: 26px; max-width: 480px; width: calc(100% - 32px); box-shadow: var(--shadow-lg); color: var(--text); }
.dialog::backdrop { background: rgba(7,22,49,.55); }
.dialog h2 { margin-bottom: 12px; }
.dialog .alert { margin: 0; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 22px; }
@media (max-width: 480px) { .dialog-actions .btn { width: 100%; } }

/* ---------- Resultado ---------- */
.result-hero { display: grid; gap: 22px; align-items: center; padding: 26px 22px; border-radius: 20px; background: linear-gradient(135deg, var(--navy-800), var(--navy-950)); color: var(--white); box-shadow: var(--shadow-lg); }
.result-hero h1 { color: var(--white); }
.result-hero p { color: rgba(255,255,255,.85); }
.result-hero .eyebrow { margin-bottom: 8px; }
.result-note { display: flex; gap: 8px; align-items: center; color: var(--gold-300) !important; }
@media (min-width: 720px) { .result-hero { grid-template-columns: auto 1fr; padding: 34px 40px; gap: 36px; } }
.score-ring { position: relative; width: 150px; height: 150px; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 10; }
.ring-fg { fill: none; stroke: var(--gold-400); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray .8s ease; }
.is-met .ring-fg { stroke: #5fd0a0; }
.score-value { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: 1.9rem; font-weight: 700; }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.result-actions form { margin: 0; }
@media (max-width: 559px) { .result-actions, .result-actions form, .result-actions .btn { width: 100%; } }
.review-filter { display: flex; gap: 6px; background: var(--surface); border: 1px solid var(--line); padding: 4px; border-radius: 999px; }
.filter-btn { border: 0; background: none; padding: 8px 14px; border-radius: 999px; font: 600 .95rem var(--sans); color: var(--text-strong); cursor: pointer; min-height: 40px; }
.filter-btn.is-active { background: var(--accent-fill); color: var(--white); }
.review-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.review-item { border-left: 5px solid var(--line); }
.review-right { border-left-color: var(--ok); }
.review-wrong, .review-blank { border-left-color: var(--bad); }
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.review-head .badge { margin-left: auto; }
.review-num { font-weight: 700; color: var(--heading); }
.review-q { font-size: 1.1rem; font-weight: 600; color: var(--heading); }
.review-opts { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.review-opts li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); }
.review-opt-text { flex: 1; min-width: 160px; }
.review-opts .option-letter { width: 30px; height: 30px; font-size: .9rem; }
.review-opts .is-correct { border-color: var(--ok-border); background: var(--ok-bg); }
.review-opts .is-correct .option-letter { background: var(--ok); color: var(--white); }
.review-opts .is-wrong { border-color: var(--bad-border); background: var(--bad-bg); }
.review-opts .is-wrong .option-letter { background: var(--bad); color: var(--white); }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: .82rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.tag .i { width: 1em; height: 1em; stroke-width: 2.4; }
.tag-correct { background: var(--ok); color: var(--white); }
.tag-correct-soft { background: var(--surface); color: var(--ok); border: 1px solid var(--ok-border); }
.tag-wrong { background: var(--bad); color: var(--white); }
.explanation { background: var(--surface-2); border-radius: 12px; padding: 14px 16px; border: 1px solid var(--line); }
.explanation strong { display: flex; align-items: center; gap: 6px; color: var(--text-strong); margin-bottom: 4px; }
.disclaimer { display: flex; gap: 8px; align-items: center; margin-top: 28px; }

/* ---------- Conta e perfil ---------- */
.data-list { margin: 0 0 14px; display: grid; gap: 0; }
.data-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.data-list > div:last-child { border-bottom: 0; }
.data-list dt { color: var(--muted); font-weight: 600; }
.data-list dd { margin: 0; font-weight: 700; color: var(--heading); }
.profile-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .profile-grid { grid-template-columns: 1fr 1.4fr; align-items: stretch; } }
.reset-code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.code-display { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 2rem; font-weight: 700; letter-spacing: .12em; color: var(--heading); background: var(--surface); border: 2px dashed var(--gold-500); border-radius: 12px; padding: 10px 18px; display: inline-block; }
#rec-titulo { display: flex; gap: 8px; align-items: center; }

/* ---------- Área do instrutor ---------- */
.quick-links { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 720px) { .quick-links { grid-template-columns: repeat(3, 1fr); } }
.quick-link { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--heading); box-shadow: var(--shadow); transition: border-color .15s; }
.quick-link:hover { border-color: var(--border-strong); color: var(--heading); }
.quick-link > .i { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--accent-fill); color: var(--gold-400); }
.quick-link span { display: grid; }
.quick-link small { color: var(--muted); }
.filters { display: grid; gap: 14px; margin-bottom: 20px; padding: 18px; align-items: end; }
@media (min-width: 860px) { .filters { grid-template-columns: 2fr 1fr 1fr auto; } .filters--search { grid-template-columns: 1fr auto; } }
.filters-actions { display: flex; gap: 8px; }
.filters--search .filters-actions { align-self: start; margin-top: 30px; }
@media (max-width: 859px) { .filters--search .filters-actions { margin-top: 0; } }
.question-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.question-row { display: grid; gap: 14px; padding: 18px 20px; }
.question-row.is-inactive { background: var(--surface-muted); }
.question-row.is-inactive .question-row-title { color: var(--muted); }
.question-row-title { display: block; font-weight: 600; color: var(--heading); text-decoration: none; margin-bottom: 6px; font-size: 1.05rem; }
.question-row-title:hover { text-decoration: underline; }
.question-row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.question-row-actions form { margin: 0; }
@media (min-width: 860px) { .question-row { grid-template-columns: 1fr auto; align-items: center; } }
.options-edit { display: grid; gap: 10px; }
.options-edit legend { margin-bottom: 8px; }
.option-edit { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 10px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); }
.option-edit.is-correct { border-color: var(--ok); background: var(--ok-bg); }
.option-edit-radio { position: relative; cursor: pointer; display: grid; place-items: center; width: 50px; height: 50px; }
.option-edit-radio input { position: absolute; opacity: 0; }
.option-edit-radio .option-letter { width: 42px; height: 42px; border: 2px solid var(--line-strong); background: var(--surface); }
.option-edit-radio input:checked + .option-letter { background: var(--ok); color: var(--white); border-color: var(--ok); }
.option-edit-radio input:focus-visible + .option-letter { outline: 3px solid var(--teal-500); outline-offset: 2px; }
.option-edit-text { display: grid; gap: 4px; }
.correct-tag { display: none; grid-column: 2; align-items: center; gap: 4px; color: var(--ok); font-weight: 700; font-size: .9rem; }
.option-edit.is-correct .correct-tag { display: inline-flex; }
.danger-zone h2 { font-size: 1.25rem; }
.plain-list { list-style: none; margin: 0; padding: 8px 22px; }
.plain-list li { display: flex; gap: 10px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: 0; }
.pagination { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin-top: 20px; }
.pagination > :last-child { justify-self: end; }

/* ---------- Texto corrido ---------- */
.prose h2 { margin-top: 2rem; font-size: 1.35rem; }
.prose ul { padding-left: 1.2rem; display: grid; gap: 6px; }
.prose { max-width: 720px; }

@media print {
  .site-header, .site-footer, .result-actions, .review-filter { display: none; }
  body { background: var(--surface); }
}

/* ---------- Administradores ---------- */
.admin-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.admin-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; }
.admin-who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.admin-avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-fill); color: var(--gold-400); font-family: var(--serif); font-weight: 700; font-size: 1.2rem; flex: none; }
.admin-who strong { display: block; color: var(--heading); }
.admin-who .small { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-actions form { margin: 0; }
.new-admin summary { list-style: none; cursor: pointer; }
.new-admin summary::-webkit-details-marker { display: none; }
.new-admin[open] summary { margin-bottom: 18px; }
.h3-like { font-family: var(--sans); font-size: 1.15rem; margin: 10px 0 0; }
@media (max-width: 719px) {
  .admin-nav-inner { flex-wrap: wrap; overflow: visible; gap: 2px; }
  .admin-nav .nav-link { padding: 8px 12px; font-size: .95rem; }
}
.plain-ul { margin: 6px 0; padding-left: 1.1rem; }
.alert > div p { margin: 0 0 4px; }

/* ---------- Escolha de simulado (Arrais / Motonauta) ---------- */
.block-tight { margin-top: 8px; }
.exam-cards { display: grid; gap: 18px; }
@media (min-width: 860px) { .exam-cards { grid-template-columns: 1fr 1fr; } }
.exam-card { position: relative; overflow: hidden; display: grid; gap: 12px; align-content: start; padding: 24px 22px; border-radius: 20px; color: var(--white); background: linear-gradient(150deg, var(--navy-800) 0%, var(--navy-950) 100%); box-shadow: var(--shadow-lg); }
.exam-card::after { content: ''; position: absolute; right: -60px; top: -70px; width: 200px; height: 200px; border-radius: 50%; border: 2px solid rgba(221,182,107,.2); pointer-events: none; }
.exam-card.is-open { background: linear-gradient(150deg, #14496a 0%, var(--navy-950) 100%); }
.exam-card-top { display: flex; align-items: center; gap: 14px; }
.exam-card h3 { color: var(--white); font-family: var(--serif); font-size: 1.6rem; margin: 0; }
.exam-kicker { margin: 0; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-300); font-weight: 700; }
.exam-desc { color: rgba(255,255,255,.82); margin: 0; }
.exam-card .start-meta { margin: 0; }
.exam-mine { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.07); color: rgba(255,255,255,.85); font-size: .95rem; }
.exam-mine strong { color: var(--white); }
.exam-progress { margin: 0; display: flex; align-items: center; gap: 8px; color: var(--gold-300); font-weight: 600; }
.exam-card form { margin: 0; position: relative; z-index: 1; }
.exam-card .btn { position: relative; z-index: 1; }
.exam-note { margin-top: 12px; }
@media (min-width: 720px) { .exam-card { padding: 28px 30px; } }

/* Página inicial: cartões dos cursos */
.course-cards { display: grid; gap: 16px; }
@media (min-width: 720px) { .course-cards { grid-template-columns: 1fr 1fr; } }
.course-card { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-top: 4px solid var(--gold-400); }
.course-card .step-icon { margin: 0; flex: none; }
.course-card p { color: var(--muted); }
.course-meta { font-size: .92rem; color: var(--link) !important; font-weight: 600; }
.quiz-exam { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-text); font-weight: 700; }

.rules-group { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px 18px; margin: 14px 0 0; display: grid; gap: 14px; }
.rules-group legend { display: flex; align-items: center; gap: 8px; padding: 0 6px; font-family: var(--serif); font-size: 1.15rem; }

/* ---------- Questões por prova ---------- */
.exam-counts { display: grid; gap: 12px; margin-bottom: 18px; }
@media (min-width: 860px) { .exam-counts { grid-template-columns: 1fr 1fr; } }
.exam-count { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; color: var(--heading); }
.exam-count:hover { border-color: var(--border-strong); }
.exam-count > .i { width: 40px; height: 40px; padding: 8px; border-radius: 50%; background: var(--accent-fill); color: var(--gold-400); flex: none; }
.exam-count span { display: grid; }
.exam-count small { color: var(--muted); }
.exam-count.is-short { border-color: var(--warn-border); background: var(--warn-bg); }
.exam-count.is-short small { color: var(--warn); font-weight: 600; }
.chip-exam { background: var(--accent-fill); color: var(--white); font-weight: 600; }
.chip-exam--motonauta { background: #14496a; }
.chip-exam--ambas { background: var(--teal-100); color: var(--teal-text); }
.review-alert .form-actions { margin-top: 10px; }
.list-total { margin: 0 0 10px; }
@media (min-width: 860px) { .filters--4 { grid-template-columns: 2fr 1.2fr 1.2fr 1fr auto; } }
.exam-choice { display: grid; gap: 8px; }
@media (min-width: 640px) { .exam-choice { grid-template-columns: repeat(3, 1fr); } }
.exam-choice label { position: relative; font-weight: 600; }
.exam-choice input { position: absolute; opacity: 0; }
.exam-choice span { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 10px 14px; border: 1.5px solid var(--line-strong); border-radius: 12px; cursor: pointer; background: var(--surface); }
.exam-choice input:checked + span { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--white); }
.exam-choice input:focus-visible + span { outline: 3px solid var(--teal-500); outline-offset: 2px; }

/* Cartões escuros ganham um contorno sutil no tema escuro */
.cta-panel, .start-card, .result-hero, .exam-card { border: 1px solid var(--dark-card-border); }
.check input { accent-color: var(--accent-fill); }
img { color-scheme: normal; }

/* ---------- Botão de tema claro/escuro ---------- */
.theme-toggle { display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--text-strong); cursor: pointer; padding: 0; transition: background-color .15s, border-color .15s; }
.theme-toggle:hover { background: var(--surface-3); border-color: var(--line-strong); }
.theme-toggle .i { width: 20px; height: 20px; }
.theme-toggle--light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.35); }
.theme-toggle--light:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.theme-icon { display: inline-flex; }
.theme-icon--sun { display: none; }
:root[data-theme="dark"] .theme-icon--sun { display: inline-flex; }
:root[data-theme="dark"] .theme-icon--moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-icon--sun { display: inline-flex; }
  :root:not([data-theme="light"]) .theme-icon--moon { display: none; }
}

/* =========================================================
   Novembro/2026: simulado único, videoaulas, materiais,
   galeria, mapa, botões flutuantes e rodapé novo
   ========================================================= */

/* ---------- Painel do aluno ---------- */
.exam-card h2 { color: var(--white); font-family: var(--serif); font-size: 1.6rem; margin: 0; }
.exam-note-in { margin: 0; font-size: .85rem; color: rgba(255,255,255,.65); position: relative; z-index: 1; }
.dash-grid { display: grid; gap: 18px; }
@media (min-width: 900px) { .dash-grid { grid-template-columns: 1.4fr 1fr; align-items: stretch; } }
.dash-side { display: grid; gap: 14px; align-content: start; }
.side-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.side-card:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.side-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--accent-fill); color: var(--gold-400); flex: none; }
.side-icon .i { width: 24px; height: 24px; }
.side-body { display: grid; gap: 6px; flex: 1; min-width: 0; }
.side-body strong { color: var(--heading); font-size: 1.08rem; }
.side-body small { color: var(--muted); font-size: .92rem; }
.side-body .side-cta { color: var(--link); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.progress { display: block; height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--teal-500), var(--gold-400)); transition: width .6s ease; }
.progress--lg { height: 12px; margin-top: 10px; max-width: 420px; }

/* ---------- Cabeçalho: menu do site e barra inferior do aluno no celular ---------- */
.header-nav--public { margin-left: auto; }
@media (max-width: 719px) {
  .has-tabbar .header-nav { display: none !important; }
  .has-tabbar { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
}
.tabbar { display: none; }
@media (max-width: 719px) {
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(7,22,49,.08); padding-bottom: env(safe-area-inset-bottom); }
  .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 60px; padding: 6px 2px; color: var(--muted); text-decoration: none; font-size: .74rem; font-weight: 600; position: relative; }
  .tab .i { width: 22px; height: 22px; }
  .tab.is-current { color: var(--link); }
  .tab.is-current::before { content: ''; position: absolute; top: 0; left: 22%; right: 22%; height: 3px; border-radius: 0 0 3px 3px; background: var(--gold-400); }
}

/* ---------- Botões flutuantes (WhatsApp e Instagram) ---------- */
.float-actions { position: fixed; right: 16px; bottom: 16px; z-index: 35; display: grid; gap: 10px; }
.has-tabbar .float-actions { bottom: calc(80px + env(safe-area-inset-bottom)); }
@media (min-width: 720px) { .has-tabbar .float-actions { bottom: 20px; } .float-actions { right: 20px; bottom: 20px; } }
.float-btn { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; color: #fff; box-shadow: 0 8px 22px rgba(7,22,49,.32); transition: transform .15s; }
.float-btn:hover { transform: scale(1.06); color: #fff; }
.float-btn:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 3px; }
.float-btn .i { width: 28px; height: 28px; stroke-width: 2; }
.float-btn--wa { background: #1fae54; }
.float-btn--ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 95%); }
.page-quiz .float-actions { display: none; }

.btn-instagram { background: linear-gradient(45deg, #f09433, #dc2743 45%, #bc1888 90%); color: #fff; border-color: transparent; }
.btn-instagram:hover { color: #fff; filter: brightness(.94); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* ---------- Rodapé ---------- */
.site-footer { padding-bottom: 0; }
.footer-grid { display: grid; gap: 26px; padding-bottom: 28px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } .footer-note { grid-column: 1 / -1; max-width: none; } }
.footer-brand p { margin: 4px 0 0; }
.footer-address { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px !important; }
.footer-address .i { color: var(--gold-400); margin-top: 3px; }
.footer-address a { color: rgba(255,255,255,.85); }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.social-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); color: var(--white); }
.social-btn:hover { background: rgba(255,255,255,.1); color: var(--gold-300); }
.footer-title { font-family: var(--sans); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-300); margin: 0 0 10px; }
.footer-col { display: grid; gap: 8px; align-content: start; }
.footer-col a { color: rgba(255,255,255,.85); display: inline-flex; align-items: center; gap: 6px; width: fit-content; }
.footer-col a:hover { color: var(--gold-300); }
.footer-col .i { width: 14px; height: 14px; opacity: .7; }
.footer-note { font-size: .9rem; color: rgba(255,255,255,.6); margin: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0 18px; font-size: .88rem; color: rgba(255,255,255,.6); }
.footer-bottom p { margin: 0; }
.has-tabbar .footer-bottom { padding-bottom: 18px; }

/* ---------- Página inicial: o que você encontra ---------- */
.feature-cards { display: grid; gap: 16px; }
@media (min-width: 900px) { .feature-cards { grid-template-columns: 1.3fr 1fr 1fr; } }
.feature-card { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-top: 4px solid var(--line-strong); }
.feature-card--main { border-top-color: var(--gold-400); }
.feature-card .step-icon { margin: 0 0 6px; }
.feature-card h3 { margin: 0; }
.feature-card p { color: var(--muted); margin: 0; }
.feature-card .course-meta { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.feature-note { margin: 18px 0 0; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.section-head--row h2 { margin: 0; }

/* ---------- Galeria ---------- */
.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 680px) { .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1000px) { .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.g-card { margin: 0; min-width: 0; }
.g-media { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: var(--surface-3); box-shadow: var(--shadow); }
.g-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.g-media:hover img { transform: scale(1.04); }
.g-media:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 3px; }
.g-placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 12px; text-align: center; color: #fff; font-weight: 700; background: linear-gradient(150deg, var(--navy-700), var(--navy-950)); }
.g-placeholder .i { width: 40px; height: 40px; }
.g-media--instagram .g-placeholder { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 95%); }
.g-badge { position: absolute; left: 10px; bottom: 10px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(7,22,49,.72); color: #fff; }
.g-badge .i { width: 22px; height: 22px; }
.g-caption { margin: 8px 2px 0; font-size: .92rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.lightbox { padding: 0; border: 0; border-radius: 16px; background: var(--surface); color: var(--text); width: min(960px, calc(100vw - 24px)); max-height: calc(100vh - 24px); box-shadow: var(--shadow-lg); }
.lightbox::backdrop { background: rgba(3, 10, 22, .86); }
.lightbox-inner { position: relative; }
.lightbox-close { position: absolute; top: 10px; right: 10px; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(7,22,49,.7); color: #fff; cursor: pointer; }
.lightbox-close:hover { background: rgba(7,22,49,.9); }
.lightbox-media { background: #000; display: grid; place-items: center; }
.lightbox-media img { width: 100%; max-height: calc(100vh - 140px); object-fit: contain; }
.lightbox-media.is-video { aspect-ratio: 16 / 9; }
.lightbox-media.is-video iframe { width: 100%; height: 100%; border: 0; }
.lightbox-media.is-instagram { background: var(--surface-2); padding: 12px 0; }
.lightbox-media.is-instagram iframe { width: min(540px, 100%); height: min(calc(100vh - 160px), 760px); border: 0; background: #fff; border-radius: 8px; }
.lightbox-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 12px 18px 16px; }
.lightbox-caption { margin: 0; }
.lightbox-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }

/* ---------- Mapa ---------- */
.map-panel { display: grid; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (min-width: 900px) { .map-panel { grid-template-columns: 1fr 1.4fr; } }
.map-info { padding: 26px 24px; display: grid; gap: 10px; align-content: center; }
.map-info h2 { margin: 0; }
.map-address { display: flex; gap: 10px; align-items: flex-start; font-size: 1.08rem; margin: 4px 0 8px; color: var(--text-strong); }
.map-address .i { color: var(--gold-text); margin-top: 3px; }
.map-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.map-frame { min-height: 300px; background: var(--surface-3); }
.map-frame iframe { display: block; width: 100%; height: 100%; min-height: 300px; border: 0; }
@media (min-width: 900px) { .map-frame, .map-frame iframe { min-height: 380px; } .map-info { padding: 36px 34px; } }

/* ---------- Videoaulas (aluno) ---------- */
.course-progress { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 22px; }
.course-progress > div { flex: 1 1 260px; }
.course-progress h2 { margin: 0 0 4px; }
.course-progress p { margin: 0; }
.course-done { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ok-text); }
.modules { display: grid; gap: 18px; }
.module-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; }
.module-head h2 { margin: 0; font-size: 1.35rem; }
.module-head p { margin: 4px 0 0; }
.module-kicker { margin: 0 0 4px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); font-weight: 700; }
.lesson-list { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line); }
.lesson-list li { margin: 0; }
.lesson-item { display: flex; align-items: center; gap: 12px; padding: 12px 8px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.lesson-item:hover { background: var(--surface-hover); }
.lesson-status { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-3); color: var(--link); flex: none; }
.lesson-status .i { width: 18px; height: 18px; }
.lesson-item.is-done .lesson-status { background: var(--ok-bg); color: var(--ok); }
.lesson-item.is-current { background: var(--selected-bg); font-weight: 700; }
.lesson-title { flex: 1; min-width: 0; }
.lesson-meta { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.lesson-layout { display: grid; gap: 24px; }
@media (min-width: 980px) { .lesson-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } .lesson-side { position: sticky; top: 96px; } }
.player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player--instagram { aspect-ratio: auto; height: 560px; max-width: 540px; background: #fff; }
.lesson-head { margin: 18px 0 12px; }
.lesson-head h1 { margin: 0 0 4px; font-size: clamp(1.5rem, 3vw, 2rem); }
.lesson-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.lesson-actions form { margin: 0; }
.lesson-nav { display: flex; gap: 8px; }
.lesson-desc { margin-bottom: 14px; }
.lesson-desc h2 { font-size: 1.2rem; margin-top: 0; }
.pre-line { white-space: pre-line; }
.lesson-side h2 { margin: 0 0 4px; font-size: 1.2rem; }
.lesson-side .btn-block { margin-top: 14px; }
.lesson-list--compact .lesson-item { padding: 10px 6px; font-size: .96rem; }
@media (max-width: 559px) { .lesson-actions form, .lesson-actions .btn { width: 100%; } .lesson-nav { width: 100%; justify-content: space-between; } }

/* ---------- Materiais ---------- */
.material-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 14px; }
.material { display: grid; grid-template-columns: auto 1fr; gap: 12px 16px; align-items: center; padding: 18px 20px; }
.material > .btn, .material > .row-actions { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 720px) { .material { grid-template-columns: auto 1fr auto; } .material > .btn, .material > .row-actions { grid-column: auto; justify-self: end; } }
.material-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 12px; background: var(--accent-fill); color: var(--gold-400); }
.material-icon .i { width: 26px; height: 26px; }
.material h2 { font-size: 1.15rem; margin: 0 0 4px; }
.material p { margin: 0 0 2px; }
.material.is-hidden, .module.is-hidden, .admin-lesson.is-hidden { opacity: .72; }

/* ---------- Área do instrutor: galeria, aulas, materiais ---------- */
.admin-two { display: grid; gap: 18px; }
@media (min-width: 980px) { .admin-two { grid-template-columns: 1fr 1fr; align-items: start; } }
.admin-two h2 { display: flex; align-items: center; gap: 8px; font-size: 1.25rem; margin-top: 0; }
.admin-gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.admin-g-item { padding: 0; overflow: hidden; display: grid; align-content: start; }
.admin-g-thumb { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--surface-3); }
.admin-g-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-g-item.is-hidden .admin-g-thumb { opacity: .5; }
.admin-g-body { padding: 14px 16px 16px; display: grid; gap: 6px; }
.admin-g-body p { margin: 0; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row-actions form { margin: 0; }
.btn-icon { width: 40px; min-height: 40px; padding: 0; justify-content: center; }
.btn-icon.is-disabled { opacity: .3; pointer-events: none; }
.upload-status { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--info-bg); color: var(--info-text); font-weight: 600; }
.upload-status.is-error { background: var(--bad-bg); color: var(--bad-text); }
.help { margin-bottom: 20px; padding-top: 16px; padding-bottom: 16px; }
.help summary { cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: 8px; color: var(--heading); }
.help ol { margin: 12px 0 8px; padding-left: 22px; }
.help li { margin-bottom: 6px; }
.head-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-lessons { list-style: none; margin: 14px 0 0; padding: 0; }
.admin-lesson { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.admin-lesson-body { flex: 1 1 220px; display: grid; min-width: 0; }
.module + .module { margin-top: 16px; }
.module-empty, .module-add { margin: 12px 0 0; }
.gallery-edit-preview { margin-bottom: 18px; }
.gallery-edit-preview img { max-height: 380px; border-radius: 12px; }
.exam-counts--single { grid-template-columns: 1fr !important; }
.exam-count > .i { box-sizing: border-box; }

@media print { .float-actions, .tabbar { display: none !important; } }
@media (max-width: 559px) { .float-btn { width: 48px; height: 48px; } .float-btn .i { width: 25px; height: 25px; } .float-actions { gap: 8px; } }

/* ---------- Quem somos ---------- */
.about { scroll-margin-top: 80px; }
.about-panel { display: grid; gap: 28px; align-items: center; padding: 28px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-top: 4px solid var(--gold-400); }
@media (min-width: 900px) { .about-panel { grid-template-columns: 320px 1fr; gap: 44px; padding: 44px 48px; } }
.about-visual { display: grid; justify-items: center; gap: 18px; }
.about-logo { display: block; width: min(280px, 100%); border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line); padding: 10px; box-shadow: var(--shadow); }
.about-logo img { display: block; width: 100%; height: auto; }
@media (min-width: 900px) { .about-logo { width: 300px; } .about-panel { grid-template-columns: 340px 1fr; } }
.about-years { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 18px; border-radius: 14px; background: var(--accent-fill); color: #fff; }
.about-years strong { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--gold-300); }
.about-years span { font-size: .95rem; line-height: 1.3; }
.about-text h2 { margin: 0 0 14px; }
.about-text p { color: var(--text); margin: 0 0 12px; }
.about-motto { font-family: var(--serif); font-size: 1.35rem; color: var(--heading) !important; margin-top: 18px !important; padding-left: 14px; border-left: 4px solid var(--gold-400); }

/* ---------- Liberação das videoaulas ---------- */
.badge-warning { background: var(--warn-bg, #fdf3dc); color: var(--warn); }
.filters--students { grid-template-columns: 1fr; }
@media (min-width: 860px) { .filters--students { grid-template-columns: 2fr 1fr auto; } }
.bulk-bar { display: grid; gap: 12px; margin-bottom: 16px; padding: 16px 18px; border-left: 4px solid var(--gold-400); }
.bulk-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 14px; }
.bulk-head strong { display: inline-flex; align-items: center; gap: 8px; color: var(--heading); }
.bulk-fields { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; }
.bulk-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.period-fields { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; }
.period-fields .field { min-width: 220px; flex: 1 1 220px; }
.period-fields .field[hidden] { display: none; }
.td-check { width: 44px; }
.td-check input { width: 20px; height: 20px; accent-color: var(--accent-fill); }
@media (max-width: 719px) { .table--cards td.td-check { display: flex; justify-content: flex-start; } .table--cards td.td-check::before { content: none; } }
.access-card { display: grid; gap: 14px; }
.access-card h2 { display: flex; align-items: center; gap: 8px; margin: 0; }
.access-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; }
.access-form { display: grid; gap: 12px; }
.access-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.access-actions form { margin: 0; }
.locked { text-align: center; display: grid; justify-items: center; gap: 10px; padding: 36px 26px; }
.locked h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.locked p { margin: 0; max-width: 560px; }
.locked-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--accent-fill); color: var(--gold-400); margin-bottom: 4px; }
.locked-icon .i { width: 30px; height: 30px; }
.locked-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 12px 0 6px; }
.side-card--locked .side-icon { background: var(--surface-3); color: var(--muted); }
.access-form .period-fields { max-width: 640px; }

/* ---------- Serviços ---------- */
.services-section { scroll-margin-top: 80px; }
.section-head--center { text-align: center; margin-left: auto; margin-right: auto; }
.service-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.service-grid li { margin: 0; }
.service-card { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; color: #fff; text-decoration: none; background: linear-gradient(160deg, #1d4a85 0%, var(--navy-800, #0b1d3a) 55%, #06142b 100%); box-shadow: var(--shadow); isolation: isolate; }
@media (max-width: 559px) { .service-card { aspect-ratio: 4 / 3; } }
.service-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s ease; }
.service-card:hover img { transform: scale(1.06); }
.service-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,22,49,.25) 0%, rgba(7,22,49,.55) 45%, rgba(7,22,49,.92) 100%); }
.service-card--plain .service-shade { background: radial-gradient(circle at 80% 10%, rgba(221,182,107,.18), transparent 55%); }
.service-mark { position: absolute; right: -24px; top: -10px; z-index: -1; color: rgba(255,255,255,.08); }
.service-mark .i { width: 190px; height: 190px; stroke-width: 1.2; }
.service-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 22px 24px; display: grid; gap: 6px; }
.service-num { font-family: var(--sans); font-weight: 800; font-size: 4.2rem; line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.9); letter-spacing: .02em; }
.service-title { font-weight: 800; font-size: 1.22rem; line-height: 1.25; }
.service-desc { font-size: .95rem; line-height: 1.4; color: rgba(255,255,255,.88); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .35s ease, opacity .25s ease; }
.service-cta { display: inline-flex; align-items: center; gap: 6px; width: fit-content; margin-top: 4px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); font-size: .85rem; font-weight: 700; max-height: 0; opacity: 0; overflow: hidden; padding-top: 0; padding-bottom: 0; transition: all .3s ease; }
.service-cta .i { width: 16px; height: 16px; }
.service-card:hover .service-desc, .service-card:focus-visible .service-desc { max-height: 8em; opacity: 1; }
.service-card:hover .service-cta, .service-card:focus-visible .service-cta { max-height: 3em; opacity: 1; padding-top: 6px; padding-bottom: 6px; }
.service-card:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 3px; }
/* No celular não há "passar o mouse": descrição e botão ficam sempre visíveis */
@media (hover: none) { .service-desc, .service-cta { max-height: none !important; opacity: 1 !important; padding-top: 6px; padding-bottom: 6px; } .service-desc { padding: 0; } }
.service-admin-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.service-admin { display: grid; grid-template-columns: auto 1fr; gap: 12px 16px; align-items: center; padding: 16px 18px; }
.service-admin > .row-actions { grid-column: 1 / -1; }
@media (min-width: 860px) { .service-admin { grid-template-columns: auto 1fr auto; } .service-admin > .row-actions { grid-column: auto; } }
.service-admin.is-hidden { opacity: .72; }
.service-admin-thumb { display: grid; place-items: center; width: 64px; height: 84px; border-radius: 10px; overflow: hidden; background: linear-gradient(160deg, #1d4a85, #0b1d3a); color: #fff; font-weight: 800; font-size: 1.3rem; }
.service-admin-thumb img { width: 100%; height: 100%; object-fit: cover; }
.service-form-preview { max-height: 240px; border-radius: 12px; margin-bottom: 10px; }
.service-card, .service-card:hover, .service-card:visited, .service-card:focus-visible { color: #fff; }
.service-title, .service-cta { color: #fff; }
@media (max-width: 559px) {
  .service-card { aspect-ratio: auto; min-height: 280px; display: flex; align-items: flex-end; }
  .service-body { position: relative; width: 100%; }
}
.footer-links-2 { display: grid; grid-template-columns: repeat(2, max-content); gap: 8px 28px; }
.footer-links-2 a { display: inline-flex; }

/* Cabeçalho do aluno com 6 itens: vai encolhendo conforme a tela */
.nav-link { white-space: nowrap; }
.brand { min-width: 0; }
@media (min-width: 720px) and (max-width: 1199px) {
  .area-student .brand-text small { display: none; }
  .area-student .header-nav { gap: 2px; }
  .area-student .header-nav .nav-link { padding: 9px 10px; gap: 6px; }
}
@media (min-width: 720px) and (max-width: 1023px) {
  .area-student .header-nav .nav-link { padding: 10px; }
  .area-student .header-nav .nav-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .area-student .header-actions .btn span { display: none; }
}
@media (max-width: 1399px) { .area-student .brand-text small { display: none; } }

/* ---------- Simulados montados pelo instrutor ---------- */
.set-auto { display: grid; gap: 16px; padding: 18px 20px; margin-bottom: 14px; }
.set-auto-text { display: flex; gap: 14px; align-items: flex-start; }
.set-auto-text h2 { font-size: 1.1rem; margin: 2px 0 4px; }
.set-auto-form { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.set-auto-form .field { margin: 0; }
.set-auto-form input[type=number] { width: 96px; }
.set-auto-form select { min-width: 220px; }
@media (min-width: 980px) { .set-auto { grid-template-columns: 1fr auto; align-items: center; } }
.set-student-note { display: flex; gap: 8px; align-items: flex-start; margin: 4px 2px 18px; }
.set-student-note .i { flex: none; margin-top: 2px; }
.set-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.set-row { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: center; padding: 16px 18px; }
.set-row h2 { font-size: 1.08rem; margin: 0 0 2px; }
.set-row h2 a { color: var(--heading); text-decoration: none; }
.set-row h2 a:hover { text-decoration: underline; }
.set-row p { margin: 0; }
.set-row > .row-actions { grid-column: 1 / -1; }
.set-row.is-hidden { background: var(--surface-muted); }
@media (min-width: 1060px) { .set-row { grid-template-columns: 1fr auto auto; } .set-row > .row-actions { grid-column: auto; } }
.set-warn { color: var(--warn); display: flex; gap: 6px; align-items: center; margin-top: 4px !important; }
.page-head-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.set-tools { display: flex; flex-wrap: wrap; gap: 6px; margin: -8px 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }

/* Montagem: escolhidas à esquerda, banco à direita */
.set-form-head { display: grid; gap: 4px 20px; margin-bottom: 16px; }
@media (min-width: 900px) { .set-form-head { grid-template-columns: 1fr 1fr; } .set-form-head .field:last-child { grid-column: 1 / -1; } }
.picker { display: grid; gap: 16px; align-items: start; }
@media (min-width: 1000px) { .picker { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.picker > .card { padding: 16px; }
.picker-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 12px; margin-bottom: 10px; }
.picker-head h2 { font-size: 1.1rem; margin: 0; display: flex; gap: 8px; align-items: center; }
.picker-head p { margin: 0; }
.picker-empty { padding: 18px 6px; text-align: center; }
.picker-filters { display: grid; gap: 8px; margin-bottom: 10px; }
.picker-filters input[type=search], .picker-filters select { width: 100%; }
@media (min-width: 560px) { .picker-filters { grid-template-columns: 1fr 1fr; } .picker-filters .check { grid-column: 1 / -1; } }
.picker-random { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; margin-bottom: 10px; border-radius: var(--radius-sm); background: var(--surface-2); }
.picker-random input { width: 74px; }
.chosen-list, .bank-list { list-style: none; margin: 0; padding: 0; }
.bank-list { max-height: 68vh; overflow-y: auto; border-top: 1px solid var(--line); overscroll-behavior: contain; }
.chosen-list { counter-reset: none; }
@media (min-width: 1000px) { .picker-chosen { position: sticky; top: 12px; } .chosen-list { max-height: 72vh; overflow-y: auto; overscroll-behavior: contain; } }
.chosen-item, .bank-item { display: grid; gap: 10px; align-items: center; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.chosen-item { grid-template-columns: 30px 1fr auto; }
.bank-item { grid-template-columns: 1fr auto; }
.chosen-num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-fill); color: #fff; font-weight: 700; font-size: .82rem; font-variant-numeric: tabular-nums; }
.chosen-text p, .bank-text p { margin: 0; font-size: .93rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chosen-text small, .bank-text small { color: var(--muted); font-size: .8rem; }
.chosen-actions { display: flex; gap: 2px; }
.chosen-actions .btn-icon { width: 34px; height: 34px; }
.chosen-item.is-off .chosen-num { background: var(--surface-3); color: var(--muted); }
.chosen-item.is-off p, .bank-item.is-off p { color: var(--muted); }
.bank-item[data-added] { background: var(--selected-bg); }
.bank-item[data-added] .btn { opacity: .7; }
.bank-item[hidden] { display: none; }
.set-form-actions { position: sticky; bottom: 0; z-index: 3; margin-top: 16px; padding: 12px 0; background: var(--bg); border-top: 1px solid var(--line); }

/* Ver simulado */
.set-view-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.set-view-item { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 14px 16px; }
.set-view-item.is-off { opacity: .65; }
.set-view-num { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-fill); color: #fff; font-weight: 700; font-size: .88rem; }
.set-view-stmt { margin: 4px 0 8px; font-weight: 600; color: var(--text-strong); }
.set-view-img { max-width: min(100%, 360px); border-radius: 8px; margin-bottom: 8px; }
.set-view-opts { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 3px; }
.set-view-opts li { padding: 4px 8px; border-radius: 6px; }
.set-view-opts li.is-right { background: var(--ok-bg); color: var(--ok-text); font-weight: 600; }
.set-view-opts .i { width: 16px; height: 16px; vertical-align: -3px; }
.set-view-item .small { margin: 0; }

/* Painel do aluno: simulados da escola */
.school-sets { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 760px) { .school-sets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .school-sets { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.school-set { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; }
.school-set h3 { font-size: 1rem; margin: 0 0 2px; }
.school-set p { margin: 0; }
.school-set .btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Cadastro de questão: tirar/colocar a alternativa E */
.option-edit[hidden] { display: none; }
.option-edit .option-remove { width: 36px; height: 36px; flex: none; }
.options-edit .option-add { margin-top: 6px; justify-self: start; }
.options-edit .options-count { margin: 6px 0 0; }
.option-edit[data-option-e] { grid-template-columns: auto 1fr auto; }
.option-edit[data-option-e] .correct-tag { grid-column: 2; }

/* Excluir cadastro do aluno */
.btn-danger { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn-danger:hover { filter: brightness(1.08); color: #fff; }
.danger-zone { border-color: var(--bad-border); }
.danger-zone .form-inline { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.danger-zone .form-inline .field { margin: 0; min-width: 240px; }

/* Menu do instrutor: nunca corta o último item. Em telas médias os ícones somem para caber
   tudo numa linha; se ainda assim não couber, quebra em duas linhas. */
.admin-nav-inner { flex-wrap: wrap; overflow: visible; gap: 2px; }
.admin-nav .nav-link { padding: 9px 11px; gap: 7px; }
.admin-nav .container { max-width: 1400px; }
@media (min-width: 720px) and (max-width: 1439px) {
  .admin-nav .nav-link { padding: 8px 11px; }
  .admin-nav .nav-link .i { display: none; }
}
