/* Área da Aluna · Confeitaria Descomplicada
   Design System da Confeitaria Descomplicada aplicado à casca do app (modelo ISA APP).
   Cores, fontes, raios e sombra vêm do tokens.json do design system. */

:root {
  /* cores da marca (tema claro) */
  --bordo: #682121;
  --bordo-esc: #561a1a;
  --carmim: #481b24;
  --dourado: #9b7c4f;
  --dourado-claro: #c9a877;
  --bege: #e9dfc2;
  --creme: #f7f4ec;
  --superficie: #fffdf8;
  --texto: #33221e;
  --texto-suave: #6b5a52;
  --marca-texto: #682121;
  --dourado-texto: #735833;
  --sobre-marca: #f7f4ec;
  --linha: #dccfb0;
  --linha-suave: #ebe2cd;
  --sucesso: #3f6b3a;
  --erro: #a3302a;

  /* derivados para o app */
  --bege-suave: #f1ead6;
  --st-pendente-bg: #efe9dd;   --st-pendente-tx: #6b5a52;
  --st-analise-bg: #f3e9d2;    --st-analise-tx: #735833;
  --st-aprovada-bg: #e6efe1;   --st-aprovada-tx: #3f6b3a;
  --st-ajustar-bg: #f7e4e0;    --st-ajustar-tx: #a3302a;
  --overlay: rgba(42, 16, 20, .46);

  /* fontes */
  --f-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --f-sans: Montserrat, "Helvetica Neue", Arial, sans-serif;

  /* forma */
  --r-sm: 4px; --r-md: 10px; --r-lg: 20px; --r-pill: 999px;
  --sombra: 0 10px 30px rgba(72, 27, 36, .08);
  --sombra-forte: 0 18px 44px rgba(72, 27, 36, .18);

  /* casca */
  --appbar-h: 64px;
  --nav-h: 68px;
  --largura: 480px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bordo: #8a2e2e; --bordo-esc: #9c3838; --carmim: #3b1520; --dourado: #9b7c4f; --dourado-claro: #c9a877;
    --bege: #3a2e25; --creme: #1a1113; --superficie: #241a1c; --texto: #f3ede0; --texto-suave: #bfb2a3;
    --marca-texto: #e39a93; --dourado-texto: #c9a877; --sobre-marca: #f7f4ec; --linha: #3d2f2c; --linha-suave: #33272a;
    --sucesso: #8fbf86; --erro: #f08a80; --bege-suave: #2c2124;
    --st-pendente-bg: #33292a; --st-pendente-tx: #d6cabd;
    --st-analise-bg: #3a2f1f;  --st-analise-tx: #e3c48f;
    --st-aprovada-bg: #23331f; --st-aprovada-tx: #a9d39f;
    --st-ajustar-bg: #3d2121;  --st-ajustar-tx: #f4a59c;
    --sombra: 0 10px 30px rgba(0, 0, 0, .45);
    --sombra-forte: 0 18px 44px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bordo: #8a2e2e; --bordo-esc: #9c3838; --carmim: #3b1520; --dourado: #9b7c4f; --dourado-claro: #c9a877;
  --bege: #3a2e25; --creme: #1a1113; --superficie: #241a1c; --texto: #f3ede0; --texto-suave: #bfb2a3;
  --marca-texto: #e39a93; --dourado-texto: #c9a877; --sobre-marca: #f7f4ec; --linha: #3d2f2c; --linha-suave: #33272a;
  --sucesso: #8fbf86; --erro: #f08a80; --bege-suave: #2c2124;
  --st-pendente-bg: #33292a; --st-pendente-tx: #d6cabd;
  --st-analise-bg: #3a2f1f;  --st-analise-tx: #e3c48f;
  --st-aprovada-bg: #23331f; --st-aprovada-tx: #a9d39f;
  --st-ajustar-bg: #3d2121;  --st-ajustar-tx: #f4a59c;
  --sombra: 0 10px 30px rgba(0, 0, 0, .45);
  --sombra-forte: 0 18px 44px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--bege); }
body {
  font: 400 15px/1.55 var(--f-sans);
  color: var(--texto);
  background: var(--bege);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
}
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: var(--marca-texto); }
:focus-visible { outline: 3px solid var(--dourado-claro); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- casca ---------- */
.shell {
  position: relative;
  max-width: var(--largura);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--creme);
  box-shadow: 0 0 0 1px var(--linha-suave), 0 20px 60px rgba(72, 27, 36, .10);
}
.main { padding: 18px 16px calc(var(--nav-h) + 28px + env(safe-area-inset-bottom, 0px)); }
.main.sem-nav { padding-bottom: 32px; }

.appbar {
  position: sticky; top: 0; z-index: 30;
  height: var(--appbar-h);
  display: flex; align-items: center; gap: 10px;
  padding: 0 14px;
  background: color-mix(in srgb, var(--creme) 88%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--linha-suave);
}
.icon-btn {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--superficie);
  border: 1px solid var(--linha);
  color: var(--texto);
  position: relative;
}
.icon-btn svg { width: 20px; height: 20px; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--texto); min-width: 0; }
.marca img { width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 0 0 1px var(--linha); }
.marca > span { min-width: 0; }
.marca b { font: 600 17.5px/1.05 var(--f-display); letter-spacing: .005em; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.marca small { font: 600 9.5px/1.2 var(--f-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--dourado-texto); display: block; margin-top: 2px; }
.appbar .espaco { flex: 1; }
.badge {
  position: absolute; top: -5px; right: -5px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: var(--r-pill);
  background: var(--bordo); color: var(--sobre-marca);
  font: 700 10.5px/18px var(--f-sans); text-align: center;
  box-shadow: 0 0 0 2px var(--creme);
}

/* barra inferior */
.bottomnav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--largura); z-index: 30;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--superficie);
  border-top: 1px solid var(--linha);
}
.bottomnav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  text-decoration: none; color: var(--texto-suave);
  font: 500 11px/1 var(--f-sans);
}
.bottomnav a svg { width: 22px; height: 22px; }
.bottomnav a { position: relative; }
.bottomnav a[aria-current="page"] { color: var(--marca-texto); font-weight: 700; }
.bottomnav a[aria-current="page"]:not(.centro)::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 2px; border-radius: 0 0 2px 2px; background: var(--dourado); }
.bottomnav a.centro span.bolha {
  width: 46px; height: 46px; margin-top: -18px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bordo); color: var(--sobre-marca);
  box-shadow: 0 8px 18px rgba(104, 33, 33, .35), 0 0 0 4px var(--superficie);
}
.bottomnav a.centro { color: var(--marca-texto); font-weight: 600; }

/* menu lateral */
.drawer-fundo { position: fixed; inset: 0; z-index: 50; background: var(--overlay); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 51;
  width: min(304px, 84vw);
  background: var(--superficie);
  transform: translateX(-102%); transition: transform .24s ease;
  display: flex; flex-direction: column;
  box-shadow: var(--sombra-forte);
}
.drawer-aberto .drawer { transform: none; }
.drawer-aberto .drawer-fundo { opacity: 1; pointer-events: auto; }
.drawer-topo { background: var(--carmim); color: var(--sobre-marca); padding: 22px 18px 20px; position: relative; }
.drawer-topo img { width: 54px; height: 54px; border-radius: 50%; box-shadow: 0 0 0 2px var(--dourado); }
.drawer-topo b { display: block; font: 600 22px/1.1 var(--f-display); margin-top: 12px; }
.drawer-topo span { display: block; font-size: 12.5px; opacity: .85; margin-top: 3px; }
.drawer-topo .icon-btn { position: absolute; top: 14px; right: 14px; background: transparent; border-color: rgba(247, 244, 236, .3); color: var(--sobre-marca); }
.drawer nav { overflow-y: auto; padding: 10px 10px 24px; flex: 1; }
.drawer h4 { font: 600 10.5px/1 var(--f-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--dourado-texto); padding: 16px 10px 8px; }
.drawer a, .drawer button.item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 11px 10px; border-radius: var(--r-md);
  text-decoration: none; color: var(--texto); font-weight: 500; font-size: 14.5px; text-align: left;
}
.drawer a svg, .drawer button.item svg { width: 20px; height: 20px; color: var(--dourado); flex: none; }
.drawer a[aria-current="page"] { background: var(--bege-suave); color: var(--marca-texto); font-weight: 700; }
.drawer a[aria-current="page"] svg { color: var(--marca-texto); }
.drawer .cont { margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--sobre-marca); background: var(--bordo); border-radius: var(--r-pill); padding: 2px 8px; }

/* ---------- tipografia ---------- */
.eyebrow { font: 600 11px/1.3 var(--f-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--dourado-texto); }
.titulo-tela { font: 600 31px/1.08 var(--f-display); letter-spacing: -.005em; color: var(--texto); margin-top: 4px; }
.titulo-tela em { font-style: italic; color: var(--marca-texto); }
.sub-tela { color: var(--texto-suave); font-size: 14.5px; margin-top: 6px; }
.cab-tela { margin: 4px 0 18px; }
h2.secao { font: 600 23px/1.15 var(--f-display); margin: 26px 0 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
h2.secao a { font: 600 12.5px/1 var(--f-sans); text-decoration: none; letter-spacing: .02em; }
.meta { font-size: 12.5px; color: var(--texto-suave); }
.saudacao small { display: block; font-size: 14px; color: var(--texto-suave); }
.saudacao b { display: block; font: 600 34px/1.05 var(--f-display); margin-top: 2px; }

/* ---------- cartões ---------- */
.card {
  background: var(--superficie);
  border: 1px solid var(--linha-suave);
  border-radius: var(--r-lg);
  box-shadow: var(--sombra);
  padding: 18px;
}
.card + .card { margin-top: 12px; }
.card h3 { font: 600 21px/1.2 var(--f-display); }
.card p { font-size: 14.5px; color: var(--texto-suave); margin-top: 6px; }

/* card herói: carmim com fio dourado e babado de forminha na base */
.heroi {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--bordo) 0%, var(--carmim) 100%);
  color: var(--sobre-marca);
  border-radius: var(--r-lg);
  padding: 22px 20px 34px;
  box-shadow: var(--sombra);
  isolation: isolate;
}
.heroi::before {
  content: ""; position: absolute; inset: 7px; z-index: -1;
  border: 1px solid rgba(201, 168, 119, .45); border-radius: 15px;
  pointer-events: none;
}
.heroi::after { /* babado da forminha de cupcake */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 14px; z-index: -1;
  background: radial-gradient(circle at 10px 14px, var(--creme) 9.5px, transparent 10px) 0 0 / 20px 14px repeat-x;
}
.heroi .eyebrow { color: var(--dourado-claro); }
.heroi h3, .heroi .h { font: 600 26px/1.12 var(--f-display); margin-top: 6px; color: var(--sobre-marca); }
.heroi p { color: rgba(247, 244, 236, .86); font-size: 14.5px; margin-top: 8px; }
.heroi .btn { margin-top: 16px; }
.heroi .ornamento { position: absolute; right: 16px; top: 14px; width: 54px; height: 54px; color: var(--dourado-claro); opacity: .9; z-index: -1; }
.heroi.bordo { background: var(--bordo); }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px;
  border-radius: var(--r-md);
  background: var(--bordo); color: var(--sobre-marca);
  font: 600 14.5px/1.15 var(--f-sans); letter-spacing: .04em;
  text-decoration: none; text-align: center;
  box-shadow: 0 8px 18px -8px rgba(104, 33, 33, .55);
  transition: background .15s, transform .1s;
}
.btn:hover { background: var(--bordo-esc); }
.btn:active { transform: scale(.985); }
.btn svg { width: 18px; height: 18px; }
.btn.largo { width: 100%; }
.btn.claro { background: var(--sobre-marca); color: var(--bordo); box-shadow: none; }
.btn.sec { background: var(--superficie); color: var(--marca-texto); border: 1.5px solid var(--marca-texto); box-shadow: none; }
.btn.sec:hover { background: var(--bege-suave); }
.btn.fantasma { background: transparent; color: var(--texto); border: 1px solid var(--linha); box-shadow: none; }
.btn.verde { background: var(--sucesso); box-shadow: none; }
.btn.perigo { background: var(--erro); box-shadow: none; }
.btn.peq { min-height: 38px; padding: 0 14px; font-size: 13px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.linha-btns { display: flex; gap: 10px; margin-top: 16px; }
.linha-btns > * { flex: 1; }
.link-voltar { display: flex; width: fit-content; align-items: center; gap: 6px; font-weight: 600; font-size: 13.5px; text-decoration: none; color: var(--texto-suave); margin-bottom: 10px; }
.link-voltar svg { width: 18px; height: 18px; }

/* ---------- selos, status, pílulas ---------- */
.pilula { display: inline-flex; align-items: center; gap: 5px; font: 600 11px/1 var(--f-sans); letter-spacing: .04em; padding: 6px 10px; border-radius: var(--r-pill); background: var(--bege-suave); color: var(--texto-suave); white-space: nowrap; }
.pilula svg { width: 13px; height: 13px; }
.pilula.marca { background: var(--bordo); color: var(--sobre-marca); }
.pilula.ouro { background: transparent; color: var(--dourado-texto); box-shadow: inset 0 0 0 1px var(--dourado); }
.status { display: inline-flex; align-items: center; gap: 5px; font: 700 11px/1 var(--f-sans); letter-spacing: .03em; padding: 6px 10px 6px 8px; border-radius: var(--r-pill); white-space: nowrap; }
.status svg { width: 14px; height: 14px; }
.status.pendente { background: var(--st-pendente-bg); color: var(--st-pendente-tx); }
.status.analise { background: var(--st-analise-bg); color: var(--st-analise-tx); }
.status.aprovada { background: var(--st-aprovada-bg); color: var(--st-aprovada-tx); }
.status.ajustar { background: var(--st-ajustar-bg); color: var(--st-ajustar-tx); }
.status.bloqueada { background: var(--st-pendente-bg); color: var(--texto-suave); }

/* ---------- progresso ---------- */
.barra { height: 7px; border-radius: var(--r-pill); background: var(--linha-suave); overflow: hidden; }
.barra > i { display: block; height: 100%; background: var(--dourado); border-radius: inherit; transition: width .4s; }
.heroi .barra { background: rgba(247, 244, 236, .18); }
.heroi .passos li::before { background: rgba(247, 244, 236, .14); color: var(--dourado-claro); }
.heroi .barra > i { background: var(--dourado-claro); }
.progresso-linha { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 7px; font-weight: 600; }

/* números do painel */
.numeros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.numero { background: var(--superficie); border: 1px solid var(--linha-suave); border-radius: 16px; padding: 14px 10px 12px; text-align: center; box-shadow: var(--sombra); }
.numero b { display: block; font: 700 32px/1 var(--f-display); color: var(--marca-texto); }
.numero span { display: block; font-size: 11.5px; color: var(--texto-suave); margin-top: 6px; font-weight: 500; }

/* segmento */
.segmento { display: flex; gap: 4px; background: var(--bege-suave); border-radius: 13px; padding: 4px; margin: 14px 0; overflow-x: auto; scrollbar-width: none; }
.segmento button { flex: 1 0 auto; padding: 9px 12px; border-radius: 10px; font: 600 12.5px/1 var(--f-sans); color: var(--texto-suave); white-space: nowrap; }
.segmento button[aria-pressed="true"] { background: var(--superficie); color: var(--marca-texto); box-shadow: 0 2px 8px rgba(72, 27, 36, .08); }

/* ---------- linhas de tarefa / aula ---------- */
.lista { background: var(--superficie); border: 1px solid var(--linha-suave); border-radius: var(--r-lg); box-shadow: var(--sombra); overflow: hidden; }
.lista + .lista { margin-top: 12px; }
.lista-cab { padding: 14px 16px 10px; border-bottom: 1px solid var(--linha-suave); }
.lista-cab .eyebrow { font-size: 10px; }
.lista-cab h3 { font: 600 19px/1.2 var(--f-display); margin-top: 3px; }
.item-linha {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; text-decoration: none; color: var(--texto);
  border-top: 1px solid var(--linha-suave);
}
.lista-cab + .item-linha, .lista > .item-linha:first-child { border-top: 0; }
.item-linha .ico { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--bege-suave); color: var(--dourado-texto); }
.item-linha .ico svg { width: 19px; height: 19px; }
.item-linha .txt { flex: 1; min-width: 0; }
.item-linha .txt > b { display: block; font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.item-linha .txt > span { display: block; font-size: 12.5px; color: var(--texto-suave); margin-top: 2px; }
.item-linha .seta { width: 18px; height: 18px; color: var(--texto-suave); flex: none; }
.item-linha.feito .ico { background: var(--st-aprovada-bg); color: var(--st-aprovada-tx); }
.check-redondo { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 1.5px solid var(--linha); display: grid; place-items: center; color: transparent; }
.check-redondo svg { width: 15px; height: 15px; }
.check-redondo.on { background: var(--sucesso); border-color: var(--sucesso); color: var(--sobre-marca); }

/* cartão de tarefa (destaque) */
.tarefa-card { display: block; text-decoration: none; color: var(--texto); }
.tarefa-card .topo { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.tarefa-card h3 { font: 600 21px/1.2 var(--f-display); }
.tarefa-card p { margin-top: 6px; }
.tarefa-card .rodape { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 12px; }

/* ---------- capas de curso ---------- */
.capa {
  position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden;
  background: var(--capa, var(--bordo)); color: var(--capa-tx, var(--sobre-marca));
  display: flex; flex-direction: column; justify-content: space-between; text-align: center;
  padding: 16px 12px 14px; isolation: isolate;
}
.capa::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--capa-fio, rgba(201, 168, 119, .7)); border-radius: 9px; z-index: -1; }
.capa .c-marca { font: 600 7.5px/1.3 var(--f-sans); letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
.capa .c-titulo { font: 600 21px/1.02 var(--f-display); }
.capa .c-titulo i { display: block; font-style: italic; font-weight: 500; font-size: .72em; margin-top: 4px; color: var(--capa-destaque, var(--dourado-claro)); }
.capa .c-fio { display: block; width: 34px; height: 1px; background: var(--capa-destaque, var(--dourado-claro)); margin: 0 auto 8px; }
.capa .c-faixa { display: block; margin: 9px -12px -14px; padding: 7px 6px; background: var(--capa-faixa, var(--bordo)); color: #f7f4ec; font: 600 7.5px/1.2 var(--f-sans); letter-spacing: .16em; text-transform: uppercase; }
.capa .c-autora { display: block; font: 600 8px/1.3 var(--f-sans); letter-spacing: .16em; text-transform: uppercase; opacity: .9; }
.capa .c-cadeado { position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .28); }
.capa .c-cadeado svg { width: 14px; height: 14px; }
.grade-cursos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.curso-card { text-decoration: none; color: var(--texto); display: block; }
.curso-card .nome { font-weight: 600; font-size: 14px; line-height: 1.3; margin-top: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.curso-card .pilulas { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 7px; }
.curso-card .barra { margin-top: 9px; height: 5px; }

/* curso: cabeçalho */
.curso-topo { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center; }
.curso-topo .capa { padding: 10px 8px 12px; }
.curso-topo .capa .c-titulo { font-size: 18px; }
.curso-topo .capa .c-marca { font-size: 6px; }
.curso-topo .capa .c-autora { display: none; }
.curso-topo .capa .c-faixa { margin: 6px -8px -12px; padding: 5px 4px; font-size: 6px; }
.capa-grande { max-width: 230px; margin: 4px auto 0; }
.capa-grande .capa { padding: 22px 16px 18px; }
.capa-grande .capa .c-titulo { font-size: 31px; }
.capa-grande .capa .c-marca, .capa-grande .capa .c-autora { font-size: 9px; }
.capa-grande .capa .c-faixa { margin: 12px -16px -18px; padding: 9px 6px; font-size: 9px; }
.curso-topo h1 { font: 600 27px/1.08 var(--f-display); color: var(--sobre-marca); }
.curso-topo .pilulas { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.curso-topo .pilula { background: rgba(247, 244, 236, .14); color: var(--sobre-marca); }

/* oferta horizontal */
.oferta-h { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; text-decoration: none; color: var(--texto); }
.oferta-h .capa { padding: 10px 8px; border-radius: 10px; }
.oferta-h .capa .c-titulo { font-size: 15px; }
.oferta-h .capa .c-marca, .oferta-h .capa .c-autora, .oferta-h .capa .c-faixa { font-size: 5.5px; }
.oferta-h .capa .c-faixa { margin: 6px -8px -10px; padding: 5px 4px; }
.oferta-h .capa .c-marca { visibility: hidden; }
.oferta-h .capa .c-cadeado { top: 8px; right: 50%; transform: translateX(50%); width: 22px; height: 22px; }
.oferta-h .capa .c-cadeado svg { width: 12px; height: 12px; }
.oferta-h h3 { font: 600 19px/1.15 var(--f-display); }
.oferta-h p { font-size: 13px; margin-top: 4px; color: var(--texto-suave); }
.oferta-h .acao { font: 700 12.5px/1 var(--f-sans); color: var(--marca-texto); margin-top: 9px; display: inline-flex; align-items: center; gap: 4px; letter-spacing: .02em; }
.oferta-h .acao svg { width: 14px; height: 14px; }

/* ---------- formulários ---------- */
.campo { margin-top: 14px; }
.campo label, .campo .rotulo { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; }
.campo .ajuda { font-size: 12px; color: var(--texto-suave); margin-top: 5px; }
.input, textarea.input, select.input {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--superficie); border: 1px solid var(--linha); border-radius: var(--r-md);
  font-size: 16px; color: var(--texto);
}
textarea.input { min-height: 96px; resize: vertical; line-height: 1.5; }
.input:focus { outline: 0; border-color: var(--dourado-texto); box-shadow: 0 0 0 4px rgba(155, 124, 79, .18); }
.input[aria-invalid="true"] { border-color: var(--erro); }
.com-prefixo { position: relative; }
.com-prefixo span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-weight: 600; color: var(--texto-suave); font-size: 15px; }
.com-prefixo .input { padding-left: 42px; }
.erro-msg { color: var(--erro); font-size: 13px; font-weight: 600; margin-top: 8px; }

.checkbox { display: flex; gap: 11px; align-items: flex-start; padding: 11px 0; border-top: 1px solid var(--linha-suave); font-size: 14px; cursor: pointer; }
.checkbox:first-of-type { border-top: 0; }
.checkbox input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.checkbox .caixa { width: 22px; height: 22px; flex: none; border-radius: 6px; border: 1.5px solid var(--linha); display: grid; place-items: center; color: transparent; margin-top: 1px; background: var(--superficie); }
.checkbox .caixa svg { width: 14px; height: 14px; }
.checkbox input:checked + .caixa { background: var(--bordo); border-color: var(--bordo); color: var(--sobre-marca); }
.checkbox input:focus-visible + .caixa { outline: 3px solid var(--dourado-claro); outline-offset: 2px; }

/* envio de arquivos */
.soltar {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  border: 1.5px dashed var(--dourado); border-radius: var(--r-lg);
  background: var(--bege-suave); padding: 22px 16px; cursor: pointer; color: var(--texto);
  width: 100%;
}
.soltar svg { width: 30px; height: 30px; color: var(--dourado-texto); }
.soltar b { font-weight: 600; font-size: 14.5px; }
.soltar span { font-size: 12.5px; color: var(--texto-suave); }
.miniaturas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.mini { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--bege-suave); border: 1px solid var(--linha-suave); }
.mini img, .mini video { width: 100%; height: 100%; object-fit: cover; }
.mini .rm { position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border-radius: 50%; background: rgba(26, 17, 19, .7); color: #fff; display: grid; place-items: center; }
.mini .rm svg { width: 14px; height: 14px; }
.mini .tipo { position: absolute; left: 6px; bottom: 6px; background: rgba(26, 17, 19, .7); color: #fff; font: 700 10px/1 var(--f-sans); padding: 4px 6px; border-radius: 6px; display: inline-flex; gap: 4px; align-items: center; }
.mini .tipo svg { width: 11px; height: 11px; }
.galeria { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; }
.galeria .mini { aspect-ratio: 4 / 5; }

/* blocos de prova pedida */
.pede { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pede .pilula { background: var(--superficie); box-shadow: inset 0 0 0 1px var(--linha); color: var(--texto); }
.pede .pilula svg { color: var(--dourado-texto); }

/* caixa de aviso */
.aviso { display: flex; gap: 12px; align-items: flex-start; border-radius: 14px; padding: 14px; font-size: 13.5px; margin-top: 12px; background: var(--bege-suave); color: var(--texto); }
.aviso svg { width: 20px; height: 20px; flex: none; color: var(--dourado-texto); margin-top: 1px; }
.aviso.ajustar { background: var(--st-ajustar-bg); color: var(--st-ajustar-tx); }
.aviso.ajustar svg { color: currentColor; }
.aviso.aprovada { background: var(--st-aprovada-bg); color: var(--st-aprovada-tx); }
.aviso.aprovada svg { color: currentColor; }
.aviso b { display: block; margin-bottom: 2px; }

/* dicas numeradas */
.passos { list-style: none; counter-reset: p; display: grid; gap: 12px; margin-top: 12px; }
.passos li { counter-increment: p; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; font-size: 14px; color: var(--texto); }
.passos li::before { content: counter(p); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--bege-suave); color: var(--dourado-texto); font: 700 18px/1 var(--f-display); }
.passos li b { display: block; }
.passos li span span { display: block; color: var(--texto-suave); font-size: 13.5px; }

/* tipos de prova (como comprovar) */
.tipos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.tipo-card { background: var(--superficie); border: 1px solid var(--linha-suave); border-radius: 16px; padding: 14px; box-shadow: var(--sombra); }
.tipo-card svg { width: 24px; height: 24px; color: var(--dourado); }
.tipo-card b { display: block; font-weight: 600; margin-top: 8px; font-size: 14px; }
.tipo-card span { display: block; font-size: 12.5px; color: var(--texto-suave); margin-top: 3px; line-height: 1.45; }

/* acordeão simples */
details.acc { background: var(--superficie); border: 1px solid var(--linha-suave); border-radius: 16px; box-shadow: var(--sombra); }
details.acc + details.acc { margin-top: 10px; }
details.acc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 16px; font-weight: 600; font-size: 14.5px; cursor: pointer; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary svg { width: 18px; height: 18px; color: var(--dourado-texto); transition: transform .2s; flex: none; }
details.acc[open] summary svg { transform: rotate(90deg); }
details.acc .acc-corpo { padding: 0 16px 16px; font-size: 14px; color: var(--texto-suave); }
details.acc .acc-corpo p + p { margin-top: 8px; }

/* aula */
.player {
  position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden;
  background: radial-gradient(120% 90% at 30% 20%, #6a2a36 0, var(--carmim) 55%, #2a0f15 100%);
  display: grid; place-items: center; color: var(--sobre-marca);
}
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .play { width: 66px; height: 66px; border-radius: 50%; background: rgba(247, 244, 236, .95); color: var(--bordo); display: grid; place-items: center; }
.player .play svg { width: 26px; height: 26px; margin-left: 4px; }
.player small { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; font-size: 12px; opacity: .85; padding: 0 14px; }
.texto-aula { font-size: 15px; color: var(--texto); line-height: 1.7; }
.texto-aula p + p { margin-top: 10px; }

/* comunidade */
.post { padding: 16px; }
.post.fixado { box-shadow: var(--sombra), inset 0 0 0 1.5px var(--dourado); }
.post.oculto, .comentario.oculto { opacity: .6; }
.post-cab { display: flex; align-items: center; gap: 10px; }
.post-cab .mais, .comentario .mais { margin-left: auto; width: 34px; height: 34px; border: 0; background: transparent; }
.avatar-p { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--bege-suave); color: var(--marca-texto); font: 600 19px/1 var(--f-display); overflow: hidden; }
.avatar-p.oficial { background: var(--superficie); box-shadow: 0 0 0 1.5px var(--dourado); }
.avatar-p img { width: 100%; height: 100%; object-fit: cover; }
.avatar-p.peq { width: 32px; height: 32px; font-size: 16px; }
.post-quem { min-width: 0; }
.post-quem b { display: block; font-size: 14.5px; font-weight: 600; }
.post-quem small { display: block; font-size: 12px; color: var(--texto-suave); }
.post-texto { margin-top: 10px !important; color: var(--texto) !important; font-size: 15px !important; white-space: pre-wrap; word-wrap: break-word; }
.post-conquista { display: flex; gap: 8px; align-items: center; margin-top: 10px; padding: 9px 12px; border-radius: 12px; background: var(--st-aprovada-bg); color: var(--st-aprovada-tx); font-size: 13.5px; }
.post-conquista svg { width: 18px; height: 18px; flex: none; }
.post-fotos { display: grid; gap: 6px; margin-top: 12px; border-radius: 14px; overflow: hidden; }
.post-fotos.n1 { grid-template-columns: 1fr; }
.post-fotos.n2, .post-fotos.n4 { grid-template-columns: 1fr 1fr; }
.post-fotos.n3 { grid-template-columns: 1fr 1fr; }
.post-fotos.n3 > :first-child { grid-column: 1 / -1; }
.post-fotos img, .post-fotos video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bege-suave); display: block; }
.post-fotos.n1 img, .post-fotos.n1 video { aspect-ratio: 4 / 5; max-height: 460px; }
.post-acoes { display: flex; align-items: center; gap: 18px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--linha-suave); }
.post-acoes button, .post-acoes a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; color: var(--texto-suave); text-decoration: none; min-height: 32px; }
.post-acoes svg { width: 20px; height: 20px; }
.post-acoes button[aria-pressed="true"] { color: var(--marca-texto); }
.comentario { display: flex; gap: 10px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--linha-suave); }
.comentario:first-child { border-top: 0; padding-top: 0; }
.comentario-corpo { flex: 1; min-width: 0; }
.comentario-corpo b { font-size: 13.5px; font-weight: 600; }
.comentario-corpo p { margin-top: 2px !important; color: var(--texto) !important; font-size: 14px !important; white-space: pre-wrap; word-wrap: break-word; }
.comentario-corpo small { font-size: 11.5px; color: var(--texto-suave); }
#feed .post + .post { margin-top: 12px; }

/* conquistas */
.selos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.selo { text-align: center; padding: 14px 8px; border-radius: 16px; background: var(--superficie); border: 1px solid var(--linha-suave); box-shadow: var(--sombra); }
.selo .medalha { width: 58px; height: 58px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--carmim); color: var(--dourado-claro); box-shadow: inset 0 0 0 3px var(--carmim), inset 0 0 0 4px var(--dourado-claro); }
.selo .medalha svg { width: 26px; height: 26px; }
.selo b { display: block; font-size: 12px; font-weight: 600; margin-top: 9px; line-height: 1.3; }
.selo span { display: block; font-size: 10.5px; color: var(--texto-suave); margin-top: 3px; }
.selo.off .medalha { background: var(--bege-suave); color: var(--texto-suave); box-shadow: inset 0 0 0 1.5px var(--linha); }
.selo.off b { color: var(--texto-suave); }

/* notificações */
.notif { display: flex; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--linha-suave); text-decoration: none; color: var(--texto); }
.notif:first-child { border-top: 0; }
.notif .ico { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--bege-suave); color: var(--dourado-texto); }
.notif .ico svg { width: 18px; height: 18px; }
.notif b { display: block; font-size: 14px; font-weight: 600; }
.notif p { font-size: 13px; color: var(--texto-suave); margin-top: 2px; }
.notif small { display: block; font-size: 11.5px; color: var(--texto-suave); margin-top: 4px; }
.notif.nova { background: color-mix(in srgb, var(--bege-suave) 70%, transparent); }
.notif.nova b::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--bordo); margin-left: 7px; vertical-align: middle; }

/* vazio */
.vazio { text-align: center; padding: 34px 18px; }
.vazio .ico { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; display: grid; place-items: center; background: var(--bege-suave); color: var(--dourado-texto); }
.vazio .ico svg { width: 30px; height: 30px; }
.vazio h3 { font: 600 22px/1.2 var(--f-display); }
.vazio p { color: var(--texto-suave); font-size: 14px; margin-top: 6px; }

/* perfil */
.perfil-topo { display: flex; align-items: center; gap: 14px; }
.avatar { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--carmim); color: var(--sobre-marca); font: 600 30px/1 var(--f-display); flex: none; box-shadow: inset 0 0 0 2px var(--dourado); }
.dados { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--linha-suave); border-radius: 14px; overflow: hidden; margin-top: 12px; }
.dados div { background: var(--superficie); padding: 12px 14px; }
.dados span { display: block; font-size: 11.5px; color: var(--texto-suave); }
.dados b { display: block; font-size: 14px; font-weight: 600; margin-top: 2px; word-break: break-word; }

/* login */
.login { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 28px 20px 36px; }
.login .logo-grande { width: 132px; height: 132px; border-radius: 50%; margin: 0 auto; box-shadow: var(--sombra), 0 0 0 1px var(--linha); }
.login h1 { font: 600 34px/1.08 var(--f-display); text-align: center; margin-top: 18px; }
.login h1 em { color: var(--marca-texto); }
.login .sub-tela { text-align: center; }

/* modal e bottom sheet */
.modal-fundo { position: fixed; inset: 0; z-index: 60; background: var(--overlay); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: var(--largura); max-height: 92vh; overflow-y: auto; background: var(--superficie); border-radius: 24px 24px 0 0; padding: 12px 18px calc(22px + env(safe-area-inset-bottom, 0px)); animation: subir .22s ease; }
.sheet .alca { width: 44px; height: 5px; border-radius: 99px; background: var(--linha); margin: 0 auto 14px; }
.sheet h3 { font: 600 25px/1.15 var(--f-display); }
.sheet p { color: var(--texto-suave); font-size: 14.5px; margin-top: 6px; }
@keyframes subir { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* onboarding */
.onb-pontos { display: flex; gap: 6px; justify-content: center; margin: 18px 0 4px; }
.onb-pontos i { width: 7px; height: 7px; border-radius: 99px; background: var(--linha); transition: width .2s; }
.onb-pontos i.on { width: 22px; background: var(--bordo); }
.onb-ico { width: 70px; height: 70px; border-radius: 22px; margin: 6px auto 14px; display: grid; place-items: center; background: var(--carmim); color: var(--dourado-claro); }
.onb-ico svg { width: 32px; height: 32px; }

/* toasts */
.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom, 0px)); z-index: 70; width: min(440px, calc(100% - 32px)); display: grid; gap: 8px; pointer-events: none; }
.toast { background: var(--texto); color: var(--creme); border-radius: 14px; padding: 13px 16px; font-size: 14px; font-weight: 500; box-shadow: var(--sombra-forte); display: flex; gap: 10px; align-items: center; animation: subir .2s ease; }
.toast svg { width: 18px; height: 18px; color: var(--dourado-claro); flex: none; }

/* painel da equipe */
.faixa-equipe { background: var(--texto); color: var(--creme); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-align: center; padding: 8px 12px; }
.faixa-equipe a { color: var(--dourado-claro); }

/* rodapé de aviso */
.rodape-app { text-align: center; font-size: 11.5px; color: var(--texto-suave); margin-top: 28px; line-height: 1.5; }

/* utilidades */
.mt-0 { margin-top: 0 !important; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; }
.centro-txt { text-align: center; }
.flex { display: flex; align-items: center; gap: 10px; }
.entre { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cinza { color: var(--texto-suave); }
.pequeno { font-size: 12.5px; }
.forte { font-weight: 700; }
.marca-tx { color: var(--marca-texto); }
.ouro-tx { color: var(--dourado-texto); }
.rolagem-h { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rolagem-h > * { scroll-snap-align: start; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (min-width: 520px) {
  .shell { margin-top: 0; }
}
