/* ===== Banana Mask — Dashboard ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
:root {
  --bg: #0a0a0a;
  --panel: #141414;
  --panel-2: #1b1b1b;
  --line: #262626;
  --txt: #f4f4f4;
  --muted: #9a9a9a;     /* cinza PADRÃO — todo texto secundário usa este */
  --muted-2: #6a6a6a;   /* cinza fraco — legendas, ícones de apoio */
  --white: #ffffff;
  --radius: 16px;
  /* ----- escala tipográfica (hierarquia única do painel) ----- */
  --h1: 30px;   /* título de página */
  --h2: 21px;   /* título de seção grande (hero) */
  --h3: 17px;   /* título de card/painel */
  --h4: 15px;   /* sub-título / rótulo de bloco */
  --body: 14.5px; /* corpo padrão */
  --small: 13px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--txt);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }
sup { font-size: .55em; vertical-align: super; }
svg { display: block; }

/* ---------- LOGIN ---------- */
#login, #setpass { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
#sp-title { font-size: 18px; font-weight: 600; color: var(--txt); margin: 0 0 6px; }
#sp-sub { color: var(--muted); font-size: 14px; margin: 0 0 8px; line-height: 1.45; }
.sp-email { color: var(--txt); font-size: 13px; margin: 0 0 18px; opacity: .8; word-break: break-all; }
.login-box { width: 100%; max-width: 360px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; text-align: center; }
.login-logo { width: auto; height: 80px; max-width: 200px; object-fit: contain; margin: 0 auto 18px; display: block; }
#login-sub { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.field { width: 100%; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; color: var(--txt); padding: 12px 14px; font-size: 14px; margin-bottom: 12px; outline: none; }
.field:focus { border-color: #3a3a3a; }
#login-turnstile { display: flex; justify-content: center; margin: 6px 0 14px; min-height: 0; }
.btn { border: 0; border-radius: 12px; padding: 14px 20px; font-size: 14.5px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .08s ease, filter .15s ease; }
.btn:active { transform: translateY(1px); }
.btn.primary:hover { filter: brightness(.94); }
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: var(--white); color: #000; width: 100%; }
.btn:not(.primary) { background: var(--panel-2); color: var(--txt); border: 1px solid var(--line); }
.btn[disabled] { opacity: .6; cursor: default; }
.link-btn { background: none; border: 0; color: var(--muted); font-size: 13px; cursor: pointer; margin-top: 12px; display: inline-flex; align-items: center; gap: 4px; }
.link-btn:hover { color: var(--txt); }
.link-btn .spark { width: 14px; height: 14px; }
.msg { font-size: 13px; min-height: 18px; margin-top: 10px; color: var(--muted); }
.msg.err { color: #ff6b6b; }
.msg.ok { color: #57d38c; }

/* ---------- APP SHELL ---------- */
#app { display: flex; min-height: 100vh; }

/* ---------- SIDEBAR ---------- */
.sidebar { width: 264px; flex-shrink: 0; background: var(--bg); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 26px 18px 18px; gap: 6px; position: sticky; top: 0; height: 100vh; }
.brand { font-size: 19px; font-weight: 800; letter-spacing: -.3px; color: var(--white); padding: 0 8px 18px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav button { display: flex; align-items: center; gap: 12px; width: 100%; background: none; border: 0; color: var(--muted); font-size: 14.5px; font-weight: 500; padding: 10px 10px; border-radius: 10px; cursor: pointer; text-align: left; transition: color .12s, background .12s; }
.nav button svg { width: 19px; height: 19px; flex-shrink: 0; }
.nav button:hover { color: var(--txt); background: var(--panel); }
.nav button.active { color: var(--white); background: var(--panel); }
.nav-sep { height: 1px; background: var(--line); margin: 16px 10px; }
.nav-social button svg { width: 18px; height: 18px; }

.side-foot { margin-top: auto; padding-top: 16px; }
.plan-foot { padding: 4px 10px 14px; }
.plan-name { font-size: 13.5px; font-weight: 600; color: var(--txt); }
.plan-credits { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.plan-bar { height: 4px; background: var(--panel-2); border-radius: 4px; margin-top: 10px; overflow: hidden; }
.plan-bar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #f0c040, #e0a020); border-radius: 4px; }
.userbox { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; border-top: 1px solid var(--line); padding: 14px 8px 4px; cursor: pointer; text-align: left; }
.userbox .avatar { width: 34px; height: 34px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line); flex-shrink: 0; }
.userbox .uinfo { display: flex; flex-direction: column; line-height: 1.25; overflow: hidden; }
.uname { font-size: 13.5px; color: var(--txt); }
.uemail { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- MAIN ---------- */
.main { flex: 1; min-width: 0; padding: 36px 40px; }
.title { font-size: var(--h1); font-weight: 700; letter-spacing: -.4px; margin: 0 0 6px; color: var(--white); }
.title sup { font-size: .4em; }
.subtitle { color: var(--muted); font-size: var(--body); margin: 0 0 28px; }
.crumb { color: var(--muted-2); font-size: var(--small); margin-bottom: 10px; }
.crumb b { color: var(--muted); font-weight: 600; }

/* ---------- TOOL (upload) ---------- */
/* coluna esquerda (controles) com largura confortável; preview cresce e PREENCHE o resto
   da tela. Bloco alinhado à ESQUERDA (sem margin auto) — só o max-width segura o exagero
   em monitores ultrawide. Centralização vertical fica por conta do .tool-center. */
.tool { display: grid; grid-template-columns: minmax(360px, 430px) minmax(0, 1fr); gap: 40px; align-items: start; width: 100%; max-width: 1480px; }
@media (max-width: 1100px) { .tool { grid-template-columns: 1fr; max-width: 540px; gap: 40px; } }
/* título da ferramenta 2px menor que o padrão do painel — ajuda tudo a caber sem scroll */
.tool .title { font-size: calc(var(--h1) - 2px); }
.tool .subtitle { margin-bottom: 20px; }

.dropzone { border: 1.5px dashed #303030; border-radius: var(--radius); min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; text-align: center; padding: 24px; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.drag { border-color: #4a4a4a; background: var(--panel); }
.dropzone.has-file { border-style: solid; min-height: 0; }
.dropzone .up-ico { width: 50px; height: 50px; color: var(--txt); margin-bottom: 10px; }
.dropzone .dz-main { font-size: 16px; color: var(--txt); }
.dropzone .dz-sub { font-size: 13.5px; color: var(--muted); }
.dz-file { display: flex; align-items: center; gap: 12px; width: 100%; }
.dz-thumb { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; background: var(--panel-2); flex-shrink: 0; }
.dz-fname { font-size: 14px; color: var(--txt); word-break: break-all; text-align: left; }
.dz-fmeta { font-size: 12px; color: var(--muted); }

.block-label { display: flex; align-items: center; gap: 6px; font-size: var(--h4); font-weight: 600; color: var(--txt); margin: 20px 0 10px; }
.block-label .i { width: 15px; height: 15px; color: var(--muted-2); }

/* ---------- tooltip do "i" de informação ---------- */
.info-tip { position: relative; display: inline-flex; align-items: center; cursor: help; outline: none; }
.info-tip .i { transition: color .12s; }
.info-tip:hover .i, .info-tip:focus .i { color: var(--txt); }
.info-tip::after {
  content: attr(data-tip);
  position: absolute; left: 0; bottom: calc(100% + 9px);
  background: #000; color: var(--txt); border: 1px solid var(--line);
  padding: 9px 11px; border-radius: 9px; font-size: 12px; font-weight: 500; line-height: 1.45;
  width: max-content; max-width: 250px; text-align: left; white-space: normal;
  opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .14s ease, transform .14s ease; z-index: 30;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.info-tip::before {
  content: ""; position: absolute; left: 8px; bottom: calc(100% + 3px);
  border: 6px solid transparent; border-top-color: #000;
  opacity: 0; transition: opacity .14s ease; z-index: 31;
}
.info-tip:hover::after, .info-tip:focus::after { opacity: 1; transform: translateY(0); }
.info-tip:hover::before, .info-tip:focus::before { opacity: 1; }

.modes { display: flex; gap: 8px; }
.mode-pill { flex: 1; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); border-radius: 12px; padding: 13px 8px; font-size: 14.5px; font-weight: 600; cursor: pointer; transition: .12s; }
.mode-pill:hover { color: var(--txt); }
.mode-pill.active { background: var(--white); color: #000; border-color: var(--white); }
.mode-desc { font-size: 13.5px; line-height: 1.5; color: var(--muted); margin-top: 10px; min-height: 44px; }

/* botão 4K on/off — branco quando ligado (mesma linguagem do mode-pill ativo) */
.fourk-btn { background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); border-radius: 10px; padding: 8px 16px; font-size: 12.5px; font-weight: 700; letter-spacing: .4px; cursor: pointer; transition: .12s; }
.fourk-btn:hover { color: var(--txt); border-color: #3a3a3a; }
.fourk-btn.on { background: var(--white); color: #000; border-color: var(--white); }

.range-row { display: flex; align-items: center; justify-content: space-between; }
.range-val { font-size: var(--body); font-weight: 600; color: var(--txt); }
/* trilho: a parte preenchida (slidada) fica BRANCA, o resto cinza.
   webkit usa o gradient em background (pintado via JS em paintRange); firefox usa ::-moz-range-progress. */
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 5px; border-radius: 4px; background: var(--panel-2); outline: none; margin: 12px 0 0; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 5px; border-radius: 4px; }
input[type=range]::-moz-range-track { height: 5px; border-radius: 4px; background: var(--panel-2); }
input[type=range]::-moz-range-progress { height: 5px; border-radius: 4px; background: var(--white); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -5.5px; border-radius: 50%; background: var(--white); cursor: pointer; box-shadow: 0 0 0 4px rgba(255,255,255,.08); }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: var(--white); cursor: pointer; }

.process-btn { width: 100%; margin-top: 20px; padding: 16px; font-size: 16px; }
/* o #process-msg só reserva espaço quando TEM mensagem (some o "campo invisível" acima da nota) */
#process-msg:empty { min-height: 0; margin: 0; }
.lock-note { display: flex; align-items: center; gap: 8px; font-size: var(--small); color: var(--muted); margin-top: 12px; }
.lock-note svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--muted); }

/* ---------- PREVIEW (Antes/Depois) ---------- */
.preview { display: flex; flex-direction: column; gap: 16px; }
.preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pv-col { display: flex; flex-direction: column; gap: 8px; }
.pv-label { font-size: 13px; color: var(--muted); }
/* a proporção dos cards segue a do arquivo enviado (--pv-ar, setado via JS) — vertical OU horizontal.
   object-fit: contain = mostra a imagem/vídeo INTEIRO, sem cortar. */
/* max-height pela viewport: mesmo com imagem vertical, o card nunca passa da tela —
   garante que a barra de download fique sempre visível, sem precisar scrollar. */
/* padrão 9:16 (a maioria dos criativos é vertical) — quando um arquivo entra, a proporção
   real dele substitui via --pv-ar. Cards grandes: só o teto da viewport segura a altura. */
.pv-card { aspect-ratio: var(--pv-ar, 9 / 16); max-height: calc(100vh - 240px); border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pv-card img, .pv-card video { width: 100%; height: 100%; object-fit: contain; }
.pv-empty { width: 64px; height: 64px; color: #3a3a3a; }
.pv-card.processing { position: relative; }
.pv-card.processing::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(255,255,255,.03) 12px, rgba(255,255,255,.03) 24px); animation: shimmer 1s linear infinite; }
@keyframes shimmer { to { background-position: 34px 0; } }

/* ---------- loader de processamento (por modo) ---------- */
.loader { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 24px; text-align: center; }
.loader .spinner { width: 38px; height: 38px; border-radius: 50%; border: 3px solid rgba(255,255,255,.12); border-top-color: var(--white); animation: bmSpin .8s linear infinite; }
@keyframes bmSpin { to { transform: rotate(360deg); } }
.loader .load-pct { font-size: 22px; font-weight: 800; color: var(--txt); letter-spacing: -.4px; }
.loader .load-eta { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: var(--small); color: var(--muted); line-height: 1.4; max-width: 250px; min-height: 1.4em; transition: opacity .24s ease, transform .24s ease; }
.loader .load-eta.fading { opacity: 0; transform: translateY(5px); }
/* ✓ que aparece ao lado da mensagem logo antes dela sumir (cinza, discreto) */
.loader .eta-check { display: inline-flex; flex: 0 0 auto; width: 14px; height: 14px; color: var(--muted); opacity: 0; transform: scale(.3); transition: opacity .2s ease, transform .22s cubic-bezier(.2,1.5,.4,1); }
.loader .eta-check svg { width: 14px; height: 14px; }
.loader .load-eta.checked .eta-check { opacity: 1; transform: scale(1); }
.loader .load-bar { width: 80%; max-width: 220px; height: 5px; border-radius: 4px; background: var(--panel-2); overflow: hidden; }
.loader .load-bar span { display: block; height: 100%; width: 0; background: var(--white); border-radius: 4px; transition: width .3s ease; }
.loader .load-note { font-size: 11.5px; color: var(--muted-2); max-width: 230px; line-height: 1.45; margin-top: 2px; }
.loader .load-cancel { margin-top: 6px; background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 9px; padding: 7px 18px; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: color .12s, border-color .12s; }
.loader .load-cancel:hover { color: var(--txt); border-color: #3a3a3a; }

/* fica DENTRO da coluna "Depois", abaixo da imagem processada — compacta, com quebra
   de linha quando a coluna é estreita */
.result-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 15px; margin-top: 4px; }
.result-bar .rb-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.result-bar .rb-check { width: 20px; height: 20px; color: #57d38c; flex-shrink: 0; }
.result-bar .rb-title { font-size: 13.5px; font-weight: 600; }
.result-bar .rb-sub { font-size: 12px; color: var(--muted); }
.result-bar .btn { padding: 10px 20px; }

/* ---------- CONFIG / PAGES ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; max-width: 620px; }
.panel h3 { margin: 0 0 4px; font-size: var(--h3); font-weight: 700; color: var(--txt); }
.panel .sub { color: var(--muted); font-size: var(--small); margin: 0 0 18px; }
.panel .hint { color: var(--muted); font-size: var(--body); }
.tabs { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.tabs button { display: inline-flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); border-radius: 10px; padding: 9px 14px; font-size: 13.5px; cursor: pointer; }
.tabs button svg { width: 16px; height: 16px; }
.tabs button.active { color: var(--txt); border-color: #3a3a3a; }
.row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.row:last-child { border-bottom: 0; }
.row .k { color: var(--muted); }
.badge { font-size: 12px; padding: 3px 10px; border-radius: 20px; background: var(--panel-2); color: var(--muted); }
.badge.active { color: #57d38c; }
.badge.past_due { color: #ffb454; }
.badge.canceled, .badge.inactive { color: #ff6b6b; }
.stack { display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.danger-zone { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.danger-zone h4 { margin: 0 0 4px; font-size: var(--h4); font-weight: 600; color: var(--txt); }
.danger-zone p { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.btn.danger { background: #2a1414; color: #ff6b6b; border: 1px solid #4a1f1f; }
.linked-note { display: inline-flex; align-items: center; gap: 6px; color: #57d38c; font-size: 13px; margin-top: 14px; }
.linked-note svg { width: 16px; height: 16px; }

/* hero (sem plano / falta vincular) */
.hero { max-width: 560px; }
.hero .logo { width: 70px; height: 70px; object-fit: contain; border-radius: 14px; margin-bottom: 18px; }
.hero h2 { margin: 0 0 8px; font-size: var(--h2); font-weight: 700; color: var(--txt); }
.hero p { color: var(--muted); font-size: var(--body); margin: 0 0 20px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 13px; color: var(--muted); }
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #ff6b6b; }
.status-pill .dot.on { background: #57d38c; }

/* ---------- fade-in nas trocas de seção ---------- */
@keyframes bmFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.fadein { animation: bmFade .28s ease both; }

/* ---------- tool centralizado no eixo Y ---------- */
.tool-center { min-height: calc(100vh - 80px); display: flex; align-items: center; }
.tool-center .tool { width: 100%; }
@media (max-width: 1100px) { .tool-center { min-height: 0; display: block; } }

/* ---------- telas BAIXAS (MacBook ~800px de altura útil): aperta o eixo Y pra
   ferramenta caber inteira sem scroll. No monitor 27" nada disso se aplica. ---------- */
@media (max-height: 880px) and (min-width: 1101px) {
  .main { padding: 22px 40px; }
  .tool-center { min-height: calc(100vh - 44px); }
  .tool .title { font-size: calc(var(--h1) - 4px); margin-bottom: 4px; }
  .tool .subtitle { margin-bottom: 14px; }
  .dropzone { min-height: 170px; padding: 16px; }
  .dropzone .up-ico { width: 40px; height: 40px; margin-bottom: 6px; }
  .dropzone .dz-main { font-size: 15px; }
  .block-label { margin: 14px 0 8px; }
  .mode-pill { padding: 11px 8px; }
  .mode-desc { min-height: 0; font-size: 13px; }
  .process-btn { margin-top: 14px; padding: 14px; }
  .lock-note { margin-top: 10px; }
  .pv-card { max-height: calc(100vh - 200px); }
}

/* ---------- HOME (Início): dois painéis no mesmo estilo das outras abas ---------- */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; max-width: 900px; }
@media (max-width: 820px) { .home-grid { grid-template-columns: 1fr; } }
.home-grid .panel { max-width: none; margin: 0; }
/* CTA assinar/renovar: largura do painel, NUNCA a tela toda */
.cta-assinar { width: 100%; }
.stat-v { font-weight: 700; }       /* mantido p/ outros usos */
.stat-v.ok { color: #57d38c; }
.stat-v.off { color: #ff6b6b; }

/* banner de boas-vindas (apresentação separada do título "Início") */
.home-hero { display: flex; align-items: center; gap: 18px; max-width: 900px; margin: 0 0 18px; background: linear-gradient(180deg, #171717, #121212); }
.home-hero .hero-logo { width: 56px; height: 56px; object-fit: contain; flex-shrink: 0; }
.home-hero h2 { margin: 0 0 4px; font-size: var(--h2); font-weight: 700; color: var(--white); }
.home-hero p { margin: 0; font-size: var(--body); color: var(--muted); line-height: 1.5; }

/* jornada / gamificação */
.journey { max-width: 900px; margin: 0 0 18px; }
.level-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.level-name { display: inline-flex; align-items: center; gap: 9px; font-size: var(--h3); font-weight: 700; color: var(--txt); }
.level-name .lvl-ico { width: 22px; height: 22px; color: var(--white); }
.level-count { font-size: var(--small); color: var(--muted); }
.level-bar { height: 6px; border-radius: 4px; background: var(--panel-2); overflow: hidden; }
.level-bar span { display: block; height: 100%; width: 0; background: var(--white); border-radius: 4px; transition: width .5s ease; }
.level-next { font-size: var(--small); color: var(--muted); margin-top: 10px; }
.level-next b { color: var(--txt); font-weight: 600; }
.trophies { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
@media (max-width: 560px) { .trophies { grid-template-columns: repeat(2, 1fr); } }
.trophy { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 8px; text-align: center; }
.trophy .tr-ico { width: 30px; height: 30px; margin: 0 auto 8px; color: var(--muted-2); }
.trophy .tr-name { font-size: var(--small); font-weight: 600; color: var(--muted); }
.trophy .tr-req { font-size: 11.5px; color: var(--muted-2); margin-top: 2px; }
.trophy.unlocked { border-color: #3a3a3a; }
.trophy.unlocked .tr-ico { color: var(--white); }
.trophy.unlocked .tr-name { color: var(--txt); }

/* FAQ como acordeão limpo DENTRO de um .panel (sem cards aninhados) */
.faq-item { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; margin: 0; background: transparent; overflow: hidden; }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary { list-style: none; cursor: pointer; padding: 14px 0; font-size: var(--body); font-weight: 600; color: var(--txt); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron { width: 18px; height: 18px; color: var(--muted); transition: transform .2s ease; flex-shrink: 0; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-a { padding: 0 0 14px; font-size: var(--small); line-height: 1.6; color: var(--muted); }

/* ---------- MOBILE (≤720px): sidebar vira topbar compacta ---------- */
@media (max-width: 720px) {
  #app { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; padding: 14px 14px 10px; border-right: 0; border-bottom: 1px solid var(--line); gap: 0; }
  .brand { padding: 0 4px 12px; font-size: 17px; }
  /* navegação em pílulas horizontais (quebra de linha), em vez de colunas lado a lado */
  .nav { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .nav button { width: auto; padding: 8px 11px; font-size: 13px; gap: 7px; background: var(--panel); border: 1px solid transparent; }
  .nav button.active { border-color: var(--line); }
  .nav-sep { display: none; }
  .nav-social { margin-top: 6px; }
  /* plano + usuário lado a lado num rodapé único */
  .side-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
  .plan-foot { padding: 0; min-width: 0; flex: 1; }
  .plan-bar { max-width: 150px; }
  .userbox { width: auto; border-top: 0; padding: 0; flex-shrink: 0; }
  .userbox .uinfo { max-width: 150px; }
  .main { padding: 22px 16px 40px; }
  .tool { gap: 24px; }
  .pv-card { max-height: 48vh; }
  .result-bar { flex-wrap: wrap; }
  .result-bar .btn { flex: 1; }
}

/* ---------- Troca de cartão (aba Métodos de pagamento) ---------- */
.lbl { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 6px; }
.card-form { margin-top: 4px; }
.cc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* "carteira": o cartão salvo, desenhado como um cartão de verdade */
.cc-card { width: 100%; max-width: 340px; border-radius: 16px; padding: 20px 22px; background: linear-gradient(135deg, #202020 0%, #121212 60%, #0d0d0d 100%); border: 1px solid #2e2e2e; box-shadow: 0 10px 30px rgba(0,0,0,.35); margin-top: 6px; }
.cc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.cc-chip { width: 36px; height: 26px; border-radius: 6px; background: linear-gradient(135deg, #f0c040, #b8860b); opacity: .85; }
.cc-badge { font-size: 11px; font-weight: 600; color: #57d38c; background: rgba(87,211,140,.1); border: 1px solid rgba(87,211,140,.25); padding: 3px 10px; border-radius: 20px; }
.cc-num { font-size: 17px; font-weight: 600; letter-spacing: 1.5px; color: var(--txt); }
.cc-bottom { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 20px; }
.cc-brand { font-size: 14px; font-weight: 700; color: var(--white); text-transform: capitalize; letter-spacing: .3px; }
.cc-foot { font-size: 11.5px; color: var(--muted-2); }
.cc-card.empty { border-style: dashed; background: var(--panel-2); box-shadow: none; }
.cc-card.empty .cc-num { font-size: 14.5px; letter-spacing: 0; color: var(--muted); }
.cc-card.empty .cc-foot { margin-top: 8px; }
