/* =====================================================================
   NEOREEL — TEMA CLARO (limpo, arejado). Ativo quando <html data-theme="light">
   ===================================================================== */
html[data-theme="light"] {
  --bg: #f5f6fa;
  --bg2: #f1f3f8;
  --card: #ffffff;
  --card2: #f6f7fb;
  --line: #e6e8f0;
  --text: #11131a;
  --muted: #5f6b82;
  --dim: #9aa3b5;
  --accent: #0891b2;
  --accent2: #7c3aed;
  --mint: #059669;
  --red: #e11d48;
  --yellow: #b45309;
  --grad: linear-gradient(120deg, #06b6d4 0%, #6366f1 55%, #8b5cf6 100%);
  --display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --radius: 20px;
  color-scheme: light;
}
html[data-theme="light"] body { background: var(--bg); color: var(--text); font-family: var(--body); }
html[data-theme="light"] .fx-bg { display: none; }
html[data-theme="light"] h1, html[data-theme="light"] h2, html[data-theme="light"] h3 { font-family: var(--display); letter-spacing: -.01em; color: var(--text); }
html[data-theme="light"] h1 { font-size: 30px; font-weight: 800; }
html[data-theme="light"] h2 { font-size: 19px; font-weight: 800; }

/* menu lateral branco */
html[data-theme="light"] .side { background: #fff; border-right: 1px solid var(--line); backdrop-filter: none; }
html[data-theme="light"] .brand span { color: var(--text); font-family: var(--display); font-weight: 800; letter-spacing: -.01em; text-transform: none; font-size: 22px; }
html[data-theme="light"] .brand span b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-theme="light"] .side nav a { color: #4b5568; border-radius: 12px; font-weight: 600; }
html[data-theme="light"] .side nav a:hover { background: #f2f4f9; color: var(--text); }
html[data-theme="light"] .side nav a.on { background: #eef2ff; color: #4338ca; box-shadow: none; }
html[data-theme="light"] .usercard { background: #f6f7fb; border: 1px solid var(--line); }
html[data-theme="light"] .usercard .cr { color: #4338ca; }

/* cartões brancos com sombra suave */
html[data-theme="light"] .card { background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px -12px rgba(16, 24, 40, .12); backdrop-filter: none; }
html[data-theme="light"] .card::before { display: none; }
html[data-theme="light"] .proj:hover, html[data-theme="light"] .fmt:hover, html[data-theme="light"] .clip:hover { border-color: #c7d2fe; box-shadow: 0 12px 32px -14px rgba(67, 56, 202, .28); transform: translateY(-2px); }

/* botões */
html[data-theme="light"] .btn { background: #fff; border: 1px solid var(--line); color: var(--text); box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
html[data-theme="light"] .btn:hover { background: #f6f7fb; border-color: #d0d5e2; box-shadow: 0 1px 2px rgba(16, 24, 40, .06); }
html[data-theme="light"] .btn.primary { background: var(--grad); color: #fff; border: 0; box-shadow: 0 8px 20px -8px rgba(99, 102, 241, .6); }
html[data-theme="light"] .btn.primary:hover { filter: brightness(1.05); box-shadow: 0 10px 24px -8px rgba(99, 102, 241, .7); }
html[data-theme="light"] .btn.primary::after { display: none; }
html[data-theme="light"] .btn.ghost { background: transparent; box-shadow: none; }

/* campos e chips */
html[data-theme="light"] .input, html[data-theme="light"] select.input, html[data-theme="light"] textarea.input { background: #fff; border: 1px solid #dfe3ec; color: var(--text); }
html[data-theme="light"] .input:focus { border-color: #818cf8; box-shadow: 0 0 0 4px rgba(129, 140, 248, .18); }
html[data-theme="light"] select.input option { background: #fff; color: var(--text); }
html[data-theme="light"] .chip { background: #fff; border-color: #dfe3ec; color: #4b5568; }
html[data-theme="light"] .chip:hover { border-color: #a5b4fc; color: var(--text); }
html[data-theme="light"] .chip.on { background: #eef2ff; border-color: #6366f1; color: #3730a3; box-shadow: none; }
html[data-theme="light"] .switch span { background: #d6dae4; }
html[data-theme="light"] .switch span::after { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
html[data-theme="light"] .switch input:checked + span { background: #6366f1; box-shadow: none; }
html[data-theme="light"] .switch input:checked + span::after { background: #fff; }
html[data-theme="light"] .tabs { background: #f1f3f8; border-color: var(--line); }
html[data-theme="light"] .tabs button.on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(16, 24, 40, .1); }
html[data-theme="light"] .drop { background: #fafbff; border-color: #c7d2fe; }
html[data-theme="light"] .drop:hover, html[data-theme="light"] .drop.over { background: #eef2ff; border-color: #6366f1; box-shadow: none; }

/* detalhes */
html[data-theme="light"] .badge { background: #f1f3f8; border-color: var(--line); color: #4b5568; }
html[data-theme="light"] .badge.ai { background: var(--grad); color: #fff; box-shadow: none; }
html[data-theme="light"] .badge.ok { color: #047857; background: #ecfdf5; border-color: #a7f3d0; box-shadow: none; }
html[data-theme="light"] .badge.warn { color: #b45309; background: #fffbeb; border-color: #fde68a; }
html[data-theme="light"] .badge.err { color: #be123c; background: #fff1f2; border-color: #fecdd3; }
html[data-theme="light"] .progress { background: #eceff5; }
html[data-theme="light"] .progress > div { background: var(--grad); box-shadow: none; animation: none; }
html[data-theme="light"] .ring b { background: #fff; color: var(--text); font-family: var(--display); }
html[data-theme="light"] .ring { box-shadow: none; }
html[data-theme="light"] .kpi b { background: none; color: var(--text); -webkit-text-fill-color: currentColor; font-family: var(--display); }
html[data-theme="light"] .note { background: #f8f9fc; border-color: var(--line); color: #4b5568; }
html[data-theme="light"] .note b { color: var(--text); }
html[data-theme="light"] .empty { background: #fafbfd; border-color: #dfe3ec; color: var(--muted); }
html[data-theme="light"] .toast { background: #fff; color: var(--text); border: 1px solid var(--line); border-left: 4px solid #6366f1; box-shadow: 0 12px 30px -12px rgba(16, 24, 40, .25); }
html[data-theme="light"] .table th { color: var(--muted); font-family: var(--body); letter-spacing: .04em; }
html[data-theme="light"] .table tr:hover td { background: #fafbfd; }
html[data-theme="light"] .fmt-ic { background: #eef2ff; box-shadow: none; }
html[data-theme="light"] .hero h1 em, html[data-theme="light"] .home-title em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-theme="light"] .how { background: linear-gradient(160deg, #eef2ff, #f5f3ff); }
html[data-theme="light"] .how li::before { background: #fff; color: #4338ca; box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
html[data-theme="light"] .timeline { background: #f1f3f8; }
html[data-theme="light"] .timeline .w { background: #dfe3ec; color: #4b5568; }
html[data-theme="light"] .timeline .sel { background: rgba(99, 102, 241, .12); border-color: #6366f1; box-shadow: none; }
html[data-theme="light"] .timeline .ph { background: #11131a; }
html[data-theme="light"] .ptabs button.on { border-bottom-color: #6366f1; }
html[data-theme="light"] .words-edit span:hover { background: #f1f3f8; }
html[data-theme="light"] .msg.user { background: #eef2ff; border-color: #c7d2fe; }
html[data-theme="light"] .msg.assistant { background: #f6f7fb; }
html[data-theme="light"] .chat-list a:hover, html[data-theme="light"] .chat-list a.on { background: #f1f3f8; }
html[data-theme="light"] .auth .card { box-shadow: 0 30px 60px -30px rgba(16, 24, 40, .35); }
html[data-theme="light"] .frame { box-shadow: 0 30px 60px -30px rgba(16, 24, 40, .45), 0 0 0 1px var(--line); }
html[data-theme="light"] * { scrollbar-color: #cdd3df transparent; }
html[data-theme="light"] ::-webkit-scrollbar-thumb { background: #cdd3df; }

/* ===================== Página inicial em galeria (ambos os temas) ===================== */
.home-wrap { max-width: 1180px; margin: 0 auto; }
.home-title { text-align: center; font-size: 40px !important; margin: 8px 0 6px; }
.home-sub { text-align: center; color: var(--muted); margin: 0 0 28px; }
.start-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 28px; margin-bottom: 22px; flex-wrap: wrap; }
.start-card .kicker { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--accent); text-transform: uppercase; }
.start-card h2 { font-size: 24px !important; margin: 4px 0; }
.show { display: grid; grid-template-columns: 300px 1fr; gap: 20px; padding: 20px; margin-bottom: 18px; align-items: stretch; }
.show .info { display: flex; flex-direction: column; gap: 10px; padding: 8px 6px; }
.show .info h2 { font-size: 26px !important; }
.show .info p { margin: 0; color: var(--muted); font-size: 14.5px; }
.show .info .price { font-size: 12.5px; color: var(--dim); margin-top: auto; }
.show .kick { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--accent); text-transform: uppercase; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile { position: relative; aspect-ratio: 9 / 14; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 12px; color: #fff; text-decoration: none; isolation: isolate; transition: transform .2s; }
.tile:hover { transform: translateY(-3px); }
.tile .em { position: absolute; inset: 0; display: grid; place-items: center; font-size: 64px; z-index: -1; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .35)); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0, 0, 0, .7), transparent 55%); }
.tile .tag { position: absolute; top: 10px; left: 10px; font-size: 10px; font-weight: 800; letter-spacing: .08em; background: rgba(0, 0, 0, .45); padding: 3px 7px; border-radius: 6px; text-transform: uppercase; }
.tile b { font-size: 13.5px; line-height: 1.25; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-top: 8px; }
.mini { display: flex; gap: 14px; padding: 14px; text-decoration: none; align-items: center; }
.mini .tile { width: 74px; flex: none; aspect-ratio: 9 / 13; padding: 0; border-radius: 12px; }
.mini .tile .em { font-size: 30px; }
.mini .tile::after { display: none; }
.mini b { display: block; font-size: 15px; }
.mini small { color: var(--muted); font-size: 12.5px; line-height: 1.35; display: block; margin-top: 2px; }
.prompt-bar { position: sticky; bottom: 16px; margin: 28px auto 0; max-width: 760px; display: flex; gap: 10px; padding: 10px 10px 10px 18px; align-items: center; border-radius: 18px; z-index: 5; }
.prompt-bar input { flex: 1; border: 0; background: transparent; outline: none; font-size: 15px; color: var(--text); }
.theme-toggle { justify-content: flex-start; }
.home-title em, .hero h1 em { padding-right: .12em; }
@media (max-width: 980px) {
  .show { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .sched, .editor { grid-template-columns: 1fr !important; }
}
@media (max-width: 760px) {
  .side { gap: 10px; padding: 10px 12px; }
  .side nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; width: 100%; }
  .side nav::-webkit-scrollbar { display: none; }
  .side nav a { white-space: nowrap; flex: none; padding: 8px 12px; }
  .home-title { font-size: 30px !important; }
  .start-card { padding: 18px; }
  .show { padding: 14px; }
  .more-grid { grid-template-columns: 1fr; }
  .prompt-bar { bottom: 10px; }
  main { padding: 18px 14px 80px; }
}

/* vídeos de demonstração nos cartões */
.tile.demo video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.tile.demo::after { background: linear-gradient(to top, rgba(0,0,0,.35), transparent 40%); }
.tile.demo .tag { background: rgba(99,102,241,.85); }

/* ===================== Página pública (visitantes) ===================== */
.lp { max-width: 1160px; margin: 0 auto; display: flex; flex-direction: column; gap: 56px; padding-bottom: 30px; }
.lp-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 6px 0; flex-wrap: wrap; position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); }
.lp-nav nav { display: flex; gap: 22px; }
.lp-nav nav a { text-decoration: none; color: var(--muted); font-weight: 600; }
.lp-nav nav a:hover { color: var(--text); }
.lp-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.lp-hero > div:first-child { display: flex; flex-direction: column; gap: 18px; }
.lp-hero .home-title { font-size: 46px !important; line-height: 1.1; margin: 0; }
.lp-hero .kick, .lp .kick { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.lp-sub { color: var(--muted); font-size: 17px; margin: 0; }
.lp-phones { position: relative; height: 520px; }
.phone { position: absolute; width: 210px; aspect-ratio: 9/19; border-radius: 30px; overflow: hidden; background: #000; border: 6px solid #111; box-shadow: 0 30px 60px -20px rgba(16,24,40,.5); }
.phone video { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone.p0 { left: 6%; top: 40px; transform: rotate(-6deg); }
.phone.p1 { left: 34%; top: 0; z-index: 2; }
.phone.p2 { left: 62%; top: 50px; transform: rotate(6deg); }
.lp-steps, .lp-feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.lp-steps .card, .lp-feats .card { display: flex; flex-direction: column; gap: 8px; }
.lp-h2 { text-align: center; font-size: 32px !important; margin-bottom: 22px; }
.lp-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.lp-faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 12px; }
.lp-faq summary { cursor: pointer; list-style: none; }
.lp-cta { text-align: center; padding: 40px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lp-foot { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: start; border-top: 1px solid var(--line); padding-top: 24px; }
.lp-foot .lp-links { display: flex; gap: 18px; flex-wrap: wrap; }
.lp-foot .lp-links a { color: var(--muted); text-decoration: none; }
.lp-legal { max-width: 820px; margin: 0 auto; line-height: 1.7; }
.lp-legal h2 { margin-top: 22px; font-size: 18px !important; }
body:has(.lp) main { padding-top: 14px; }
@media (max-width: 900px) {
  .lp-hero { grid-template-columns: 1fr; }
  .lp-hero .home-title { font-size: 34px !important; }
  .lp-phones { height: 420px; }
  .phone { width: 160px; }
  .lp-nav nav { display: none; }
  .lp-faq { grid-template-columns: 1fr; }
  .lp-foot { grid-template-columns: 1fr; }
}

/* ---- Página inicial: miniaturas com imagens reais ---- */
.tile.has-img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .35s ease; }
.tile.has-img:hover > img { transform: scale(1.05); }
.tile.has-img .em { display: none; }
.tile.has-img::after { background: linear-gradient(to top, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .25) 38%, transparent 60%); }
.tile { box-shadow: 0 6px 18px rgba(15, 23, 42, .12); }
.tile b { font-size: 14px; font-weight: 700; }
.mini .tile.has-img { background: #111 !important; }
.card.mini { transition: transform .2s, box-shadow .2s; }
.card.mini:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15, 23, 42, .1); }
/* a barra "diz-me o que queres criar" fica no topo, por baixo do título */
.prompt-bar { position: static; margin: 18px auto 26px; max-width: 760px; box-shadow: 0 10px 30px rgba(79, 70, 229, .12); border: 1px solid rgba(99, 102, 241, .25); }
.prompt-bar input { font-size: 16px; padding: 8px 0; }
.prompt-bar { width: 100%; box-sizing: border-box; }
.prompt-bar input { min-width: 0; text-overflow: ellipsis; }
.prompt-bar .btn { flex: none; }
@media (max-width: 560px) { .prompt-bar { padding: 8px 8px 8px 14px; } .prompt-bar input { font-size: 14px; } }
.example-card { display: flex; flex-direction: column; gap: 10px; max-width: 320px; padding: 16px; }
.example-card .kick { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--accent); text-transform: uppercase; }
.example-card video { width: 100%; aspect-ratio: 9 / 16; border-radius: 14px; background: #000; object-fit: cover; }
/* Página pública: cartões de formatos com imagem */
.lp-feats { grid-template-columns: repeat(4, 1fr); }
.lp-feats .card.lp-feat { padding: 0; overflow: hidden; gap: 0; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.lp-feats .card.lp-feat:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15, 23, 42, .14); }
.lp-feat img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.lp-feat > div { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 1000px) { .lp-feats { grid-template-columns: repeat(2, 1fr); } }

/* =========== Página inicial v2 (saudação, créditos, grelha de formatos) =========== */
.home2 { max-width: 1240px; margin: 0 auto; }
.h2-top { display: grid; grid-template-columns: 1fr 360px; gap: 22px; align-items: start; margin-bottom: 10px; }
.h2-hello h1 { font-size: 40px; line-height: 1.1; margin: 6px 0 6px; letter-spacing: -.02em; }
.h2-hello p { margin: 0 0 6px; font-size: 16px; }
.h2-hello .prompt-bar { margin: 18px 0 0; max-width: none; }
.h2-side { display: flex; flex-direction: column; gap: 14px; }
.h2-earn { display: flex; flex-direction: column; gap: 10px; padding: 18px; }
.h2-task { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 6px 0; }
.h2-task .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--card2); font-size: 14px; }
.h2-task.ok .ic { background: rgba(34, 197, 94, .15); color: #16a34a; font-weight: 800; }
.h2-task b { display: block; font-size: 14px; }
.h2-task small { display: block; font-size: 12px; color: var(--muted); }
.h2-task.ok b { opacity: .6; }
.h2-task .rw { font-weight: 800; font-size: 13px; color: #16a34a; }
.h2-credits { display: flex; flex-direction: column; gap: 6px; padding: 18px; }
.h2-num { font: 800 38px/1.1 var(--display, inherit); letter-spacing: -.02em; }
.h2-num small { font-size: 14px; font-weight: 500; color: var(--muted); }
.h2-credits .btn { margin-top: 8px; }
.h2-title { font-size: 24px !important; margin: 30px 0 12px; }
.h2-cats { margin-bottom: 16px; gap: 8px; }
.h2-cats .chip { padding: 8px 16px; font-size: 14px; border-radius: 99px; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.fcard { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s, border-color .2s; }
.fcard:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(15, 23, 42, .14); border-color: rgba(99, 102, 241, .45); }
.fthumb { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #0f172a; }
.fthumb img, .fthumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s, opacity .3s; }
.fthumb video { opacity: 0; z-index: 1; }
.fcard.playing .fthumb video { opacity: 1; }
.fcard:hover .fthumb img { transform: scale(1.06); }
.fbadge { position: absolute; top: 10px; left: 10px; z-index: 2; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 7px; color: #fff; background: linear-gradient(135deg, #6366f1, #06b6d4); box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.fbadge.start { background: linear-gradient(135deg, #f43f5e, #f97316); }
.fplay { position: absolute; bottom: 10px; right: 10px; z-index: 2; font-size: 11px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .55); padding: 4px 9px; border-radius: 99px; backdrop-filter: blur(4px); transition: opacity .3s; }
.fcard.playing .fplay { opacity: 0; }
.fbody { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.fbody b { font-size: 15px; }
.fbody small { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.ftags { display: flex; gap: 6px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }
.ftags span { font-size: 11px; padding: 3px 8px; border-radius: 6px; background: var(--card2); border: 1px solid var(--line); color: var(--muted); }
.h2-short { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.h2-short .card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-decoration: none; color: inherit; transition: transform .2s, border-color .2s; }
.h2-short .card:hover { transform: translateY(-2px); border-color: rgba(99, 102, 241, .45); }
.h2-short span { font-size: 20px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--card2); }
.h2-short b { font-size: 14px; }
.h2-up { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; text-decoration: none; color: inherit; background: linear-gradient(120deg, rgba(99, 102, 241, .12), rgba(6, 182, 212, .12)); border-color: rgba(99, 102, 241, .3); }
.h2-up b { display: block; font-size: 16px; margin-bottom: 4px; }
html[data-theme="dark"] .fcard:hover, html[data-theme="future"] .fcard:hover { box-shadow: 0 16px 34px rgba(0, 0, 0, .5); }
@media (max-width: 1000px) { .h2-top { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .h2-hello h1 { font-size: 30px; }
  .fgrid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .fbody { padding: 10px; } .fbody b { font-size: 14px; } .fbody small { font-size: 12px; }
  .h2-short { grid-template-columns: repeat(2, 1fr); }
  .h2-up { flex-direction: column; align-items: flex-start; }
}

/* =========== Telemóvel: barra de navegação em baixo com botão Criar =========== */
.mnav { display: none; }
@media (max-width: 760px) {
  .side { display: none !important; }
  main { padding: 18px 14px 110px !important; }
  .mnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: 66px; padding-bottom: env(safe-area-inset-bottom); background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(15, 23, 42, .08); }
  .mnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; color: var(--muted); text-decoration: none; }
  .mnav a i { font-style: normal; font-size: 19px; line-height: 1; }
  .mnav a.on { color: var(--accent); font-weight: 700; }
  .mnav a.create i { width: 54px; height: 54px; margin-top: -26px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; color: #fff; background: linear-gradient(135deg, #6366f1, #06b6d4); box-shadow: 0 8px 20px rgba(99, 102, 241, .45); }
  .mtop { display: flex; align-items: center; justify-content: space-between; margin: -4px 0 12px; }
}
.mtop { display: none; }
.msheet { position: fixed; inset: 0; z-index: 60; background: rgba(15, 23, 42, .45); display: flex; align-items: flex-end; }
.msheet .in { width: 100%; max-height: 80vh; overflow: auto; background: var(--card); border-radius: 20px 20px 0 0; padding: 14px 14px 30px; display: flex; flex-direction: column; gap: 2px; }
.msheet .in a, .msheet .in button { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 10px; text-decoration: none; color: var(--text); font-size: 15px; background: none; border: 0; text-align: left; cursor: pointer; }
.msheet .in a:hover { background: var(--card2); }
.h2-top { grid-template-columns: 1fr; }
.h2-hello .prompt-bar { max-width: 760px; }
.h2-side { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; align-items: stretch; }
.h2-side > .h2-credits:only-child { max-width: 360px; }
.h2-earn .h2-task { padding: 4px 0; }
@media (min-width: 1001px) { .h2-earn { display: grid; grid-template-columns: 1fr 1fr; column-gap: 22px; } .h2-earn > .row, .h2-earn > .progress { grid-column: 1 / -1; } }
.h2-credits { justify-content: center; }
@media (max-width: 760px) { .h2-side { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .h2-cats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -14px; padding-right: 14px; } .h2-cats::-webkit-scrollbar { display: none; } .h2-cats .chip { flex: none; } }
/* Entrar com Google */
.gbtn { display: flex; justify-content: center; min-height: 44px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12.5px; margin: 2px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* =========== Página de entrar / registar em duas metades =========== */
.auth2 { min-height: 100vh; width: 100%; display: grid; grid-template-columns: 1.15fr 1fr; }
.auth-art { position: relative; overflow: hidden; padding: 34px 40px; display: flex; flex-direction: column; gap: 26px; color: #fff;
  background: radial-gradient(1200px 600px at 10% 0%, #4f46e5 0%, transparent 60%), radial-gradient(900px 500px at 100% 100%, #0891b2 0%, transparent 60%), #0b1020; }
.auth-art .brand { justify-content: flex-start; color: #fff; }
.auth-art .brand span { color: #fff; }
.auth-mosaic { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-content: center; transform: rotate(-4deg) scale(1.06); }
.auth-mosaic > div { aspect-ratio: 9 / 14; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); background: #111; }
.auth-mosaic > div:nth-child(3n+2) { transform: translateY(26px); }
.auth-mosaic img, .auth-mosaic video { width: 100%; height: 100%; object-fit: cover; display: block; }
.auth-pitch h2 { font-size: 32px !important; line-height: 1.15; margin: 0 0 12px; color: #fff; }
.auth-pitch h2 em { font-style: normal; background: linear-gradient(90deg, #a5b4fc, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-pitch ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; color: rgba(255, 255, 255, .85); font-size: 15px; }
.auth-side { display: grid; place-items: center; padding: 30px; }
.auth-side .card { width: 100%; max-width: 420px; padding: 34px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 20px 50px rgba(15, 23, 42, .1); }
.auth-side .brand { justify-content: center; margin-bottom: 4px; }
.auth-side h1 { font-size: 26px; text-align: center; margin: 0; }
.auth-side p { text-align: center; margin: 0; }
@media (min-width: 1001px) { .auth-side .brand { display: none; } }
@media (max-width: 1000px) {
  .auth2 { grid-template-columns: 1fr; }
  .auth-art { padding: 18px 16px 0; gap: 14px; max-height: 300px; }
  .auth-art .brand, .auth-pitch { display: none; }
  .auth-mosaic { grid-template-columns: repeat(5, 1fr); transform: rotate(-4deg) scale(1.12); }
  .auth-mosaic > div:nth-child(n+6) { display: none; }
  .auth-side { margin-top: -40px; padding: 0 14px 30px; position: relative; z-index: 2; align-items: start; }
}
.auth2 { margin: -34px -42px -80px; min-height: 100vh; }
.auth-art { height: 100vh; position: sticky; top: 0; }
.auth-art .brand span, .auth-art .brand b { color: #fff !important; }
.auth-mosaic { flex: 1; min-height: 0; overflow: hidden; grid-template-rows: repeat(3, minmax(0, 1fr)); transform: rotate(-4deg) scale(1.02); margin: 0 -10px; }
.auth-mosaic > div { aspect-ratio: auto; height: 100%; }
.auth-pitch { position: relative; z-index: 2; padding-top: 8px; }
@media (max-width: 1000px) {
  .auth2 { margin: -18px -14px -110px; }
  .auth-art { height: 260px; position: relative; }
  .auth-mosaic { grid-template-rows: minmax(0, 1fr); grid-template-columns: repeat(5, 1fr); }
  .auth-mosaic > div:nth-child(n+6) { display: none; }
}
.auth-art .auth-pitch h2 { color: #fff !important; text-shadow: 0 2px 18px rgba(0, 0, 0, .5); }
.auth-art .auth-pitch li { color: rgba(255, 255, 255, .88) !important; }

/* =========== Tema escuro v2: minimalista, quase preto, contornos finos (as cores do NeonReel) =========== */
html[data-theme="dark"] {
  --bg: #09090b; --bg2: #0c0c0f; --card: #111114; --card2: #18181c; --line: #26262c;
  --text: #fafafa; --muted: #a1a1aa; --dim: #71717a; --accent: #8b5cf6; --accent2: #06b6d4;
  --radius: 14px; --display: "Manrope", "Inter", system-ui, sans-serif; --body: "Inter", system-ui, -apple-system, sans-serif;
}
html[data-theme="dark"] body { background: var(--bg); font-family: var(--body); color: var(--text); }
html[data-theme="dark"] h1, html[data-theme="dark"] h2, html[data-theme="dark"] h3 { font-family: var(--display); letter-spacing: -.02em; }
html[data-theme="dark"] .side { background: var(--bg2); backdrop-filter: none; border-right: 1px solid var(--line); }
html[data-theme="dark"] .side nav a { color: var(--muted); font-weight: 500; }
html[data-theme="dark"] .side nav a:hover { background: var(--card2); color: var(--text); }
html[data-theme="dark"] .side nav a.on { background: var(--card2); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
html[data-theme="dark"] .brand span { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; }
html[data-theme="dark"] .card { background: var(--card); border: 1px solid var(--line); box-shadow: none; }
html[data-theme="dark"] .btn { border-radius: 10px; font-family: var(--body); font-weight: 600; }
html[data-theme="dark"] .btn.primary { background: linear-gradient(135deg, #7c3aed, #6366f1 55%, #06b6d4); color: #fff; box-shadow: 0 6px 22px -8px rgba(124, 58, 237, .7); }
html[data-theme="dark"] .btn.primary:hover { filter: brightness(1.08); }
html[data-theme="dark"] .input { background: var(--bg2); border-color: var(--line); color: var(--text); }
html[data-theme="dark"] .input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139, 92, 246, .2); }
html[data-theme="dark"] .chip { background: transparent; border: 1px solid var(--line); color: var(--muted); }
html[data-theme="dark"] .chip.on { background: rgba(139, 92, 246, .14); border-color: var(--accent); color: var(--text); }
html[data-theme="dark"] .progress { background: var(--card2); }
html[data-theme="dark"] .progress > div { background: linear-gradient(90deg, #7c3aed, #06b6d4); }
html[data-theme="dark"] .fcard { background: var(--card); border-color: var(--line); }
html[data-theme="dark"] .fcard:hover { border-color: rgba(139, 92, 246, .6); box-shadow: 0 16px 34px rgba(0, 0, 0, .55); }
html[data-theme="dark"] .ftags span, html[data-theme="dark"] .h2-short span, html[data-theme="dark"] .h2-task .ic { background: var(--card2); border-color: var(--line); }
html[data-theme="dark"] .h2-up { background: linear-gradient(120deg, rgba(124, 58, 237, .16), rgba(6, 182, 212, .1)); border-color: rgba(139, 92, 246, .35); }
html[data-theme="dark"] .prompt-bar { background: var(--card); border-color: var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
html[data-theme="dark"] .home-title em, html[data-theme="dark"] .auth-pitch h2 em { background: linear-gradient(90deg, #a78bfa, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-theme="dark"] .mnav { background: var(--bg2); border-top-color: var(--line); box-shadow: none; }
html[data-theme="dark"] .mnav a.on { color: #a78bfa; }
html[data-theme="dark"] .mnav a.create i { background: linear-gradient(135deg, #7c3aed, #06b6d4); }
html[data-theme="dark"] .msheet .in { background: var(--card); }
html[data-theme="dark"] .auth-side .card { box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
html[data-theme="dark"] .note { background: var(--card2); border-color: var(--line); }
html[data-theme="dark"] .toast { background: var(--card2); border: 1px solid var(--line); color: var(--text); }
html[data-theme="dark"] .badge.ai { background: linear-gradient(135deg, #7c3aed, #06b6d4); color: #fff; }
html[data-theme="dark"] .fmt-ic { background: rgba(139, 92, 246, .14); color: #c4b5fd; }
html[data-theme="dark"] .plan.cur { border-color: rgba(139, 92, 246, .6); box-shadow: 0 0 0 1px rgba(139, 92, 246, .35); }
html[data-theme="dark"] a { color: #c4b5fd; }
html[data-theme="dark"] .fcard, html[data-theme="dark"] .card.mini, html[data-theme="dark"] .h2-short .card, html[data-theme="dark"] .lp-feat, html[data-theme="dark"] .h2-up, html[data-theme="dark"] .brand, html[data-theme="dark"] .mnav a, html[data-theme="dark"] .btn { color: inherit; }
html[data-theme="dark"] .mnav a { color: var(--muted); }
html[data-theme="dark"] .btn.primary { color: #fff; }
html[data-theme="dark"] .side nav a { color: var(--muted); } html[data-theme="dark"] .side nav a.on, html[data-theme="dark"] .side nav a:hover { color: var(--text); }

/* =========== Painel de administração v2 =========== */
.adm-hero { position: relative; overflow: hidden; display: flex; align-items: center; gap: 18px; padding: 26px 28px; margin-bottom: 18px; border-radius: 20px; color: #fff;
  background: radial-gradient(600px 220px at 0% 0%, rgba(124, 58, 237, .9), transparent 70%), radial-gradient(600px 260px at 100% 100%, rgba(6, 182, 212, .8), transparent 70%), #0f1020; border: 1px solid rgba(139, 92, 246, .35); }
.adm-hero h1 { margin: 0 0 4px; font-size: 28px; color: #fff !important; }
.adm-hero p { margin: 0; color: rgba(255, 255, 255, .78); }
.adm-hero-ic { width: 58px; height: 58px; flex: none; border-radius: 16px; display: grid; place-items: center; font-size: 28px; background: rgba(255, 255, 255, .12); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .18); }
.adm-badge { margin-left: auto; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); white-space: nowrap; }
.adm-tabs { display: flex; gap: 6px; padding: 6px; margin-bottom: 22px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; position: sticky; top: 8px; z-index: 6; }
.adm-tabs::-webkit-scrollbar { display: none; }
.adm-tabs a { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; text-decoration: none; color: var(--muted) !important; font-weight: 600; font-size: 14px; white-space: nowrap; transition: background .15s, color .15s; }
.adm-tabs a i { font-style: normal; font-size: 16px; }
.adm-tabs a:hover { background: var(--card2); color: var(--text) !important; }
.adm-tabs a.on { background: linear-gradient(135deg, #7c3aed, #6366f1 60%, #06b6d4); color: #fff !important; box-shadow: 0 6px 18px -6px rgba(124, 58, 237, .7); }
/* cartões de métricas */
.kpis { gap: 14px !important; }
.card.kpi { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px; overflow: hidden; transition: transform .2s, border-color .2s; }
.card.kpi:hover { transform: translateY(-2px); border-color: rgba(139, 92, 246, .5); }
.card.kpi i { font-style: normal; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 19px; background: var(--card2); margin-bottom: 6px; }
.card.kpi b { font: 800 30px/1.1 var(--display) !important; letter-spacing: -.02em; color: var(--text) !important; -webkit-text-fill-color: currentColor !important; background: none !important; }
.card.kpi span { font-size: 13px; color: var(--muted); }
.card.kpi.big { grid-column: span 1; }
.card.kpi.big b { font-size: 36px !important; }
.card.kpi.violet { background: linear-gradient(150deg, rgba(124, 58, 237, .22), transparent 70%), var(--card); border-color: rgba(124, 58, 237, .35); }
.card.kpi.orange { background: linear-gradient(150deg, rgba(249, 115, 22, .2), transparent 70%), var(--card); border-color: rgba(249, 115, 22, .3); }
.card.kpi.green { background: linear-gradient(150deg, rgba(34, 197, 94, .2), transparent 70%), var(--card); border-color: rgba(34, 197, 94, .3); }
.card.kpi.cyan { background: linear-gradient(150deg, rgba(6, 182, 212, .2), transparent 70%), var(--card); border-color: rgba(6, 182, 212, .3); }
.card.kpi.violet i { background: rgba(124, 58, 237, .25); } .card.kpi.orange i { background: rgba(249, 115, 22, .22); } .card.kpi.green i { background: rgba(34, 197, 94, .22); } .card.kpi.cyan i { background: rgba(6, 182, 212, .22); }
/* tabelas e utilizadores */
#adm .card { border-radius: 16px; }
#adm .table th { background: var(--card2); }
#adm .table tr:hover td { background: rgba(139, 92, 246, .06); }
.adm-user { display: flex; align-items: center; gap: 10px; }
.adm-user .av { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, #7c3aed, #06b6d4); }
#adm h2 { font-size: 18px !important; }
@media (max-width: 760px) { .adm-hero { padding: 18px; } .adm-hero h1 { font-size: 22px; } .adm-badge { display: none; } .adm-tabs a span { display: none; } .adm-tabs a { padding: 10px 12px; } .adm-tabs a.on span { display: inline; } }
@media (min-width: 1001px) { .adm-tabs { flex-wrap: wrap; position: static; } }

/* =========== Página pública mais chamativa =========== */
.lp { position: relative; isolation: isolate; }
.lp-glow { position: absolute; inset: -80px 0 auto 0; height: 760px; z-index: -1; overflow: hidden; pointer-events: none; }
.lp-glow span { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(90px); opacity: .55; animation: lpFloat 14s ease-in-out infinite alternate; }
.lp-glow span:nth-child(1) { background: #7c3aed; left: -120px; top: -60px; }
.lp-glow span:nth-child(2) { background: #06b6d4; right: -120px; top: 80px; animation-delay: -5s; }
.lp-glow span:nth-child(3) { background: #ec4899; left: 40%; top: 260px; width: 380px; height: 380px; opacity: .35; animation-delay: -9s; }
html[data-theme="light"] .lp-glow span { opacity: .22; }
@keyframes lpFloat { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(60px, 40px) scale(1.15); } }
.lp-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 99px; font-size: 13px; font-weight: 600; background: rgba(139, 92, 246, .14); border: 1px solid rgba(139, 92, 246, .4); color: var(--text); }
.lp-pill b { padding: 3px 9px; border-radius: 99px; font-size: 11px; letter-spacing: .06em; color: #fff; background: linear-gradient(135deg, #7c3aed, #06b6d4); }
.lp-hero .home-title { font-size: 58px !important; letter-spacing: -.03em; }
.lp-hero .home-title em { background: linear-gradient(90deg, #a78bfa, #22d3ee, #f472b6, #a78bfa); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: lpShine 6s linear infinite; font-style: normal; }
@keyframes lpShine { to { background-position: 300% 0; } }
.lp-hero .btn.primary.big { padding: 16px 28px; font-size: 17px; box-shadow: 0 10px 34px -8px rgba(124, 58, 237, .8); animation: lpPulse 2.8s ease-in-out infinite; }
@keyframes lpPulse { 50% { box-shadow: 0 10px 44px -4px rgba(6, 182, 212, .75); } }
.phone { box-shadow: 0 30px 70px -18px rgba(124, 58, 237, .55), 0 0 0 1px rgba(255, 255, 255, .06); }
.phone.p0 { animation: lpBob 6s ease-in-out infinite; }
.phone.p1 { animation: lpBob 6s ease-in-out -2s infinite; }
.phone.p2 { animation: lpBob 6s ease-in-out -4s infinite; }
@keyframes lpBob { 50% { translate: 0 -14px; } }
.lp-float { position: absolute; z-index: 3; padding: 8px 14px; border-radius: 12px; font-size: 13px; font-weight: 700; white-space: nowrap; color: #fff; background: rgba(17, 17, 20, .72); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); animation: lpBob 5s ease-in-out infinite; }
.lp-float.f1 { left: -2%; top: 300px; } .lp-float.f2 { right: -2%; top: 40px; animation-delay: -1.5s; } .lp-float.f3 { right: 4%; bottom: 40px; animation-delay: -3s; }
.lp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 10px 0 8px; padding: 22px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.lp-stats > div { text-align: center; display: flex; flex-direction: column; gap: 2px; }
.lp-stats b { font: 800 34px/1.1 var(--display); letter-spacing: -.02em; background: linear-gradient(90deg, #a78bfa, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-stats span { color: var(--muted); font-size: 14px; }
.lp-marquee { overflow: hidden; margin: 26px -40px 10px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.lp-track { display: flex; gap: 14px; width: max-content; animation: lpMarquee 60s linear infinite; }
.lp-marquee:hover .lp-track { animation-play-state: paused; }
.lp-track img { width: 150px; aspect-ratio: 9 / 14; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 12px 26px rgba(0, 0, 0, .3); }
@keyframes lpMarquee { to { transform: translateX(-50%); } }
.lp-feats .card.lp-feat { position: relative; }
.lp-feats .card.lp-feat::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, rgba(124, 58, 237, .7), rgba(6, 182, 212, .5)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .25s; pointer-events: none; }
.lp-feats .card.lp-feat:hover::before { opacity: 1; }
.lp-cta { position: relative; overflow: hidden; background: radial-gradient(500px 200px at 0% 0%, rgba(124, 58, 237, .45), transparent 70%), radial-gradient(500px 220px at 100% 100%, rgba(6, 182, 212, .4), transparent 70%), var(--card) !important; border-color: rgba(139, 92, 246, .4) !important; }
.lp-cta h2 { font-size: 34px !important; }
@media (prefers-reduced-motion: reduce) { .lp-glow span, .lp-track, .phone, .lp-float, .lp-hero .home-title em, .lp-hero .btn.primary.big { animation: none !important; } }
@media (max-width: 1000px) { .lp-hero .home-title { font-size: 40px !important; } .lp-float { display: none; } .lp-stats { grid-template-columns: repeat(2, 1fr); } .lp-marquee { margin: 20px -14px 6px; } .lp-track img { width: 110px; } }
.lp-glow { left: 50%; right: auto; width: 100vw; transform: translateX(-50%); height: 900px; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
html, body { overflow-x: clip; }
@media (max-width: 1000px) { .lp { padding-left: 18px !important; padding-right: 18px !important; box-sizing: border-box; } }
/* selos de diretórios (só na página pública; escondidos dentro da app) */
.featured-on { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; padding: 18px 16px 30px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.featured-on img { height: 44px; width: auto; opacity: .85; transition: opacity .2s; }
.featured-on img:hover { opacity: 1; }
body:has(#side:not([hidden])) .featured-on, body:has(.auth2) .featured-on { display: none; }

/* =========== Imagem de fundo do site (mosaico desfocado dos vídeos do NeonReel) =========== */
body::before { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: linear-gradient(180deg, rgba(9, 9, 11, .55) 0%, rgba(9, 9, 11, .72) 45%, rgba(9, 9, 11, .86) 100%), url(/bg/mosaic.jpg) center / cover no-repeat; }
html[data-theme="light"] body::before { background: linear-gradient(180deg, rgba(246, 247, 251, .62) 0%, rgba(246, 247, 251, .80) 50%, rgba(246, 247, 251, .90) 100%), url(/bg/mosaic.jpg) center / cover no-repeat; }
html[data-theme="dark"] body, html[data-theme="light"] body { background-color: transparent !important; }
html[data-theme="dark"], html[data-theme="light"] { background: var(--bg); }
/* no painel da app o fundo fica mais discreto, para não distrair */
body:has(#side:not([hidden]))::before { opacity: .8; }
body:has(#side[hidden]) { flex-wrap: wrap; }
body:has(#side[hidden]) > main { flex: 1 1 100%; }
.featured-on { flex: 0 0 100%; width: 100%; }

/* =========== Ligações às landing pages de anúncios (página inicial) =========== */
.lp-ads-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.lp-ad { position: relative; display: block; aspect-ratio: 9 / 12; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); text-decoration: none; color: #fff; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); transition: transform .25s, box-shadow .25s; }
.lp-ad img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.lp-ad > div { position: absolute; inset: auto 0 0 0; padding: 60px 18px 18px; display: flex; flex-direction: column; gap: 6px; background: linear-gradient(transparent, rgba(0, 0, 0, .88) 45%); }
.lp-ad b { font-size: 20px; } .lp-ad small { color: rgba(255, 255, 255, .8); font-size: 14px; }
.lp-ad span { margin-top: 6px; align-self: flex-start; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; background: linear-gradient(135deg, #7c3aed, #06b6d4); }
.lp-ad:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(124, 58, 237, .35); } .lp-ad:hover img { transform: scale(1.05); }
@media (max-width: 800px) { .lp-ads-grid { grid-template-columns: 1fr; gap: 12px; } .lp-ad { aspect-ratio: 16 / 10; } .lp-ad img { object-position: center 30%; } .lp-ad > div { padding: 40px 14px 14px; } .lp-ad b { font-size: 18px; } }
body:has(#side[hidden]) > main { max-width: 100%; box-sizing: border-box; }

/* ligações para as páginas de ferramentas (SEO), no rodapé público */
.featured-on .seo-links { flex: 0 0 100%; text-align: center; text-transform: none; letter-spacing: 0; font-size: 13px; line-height: 2; }
.featured-on .seo-links a { color: var(--muted); text-decoration: none; }
.featured-on .seo-links a:hover { color: var(--text); }

/* secções do menu lateral (organização do dashboard, sem remover funcionalidades) */
.side nav .nav-sec { display: block; margin: 12px 12px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); opacity: .75; }
.side nav .nav-sec:first-of-type { margin-top: 6px; }

/* secção "Para quem é" na página inicial */
.lp-who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.lp-who-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; transition: transform .2s, border-color .2s; }
.lp-who-card:hover { transform: translateY(-3px); border-color: rgba(139, 92, 246, .5); }
@media (max-width: 800px) { .lp-who-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .lp-who-grid { grid-template-columns: 1fr; } }
