/* Studio in Mappe — app sempre escuro. Cada curso tem sua cor (--obg fundo, --oac destaque). */
:root {
  --bg: #0B111D; --panel: #131C2E; --line: #243149; --ink: #F3F5F9; --muted: #A3AFC2;
  --obg: #203A5F; --oac: #F2A541; --ok: #7FD3A6; --warn: #F0B35A; --danger: #F08A7E;
  --accent: #F2A541; --card: #203A5F; /* usados pelo painel admin */
  --f-display: "Poppins", system-ui, sans-serif;
  --f-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-label: "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); -webkit-text-size-adjust: 100%; }
body { min-height: 100dvh; }
[hidden] { display: none !important; }
button, a { font: inherit; cursor: pointer; touch-action: manipulation; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
em { font-style: normal; color: #F2A541; }
:focus-visible { outline: 2px solid var(--oac); outline-offset: 3px; }
.link { background: none; border: 0; color: var(--muted); padding: 6px; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Login ---------- */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); }
.login-box { width: 100%; max-width: 400px; display: grid; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 1.05rem var(--f-display); }
.brand-ico { width: 40px; height: 40px; border-radius: 10px; }
.login h1 { font: 700 1.75rem/1.2 var(--f-display); margin: 0; text-wrap: balance; }
form { display: grid; gap: 10px; }
label { font: 700 .78rem var(--f-label); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
input[type=email] { width: 100%; font-size: 1.05rem; padding: 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); }
input[type=email]:focus { border-color: #F2A541; outline: none; }
#login-btn { background: #F2A541; color: #1A1A1A; border: 0; border-radius: 10px; padding: 14px; font-weight: 700; font-size: 1rem; }
#login-btn[disabled] { opacity: .6; cursor: progress; }
.msg { margin: 2px 0 0; color: var(--danger); font-size: .92rem; line-height: 1.45; }
.hint { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.foot { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.7; }
.foot a { color: var(--ink); text-underline-offset: 3px; }
footer.foot { max-width: 1240px; margin: 0 auto; padding: 24px 20px calc(28px + env(safe-area-inset-bottom)); }

/* ---------- Barra e canais ---------- */
.appbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px 22px; flex-wrap: wrap;
  padding: calc(12px + env(safe-area-inset-top)) 20px 10px; background: rgba(11, 17, 29, .93); backdrop-filter: blur(8px); }
.logo { display: flex; align-items: center; gap: 9px; font: 700 1.02rem var(--f-display); white-space: nowrap; text-decoration: none; color: var(--ink); }
.logo-ico { width: 28px; height: 28px; border-radius: 7px; }
.chan { display: flex; gap: 18px; order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; }
.chan::-webkit-scrollbar { display: none; }
.chan button { background: none; border: 0; color: var(--muted); padding: 4px 0 6px; font-size: .92rem; border-bottom: 2px solid transparent; white-space: nowrap; }
.chan button[aria-pressed=true] { color: var(--ink); border-bottom-color: var(--ink); }
.who { margin-left: auto; display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--muted); font-size: .8rem; }
.who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 42vw; }
@media (min-width: 780px) { .chan { order: 0; width: auto; } }
.home { max-width: 1240px; margin: 0 auto; padding: 4px 0 8px; }

/* ---------- Destaque do curso ---------- */
.bill { position: relative; margin: 10px 20px 4px; border-radius: 18px; overflow: hidden; background: var(--obg); display: grid; grid-template-columns: 1fr; }
.bill-art { display: grid; place-items: center; padding: 22px 20px 0; }
.bill-art img { max-height: 220px; object-fit: contain; }
.bill-txt { padding: 18px 20px 24px; display: grid; gap: 10px; align-content: center; }
.eyebrow { font: 700 .72rem var(--f-label); letter-spacing: .1em; text-transform: uppercase; color: var(--oac); }
.bill h1 { margin: 0; font: 800 1.5rem/1.15 var(--f-display); text-transform: uppercase; text-wrap: balance; }
.bill h1 span, .t span, .d-title span { color: var(--oac); }
.bill p { margin: 0; color: #DCE3EE; line-height: 1.5; max-width: 56ch; font-size: .95rem; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .84rem; color: #C9D2E0; }
.facts b { color: var(--ink); font-family: var(--f-display); }
.btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.b-play { background: var(--ink); color: #0B111D; border: 0; border-radius: 9px; padding: 11px 18px; font-weight: 700; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.b-acc { background: var(--oac); color: #151515; border: 0; border-radius: 9px; padding: 11px 18px; font-weight: 700; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.b-info { background: rgba(255, 255, 255, .14); border: 0; border-radius: 9px; padding: 11px 16px; font-weight: 500; }
@media (min-width: 780px) {
  .bill { grid-template-columns: 1.05fr 1fr; }
  .bill-art { order: 2; padding: 28px; }
  .bill-art img { max-height: 300px; }
  .bill-txt { padding: 38px; }
  .bill h1 { font-size: 2rem; }
}

/* ---------- Fileiras e capas ---------- */
.row { padding: 22px 0 0; }
.row-h { display: flex; align-items: baseline; gap: 10px; margin: 0 20px 10px; flex-wrap: wrap; }
.row-h h2 { margin: 0; font: 600 1.05rem var(--f-display); }
.row-h small { color: var(--muted); font-size: .8rem; }
.rail { display: flex; align-items: flex-start; gap: 12px; overflow-x: auto; padding: 4px 20px 12px; scroll-snap-type: x mandatory; scroll-padding-left: 20px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.card { flex: 0 0 136px; scroll-snap-align: start; background: none; border: 0; padding: 0; text-align: left; }
@media (min-width: 780px) { .card { flex-basis: 166px; } }
.poster { position: relative; aspect-ratio: 2 / 3; border-radius: 11px; overflow: hidden; background: var(--obg); display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
@media (hover: hover) { .card:hover .poster { transform: translateY(-4px) scale(1.03); box-shadow: 0 14px 30px rgba(0, 0, 0, .45); } }
.tag { position: absolute; top: 8px; left: 8px; z-index: 2; font: 700 .6rem/1 var(--f-label); letter-spacing: .08em; text-transform: uppercase; background: var(--oac); color: #151515; padding: 4px 8px; border-radius: 99px; }
.lock { position: absolute; top: 7px; right: 7px; z-index: 2; width: 25px; height: 25px; border-radius: 50%; background: rgba(0, 0, 0, .55); display: grid; place-items: center; }
.art { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 30px 8px 4px; }
.art img { max-width: 100%; max-height: 100%; object-fit: contain; }
.t { padding: 7px 10px 11px; font: 700 .76rem/1.2 var(--f-display); text-transform: uppercase; }
.t small { display: block; font: 700 .58rem var(--f-label); letter-spacing: .08em; color: #C9D2E0; margin-top: 2px; }
@media (min-width: 780px) { .t { font-size: .84rem; } }
.strip { height: 5px; background: var(--oac); flex: none; }
.under { margin-top: 6px; font-size: .74rem; color: var(--muted); display: flex; gap: 5px; flex-wrap: wrap; line-height: 1.35; }
.under .own { color: var(--ok); }
.under .hot { color: var(--oac); font-weight: 700; }
.under .buy { color: var(--oac); font-weight: 700; }
.why { margin-top: 6px; font-size: .73rem; line-height: 1.35; color: #C9D2E0; }
.why b { color: var(--oac); font-weight: 700; }

/* ---------- Divisória do segundo curso ---------- */
.divider { margin: 34px 20px 4px; display: flex; align-items: center; gap: 14px; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--oac) 50%, transparent); opacity: .45; }
.divider span { display: grid; justify-items: center; gap: 2px; text-align: center; }
.divider small { font: 700 .68rem var(--f-label); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.divider b { font: 700 1rem var(--f-display); color: var(--oac); }

/* ---------- Faixa "outro concurso" ---------- */
.cross { position: relative; margin: 34px 20px 4px; border-radius: 22px; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 140% at 85% 30%, color-mix(in srgb, var(--obg), #fff 6%) 0%, var(--obg) 45%, color-mix(in srgb, var(--obg) 55%, var(--bg)) 100%);
  border: 1px solid color-mix(in srgb, var(--oac) 30%, transparent);
  display: grid; grid-template-columns: 1fr; }
.cross::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, transparent, var(--oac), transparent); }
.cross-deco { position: absolute; inset: 0 0 0 45%; z-index: -1; opacity: .07; pointer-events: none; display: none; }
@media (min-width: 780px) { .cross-deco { display: block; } }
.cross-deco svg { width: 100%; height: 100%; }
.cross-txt { padding: 26px 22px 8px; display: grid; gap: 12px; align-content: center; }
.cross-eyebrow { display: inline-flex; align-items: center; gap: 8px; justify-self: start; font: 700 .72rem var(--f-label); letter-spacing: .1em; text-transform: uppercase;
  color: var(--oac); background: color-mix(in srgb, var(--oac) 14%, transparent); padding: 6px 11px; border-radius: 99px; }
.cross h2 { margin: 0; font: 800 1.55rem/1.15 var(--f-display); text-wrap: balance; }
.cross p { margin: 0; color: #E2E8F1; line-height: 1.55; max-width: 52ch; }
.cross .name { font: 700 .82rem var(--f-display); color: var(--oac); text-transform: uppercase; letter-spacing: .02em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: .8rem; padding: 6px 10px; border-radius: 99px; background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .08); color: #DCE3EE; }
.chip b { font-family: var(--f-display); color: var(--ink); }
.cross-art { position: relative; min-height: 240px; display: grid; place-items: center; padding: 10px 20px 26px; }
.cross-art .pg { position: absolute; width: 112px; aspect-ratio: 1 / 1.414; object-fit: cover; object-position: top; border-radius: 5px; background: #fff;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .45); }
.cross-art .p1 { transform: translate(-96px, 6px) rotate(-11deg); }
.cross-art .p2 { transform: translate(98px, 2px) rotate(9deg); }
.cross-art .hero { position: relative; z-index: 1; max-height: 210px; max-width: 70%; object-fit: contain; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .35)); }
@media (min-width: 780px) {
  .cross { grid-template-columns: 1.1fr 1fr; }
  .cross-txt { padding: 40px 0 40px 40px; }
  .cross h2 { font-size: 2rem; }
  .cross-art { min-height: 320px; }
  .cross-art .pg { width: 140px; }
  .cross-art .p1 { transform: translate(-130px, 14px) rotate(-11deg); }
  .cross-art .p2 { transform: translate(130px, 6px) rotate(9deg); }
  .cross-art .hero { max-height: 270px; }
}
@media (prefers-reduced-motion: no-preference) {
  .cross-art .pg { transition: transform .4s ease; }
}
@media (hover: hover) and (min-width: 780px) and (prefers-reduced-motion: no-preference) {
  .cross:hover .p1 { transform: translate(-150px, 10px) rotate(-14deg); }
  .cross:hover .p2 { transform: translate(150px, 0) rotate(12deg); }
}

/* ---------- Camadas ---------- */
.overlay { position: fixed; inset: 0; z-index: 10; }
.bar { display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; background: var(--bg); border-bottom: 1px solid var(--line); }
.x { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #26314A; color: #fff; font-size: 1.4rem; line-height: 1; }
.bar-title { flex: 1; min-width: 0; font-weight: 500; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl { flex: none; background: #F2A541; color: #1A1A1A; border-radius: 8px; padding: 9px 12px; font-weight: 700; font-size: .8rem; text-decoration: none; }
.viewer { background: #1B1F27; display: flex; flex-direction: column; z-index: 20; }
.frame-wrap { position: relative; flex: 1; }
.frame-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #1B1F27; }
.loading { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; padding: 24px; color: var(--muted); font-size: .9rem; text-align: center; pointer-events: none; }
.slow { display: grid; gap: 14px; justify-items: center; line-height: 1.5; pointer-events: auto; }

/* ficha */
.detail { background: rgba(3, 6, 12, .74); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 760px; max-height: 94dvh; overflow-y: auto; background: #101827; border-radius: 20px 20px 0 0; position: relative; }
@media (min-width: 780px) { .detail { align-items: center; } .sheet { border-radius: 18px; max-height: 90dvh; } }
.d-top { position: relative; background: var(--obg); display: grid; place-items: center; padding: 34px 20px 18px; min-height: 200px; }
.d-top img { max-height: 210px; max-width: 78%; object-fit: contain; }
.d-x { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; font-size: 1.35rem; }
.d-body { padding: 18px 22px calc(26px + env(safe-area-inset-bottom)); display: grid; gap: 14px; }
.d-title { margin: 0; font: 800 1.4rem/1.15 var(--f-display); text-transform: uppercase; text-wrap: balance; }
.d-title small { font-size: .6em; color: var(--muted); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.badge { font: 700 .7rem var(--f-label); letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 99px; border: 1px solid currentColor; }
.badge.fit { color: var(--ok); }
.badge.diff { color: var(--warn); }
.badge.mine { color: var(--ok); background: rgba(127, 211, 166, .12); border-color: transparent; }
.meta { color: var(--muted); font-size: .85rem; }
.syn { margin: 0; color: #E2E8F1; line-height: 1.55; font-size: .97rem; max-width: 62ch; }
.social { display: flex; gap: 8px; align-items: center; font-size: .86rem; color: #CFEBDD; }
.social::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5BD08F; flex: none; }
.fitline { font-size: .86rem; line-height: 1.5; padding: 10px 12px; border-radius: 10px; background: rgba(127, 211, 166, .08); color: #CFEBDD; }
.fitline.warn { background: rgba(240, 179, 90, .1); color: #F7DDB0; }
.sec-h { font: 700 .72rem var(--f-label); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 6px 0 -4px; }
.pv { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.pv img { height: 160px; border-radius: 4px; background: #fff; flex: none; }
.eps { display: grid; gap: 8px; }
.ep { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--panel); border: 0; text-align: left; width: 100%; }
.ep .n { font: 700 1rem var(--f-display); color: var(--muted); text-align: center; }
.ep b { font-weight: 500; font-size: .92rem; }
.ep small { display: block; color: var(--muted); font-size: .78rem; margin-top: 2px; line-height: 1.4; }
.ep .st { font: 700 .68rem var(--f-label); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.ep .st.go { color: var(--oac); }

/* convite para instalar */
.inst { position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 30; width: min(440px, calc(100% - 24px));
  background: #F3F5F9; color: #0B111D; border-radius: 18px; padding: 16px; display: grid; gap: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, .55); }
.inst .top { display: flex; gap: 12px; align-items: center; }
.inst .ico { width: 54px; height: 54px; border-radius: 13px; flex: none; }
.inst h4 { margin: 0; font: 700 1rem var(--f-display); }
.inst p { margin: 2px 0 0; font-size: .84rem; color: #3B4659; line-height: 1.4; }
.inst .acts { display: flex; gap: 8px; justify-content: flex-end; }
.inst .acts button { border: 0; border-radius: 9px; padding: 9px 14px; font-weight: 700; font-size: .85rem; }
.inst .y { background: #0B111D; color: #fff; }
.inst .n { background: none; color: #3B4659; }
.inst .acts a.y { display: inline-flex; align-items: center; border-radius: 9px; padding: 9px 14px; font-weight: 700; font-size: .85rem; text-decoration: none; }
.igfoot { display: inline-flex; align-items: center; gap: 12px; margin: 6px 0 12px; padding: 10px 16px 10px 10px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--muted) 30%, transparent); text-decoration: none !important; color: var(--ink); }
.igfoot .ig-ico { width: 44px; height: 44px; flex: none; }
.igfoot span { display: grid; gap: 1px; line-height: 1.3; text-align: left; }
.igfoot b { font-size: .95rem; }
.igfoot small { font-size: .78rem; color: var(--muted); }
.steps { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; font-size: .88rem; background: #E3E8F0; border-radius: 10px; padding: 8px 10px; }
.steps svg { width: 22px; height: 22px; }

@media (prefers-reduced-motion: no-preference) {
  .viewer, .sheet { animation: rise .22s ease-out; }
  @keyframes rise { from { transform: translateY(14px); opacity: .5; } }
}

/* ---------- Página de privacidade ---------- */
.prose { max-width: 680px; margin: 0 auto; padding: 8px 20px calc(48px + env(safe-area-inset-bottom)); line-height: 1.65; }
.prose h1 { font: 700 1.6rem/1.2 var(--f-display); margin: 12px 0 4px; }
.prose h2 { font: 600 1.05rem var(--f-display); margin: 28px 0 8px; }
.prose p, .prose li { color: #D3DAE6; font-size: .95rem; }
.prose ul { padding-left: 1.2em; display: grid; gap: 6px; }
.prose .updated { color: var(--muted); font-size: .85rem; }
.prose a { color: var(--ink); }

/* ---------- Missão "Inizia da qui" ---------- */
.mission { margin: 10px 20px 0; border-radius: 16px; padding: 14px 16px; display: grid; gap: 10px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--oac) 20%, var(--panel)), var(--panel)); border: 1px solid color-mix(in srgb, var(--oac) 40%, transparent); }
.mission .mh { display: flex; align-items: baseline; gap: 10px; }
.mission .mh b { font: 700 1rem var(--f-display); }
.mission .mh span { color: var(--muted); font-size: .8rem; }
.mission .mh .mx { margin-left: auto; background: none; border: 0; color: var(--muted); font-size: 1.2rem; padding: 0 4px; }
.mbar { height: 5px; border-radius: 9px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.mbar i { display: block; height: 100%; background: var(--oac); }
.msteps { display: grid; gap: 8px; }
@media (min-width: 780px) { .msteps { grid-template-columns: repeat(3, 1fr); } }
.mstep { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: center; text-align: left; width: 100%; border: 0; border-radius: 11px; padding: 10px 12px; background: rgba(0, 0, 0, .25); font-size: .86rem; }
.mstep .c { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--muted); display: grid; place-items: center; font-size: .7rem; font-weight: 700; }
.mstep.done .c { background: var(--ok); border-color: var(--ok); color: #0B111D; }
.mstep.done .lb { color: var(--muted); text-decoration: line-through; }
.mstep em { font-style: normal; font-size: .72rem; color: var(--oac); font-weight: 700; white-space: nowrap; }

/* ---------- Boas-vindas ---------- */
.welcome { background: rgba(3, 6, 12, .8); display: flex; align-items: flex-end; justify-content: center; z-index: 25; }
.w-card { width: 100%; max-width: 480px; background: #101827; border-radius: 22px 22px 0 0; padding: 18px 18px calc(22px + env(safe-area-inset-bottom)); display: grid; gap: 12px; }
@media (min-width: 780px) { .welcome { align-items: center; } .w-card { border-radius: 20px; } }
.w-poster { position: relative; border: 0; padding: 0; border-radius: 16px; overflow: hidden; background: var(--obg); aspect-ratio: 4 / 5; }
.w-poster img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
.w-poster .pl { position: absolute; left: 14px; bottom: 14px; display: flex; gap: 10px; align-items: center; background: rgba(0, 0, 0, .6); padding: 7px 12px 7px 7px; border-radius: 99px; font-size: .82rem; color: #fff; }
.w-poster .pl i { width: 30px; height: 30px; border-radius: 50%; background: #fff; color: #0B111D; display: grid; place-items: center; font-style: normal; }
.w-card h2 { margin: 0; font: 800 1.3rem/1.2 var(--f-display); }
.w-card p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }

/* ---------- Player ---------- */
.wplayer { background: #000; z-index: 26; display: grid; place-items: center; }
.wp-wrap { width: 100%; height: 100%; display: grid; place-items: center; }
.wp-wrap video { max-width: 100%; max-height: 100%; width: auto; height: 100%; background: #000; }
.wp-x { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; z-index: 2; }
.wp-end { position: absolute; inset: 0; z-index: 3; background: rgba(5, 8, 15, .88); display: grid; align-content: center; justify-items: center; gap: 14px; padding: 24px; text-align: center; }
.wp-end h3 { margin: 0; font: 800 1.5rem var(--f-display); }
.wp-end p { margin: 0 0 6px; color: var(--muted); }
.wp-end button { width: min(340px, 100%); justify-content: center; }
.wp-end .again { background: none; border: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Mapa de hoje ---------- */
.today { background: #1B1F27; display: flex; flex-direction: column; z-index: 22; }
.td-tag { flex: none; font: 700 .66rem var(--f-label); letter-spacing: .08em; text-transform: uppercase; background: var(--oac); color: #151515; padding: 4px 8px; border-radius: 99px; }
.td-page { flex: 1; overflow: auto; padding: 12px; -webkit-overflow-scrolling: touch; }
.td-page img { display: block; width: 100%; max-width: 1100px; margin: 0 auto; border-radius: 4px; background: #fff; cursor: zoom-in; }
.td-page.zoom img { width: 200%; max-width: none; cursor: zoom-out; }
.td-acts { display: grid; gap: 8px; padding: 10px 14px calc(14px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); }
@media (min-width: 780px) { .td-acts { grid-template-columns: 1fr 1fr; } }
.td-acts button { justify-content: center; }
.td-hint { text-align: center; color: var(--muted); font-size: .76rem; grid-column: 1 / -1; margin: 0; }

/* ---------- Edizione Audio ---------- */
.eps .grp { font: 700 .7rem var(--f-label); letter-spacing: .1em; text-transform: uppercase; color: var(--oac); margin: 8px 0 -2px; }
.ep.heard .n { color: var(--ok); }
.ep.now { outline: 2px solid var(--oac); }
.audio { background: var(--bg); display: flex; flex-direction: column; z-index: 23; }
.au-body { flex: 1; overflow: auto; padding: 16px 20px calc(24px + env(safe-area-inset-bottom)); max-width: 620px; width: 100%; margin: 0 auto; display: grid; gap: 14px; align-content: start; }
.au-art { width: min(240px, 60vw); height: min(240px, 60vw); flex: none; margin: 4px auto 0; border-radius: 18px; overflow: hidden; background: var(--obg); }
.au-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.au-meta { text-align: center; display: grid; gap: 4px; }
.au-meta .ey { font: 700 .7rem var(--f-label); letter-spacing: .1em; text-transform: uppercase; color: var(--oac); }
.au-meta h2 { margin: 0; font: 800 1.25rem/1.25 var(--f-display); }
.au-meta p { margin: 4px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.au-seek { display: grid; gap: 4px; }
.au-seek input { width: 100%; accent-color: var(--oac); }
.au-seek .tm { display: flex; justify-content: space-between; color: var(--muted); font-size: .76rem; font-variant-numeric: tabular-nums; }
.au-ctl { display: flex; justify-content: center; align-items: center; gap: 14px; }
.au-ctl button { background: rgba(255, 255, 255, .1); border: 0; border-radius: 50%; width: 48px; height: 48px; display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: var(--text, #fff); }
.au-ctl button:disabled { opacity: .35; }
.au-ctl .pp { width: 66px; height: 66px; background: var(--oac); color: #151515; font-size: 1.5rem; }
.au-sp { justify-self: center; background: none; border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; color: var(--muted); font-weight: 700; font-size: .8rem; }
.mini { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 15; display: grid; grid-template-columns: 1fr auto auto; gap: 6px; align-items: center;
  background: #172133; border: 1px solid var(--line); border-radius: 14px; padding: 6px 6px 6px 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); max-width: 560px; margin: 0 auto; }
.mini button { background: none; border: 0; color: inherit; }
.mi-open { text-align: left; display: grid; gap: 6px; min-width: 0; padding: 4px 0; }
.mi-t { font-size: .84rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mi-bar { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.mi-bar i { display: block; height: 100%; width: 0; background: var(--oac, #E5AA2F); }
.mi-pp { width: 40px; height: 40px; border-radius: 50% !important; background: var(--oac, #E5AA2F) !important; color: #151515 !important; font-size: 1rem; }
.mi-x { width: 34px; height: 40px; font-size: 1.3rem; color: var(--muted) !important; }
body.has-mini .foot { padding-bottom: 90px; }

/* ---------- Black Friday ---------- */
.bf { margin: 14px 20px 6px; border-radius: 18px; padding: 16px 16px 14px; display: grid; gap: 12px;
  background: linear-gradient(140deg, #141414, #23170A); border: 1px solid color-mix(in srgb, var(--oac) 55%, transparent); }
.bf-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.bf-tag { font: 800 .72rem var(--f-label); letter-spacing: .12em; text-transform: uppercase; background: var(--oac); color: #151515; padding: 5px 10px; border-radius: 99px; }
.bf-time { font-size: .78rem; color: var(--oac); font-weight: 700; }
.bf h3 { margin: 0; font: 800 1.12rem/1.3 var(--f-display); }
.bf-covers { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.bf-covers img { width: 64px; height: 78px; object-fit: cover; border-radius: 9px; background: var(--obg); flex: none; cursor: pointer; }
.bf-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .86rem; }
.bf-list li { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); }
.bf-list s { white-space: nowrap; }
.bf-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.bf-price s { color: var(--muted); font-size: 1rem; }
.bf-price b { font: 800 1.9rem var(--f-display); color: var(--oac); }
.bf-price small { color: var(--muted); font-size: .8rem; }
.bf-cta { justify-content: center; font-size: 1rem; }
.bf-note { margin: 0; color: var(--muted); font-size: .76rem; }
@media (min-width: 780px) {
  .bf { grid-template-columns: 1fr 1fr; column-gap: 28px; grid-template-areas: "top top" "h h" "sub sub" "cov cov" "list price" "list cta" "list note"; align-items: start; }
  .bf-top { grid-area: top; } .bf h3 { grid-area: h; } .bf-sub { grid-area: sub; } .bf-covers { grid-area: cov; }
  .bf-list { grid-area: list; } .bf-price { grid-area: price; } .bf-cta { grid-area: cta; } .bf-note { grid-area: note; }
}
.bf-sub { margin: -4px 0 0; color: var(--muted); font-size: .86rem; }
.bf-cov { position: relative; flex: none; }
.bf-cov.mine img { opacity: .45; }
.bf-cov i { position: absolute; right: 4px; bottom: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--ok); color: #0B111D; font: 800 .7rem/20px var(--f-display); text-align: center; font-style: normal; }
.bf-list li.mine { color: var(--ok); }
.bf-list li.mine em { font-style: normal; font-size: .8rem; white-space: nowrap; }

/* community (Telegram) */
.fab { position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 8; display: inline-flex; align-items: center; gap: 8px;
  border: 0; border-radius: 99px; padding: 12px 18px 12px 14px; background: #2AABEE; color: #fff; font: 700 .9rem var(--f-body); box-shadow: 0 10px 28px rgba(0, 0, 0, .45); cursor: pointer; }
.fab svg { width: 22px; height: 22px; flex: none; }
body.has-mini .fab { bottom: calc(86px + env(safe-area-inset-bottom)); }
body:has(#inst:not([hidden])) .fab, body:has(#pushask:not([hidden])) .fab, body:has(#igask:not([hidden])) .fab { display: none; }
.cm-top { background: linear-gradient(160deg, #1D8FCB, #2AABEE); min-height: 150px; }
.cm-ico { width: 84px; height: 84px; border-radius: 50%; background: #fff; color: #2AABEE; display: grid; place-items: center; }
.cm-ico svg { width: 46px; height: 46px; }
.cm-ico svg path:last-child { stroke: #fff; }
.cm-list { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: #E2E8F1; line-height: 1.45; }
.cm-go { display: grid; gap: 14px; }
.cm-g { display: grid; gap: 6px; }
.cm-name { margin: 0; font-weight: 700; font-size: .92rem; }
.cm-btn { justify-content: center; background: #2AABEE; color: #fff; font-size: 1rem; padding: 14px 18px; }
.cm-btn[aria-disabled] { opacity: .55; }
.cm-in { color: var(--ok); font-size: .84rem; }
.cm-note { margin: 0; }

/* ---------- Tuo percorso (perguntas + passos) ---------- */
.mstep.done.guide .lb { color: var(--ink); text-decoration: none; font-weight: 500; }
.mstep.done.guide em { color: var(--oac); }
.mission .mh .mredo { font-size: .78rem; text-decoration: underline; text-underline-offset: 3px; }
.pq { display: grid; gap: 16px; }
.pq-q { border: 0; margin: 0; padding: 0; display: grid; gap: 7px; }
.pq-q legend { font: 600 1rem/1.35 var(--f-display); margin-bottom: 8px; padding: 0; }
.pq-o { text-align: left; width: 100%; border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 11px; padding: 11px 13px; font-size: .92rem; line-height: 1.35; }
.pq-o[aria-pressed="true"] { border-color: var(--oac); box-shadow: inset 0 0 0 1px var(--oac); background: color-mix(in srgb, var(--oac) 12%, var(--panel)); }
.pq-classe { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.pq-classe input { font-size: 1rem; padding: 9px 11px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); width: 130px; }
.pq-save { width: 100%; }
.pq-save:disabled { opacity: .55; }
.pq-path { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pq-path button { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; text-align: left; border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 12px; padding: 11px 12px; }
.pq-path .c { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--muted); display: grid; place-items: center; font-size: .72rem; font-weight: 700; }
.pq-path .seen .c { background: var(--ok); border-color: var(--ok); color: #0B111D; }
.pq-path .lb { font-size: .92rem; font-weight: 500; }
.pq-path .lb small { display: block; color: var(--oac); font-weight: 400; font-size: .78rem; margin-top: 2px; }
.pq-path em { font-style: normal; font: 700 .75rem var(--f-label); color: var(--ok); white-space: nowrap; }
.d-top.pq-top { min-height: 0; padding: 22px 20px 0; background: none; }

/* ---------- Laboratório: laço diário (só na base de teste) ---------- */
.lab { overflow: hidden; margin: 10px 20px 0; border-radius: 18px; padding: 16px; display: grid; gap: 14px; background: linear-gradient(170deg, color-mix(in srgb, var(--obg) 70%, #000), var(--panel)); border: 1px solid color-mix(in srgb, var(--oac) 35%, var(--line)); }
.lab-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lab-fire { display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: center; }
.lab-fire .fl { grid-row: span 2; font-size: 2rem; filter: grayscale(1) opacity(.5); }
.lab-fire.lit .fl { filter: none; }
.lab-fire b { font: 700 1.6rem/1 var(--f-display); }
.lab-fire small { color: var(--muted); font-size: .78rem; }
.lab-week { display: flex; gap: 6px; }
.lab-week span { display: grid; justify-items: center; gap: 3px; }
.lab-week i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .72rem; font-weight: 700; border: 2px solid var(--line); color: #151515; }
.lab-week .on i { background: var(--oac); border-color: var(--oac); }
.lab-week .now i { border-color: var(--oac); }
.lab-week .fut i { opacity: .45; }
.lab-week b { font: 700 .66rem var(--f-label); color: var(--muted); }
.lab-mission { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; background: rgba(0, 0, 0, .25); border-radius: 12px; padding: 10px 12px; }
.lab-mission .lab-m-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--oac) 20%, transparent); }
.lab-mission.ok .lab-m-ico { background: var(--ok); color: #0B111D; font-weight: 700; }
.lab-mission b { display: block; font: 600 .92rem var(--f-display); }
.lab-mission small { color: var(--muted); font-size: .8rem; }
.lab-trail { list-style: none; margin: 0; padding: 4px 0; display: grid; gap: 6px; }
.lab-trail li { display: grid; justify-items: center; transform: translateX(calc(var(--x) * 34px)); }
.lab-trail button { position: relative; background: none; border: 0; padding: 4px; }
.lab-trail .dot { width: 58px; height: 52px; border-radius: 50%; display: grid; place-items: center; font: 700 1.1rem var(--f-display); background: #2A3450; color: var(--muted); box-shadow: 0 6px 0 #1A2136; }
.lab-trail .seen .dot { background: var(--ok); color: #0B111D; box-shadow: 0 6px 0 #4E9C74; }
.lab-trail .cur .dot { background: var(--oac); color: #151515; box-shadow: 0 6px 0 color-mix(in srgb, var(--oac) 60%, #000); outline: 4px solid color-mix(in srgb, var(--oac) 30%, transparent); outline-offset: 5px; }
.lab-trail .tlock .dot { font-size: .95rem; }
.lab-trail .go { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #151515; font: 700 .68rem var(--f-label); letter-spacing: .06em; padding: 4px 9px; border-radius: 8px; white-space: nowrap; }
.lab-trail p { margin: 6px 0 4px; max-width: 220px; text-align: center; font-size: .8rem; color: var(--muted); line-height: 1.3; }
.lab-trail .cur p { color: var(--ink); font-weight: 500; }
.lab-trail p small { display: block; color: var(--oac); font-size: .74rem; }
.lab-trail .cur { margin-top: 18px; }
.lab-foot { display: flex; gap: 8px; flex-wrap: wrap; }
.lab-chip { background: rgba(0, 0, 0, .25); border: 1px solid var(--line); color: var(--ink); border-radius: 999px; padding: 7px 12px; font-size: .8rem; }
.lab-cele { position: fixed; inset: 0; z-index: 80; background: rgba(5, 8, 15, .86); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.lab-cele-in { width: min(380px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 26px 20px 20px; display: grid; gap: 14px; justify-items: center; text-align: center; }
.lab-big { font-size: 4rem; line-height: 1; }
.lab-cele h2 { margin: 0; font: 700 1.5rem var(--f-display); }
.lab-cele p { margin: 0; color: var(--muted); }
.lab-goal { display: grid; gap: 8px; width: 100%; }
.lab-goal small { color: var(--muted); }
.lab-goal div { display: flex; gap: 8px; justify-content: center; }
.lab-goal button { flex: 1; background: var(--bg); border: 1px solid var(--line); color: var(--ink); border-radius: 10px; padding: 10px 6px; font-weight: 700; }
.lab-goal button[aria-pressed="true"] { border-color: var(--oac); box-shadow: inset 0 0 0 1px var(--oac); }
.lab-ok { width: 100%; }
@media (prefers-reduced-motion: no-preference) { .lab-big { animation: lab-pop .6s ease-out; } @keyframes lab-pop { 0% { transform: scale(.4); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } } }
/* caminho de estudo: sugestões opcionais à parte */
.pq-more { display: grid; gap: 8px; margin-top: 4px; }
.pq-x { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; text-align: left; border: 1px dashed var(--line); background: none; color: var(--ink); border-radius: 12px; padding: 10px 12px; font-size: .88rem; }
.pq-x small { display: block; color: var(--muted); font-size: .76rem; }
.pq-x em { font-style: normal; color: var(--muted); font-size: .78rem; white-space: nowrap; }
.lab-mission { cursor: pointer; }
.lab-trail .daily .dot { background: color-mix(in srgb, var(--oac) 25%, #2A3450); color: var(--oac); }
.lab-trail .daily.cur .dot { background: var(--oac); color: #151515; }
.lab-more { display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 12px; }
.lab-more p { margin: 0; font: 700 .72rem var(--f-label); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lab-x { text-align: left; background: none; border: 1px dashed var(--line); color: var(--ink); border-radius: 10px; padding: 8px 11px; font-size: .84rem; }
.lab-x small { display: block; color: var(--muted); font-size: .74rem; }
/* foguinho dentro do "Inizia da qui" */
.streak { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: rgba(0, 0, 0, .22); border-radius: 12px; padding: 10px 12px; }
.streak .lab-fire small { line-height: 1.35; }
.pq-more-q { display: grid; gap: 3px; text-align: left; width: 100%; border: 1px solid var(--oac); background: color-mix(in srgb, var(--oac) 14%, var(--panel)); color: var(--ink); border-radius: 12px; padding: 12px 14px; font-size: .95rem; }
.pq-more-q small { color: var(--muted); font-size: .8rem; }
