/* ============================================================
   YUNA ESTUDOS — Identidade visual (família Yuna)
   Tema dark estilo GitHub + accent azul. Mobile-first.
   ============================================================ */

:root {
  --bg:        #0e1117;
  --bg-elev:   #161b22;
  --bg-elev-2: #1c2128;
  --border:    #30363d;
  --border-soft: #21262d;
  --text:      #e6edf3;
  --text-dim:  #8b949e;
  --text-faint:#6e7681;

  --accent:    #58a6ff;
  --accent-2:  #1f6feb;
  --accent-grad: linear-gradient(180deg, #58a6ff 0%, #1f6feb 100%);

  --ok:        #3fb950;
  --ok-bg:     rgba(63,185,80,0.12);
  --ok-border: rgba(63,185,80,0.45);
  --err:       #f85149;
  --err-bg:    rgba(248,81,73,0.12);
  --err-border:rgba(248,81,73,0.45);
  --warn:      #d29922;

  --radius:    14px;
  --radius-sm: 10px;
  --shadow:    0 12px 40px rgba(0,0,0,0.35);
  --maxw:      900px;

  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-serif: 'DM Serif Display', Georgia, serif;
}

html[data-theme="light"] {
  --bg:        #f6f8fa;
  --bg-elev:   #ffffff;
  --bg-elev-2: #f0f3f6;
  --border:    #d0d7de;
  --border-soft:#e6edf3;
  --text:      #1f2328;
  --text-dim:  #656d76;
  --text-faint:#8b949e;
  --shadow:    0 12px 40px rgba(140,149,159,0.2);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }

/* ── Utilidades ─────────────────────────────────────────── */
.hidden { display: none !important; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--text-dim); }

/* ── Topbar ─────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.brand .logo {
  width: 30px; height: 30px; border-radius: 9px;
  
  display: grid; place-items: center; color: #fff; font-weight: 800;
}
.brand small { color: var(--text-dim); font-weight: 500; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }

/* ── Botões ─────────────────────────────────────────────── */
.btn {
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  transition: .15s ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.btn-primary {
  background: var(--accent-grad); color: #fff; border: none;
  box-shadow: 0 4px 14px rgba(31,111,235,0.35);
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.fi { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.fi::before { line-height: 1; }
.btn .fi { font-size: 1em; }
.icon-only { width: 36px; height: 36px; padding: 0; justify-content: center; gap: 0; }
.theme-icon-to-dark { display: none; }
html[data-theme="light"] .theme-icon-to-light { display: none; }
html[data-theme="light"] .theme-icon-to-dark { display: inline-flex; }
.icon-inline { vertical-align: -0.12em; margin: 0 2px; color: var(--accent); }

/* ── Landing / Hero ─────────────────────────────────────── */
.hero { text-align: center; padding: 80px 20px 60px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600;
  color: var(--accent); border: 1px solid var(--border);
  padding: 5px 14px; border-radius: 999px; margin-bottom: 22px;
  background: var(--bg-elev);
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.1; font-weight: 400; letter-spacing: -0.5px;
  margin-bottom: 18px;
}
.hero h1 em { color: var(--accent); font-style: italic; }
.hero p.lead {
  font-size: clamp(16px, 2.4vw, 20px); color: var(--text-dim);
  max-width: 620px; margin: 0 auto 32px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Grid de features ───────────────────────────────────── */
.features { padding: 30px 20px 80px; }
.features-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  max-width: var(--maxw); margin: 0 auto;
}
.feature-card {
  background: var(--bg-elev); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 24px;
  transition: .2s ease;
}
.feature-card:hover { border-color: var(--border); transform: translateY(-2px); }
.feature-card .ic { font-size: 28px; margin-bottom: 12px; }
.feature-card h3 { font-size: 17px; margin-bottom: 6px; }
.feature-card p { font-size: 14px; color: var(--text-dim); }
.feature-card .soon {
  font-size: 11px; color: var(--warn); border: 1px solid var(--warn);
  padding: 2px 8px; border-radius: 999px; margin-left: 8px; vertical-align: middle;
}

/* ── App nav (abas dos módulos) ─────────────────────────── */
.app-nav {
  display: flex; gap: 6px; overflow-x: auto;
  padding: 14px 20px 0; max-width: var(--maxw); margin: 0 auto;
}
.app-nav button {
  background: transparent; border: none; color: var(--text-dim);
  padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  white-space: nowrap;
}
.app-nav button.active { background: var(--bg-elev); color: var(--text); border: 1px solid var(--border); }

/* ── Seletor de prova ───────────────────────────────────── */
.selector { max-width: var(--maxw); margin: 0 auto; padding: 24px 20px; }
.selector h2 { font-size: 22px; margin-bottom: 4px; }
.field { margin: 18px 0; }
.field label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 8px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--bg-elev); border: 1px solid var(--border);
  color: var(--text); padding: 9px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 600; transition: .15s;
}
.chip:hover { border-color: var(--accent); }
.chip.selected { background: var(--accent-grad); color: #fff; border-color: transparent; }

/* ── Card de questão ────────────────────────────────────── */
.question-wrap { max-width: var(--maxw); margin: 0 auto; padding: 8px 20px 60px; }
.q-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-dim); margin-bottom: 14px;
}
.q-meta .badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge {
  background: var(--bg-elev); border: 1px solid var(--border-soft);
  padding: 4px 10px; border-radius: 999px; font-weight: 600; color: var(--text-dim);
}
.q-card {
  background: var(--bg-elev); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.q-context {
  font-size: 15.5px; line-height: 1.7; color: var(--text);
  border-left: 3px solid var(--border); padding-left: 16px; margin-bottom: 22px;
}
.q-context p { margin-bottom: 12px; }
.q-context img { display: block; margin: 14px 0; border: 1px solid var(--border-soft); }
.q-intro { font-size: 16px; font-weight: 600; margin-bottom: 18px; }

/* ── Alternativas ───────────────────────────────────────── */
.alts { display: flex; flex-direction: column; gap: 10px; }
.alt {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--bg-elev-2); border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-sm); padding: 14px 16px;
  text-align: left; transition: .15s; width: 100%; color: var(--text);
  font-size: 15px; line-height: 1.5;
}
.alt:hover:not(:disabled) { border-color: var(--accent); }
.alt .letter {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 7px;
  display: grid; place-items: center; font-weight: 700; font-size: 13px;
  background: var(--bg); border: 1px solid var(--border);
}
.alt.selected { border-color: var(--accent); }
.alt.correct { border-color: var(--ok-border); background: var(--ok-bg); }
.alt.correct .letter { background: var(--ok); color: #fff; border: none; }
.alt.wrong { border-color: var(--err-border); background: var(--err-bg); }
.alt.wrong .letter { background: var(--err); color: #fff; border: none; }
.alt:disabled { cursor: default; }

/* ── Barra de ações da questão ──────────────────────────── */
.q-actions {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px;
  padding-top: 18px; border-top: 1px solid var(--border-soft);
}
.q-nav { display: flex; gap: 10px; justify-content: space-between; margin-top: 16px; }

/* ── Feedback de resposta ───────────────────────────────── */
.feedback {
  margin-top: 18px; padding: 14px 16px; border-radius: var(--radius-sm);
  font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 10px;
}
.feedback.ok  { background: var(--ok-bg);  border: 1px solid var(--ok-border);  color: var(--ok); }
.feedback.err { background: var(--err-bg); border: 1px solid var(--err-border); color: var(--err); }

/* ── Painel da Yuna (IA sob demanda) ────────────────────── */
.yuna-panel {
  margin-top: 18px; border: 1px solid var(--accent);
  border-radius: var(--radius); overflow: hidden;
  background: var(--bg-elev-2);
  box-shadow: 0 0 0 3px rgba(88,166,255,0.08);
}
.yuna-panel-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: color-mix(in srgb, var(--accent) 12%, var(--bg-elev));
  border-bottom: 1px solid var(--border-soft); font-weight: 700; font-size: 14px;
}
.yuna-panel-head .av {
  width: 24px; height: 24px; border-radius: 7px; background: var(--accent-grad);
  display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 800;
}
.yuna-panel-body { padding: 16px 20px; font-size: 15px; line-height: 1.7; }
.yuna-panel-body p { margin-bottom: 10px; }
.yuna-panel-body pre { background: var(--bg); padding: 12px; border-radius: 8px; overflow-x: auto; }
/* listas do markdown: o reset global zera o padding e os marcadores
   encostam/cortam na borda — restauramos o recuo aqui */
.yuna-panel-body ul, .yuna-panel-body ol { padding-left: 24px; margin: 6px 0 12px; }
.yuna-panel-body li { margin-bottom: 6px; }
.yuna-panel-body li > ul, .yuna-panel-body li > ol { margin: 6px 0; }
.yuna-panel-body h1, .yuna-panel-body h2, .yuna-panel-body h3 { font-size: 16px; margin: 12px 0 6px; }
.yuna-panel-body strong { color: var(--text); }
.yuna-cursor::after { content: '▍'; color: var(--accent); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* sugestões de ação da IA */
.yuna-suggest { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.ask-row { display: flex; gap: 8px; margin-top: 12px; }
.ask-row input {
  flex: 1; background: var(--bg); border: 1px solid var(--border);
  color: var(--text); border-radius: var(--radius-sm); padding: 11px 14px; font-size: 14px;
}
.ask-row input:focus { outline: none; border-color: var(--accent); }

/* ── Loading / skeleton ─────────────────────────────────── */
.loading { text-align: center; padding: 50px 20px; color: var(--text-dim); }
.spinner {
  width: 30px; height: 30px; border: 3px solid var(--border);
  border-top-color: var(--accent); border-radius: 50%;
  animation: spin .8s linear infinite; margin: 0 auto 14px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Modal de login ─────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  display: grid; place-items: center; z-index: 100; padding: 20px;
  backdrop-filter: blur(4px);
}
.modal {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; max-width: 380px; width: 100%;
  box-shadow: var(--shadow);
}
.modal h3 { font-size: 20px; margin-bottom: 6px; }
.modal p { font-size: 14px; color: var(--text-dim); margin-bottom: 18px; }
.modal input {
  width: 100%; background: var(--bg); border: 1px solid var(--border);
  color: var(--text); border-radius: var(--radius-sm); padding: 12px 14px;
  font-size: 14px; margin-bottom: 12px;
}
.modal input:focus { outline: none; border-color: var(--accent); }
.modal .btn { width: 100%; justify-content: center; }
.modal .err-msg { color: var(--err); font-size: 13px; margin-bottom: 10px; min-height: 18px; }
.modal .switch { text-align: center; font-size: 13px; margin-top: 14px; color: var(--text-dim); }

/* ── Empty / placeholder dos módulos futuros ────────────── */
.placeholder {
  max-width: 600px; margin: 40px auto; text-align: center;
  background: var(--bg-elev); border: 1px dashed var(--border);
  border-radius: var(--radius); padding: 50px 30px;
}
.placeholder .ic { font-size: 40px; margin-bottom: 14px; }
.placeholder h3 { font-size: 20px; margin-bottom: 8px; }

/* ── KaTeX / markdown overflow ──────────────────────────── */
.q-context, .yuna-panel-body { overflow-wrap: anywhere; }

/* ── Botões extra ───────────────────────────────────────── */
.btn-lg { padding: 13px 24px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; }
.brand { background: none; border: none; color: var(--text); }

/* ── Hero extra: trust bar ──────────────────────────────── */
.trust-bar {
  display: flex; align-items: center; justify-content: center; gap: 22px;
  margin-top: 46px; flex-wrap: wrap;
}
.trust-item { display: flex; flex-direction: column; align-items: center; }
.trust-item strong { font-size: 26px; font-family: var(--font-serif); color: var(--text); }
.trust-item span { font-size: 13px; color: var(--text-dim); }
.trust-divider { width: 1px; height: 34px; background: var(--border); }

/* ── Seções genéricas ───────────────────────────────────── */
.section { max-width: var(--maxw); margin: 0 auto; padding: 60px 20px; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header .eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent);
  border: 1px solid var(--border); padding: 4px 12px; border-radius: 999px;
  background: var(--bg-elev); margin-bottom: 14px;
}
.section-header h2 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(26px, 4vw, 38px); line-height: 1.15; letter-spacing: -0.5px;
}
.section-header p { margin-top: 10px; }

/* ── Passos ─────────────────────────────────────────────── */
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step {
  background: var(--bg-elev); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 26px; position: relative;
}
.step-n {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--accent-grad); color: #fff; font-weight: 800; margin-bottom: 14px;
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--text-dim); }

/* ── Spotlight (IA sob demanda) ─────────────────────────── */
.spotlight {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 30px; align-items: center;
  background: var(--bg-elev); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 36px;
}
.spotlight-text .eyebrow { color: var(--accent); font-size: 13px; font-weight: 600; }
.spotlight-text h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(24px, 3.5vw, 32px); margin: 8px 0 12px; }
.spotlight-text > p { color: var(--text-dim); margin-bottom: 16px; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--text); }
.list-icon { flex-shrink: 0; margin-top: 3px; color: var(--accent); }
.mini-chat { display: flex; flex-direction: column; gap: 10px; }
.mini-bubble {
  padding: 12px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; max-width: 90%;
}
.mini-bubble.user { align-self: flex-end; background: var(--accent-2); color: #fff; border-bottom-right-radius: 4px; }
.mini-bubble.yuna { align-self: flex-start; background: var(--bg-elev-2); border: 1px solid var(--border-soft); display: flex; gap: 10px; border-bottom-left-radius: 4px; }
.mini-bubble.yuna .av { flex-shrink: 0; width: 24px; height: 24px; border-radius: 7px; background: var(--accent-grad); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 12px; }

/* ── Planos ─────────────────────────────────────────────── */
.ciclo-toggle { display: flex; justify-content: center; gap: 6px; margin-bottom: 20px; }
.ciclo-btn {
  background: var(--bg-elev); border: 1px solid var(--border); color: var(--text-dim);
  padding: 9px 20px; border-radius: 999px; font-weight: 600; font-size: 14px;
}
.ciclo-btn.active { background: var(--text); color: var(--bg); border-color: transparent; }
.ciclo-btn .save { font-size: 11px; color: var(--ok); margin-left: 6px; }
.ciclo-btn.active .save { color: var(--ok); }

.planos-section { padding-top: 44px; }
.planos-section .section-header { margin-bottom: 24px; }
.planos-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); max-width: 760px; margin: 0 auto; }
.plano-card {
  background: var(--bg-elev); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column;
}
.plano-card.destaque { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(88,166,255,0.1); position: relative; }
.plano-card.destaque::before {
  content: 'Mais popular'; position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--accent-grad); color: #fff; font-size: 11px; font-weight: 700;
  padding: 3px 12px; border-radius: 999px;
}
.plano-nome { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.plano-preco { font-family: var(--font-serif); font-size: 34px; margin: 6px 0 2px; }
.plano-preco small { font-size: 14px; color: var(--text-dim); font-family: var(--font); }
.plano-ciclo-info { font-size: 13px; color: var(--text-dim); min-height: 18px; }
.plano-card > .btn-block { margin-top: 16px; }
.plano-beneficios { list-style: none; margin: 16px 0 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.plano-beneficios li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; padding-left: 0; position: relative; }
.plano-beneficios li .fi { flex-shrink: 0; margin-top: 3px; color: var(--ok); }
.planos-note { text-align: center; margin-top: 22px; font-size: 13px; }

/* ── Página de auth ─────────────────────────────────────── */
.auth-page { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 30px 20px; }
.auth-card {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; max-width: 400px; width: 100%;
  box-shadow: var(--shadow);
}
.auth-tabs { display: flex; gap: 6px; background: var(--bg); border-radius: var(--radius-sm); padding: 4px; margin-bottom: 22px; }
.auth-tab { flex: 1; background: transparent; border: none; color: var(--text-dim); padding: 9px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.auth-tab.active { background: var(--bg-elev-2); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.auth-card h2 { font-size: 22px; margin-bottom: 4px; }
.field-label { display: block; font-size: 13px; color: var(--text-dim); font-weight: 600; margin: 16px 0 6px; }
.auth-card input {
  width: 100%; background: var(--bg); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px;
}
.auth-card input:focus { outline: none; border-color: var(--accent); }
.auth-card .btn-block { margin-top: 22px; }
.auth-foot { font-size: 12px; text-align: center; margin-top: 16px; }
.err-msg { color: var(--err); font-size: 13px; min-height: 18px; }

/* ── Desempenho ─────────────────────────────────────────── */
.stats-wrap { max-width: var(--maxw); margin: 0 auto; padding: 24px 20px 60px; }
.stats-top { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 24px; }
.stat-card { background: var(--bg-elev); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 22px; text-align: center; }
.stat-card .big { font-family: var(--font-serif); font-size: 38px; line-height: 1; }
.stat-card .lbl { font-size: 13px; color: var(--text-dim); margin-top: 6px; }
.stat-card .big.ok { color: var(--ok); }
.disc-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
.disc-row .nome { width: 160px; font-size: 14px; font-weight: 600; }
.disc-bar { flex: 1; height: 8px; background: var(--bg-elev-2); border-radius: 999px; overflow: hidden; }
.disc-bar > div { height: 100%; background: var(--accent-grad); }
.disc-row .pct { font-size: 13px; color: var(--text-dim); width: 64px; text-align: right; }

/* ── Banner de acesso/upgrade dentro do app ─────────────── */
.access-banner {
  max-width: var(--maxw); margin: 16px auto 0; display: flex; align-items: center; gap: 12px;
  background: color-mix(in srgb, var(--accent) 10%, var(--bg-elev)); border: 1px solid var(--accent);
  border-radius: var(--radius-sm); padding: 12px 16px; font-size: 14px;
}
.access-banner .btn { margin-left: auto; }

/* ── Responsivo ─────────────────────────────────────────── */
@media (max-width: 700px) {
  .spotlight { grid-template-columns: 1fr; padding: 24px; }
}
@media (max-width: 600px) {
  .hero { padding: 56px 18px 40px; }
  .q-card { padding: 18px; }
  .topbar { padding: 12px 16px; }
  .brand small { display: none; }
  .section { padding: 44px 18px; }
  .trust-bar { gap: 14px; }
  #navPlanos { display: none; }
}

/* ── Logo: preta no modo claro (SVG colorido → preto sólido) ── */
.logo-img { object-fit: contain; }
html[data-theme="light"] .logo-img { filter: brightness(0); }
/* avatar da Yuna agora é a logo (sem o quadrado azul atrás) */
.yuna-panel-head img.av, .mini-bubble.yuna img.av { background: none; padding: 0; }

/* ── Listas do markdown nas questões (mesmo fix do painel IA) ── */
.q-context ul, .q-context ol, .q-intro ul, .q-intro ol { padding-left: 24px; margin: 6px 0 12px; }
.q-context li, .q-intro li { margin-bottom: 6px; }
.alt-text ul, .alt-text ol { padding-left: 20px; }

/* ── Módulos (flashcards / redação) ─────────────────────── */
.mod-wrap { max-width: var(--maxw); margin: 0 auto; padding: 24px 20px 60px; }
.mod-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.mod-head h2 { font-size: 22px; }
.mod-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Bloqueio/upgrade (features do plano Pro) */
.upgrade-box { max-width: 520px; margin: 30px auto; text-align: center; background: var(--bg-elev); border: 1px solid var(--accent); border-radius: var(--radius); padding: 40px 28px; box-shadow: 0 0 0 3px rgba(88,166,255,0.08); }
.upgrade-box .ic { font-size: 40px; margin-bottom: 12px; color: var(--accent); }
.placeholder .ic { color: var(--accent); }
.placeholder .ic .fi, .upgrade-box .ic .fi { font-size: 40px; }
.upgrade-box h3 { font-size: 20px; margin-bottom: 8px; }
.upgrade-box p { color: var(--text-dim); margin-bottom: 18px; }

/* Flashcards — lista */
.fc-card-row { display: flex; align-items: center; gap: 12px; background: var(--bg-elev); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 8px; }
.fc-card-row .fc-frente { flex: 1; font-size: 14px; }
.fc-card-row .fc-tag { font-size: 11px; color: var(--text-dim); border: 1px solid var(--border-soft); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.fc-card-row .fc-due { font-size: 12px; color: var(--text-dim); white-space: nowrap; }
.fc-card-row .fc-del { background: transparent; border: none; color: var(--text-faint); font-size: 16px; padding: 4px; }
.fc-card-row .fc-del:hover { color: var(--err); }
.fc-empty { text-align: center; color: var(--text-dim); padding: 40px 20px; }

/* Flashcards — revisão */
.fc-progress { text-align: center; font-size: 13px; color: var(--text-dim); margin-bottom: 12px; }
.fc-review-card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); min-height: 230px; display: flex; flex-direction: column; margin-bottom: 12px; }
.fc-materia { font-size: 12px; color: var(--accent); font-weight: 600; margin-bottom: 12px; }
.fc-side { font-size: 19px; line-height: 1.5; }
.fc-verso { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border-soft); font-size: 17px; color: var(--text); line-height: 1.6; }
.fc-review-card .btn-block { margin-top: auto; }
.fc-grades { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.fc-grades .grade { border: 1px solid var(--border); background: var(--bg-elev-2); color: var(--text); border-radius: var(--radius-sm); padding: 12px 6px; font-weight: 600; font-size: 14px; display: flex; flex-direction: column; gap: 2px; transition: .15s; cursor: pointer; }
.fc-grades .grade small { font-size: 11px; color: var(--text-dim); font-weight: 500; }
.fc-grades .grade:hover { transform: translateY(-1px); }
.fc-grades .g1:hover { border-color: var(--err); } .fc-grades .g2:hover { border-color: var(--warn); }
.fc-grades .g3:hover { border-color: var(--accent); } .fc-grades .g4:hover { border-color: var(--ok); }

/* Form card genérico */
.form-card { background: var(--bg-elev); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 24px; max-width: 600px; }
.form-card h3 { font-size: 18px; margin-bottom: 6px; }
.form-card input, .form-card textarea { width: 100%; background: var(--bg); border: 1px solid var(--border); color: var(--text); border-radius: var(--radius-sm); padding: 11px 14px; font-size: 14px; font-family: inherit; resize: vertical; }
.form-card input:focus, .form-card textarea:focus { outline: none; border-color: var(--accent); }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

/* Redação */
.red-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; gap: 12px; flex-wrap: wrap; }
.hist-title { margin: 30px 0 12px; font-size: 18px; }
.red-result { background: var(--bg-elev); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 26px; margin-top: 20px; box-shadow: var(--shadow); }
.red-nota { text-align: center; margin-bottom: 22px; }
.red-nota .n { font-family: var(--font-serif); font-size: 56px; line-height: 1; }
.red-nota .n small { font-size: 20px; color: var(--text-dim); font-family: var(--font); }
.red-nota .lbl { font-size: 13px; color: var(--text-dim); }
.comp-row { margin-bottom: 16px; }
.comp-head { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: 6px; gap: 10px; }
.comp-head .cnota { color: var(--accent); white-space: nowrap; }
.comp-bar { height: 7px; background: var(--bg-elev-2); border-radius: 999px; overflow: hidden; margin-bottom: 6px; }
.comp-bar > div { height: 100%; background: var(--accent-grad); }
.comp-fb { font-size: 13.5px; color: var(--text-dim); line-height: 1.5; }
.red-reescrita { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border-soft); }
.red-reescrita h4 { font-size: 15px; margin-bottom: 8px; }
.red-reescrita p { font-size: 14px; line-height: 1.7; }
.red-hist-item { background: var(--bg-elev); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; }
.red-hist-item:hover { border-color: var(--accent); }
.red-hist-item .tema { font-size: 14px; font-weight: 600; flex: 1; }
.red-hist-item .nota { font-family: var(--font-serif); font-size: 22px; }
@media (max-width: 600px) { .fc-grades { grid-template-columns: repeat(2, 1fr); } }

/* ── Trilha ─────────────────────────────────────────────── */
.trilha-bar-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.trilha-bar { flex: 1; height: 10px; background: var(--bg-elev-2); border-radius: 999px; overflow: hidden; }
.trilha-bar > div { height: 100%; background: var(--accent-grad); width: 0; transition: width .4s ease; }
.trilha-pct { font-weight: 700; font-size: 14px; min-width: 42px; text-align: right; }
.trilha-area { margin-bottom: 22px; }
.trilha-area-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.trilha-area-head .praticar { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--accent); background: transparent; border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; }
.trilha-area-head .praticar:hover { border-color: var(--accent); transform: translateY(-1px); }
.trilha-topico { display: flex; align-items: center; gap: 12px; background: var(--bg-elev); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 6px; }
.trilha-topico .tt { flex: 1; font-size: 14px; }
.trilha-topico.dominado .tt { color: var(--text-dim); text-decoration: line-through; }
.trilha-status { border: 1px solid var(--border); background: var(--bg-elev-2); color: var(--text-dim); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.trilha-status:hover { border-color: var(--accent); }
.trilha-topico.estudando .trilha-status { color: var(--warn); border-color: var(--warn); }
.trilha-topico.dominado .trilha-status { color: var(--ok); border-color: var(--ok-border); background: var(--ok-bg); }

/* ── Questões Direcionadas / Onboarding ─────────────────── */
.onb-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border-soft); }
.onb-mat { font-size: 14px; font-weight: 600; }
.onb-scale { display: flex; gap: 6px; }
.onb-dot { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--border); background: var(--bg-elev-2); color: var(--text-dim); font-weight: 700; font-size: 13px; cursor: pointer; transition: .12s; }
.onb-dot.on { background: var(--accent-grad); color: #fff; border-color: transparent; }
.onb-dot:hover { border-color: var(--accent); }
#dirSalvarOnb { margin-top: 22px; }
.dir-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.dir-foco { font-size: 14px; color: var(--text-dim); background: var(--bg-elev); border: 1px solid var(--border-soft); border-radius: 999px; padding: 7px 14px; }
.dir-foco strong { color: var(--text); }
.dir-next { margin-top: 16px; }
.dir-empty { text-align: center; color: var(--text-dim); padding: 50px 20px; font-size: 16px; }
@media (max-width: 600px) { .onb-dot { width: 30px; height: 30px; font-size: 12px; } .onb-mat { font-size: 13px; } }

/* ── Abas (app-nav) — visual mais polido ────────────────── */
.app-nav { gap: 8px; padding: 16px 20px 6px; border-bottom: 1px solid var(--border-soft); margin-bottom: 6px; }
.app-nav button { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border: 1px solid transparent; color: var(--text-dim); }
.app-nav button:hover { color: var(--text); background: var(--bg-elev); }
.app-nav button.active { background: var(--bg-elev); color: var(--text); border-color: var(--border); box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.tab-ic { font-size: 15px; display: inline-flex; align-items: center; justify-content: center; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border-soft);
  margin-top: 40px;
  padding: 56px clamp(24px, 4vw, 80px) 32px;
  background: var(--bg-elev);
}
.footer-grid {
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  column-gap: clamp(32px, 3vw, 56px);
  row-gap: 28px;
  grid-template-columns: minmax(280px, 1fr) repeat(3, max-content);
}
.footer-brand .footer-logo { display: flex; align-items: center; gap: 9px; font-size: 16px; margin-bottom: 10px; }
.footer-brand .footer-logo img { width: 26px; height: 26px; }
.footer-brand p { font-size: 13.5px; max-width: 360px; }
.footer-col h4 { font-size: 13px; margin-bottom: 12px; color: var(--text); }
.footer-col a, .footer-col span { display: block; font-size: 13.5px; color: var(--text-dim); margin-bottom: 9px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  width: 100%;
  max-width: none;
  margin: 32px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-faint);
}

/* ── Auth: logo, Google, separador ──────────────────────── */
.auth-logo { width: 44px; height: 44px; display: block; margin: 0 auto 14px; }
.btn-google { background: #fff; color: #1f2328; border: 1px solid var(--border); justify-content: center; margin-top: 4px; }
.btn-google:hover { filter: brightness(0.97); transform: none; }
.auth-sep { display: flex; align-items: center; gap: 12px; margin: 18px 0 6px; color: var(--text-faint); font-size: 12px; }
.auth-sep::before, .auth-sep::after { content: ''; flex: 1; height: 1px; background: var(--border-soft); }

/* ── Plano de estudos ───────────────────────────────────── */
.plano-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 26px; }
.plano-card-top { background: var(--bg-elev); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 20px; }
.plano-card-top .big { font-family: var(--font-serif); font-size: 34px; line-height: 1; }
.plano-card-top .lbl { font-size: 13px; color: var(--text-dim); margin-top: 6px; }
.plano-sec-title { font-size: 16px; margin: 6px 0 12px; font-weight: 700; }
.plano-mat { display: flex; align-items: center; gap: 12px; background: var(--bg-elev); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 7px; }
.plano-mat .nome { width: 130px; font-size: 14px; font-weight: 600; }
.plano-mat .barra { flex: 1; height: 7px; background: var(--bg-elev-2); border-radius: 999px; overflow: hidden; }
.plano-mat .barra > div { height: 100%; background: var(--accent-grad); }
.plano-mat .qtd { font-size: 13px; color: var(--text-dim); white-space: nowrap; width: 96px; text-align: right; }
.plano-mat .qtd strong { color: var(--accent); font-size: 15px; }
.plano-cta { margin-top: 20px; }
.plano-aviso { background: color-mix(in srgb, var(--warn) 12%, var(--bg-elev)); border: 1px solid var(--warn); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 14px; margin-bottom: 20px; }

@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } .plano-mat .nome { width: 96px; } }

/* ── Desempenho (gráficos) ──────────────────────────────── */
.stats-wrap, #statsWrap { max-width: var(--maxw); margin: 0 auto; }
.stats-top { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 18px; }
.stats-charts { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; margin-bottom: 0; }
.chart-box { background: var(--bg-elev); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.chart-box h4 { font-size: 15px; margin-bottom: 4px; }
.chart-box .small { font-size: 12px; margin-bottom: 10px; }
.chart-h { position: relative; height: 260px; }
@media (max-width: 700px) { .stats-charts { grid-template-columns: 1fr; } }

/* ── App-nav responsivo: tudo visível (desktop) · sidebar (mobile) ── */
.topbar-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.nav-toggle { display: none; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--border); color: var(--text); border-radius: 9px; width: 38px; height: 38px; padding: 0; flex-shrink: 0; }
.nav-toggle:hover { border-color: var(--accent); }
.nav-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 60; backdrop-filter: blur(2px); }
.nav-backdrop.show { display: block; }
/* desktop: todas as abas aparecem; quebra linha em vez de scroll horizontal */
.app-nav { flex-wrap: wrap; justify-content: center; overflow: visible; }

@media (max-width: 820px) {
  body.in-app .nav-toggle { display: inline-flex; }
  .app-nav {
    position: fixed; top: 0; left: 0; height: 100dvh; width: 264px; max-width: 84vw;
    flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: flex-start;
    gap: 4px; background: var(--bg-elev); border-right: 1px solid var(--border);
    border-bottom: none; margin: 0; padding: 74px 14px 24px; z-index: 70;
    transform: translateX(-100%); transition: transform .25s ease; overflow-y: auto;
  }
  .app-nav.open { transform: translateX(0); box-shadow: var(--shadow); }
  .app-nav button { justify-content: flex-start; width: 100%; padding: 12px 14px; font-size: 15px; }
  .app-nav button .tab-ic { font-size: 17px; width: 22px; text-align: center; }
}

/* ── Redação (tela melhorada) ───────────────────────────── */
.red-temas { margin-bottom: 18px; }
.red-temas-lbl { display: block; font-size: 13px; color: var(--text-dim); font-weight: 600; margin-bottom: 10px; }
.red-temas .chip { font-size: 13px; padding: 8px 13px; }
.red-grid { display: grid; gap: 16px; grid-template-columns: 1fr 290px; align-items: start; }
.red-grid .form-card { max-width: none; }
.red-aside { background: var(--bg-elev); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 22px; }
.red-aside h4 { font-size: 15px; margin-bottom: 14px; }
.comp-list { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.comp-list li { font-size: 13.5px; color: var(--text-dim); display: flex; align-items: center; gap: 10px; }
.comp-list .cb { flex-shrink: 0; width: 30px; height: 22px; display: grid; place-items: center; background: var(--accent-grad); color: #fff; border-radius: 6px; font-size: 11px; font-weight: 700; }
.red-dica { font-size: 13px; color: var(--text-dim); margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-soft); }
@media (max-width: 760px) { .red-grid { grid-template-columns: 1fr; } }

/* desktop: abas compactas para caber tudo em UMA linha */
@media (min-width: 821px) {
  .app-nav { gap: 5px; }
  .app-nav button { padding: 8px 13px; font-size: 13.5px; gap: 6px; }
}

/* ── Redação enxuta (folha estilo ENEM, 30 linhas) ──────── */
.red-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.red-topo h2 { font-size: 22px; margin-bottom: 2px; }
.red-tema { width: 100%; background: var(--bg); border: 1px solid var(--border); color: var(--text); border-radius: var(--radius-sm); padding: 13px 16px; font-size: 15px; margin-bottom: 12px; }
.red-tema:focus { outline: none; border-color: var(--accent); }
.red-folha-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.red-folha {
  width: 100%; display: block; box-sizing: border-box;
  height: 540px; resize: vertical; min-height: 300px;
  border: none; outline: none; background: transparent; color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 28px; padding: 8px 18px 0;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 27px, var(--border-soft) 27px, var(--border-soft) 28px);
  background-attachment: local;
}
.red-folha::placeholder { color: var(--text-faint); }
.red-foot .lim { color: var(--err); font-weight: 700; }
@media (max-width: 600px) { .red-folha { height: 62vh; } }

/* ── Chat livre (widget flutuante) ──────────────────────── */
.chat-fab { display: none; position: fixed; bottom: 22px; right: 22px; width: 56px; height: 56px; border-radius: 50%; background: var(--accent-grad); color: #fff; border: none; font-size: 24px; box-shadow: 0 8px 24px rgba(31,111,235,0.4); z-index: 80; cursor: pointer; transition: .15s; }
body.in-app .chat-fab { display: grid; place-items: center; }
.chat-fab:hover { transform: translateY(-2px) scale(1.05); }
.chat-panel { position: fixed; bottom: 22px; right: 22px; width: 384px; max-width: calc(100vw - 28px); height: 564px; max-height: calc(100dvh - 100px); background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); z-index: 85; display: flex; flex-direction: column; overflow: hidden; }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border-soft); background: color-mix(in srgb, var(--accent) 10%, var(--bg-elev)); }
.chat-title { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 14px; }
.chat-title img { width: 22px; height: 22px; }
.chat-x { background: transparent; border: none; color: var(--text-dim); font-size: 16px; cursor: pointer; padding: 4px; }
.chat-x:hover { color: var(--text); }
.chat-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.chat-empty { text-align: center; color: var(--text-dim); margin: auto; font-size: 14px; padding: 20px; }
.chat-msg { display: flex; gap: 8px; max-width: 100%; }
.chat-msg.user { justify-content: flex-end; }
.chat-msg .bubble { padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.55; max-width: 82%; overflow-wrap: anywhere; }
.chat-msg.user .bubble { background: var(--accent-2); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.yuna .bubble { background: var(--bg-elev-2); border: 1px solid var(--border-soft); border-bottom-left-radius: 4px; }
.chat-msg.yuna .cav { width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0; }
.chat-msg .bubble ul, .chat-msg .bubble ol { padding-left: 20px; margin: 6px 0; }
.chat-msg .bubble p { margin-bottom: 6px; }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border-soft); align-items: flex-end; }
.chat-input textarea { flex: 1; background: var(--bg); border: 1px solid var(--border); color: var(--text); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 14px; font-family: inherit; resize: none; max-height: 120px; line-height: 1.4; }
.chat-input textarea:focus { outline: none; border-color: var(--accent); }
.chat-send { width: 40px; height: 40px; flex-shrink: 0; border: none; border-radius: 10px; background: var(--accent-grad); color: #fff; font-size: 16px; cursor: pointer; }
.chat-send:hover { filter: brightness(1.08); }
@media (max-width: 480px) { .chat-panel { bottom: 0; right: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; } .chat-fab { bottom: 16px; right: 16px; } }

/* ── Área de conta ──────────────────────────────────────── */
.conta-wrap { max-width: 640px; margin: 0 auto; padding: 24px 20px 60px; }
.conta-titulo { font-size: 24px; margin: 14px 0 18px; }
.conta-tabs { display: flex; gap: 6px; background: var(--bg-elev); border-radius: var(--radius-sm); padding: 4px; margin-bottom: 22px; }
.conta-tab { flex: 1; background: transparent; border: none; color: var(--text-dim); padding: 10px; border-radius: 8px; font-weight: 600; font-size: 14px; cursor: pointer; }
.conta-tab.active { background: var(--bg-elev-2); color: var(--text); }
.conta-card { background: var(--bg-elev); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 4px 18px; margin-bottom: 16px; }
.conta-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border-soft); font-size: 14px; }
.conta-row:last-child { border-bottom: none; }
.conta-row .ck { color: var(--text-dim); }
.conta-row strong { color: var(--accent); }
.conta-danger { margin-top: 26px; border: 1px solid var(--err-border); background: var(--err-bg); border-radius: var(--radius); padding: 20px; }
.conta-danger h4 { font-size: 15px; margin-bottom: 8px; }
.conta-danger p { margin-bottom: 14px; }
.btn-danger { background: var(--err); color: #fff; border: none; }
.btn-danger:hover { filter: brightness(1.08); border-color: transparent; }
.uso-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.uso-card { background: var(--bg-elev); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 22px; text-align: center; }
.uso-card .big { font-family: var(--font-serif); font-size: 38px; line-height: 1; }
.uso-card .lbl { font-size: 13px; color: var(--text-dim); margin-top: 6px; }
.fat-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Onboarding (2 etapas) ──────────────────────────────── */
.onb-page { max-width: 480px; margin: 0 auto; padding: 50px 20px 60px; text-align: center; }
.onb-logo { width: 56px; height: 56px; margin: 0 auto 16px; display: block; }
#onbTitulo { font-size: 26px; font-family: var(--font-serif); font-weight: 400; }
.onb-steps { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 18px 0 26px; }
.onb-dot2 { width: 10px; height: 10px; border-radius: 50%; background: var(--border); transition: .2s; }
.onb-dot2.active { background: var(--accent); }
.onb-line { width: 40px; height: 2px; background: var(--border); }
.onb-card { background: var(--bg-elev); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 26px; text-align: left; }
.onb-card .field-label { margin-top: 16px; }
.onb-card > .field-label:first-child { margin-top: 0; }
.onb-card select, .onb-card input[type="date"] { width: 100%; background: var(--bg); border: 1px solid var(--border); color: var(--text); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 15px; font-family: inherit; }
.onb-card select:focus, .onb-card input:focus { outline: none; border-color: var(--accent); }
.onb-hint { font-size: 12px; color: var(--text-faint); margin-top: 6px; }
.onb-card input[type="range"] { width: 100%; margin-top: 10px; accent-color: var(--accent); }
.onb-range-foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.onb-range-foot span:nth-child(2) { color: var(--accent); font-weight: 700; }
.onb-card .btn-block { margin-top: 24px; }
.onb-etapa2-acoes { display: flex; gap: 10px; justify-content: space-between; margin-top: 20px; }
#onbProf { margin: 10px 0 4px; }
