[hidden]{ display:none !important }
:root{
  /* Identidade Bods & Co.: off-white + azul-noite + dourado (claro); azul-noite (escuro) */
  --bg:#F5F4F3; --panel:#ffffff; --ink:#031A26; --ink2:#1E3A4A; --muted:#6B7480; --line:#ECEBE8; --line2:#F2F1EF;
  --side:#011422; --side2:#06222F; --side-ink:#D5DADF; --side-muted:#7D8A94;
  --primary:#031A26; --accent:#8A6A3E; --accent-soft:#F3ECE1; --gold:#B9915B;
  --ok:#047857; --ok-soft:#ecfdf5; --warn:#b45309; --warn-soft:#fffbeb; --err:#b91c1c; --err-soft:#fef2f2;
  --radius:8px; --shadow:0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.06);
}
*{ box-sizing:border-box }
body{ margin:0; background:var(--bg); color:var(--ink); font:14px/1.5 "Manrope",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif; display:flex; min-height:100vh; -webkit-font-smoothing:antialiased; font-feature-settings:"cv11","ss01" }
a{ color:var(--accent) } .muted{ color:var(--muted) } .pad{ padding:40px }
svg{ width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; flex:none }

/* Menu lateral */
.side{ width:248px; flex:none; background:var(--side); color:var(--side-ink); display:flex; flex-direction:column; position:sticky; top:0; height:100vh }
.logo{ display:flex; align-items:center; gap:12px; padding:22px 20px 18px; border-bottom:1px solid #1f242b }
.logo .mark{ width:34px; height:34px; border-radius:8px; background:var(--accent); color:#fff; font-weight:700; font-size:13px; letter-spacing:.04em; display:flex; align-items:center; justify-content:center }
.logo b{ display:block; color:#fff; font-size:15px; font-weight:600; letter-spacing:-.01em } .logo small{ color:var(--side-muted); font-size:12px }
.side nav{ display:flex; flex-direction:column; flex:1; padding:10px 10px; overflow-y:auto }
.side nav .group{ font-size:11px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--side-muted); padding:16px 12px 6px }
.side nav a{ display:flex; align-items:center; gap:11px; color:var(--side-ink); text-decoration:none; padding:8px 12px; border-radius:6px; font-weight:500; font-size:13.5px; position:relative }
.side nav a:hover{ background:var(--side2); color:#fff }
.side nav a.on{ background:var(--side2); color:#fff } .side nav a.on::before{ content:""; position:absolute; left:-10px; top:8px; bottom:8px; width:3px; border-radius:0 3px 3px 0; background:var(--accent) }
.side nav a svg{ width:17px; height:17px; opacity:.85 }
.me{ padding:14px 14px; border-top:1px solid #1f242b; display:flex; justify-content:space-between; align-items:center; gap:8px }
.who{ display:flex; align-items:center; gap:10px; text-decoration:none; color:#fff; min-width:0 }
.who img{ width:34px; height:34px; border-radius:50%; object-fit:cover; flex:none; border:1px solid #2a2f37 }
.who span{ display:flex; flex-direction:column; min-width:0 } .who b{ font-size:13px; font-weight:600 } .who small{ color:var(--side-muted); font-size:11.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.icon-btn{ background:none; border:0; color:var(--side-muted); cursor:pointer; padding:6px; border-radius:6px } .icon-btn:hover{ color:#fff; background:var(--side2) }

main{ flex:1; padding:32px 36px; min-width:0; max-width:1400px }
@media (max-width:900px){ body{ display:block } .side{ width:auto; height:auto; position:static } .side nav{ flex-direction:row; overflow-x:auto } .side nav .group{ display:none } .side nav a{ white-space:nowrap } main{ padding:18px } }

/* Tipografia */
h1{ font-size:22px; font-weight:600; letter-spacing:-.02em; margin:0 0 22px; display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap }
h1 .sub, .count{ font-size:13px; font-weight:500; color:var(--muted); letter-spacing:0 }
h2{ font-size:15px; font-weight:600; letter-spacing:-.01em; margin:26px 0 12px }
.num, td.r, .kpi b{ font-variant-numeric:tabular-nums }

/* Indicadores */
.kpis{ display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:14px; margin-bottom:20px }
.kpi{ background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); padding:16px 18px; box-shadow:var(--shadow) }
.kpi span{ display:block; color:var(--muted); font-size:11.5px; font-weight:600; text-transform:uppercase; letter-spacing:.06em }
.kpi b{ display:block; font-size:24px; font-weight:600; letter-spacing:-.02em; margin-top:6px; color:var(--ink) }
.kpi small{ color:var(--muted); font-size:12.5px }

/* Caixas e tabelas */
.box{ background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); padding:20px; margin-bottom:18px; overflow-x:auto; box-shadow:var(--shadow) }
.box > h2:first-child{ margin-top:0 }
table{ width:100%; border-collapse:collapse }
th,td{ text-align:left; padding:11px 12px; border-bottom:1px solid var(--line2); vertical-align:middle }
th{ font-size:11.5px; color:var(--muted); font-weight:600; text-transform:uppercase; letter-spacing:.05em; white-space:nowrap; background:#fafbfc; border-bottom:1px solid var(--line) }
tr:last-child td{ border-bottom:0 }
tr.click{ cursor:pointer } tr.click:hover td{ background:#fafbfc }
.r{ text-align:right; white-space:nowrap }
.pill{ display:inline-flex; align-items:center; gap:6px; padding:2px 9px; border-radius:20px; font-size:12px; font-weight:500; background:#f3f4f6; color:var(--ink2); white-space:nowrap }
.pill::before{ content:""; width:6px; height:6px; border-radius:50%; background:currentColor; opacity:.8 }
.pill.paid,.pill.active,.pill.sent,.pill.converted{ background:var(--ok-soft); color:var(--ok) } .pill.pending,.pill.open{ background:var(--warn-soft); color:var(--warn) }
.pill.failed,.pill.refunded,.pill.canceled,.pill.revoked,.pill.chargeback,.pill.refused{ background:var(--err-soft); color:var(--err) }
.tag{ display:inline-block; padding:1px 7px; border-radius:4px; font-size:11.5px; font-weight:600; background:#f3f4f6; color:var(--ink2); letter-spacing:.02em }
.status-dot{ display:inline-block; width:9px; height:9px; border-radius:50%; margin-right:8px; vertical-align:1px } .status-dot.ok{ background:#10b981 } .status-dot.wait{ background:#f59e0b } .status-dot.off{ background:#9ca3af } .status-dot.err{ background:#ef4444 }

/* Formulários */
.filters{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:14px }
input,select,textarea{ padding:9px 11px; border:1px solid #d1d5db; border-radius:6px; font:inherit; font-size:13.5px; background:#fff; color:var(--ink) }
input:focus,select:focus,textarea:focus{ outline:none; border-color:var(--ink2); box-shadow:0 0 0 3px rgba(17,24,39,.08) }
textarea{ width:100%; min-height:80px; line-height:1.5 }
.form{ display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:14px }
.form label{ display:flex; flex-direction:column; gap:5px; font-size:12.5px; font-weight:500; color:var(--ink2) }
.form .wide{ grid-column:1/-1 } .form .check{ flex-direction:row; align-items:center; gap:8px; color:var(--ink); font-size:13.5px; font-weight:500 }
.btn{ background:var(--primary); color:#fff; border:1px solid var(--primary); border-radius:6px; padding:8px 14px; font:inherit; font-size:13.5px; font-weight:500; cursor:pointer; text-decoration:none; display:inline-flex; align-items:center; gap:7px; line-height:1.4 }
.btn:hover{ background:#1f2937 }
.btn.ghost{ background:#fff; color:var(--ink); border-color:#d1d5db } .btn.ghost:hover{ background:#f9fafb }
.btn.danger{ background:var(--err); border-color:var(--err) } .btn.sm{ padding:5px 10px; font-size:12.5px }
.btn:disabled{ opacity:.55; cursor:wait }
.link{ background:none; border:0; color:inherit; cursor:pointer; text-decoration:underline; padding:0; font:inherit }
.actions{ display:flex; gap:8px; flex-wrap:wrap; margin-top:16px; align-items:center }
.hint{ font-size:12.5px; color:var(--muted) }

/* Avisos e modal */
.toast{ position:fixed; bottom:24px; right:24px; background:var(--ink); color:#fff; padding:12px 16px; border-radius:6px; z-index:50; font-size:13.5px; box-shadow:0 8px 24px rgba(0,0,0,.18) } .toast.err{ background:var(--err) }
.modal{ position:fixed; inset:0; background:rgba(17,24,39,.45); z-index:40; display:flex; align-items:flex-start; justify-content:center; padding:6vh 12px; overflow-y:auto }
.modal-box{ background:#fff; border-radius:10px; padding:26px; width:min(780px,100%); position:relative; box-shadow:0 20px 50px rgba(0,0,0,.2) }
.x{ position:absolute; top:12px; right:16px; border:0; background:none; font-size:24px; cursor:pointer; color:var(--muted) }

/* Gráfico */
.chart{ display:flex; align-items:flex-end; gap:3px; height:170px; padding-top:10px; border-bottom:1px solid var(--line) }
.chart div{ flex:1; background:var(--accent); border-radius:2px 2px 0 0; min-height:2px; position:relative; opacity:.85 } .chart div:hover{ opacity:1 }
.chart div:hover::after{ content:attr(data-t); position:absolute; bottom:100%; left:50%; transform:translateX(-50%); background:var(--ink); color:#fff; font-size:11.5px; padding:4px 7px; border-radius:4px; white-space:nowrap; margin-bottom:4px }

/* Produtos e aulas */
.tree .mod{ border:1px solid var(--line); border-radius:var(--radius); margin:10px 0; overflow:hidden }
.tree .mod > div{ padding:10px 14px; display:flex; justify-content:space-between; gap:8px; align-items:center; background:#fafbfc; font-weight:500 }
.tree .les{ display:flex; justify-content:space-between; gap:8px; padding:9px 14px 9px 28px; border-top:1px solid var(--line2); align-items:center; font-size:13.5px }
.vlist{ max-height:230px; overflow-y:auto; border:1px solid var(--line); border-radius:6px; margin-top:6px }
.vlist button{ display:flex; justify-content:space-between; gap:8px; width:100%; text-align:left; padding:8px 11px; border:0; border-bottom:1px solid var(--line2); background:#fff; cursor:pointer; font:inherit; font-size:13px }
.vlist button:hover{ background:#fafbfc } .vlist button.on{ background:var(--accent-soft); color:var(--accent); font-weight:600 }

/* Login */
.login{ max-width:400px; margin:14vh auto; background:#fff; border:1px solid var(--line); border-radius:12px; padding:34px; box-shadow:var(--shadow) }
.login .mark{ width:40px; height:40px; border-radius:9px; background:var(--accent); color:#fff; font-weight:700; display:flex; align-items:center; justify-content:center; margin-bottom:18px }
.login h1{ margin-bottom:6px } .login input{ width:100%; margin:6px 0 12px }
.login .btn{ width:100%; justify-content:center; padding:10px }

/* Perfil */
.avatar-lg{ width:112px; height:112px; border-radius:50%; object-fit:cover; background:#eef0f3; display:block; border:1px solid var(--line) }
.avatar-row{ display:flex; gap:22px; align-items:center; flex-wrap:wrap }

/* ── Tela de login: foto com gradiente escuro ── */
.auth{ position:fixed; inset:0; z-index:30; display:flex; align-items:flex-start; overflow-y:auto; font-family:"Manrope",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  background:#011422 radial-gradient(120% 80% at 85% 10%, rgba(185,145,91,.20), transparent 60%) no-repeat; -webkit-font-smoothing:antialiased }
.auth::before{ content:""; position:fixed; inset:0; background:linear-gradient(90deg, #0a0b0d 0%, #0a0b0d 34%, rgba(10,11,13,.9) 44%, rgba(10,11,13,.6) 58%, rgba(10,11,13,.28) 76%, rgba(10,11,13,.12) 100%) }
.auth-panel{ position:relative; width:min(400px, calc(100% - 40px)); margin:auto 0 auto clamp(20px, 8vw, 128px); padding:40px 0; color:#fff } /* margem automática: centraliza sem cortar em telas baixas */
.auth-brand{ display:flex; align-items:center; gap:12px; margin-bottom:40px }
.auth-brand .mark{ width:38px; height:38px; border-radius:9px; background:#8c1c2c; color:#fff; font-weight:700; font-size:13px; letter-spacing:.04em; display:flex; align-items:center; justify-content:center }
.auth-brand b{ display:block; font-size:15px; font-weight:600; letter-spacing:-.01em } .auth-brand small{ color:rgba(255,255,255,.55); font-size:12px }
.auth h1{ font-size:30px; line-height:1.15; font-weight:600; letter-spacing:-.025em; margin:0 0 10px; color:#fff; display:block }
.auth .lead{ color:rgba(255,255,255,.66); font-size:14.5px; line-height:1.55; margin:0 0 28px }
.auth label{ display:block; font-size:12.5px; font-weight:500; color:rgba(255,255,255,.75); margin:0 0 14px }
.auth input{ display:block; width:100%; margin-top:6px; padding:12px 14px; font:inherit; font-size:15px; color:#fff; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.16); border-radius:8px }
.auth input::placeholder{ color:rgba(255,255,255,.35) }
.auth input:focus{ outline:none; border-color:rgba(255,255,255,.55); background:rgba(255,255,255,.09); box-shadow:none }
.auth .auth-btn{ width:100%; padding:13px; margin-top:6px; border:0; border-radius:8px; background:#fff; color:#111827; font:inherit; font-size:15px; font-weight:600; cursor:pointer }
.auth .auth-btn:hover{ background:#f1f1f3 } .auth .auth-btn:disabled{ opacity:.6; cursor:wait }
.auth .auth-btn.ghost{ background:transparent; color:#fff; border:1px solid rgba(255,255,255,.3) } .auth .auth-btn.ghost:hover{ background:rgba(255,255,255,.08) }
.auth details{ margin-top:22px; border-top:1px solid rgba(255,255,255,.12); padding-top:18px }
.auth summary{ cursor:pointer; color:rgba(255,255,255,.7); font-size:13.5px; list-style:none } .auth summary::-webkit-details-marker{ display:none }
.auth summary::after{ content:" →"; } .auth details[open] summary{ margin-bottom:14px }
.auth .auth-note{ color:rgba(255,255,255,.55); font-size:13px; line-height:1.5; margin:0 0 12px }
.auth .auth-msg{ margin-top:16px; padding:12px 14px; border-radius:8px; font-size:13.5px; background:rgba(255,255,255,.08); color:#fff; border:1px solid rgba(255,255,255,.12) }
.auth .auth-msg.err{ background:rgba(185,28,28,.18); border-color:rgba(239,68,68,.4); color:#fecaca }
.auth-foot{ margin-top:36px; color:rgba(255,255,255,.35); font-size:12px }
@media (max-width:760px){
  .auth{ display:block; background-position:center top; background-size:100% auto; background-color:#0a0b0d; background-attachment:local }
  .auth::before{ background:linear-gradient(180deg, rgba(10,11,13,.05) 0%, rgba(10,11,13,.35) 28%, rgba(10,11,13,.92) 46%, #0a0b0d 56%) }
  .auth-panel{ margin:40vh auto 32px } .auth-brand{ margin-bottom:22px } .auth h1{ font-size:26px }
}
/* esfumado na borda esquerda da foto (a foto é quadrada: largura = altura da tela) */
@media (min-width:761px){ .auth::after{ content:""; position:fixed; top:0; bottom:0; left:calc(100vw - 100vh - 2px); width:70vh; background:linear-gradient(90deg, #0a0b0d 0%, rgba(10,11,13,.85) 20%, rgba(10,11,13,.5) 50%, rgba(10,11,13,.18) 78%, rgba(10,11,13,0) 100%); pointer-events:none } .auth-panel{ z-index:2 } }
/* celular: tudo centralizado */
@media (max-width:760px){ .auth-panel{ text-align:center } .auth-brand{ justify-content:center } .auth-logo{ margin:0 auto } .auth label{ text-align:center } .auth input{ text-align:center } .auth details summary{ text-align:center } }
/* celular: foto desfocada ocupando o fundo inteiro, conteúdo no topo */
@media (max-width:760px){
  .auth{ display:block; background:#0a0b0d }
  .auth::before{ background:linear-gradient(180deg, rgba(10,11,13,.55) 0%, rgba(10,11,13,.72) 45%, rgba(10,11,13,.9) 100%), radial-gradient(120% 80% at 85% 10%, rgba(185,145,91,.20), transparent 60%) center 15% / cover no-repeat; filter:blur(5px); transform:scale(1.08) }
  .auth-panel{ margin:7vh auto 32px; padding:0 } .auth-brand{ margin-bottom:26px }
}
/* logo da marca (menu lateral e login) */
.logo{ justify-content:center; padding:18px 20px 14px } .logo img{ display:block; width:150px; height:auto }
.auth-logo{ display:block; width:220px; max-width:70%; height:auto; filter:drop-shadow(0 0 16px rgba(230,160,80,.28)) }
@media (max-width:760px){ .auth-logo{ width:190px; margin:0 auto } }
/* botão Entrar dourado (mesma cor da logo) */
.auth .auth-btn{ background:linear-gradient(180deg, #f3cf86 0%, #d9a24f 48%, #b07a2c 100%); color:#2a1a06; border:1px solid #c8913f;
  box-shadow:inset 0 1px 0 rgba(255,240,200,.6), 0 6px 18px rgba(214,150,60,.28); text-shadow:0 1px 0 rgba(255,230,180,.45) }
.auth .auth-btn:hover{ filter:brightness(1.07) } .auth .auth-btn:disabled{ filter:saturate(.6) brightness(.85); cursor:default }

/* ───── Modo escuro (botão no rodapé do menu; preferência salva no navegador) ───── */
:root[data-theme="dark"]{
  color-scheme:dark;
  --bg:#031A26; --panel:#06222F; --ink:#F5F4F3; --ink2:#C9D1D6; --muted:#8A98A2; --line:#14303F; --line2:#0B2B3A;
  --side:#011422; --side2:#06222F;
  --primary:#F5F4F3; --accent:#C9A16B; --accent-soft:#1E2A26;
  --ok:#34d399; --ok-soft:#0f2a20; --warn:#fbbf24; --warn-soft:#2b2210; --err:#f87171; --err-soft:#2c1515;
  --shadow:0 1px 2px rgba(0,0,0,.4), 0 1px 3px rgba(0,0,0,.3);
}
:root[data-theme="dark"] th, :root[data-theme="dark"] tr.click:hover td, :root[data-theme="dark"] .tree .mod > div, :root[data-theme="dark"] .vlist button:hover{ background:#0B2B3A }
:root[data-theme="dark"] .pill, :root[data-theme="dark"] .tag{ background:#14303F }
:root[data-theme="dark"] input, :root[data-theme="dark"] select, :root[data-theme="dark"] textarea{ background:#011422; border-color:#1C3A4A }
:root[data-theme="dark"] .btn{ color:#031A26 } :root[data-theme="dark"] .btn:hover{ background:#fff }
:root[data-theme="dark"] .btn.ghost{ background:transparent; color:var(--ink); border-color:#1C3A4A } :root[data-theme="dark"] .btn.ghost:hover{ background:#0B2B3A }
:root[data-theme="dark"] .modal-box, :root[data-theme="dark"] .vlist button, :root[data-theme="dark"] .login{ background:var(--panel) }
:root[data-theme="dark"] .toast{ background:#F5F4F3; color:#031A26 } :root[data-theme="dark"] .chart div:hover::after{ color:#031A26 }
:root[data-theme="dark"] .avatar-lg{ background:#0B2B3A }
.theme-btn .i-sun{ display:none } :root[data-theme="dark"] .theme-btn .i-sun{ display:block } :root[data-theme="dark"] .theme-btn .i-moon{ display:none }
.me-actions{ display:flex; gap:2px; flex:none }
/* miniatura do produto na lista de ofertas */
.offer-name{ display:flex; align-items:center; gap:12px; min-width:200px }
.thumb{ width:44px; height:44px; flex:none; border-radius:8px; object-fit:cover; border:1px solid var(--line); background:var(--line2);
  display:inline-flex; align-items:center; justify-content:center; font-weight:600; color:var(--muted) }
.bump-row{ margin-bottom:8px } #addbump{ margin-top:2px }
/* imagens da oferta (banner e miniatura) */
.img-fields{ display:grid; grid-template-columns:1.6fr 1fr; gap:16px }
.img-field{ display:flex; flex-direction:column; gap:8px; border:1px dashed var(--line); border-radius:8px; padding:12px }
.img-field .lbl{ font-size:13px; font-weight:500; color:var(--ink2) }
.img-field img{ display:block; max-width:100%; max-height:150px; object-fit:contain; border-radius:6px; background:var(--line2) }
.img-field .filters{ align-items:center; gap:8px; flex-wrap:wrap }
@media (max-width:760px){ .img-fields{ grid-template-columns:1fr } }
/* produtos: miniatura do curso + módulos retráteis */
.prod-h{ margin-top:0; display:flex; justify-content:space-between; align-items:center; gap:8px }
.prod-name{ display:flex; align-items:center; gap:12px } .prod-h .thumb{ width:48px; height:48px }
.tree .mod > .mod-h{ cursor:pointer; user-select:none } .tree .mod > .mod-body{ display:none } .tree .mod.open > .mod-body{ display:block }
.tree .mod > .mod-body .les{ background:transparent }
.mod-t{ display:flex; align-items:center; gap:8px } .mod-t small{ font-weight:400 }
.chev{ width:16px; height:16px; transition:transform .15s; color:var(--muted) } .mod.open .chev{ transform:rotate(90deg) }
/* ofertas: ordenar pelas colunas */
th.sortable{ cursor:pointer; user-select:none } th.sortable:hover{ color:var(--ink) }
th.sortable::after{ content:"↕"; margin-left:5px; opacity:.35 } th.asc::after{ content:"↑"; opacity:1 } th.desc::after{ content:"↓"; opacity:1 }
th.asc, th.desc{ color:var(--ink) }

/* área de enviar imagem (clique ou arraste) */
.img-field{ border:0; padding:0 }
.drop{ position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; min-height:150px; padding:14px;
  border:2px dashed #c9a35c; border-radius:10px; background:#fbf6ec; cursor:pointer; text-align:center; transition:background .15s, border-color .15s }
.drop:hover, .drop.over{ background:#f5e9d2; border-color:#b07a2c }
.drop.over{ box-shadow:0 0 0 4px rgba(214,150,60,.18) }
.drop img{ max-height:130px }
.drop-txt{ display:flex; flex-direction:column; align-items:center; gap:3px; color:#7a5a24 }
.drop-txt svg{ width:26px; height:26px; color:#b07a2c } .drop-txt b{ font-size:13.5px; font-weight:600 } .drop-txt small{ font-size:12px; color:#9a7a45 }
.drop img:not([hidden]) + .drop-txt svg{ display:none } .drop img:not([hidden]) + .drop-txt b{ font-size:12.5px }
.drop.busy{ opacity:.6; pointer-events:none } .drop.busy::after{ content:"Enviando…"; position:absolute; inset:auto 0 10px; font-size:12px; color:#7a5a24 }
.img-field .rm{ align-self:flex-start }
:root[data-theme="dark"] .drop{ background:#221b10; border-color:#7a5a24 } :root[data-theme="dark"] .drop:hover, :root[data-theme="dark"] .drop.over{ background:#2c2213; border-color:#e0a14f }
:root[data-theme="dark"] .drop-txt{ color:#e8c88f } :root[data-theme="dark"] .drop-txt small{ color:#b39364 }

/* pós-compra no formulário da oferta */
.upsell-cfg{ display:grid; grid-template-columns:1fr 1fr; gap:12px 16px; border:1px solid var(--line); border-radius:10px; padding:14px 16px; background:var(--bg) }
.upsell-cfg > .hint, .upsell-cfg > .wide, .upsell-cfg > .img-field{ grid-column:1 / -1 } .upsell-cfg .hint{ margin:0 }
@media (max-width:760px){ .upsell-cfg{ grid-template-columns:1fr } }

/* prévia da aula (miniatura do Bunny) */
.vlist button{ align-items:center } .vlist .vtitle{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.vmini{ width:64px; height:36px; flex:none; border-radius:4px; object-fit:cover; background:var(--line2); margin-right:10px; display:inline-block }
.vpreview{ display:flex; gap:16px; align-items:center; margin-top:10px; padding:12px; border:1px solid var(--line); border-radius:10px; background:var(--bg) }
.vpreview > div{ display:flex; flex-direction:column; gap:3px; min-width:0 }
.vthumb{ position:relative; width:320px; max-width:100%; aspect-ratio:16/9; flex:none; border:0; padding:0; border-radius:8px; overflow:hidden; background:#000; cursor:pointer }
.vthumb img{ width:100%; height:100%; object-fit:cover; display:block }
.vthumb .play{ position:absolute; inset:0; margin:auto; width:52px; height:52px; border-radius:50%; background:rgba(0,0,0,.6); color:#fff; font-size:20px; display:flex; align-items:center; justify-content:center; padding-left:4px }
.vthumb:hover .play{ background:var(--accent) } .vthumb .nothumb{ color:#9ca3af; font-size:12px }
iframe.vthumb{ cursor:auto }
@media (max-width:760px){ .vpreview{ flex-direction:column; align-items:stretch } .vthumb{ width:100% } }

/* excluir oferta */
.icon-del{ background:none; border:1px solid transparent; border-radius:6px; padding:6px; color:var(--muted); cursor:pointer; display:inline-flex }
.icon-del:hover{ color:var(--err); background:var(--err-soft); border-color:var(--err-soft) }

/* login: campos com borda dourada (cor da logo) + olhinho da senha */
.auth input{ border-color:rgba(214,162,79,.55) }
.auth input:hover{ border-color:rgba(226,178,98,.8) }
.auth input:focus{ border-color:#e0b062; box-shadow:0 0 0 3px rgba(214,150,60,.18) }
.pw-wrap{ position:relative; display:block }
.pw-wrap input{ padding-right:46px !important }
.pw-eye{ position:absolute; right:6px; top:50%; transform:translateY(calc(-50% + 3px)); width:36px; height:36px; display:flex; align-items:center; justify-content:center;
  background:none; border:0; border-radius:6px; color:rgba(226,178,98,.75); cursor:pointer; padding:0 }
.pw-eye:hover{ color:#f0c77e; background:rgba(255,255,255,.06) }
.pw-eye svg{ width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round }
.pw-eye .x{ display:none } .pw-eye.on .x{ display:inline }
@media (max-width:760px){ .pw-wrap input{ padding-left:46px !important } }

 

.icon-act{ background:none; border:0; border-radius:6px; padding:7px; color:var(--muted); cursor:pointer; display:inline-flex }
.icon-act:hover{ color:var(--ink); background:var(--line2) } .icon-act.del:hover{ color:var(--err); background:var(--err-soft) }

.pill.failed{ background:var(--err-soft); color:var(--err) } .pill.pending{ background:var(--warn-soft); color:var(--warn) }
.wl-err{ font-size:11.5px; margin-top:3px; max-width:260px }
 

/* e-mail marketing */
.em-tabs{ display:flex; gap:4px; border-bottom:1px solid var(--line); margin:0 0 18px; overflow-x:auto }
.em-tabs a{ padding:10px 14px; text-decoration:none; color:var(--muted); font-weight:500; border-bottom:2px solid transparent; margin-bottom:-1px; white-space:nowrap }
.em-tabs a:hover{ color:var(--ink) } .em-tabs a.on{ color:var(--ink); border-bottom-color:var(--accent) } .em-tabs.sm a{ padding:7px 10px; font-size:13px }
.mono{ font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:12.5px } textarea.over{ outline:2px dashed var(--accent); outline-offset:2px }
.chips{ display:flex; flex-wrap:wrap; gap:6px; margin:4px 0 8px }
.chip{ border:1px solid var(--line); background:var(--panel); color:var(--ink2); border-radius:20px; padding:5px 11px; font:inherit; font-size:12.5px; cursor:pointer }
.chip:hover{ border-color:var(--muted) } .chip.on{ background:var(--accent); border-color:var(--accent); color:#fff }
:root[data-theme="dark"] .chip.on{ color:#031A26 }
.aud{ border:1px solid var(--line); border-radius:10px; padding:12px 14px; background:var(--bg) } .aud details summary{ cursor:pointer; margin:4px 0 }

.em-preview{ width:100%; height:62vh; border:1px solid var(--line); border-radius:8px; background:#fff }
.kpis{ display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:12px; margin-bottom:16px }
.kpi{ background:var(--panel); border:1px solid var(--line); border-radius:10px; padding:14px 16px } .kpi small{ display:block; color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.05em } .kpi b{ font-size:22px }

 

  
  
  

 

/* mensagens de WhatsApp dentro do webhook */
.var-chips{ display:flex; flex-wrap:wrap; gap:5px; margin-bottom:10px } .var-chips .chip{ font-family:ui-monospace,Menlo,monospace; font-size:11.5px; padding:3px 8px }

 
  

 

 
 
 .chip b[data-rm]{ cursor:pointer; margin-left:4px; opacity:.75 } .chip b[data-rm]:hover{ opacity:1 }

 
 
 

 
 

  

 

 

   

  

 

 
 
 
 

 
  
  
 

 

/* e-mails automáticos: lista + editor + pré-visualização */
.ae{ display:grid; grid-template-columns:270px minmax(0,1fr); gap:16px; align-items:start }
.ae-list{ display:flex; flex-direction:column; gap:6px; position:sticky; top:16px }
.ae-item{ text-align:left; background:var(--panel); border:1px solid var(--line); border-radius:10px; padding:10px 12px; cursor:pointer; font:inherit; color:var(--ink); display:flex; flex-direction:column; gap:3px }
.ae-item:hover{ border-color:var(--muted) } .ae-item.on{ border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft) }
.ae-item b{ font-size:13.5px } .ae-item small{ color:var(--muted); font-size:12px; line-height:1.4 } .ae-item .pill{ align-self:flex-start; margin-top:3px }
.ae-edit{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:18px; align-items:start; margin:0 }
.ae-top{ display:flex; justify-content:space-between; align-items:flex-start; gap:12px } .ae-on{ white-space:nowrap }
.ae-test{ display:inline-flex; gap:6px; margin-left:auto } .ae-test input{ width:190px }
.ae-prev{ position:sticky; top:16px } .ae-prev .em-preview{ height:72vh }
@media (max-width:1200px){ .ae-edit{ grid-template-columns:1fr } }
@media (max-width:900px){ .ae{ grid-template-columns:1fr } .ae-list{ position:static } }

/* personalização da área de membros */
.ms-bar{ display:flex; justify-content:flex-end; align-items:center; flex-wrap:wrap; gap:8px; margin:-6px 0 14px; position:sticky; top:0; z-index:5; padding:8px 0; background:var(--bg) }
.ms-grid .box{ margin-bottom:16px }
.ms-sec{ border:1px solid var(--line); border-radius:10px; padding:10px 12px; margin-bottom:8px; background:var(--bg) } .ms-sec.off{ opacity:.55 }
.ms-sec-h{ display:flex; align-items:center; gap:10px; flex-wrap:wrap } .ms-sec-h input[data-s=title]{ flex:1; min-width:180px } .ms-sec-h .check{ margin:0; white-space:nowrap }
.ms-sub{ margin-top:10px } .ms-link{ margin-bottom:6px }
.ae-group{ margin:8px 2px 2px; font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.06em; color:var(--muted) } .ae-list > .btn{ margin-top:4px }
  
 
  

.danger-text{ color:var(--err) !important } .ae-gone{ margin-top:10px } .ae-gone summary{ cursor:pointer } .ae-gone-i{ display:flex; justify-content:space-between; align-items:center; gap:8px; padding:6px 2px; font-size:13px }
 

/* seletor de período */
.period{ display:inline-flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:13px; font-weight:400 } .period select{ width:auto }
.period-c{ display:inline-flex; align-items:center; gap:6px; color:var(--muted) } .period-c input{ width:auto; padding:6px 8px }
.h1-tools{ margin-left:auto }
.ae-warn{ margin:0; color:#b45309 !important; background:#fffbeb; border:1px solid #fde68a; border-radius:8px; padding:8px 10px } :root[data-theme=dark] .ae-warn{ background:#2b2210; border-color:#5c4612 }

/* Área de membros: editor visual + progresso */
.ms-bar .grow{ flex:1 }
.seg{ display:inline-flex; border:1px solid var(--line); border-radius:9px; overflow:hidden; background:var(--panel) }
.seg button{ border:0; background:none; padding:7px 12px; font:inherit; font-size:13px; color:var(--muted); cursor:pointer; display:inline-flex; align-items:center }
.seg button + button{ border-left:1px solid var(--line) } .seg button.on{ background:var(--ink); color:var(--panel) }
.seg svg{ width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linejoin:round; stroke-linecap:round }
.ms-stage{ background:#0b0b0d; border:1px solid var(--line); border-radius:12px; overflow:hidden; display:flex; justify-content:center; box-shadow:var(--shadow) }
.ms-stage iframe{ width:100%; height:calc(100vh - 230px); min-height:520px; border:0; display:block; background:#0b0b0d; transition:width .25s }
.ms-stage.mobile{ padding:18px 0; background:repeating-linear-gradient(45deg,#121216 0 12px,#0e0e12 12px 24px) }
.ms-stage.mobile iframe{ width:390px; max-width:100%; border-radius:26px; border:8px solid #26262d; height:min(780px, calc(100vh - 270px)) }
.ms-dirty{ font-size:12.5px; color:#b45309; font-weight:500 }
.btn.pulse{ box-shadow:0 0 0 0 rgba(217,162,79,.6); animation:mspulse 1.6s infinite }
@keyframes mspulse{ 70%{ box-shadow:0 0 0 9px rgba(217,162,79,0) } 100%{ box-shadow:0 0 0 0 rgba(217,162,79,0) } }
.ck-grid{ display:grid; grid-template-columns:minmax(300px,380px) 1fr; gap:16px; align-items:start }
.ck-side{ max-height:calc(100vh - 170px); overflow:auto; padding-right:4px }
.ck-side .box{ margin-bottom:12px } .ck-side summary{ cursor:pointer; margin-bottom:10px }
.ck-side label{ display:block; margin:10px 0 0; font-size:13px } .ck-side label input,.ck-side label textarea,.ck-side label select{ margin-top:4px }
.ck-seg{ margin-bottom:6px }
.ck-color{ display:flex; gap:6px; align-items:center; margin-top:4px } .ck-color input[type=color]{ width:42px; height:36px; padding:2px; flex:none; cursor:pointer } .ck-color input:not([type]){ flex:1 }
.ck-bump{ border:1px solid var(--line); border-radius:10px; padding:10px 12px; margin-bottom:10px; background:var(--bg) }
.ck-bump-h{ display:flex; gap:6px; align-items:center } .ck-bump-h select{ flex:1; min-width:0 }
.ck-pick{ display:flex; align-items:center; gap:8px; font-weight:600 } .ck-pick select{ min-width:240px }
.ck-copylist{ display:grid; gap:6px; max-height:50vh; overflow:auto; margin:10px 0 }
.ck-stage iframe{ background:#fff }
@media (max-width:980px){ .ck-grid{ grid-template-columns:1fr } .ck-side{ max-height:none } }
.ms-addgrid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:10px }
.ms-addopt{ text-align:left; border:1px solid var(--line); border-radius:10px; background:var(--bg); padding:12px 14px; cursor:pointer; font:inherit; color:var(--ink) }
.ms-addopt:hover{ border-color:var(--accent) } .ms-addopt b{ display:block; margin-bottom:3px } .ms-addopt small{ color:var(--muted) }
.mp-bar{ height:7px; border-radius:9px; background:var(--line); overflow:hidden; margin:4px 0 3px } .mp-bar i{ display:block; height:100%; background:var(--accent); border-radius:9px } .mp-bar.full i{ background:#10b981 }
@media (max-width:760px){ .ms-stage iframe{ height:70vh } }
.mp-les summary{ cursor:pointer; list-style:none } .mp-les summary::-webkit-details-marker{ display:none }
.mp-les summary h2{ margin:0; display:inline } .mp-les summary::before{ content:'▸'; margin-right:8px; color:var(--muted) } .mp-les[open] summary::before{ content:'▾' } .mp-les[open] summary{ margin-bottom:12px }

/* Avisos (sininho) */
.nt-grid{ display:grid; grid-template-columns:minmax(0,1.4fr) minmax(280px,1fr); gap:18px; align-items:start; margin-bottom:18px } .nt-grid > .box{ margin:0 }
@media (max-width:980px){ .nt-grid{ grid-template-columns:1fr } }
.nt-pop{ background:#141417; border:1px solid #26262d; border-radius:14px; overflow:hidden; color:#f3f1ee; box-shadow:0 18px 44px rgba(0,0,0,.25); max-width:380px }
.nt-h{ display:flex; justify-content:space-between; align-items:baseline; padding:13px 16px; border-bottom:1px solid #26262d } .nt-h small{ color:#f3cf86; font-weight:600; font-size:12px }
.nt-it{ position:relative; padding:14px 16px 14px 28px; background:rgba(217,162,79,.07) } .nt-it::before{ content:''; position:absolute; left:12px; top:20px; width:7px; height:7px; border-radius:50%; background:#d9a24f }
.nt-it img{ display:block; width:100%; border-radius:8px; margin-bottom:10px; max-height:180px; object-fit:cover }
.nt-it b{ display:block; font-size:14.5px } .nt-it p{ margin:5px 0 0; color:#c9c5bd; font-size:13.5px; line-height:1.5; overflow-wrap:anywhere }
.nt-link{ display:inline-block; margin-top:9px; font-size:13px; font-weight:600; color:#f3cf86 } .nt-it time{ display:block; margin-top:7px; font-size:11.5px; color:#9b978f }
td.nowrap{ white-space:nowrap }

.ms-vit{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:0 0 12px } .ms-vit>span:first-child{ font-weight:600 }
.ms-vit .hint{ margin:0 }
.vit-set{ border:1px solid var(--line); border-radius:10px; padding:10px 14px; display:flex; gap:18px; flex-wrap:wrap } .vit-set legend{ font-size:13px; font-weight:600; padding:0 6px }

/* WhatsApp: vários números */
.wa-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 10px } .wa-head h2{ margin:0 }
.wa-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(320px, 1fr)); gap:14px; align-items:start }
.wa-card{ margin:0 } .wa-card.connected{ border-color:rgba(46,160,67,.45) }
.wa-id{ display:flex; gap:14px; align-items:center }
.wa-photo{ width:64px; height:64px; border-radius:50%; object-fit:cover; flex:none; border:2px solid var(--line) }
.wa-card.connected .wa-photo{ border-color:#2ea043 }
.wa-photo.ph{ display:flex; align-items:center; justify-content:center; background:#25d36622; color:#25d366; font-size:26px; font-weight:700 }
.wa-label{ font-size:16px } .wa-st{ margin-top:3px; font-size:13.5px } .wa-num{ font-size:13px; margin-top:2px }
.wa-qr{ width:240px; height:240px; border:1px solid var(--line); border-radius:8px; background:#fff; display:block }
.wa-card .actions{ margin-top:12px }
.wa-from img{ width:20px; height:20px; border-radius:50%; vertical-align:middle; margin-right:5px; object-fit:cover }
/* Histórico de vendas: duas tabelas lado a lado (uma embaixo da outra no celular) */
.grid2{ display:grid; grid-template-columns:1fr 1fr; gap:14px } .grid2 > .box{ margin:0 0 14px }
@media (max-width:800px){ .grid2{ grid-template-columns:1fr } }

 

 
 

 

 
 

/* ROAS: barras de faturamento e investimento lado a lado por dia */
/* Funil */
.fnl{ display:flex; flex-direction:column; gap:6px }
.fnl-row{ display:grid; grid-template-columns:190px 1fr 130px 120px; gap:14px; align-items:center; padding:8px 10px; border-radius:8px }
.fnl-row.weak{ background:var(--err-soft) }
.fnl-l b, .fnl-c b{ display:block; font-size:14px; font-variant-numeric:tabular-nums } .fnl-l small, .fnl-c small{ color:var(--muted); font-size:12px }
.fnl-c{ text-align:right }
.fnl-bar{ position:relative; height:30px; background:var(--line2); border-radius:6px; overflow:hidden }
.fnl-bar i{ position:absolute; left:0; top:0; bottom:0; background:var(--accent); border-radius:6px; opacity:.3 } .fnl-bar i.meta{ background:#3b82f6 }
.fnl-bar span{ position:absolute; left:10px; top:50%; transform:translateY(-50%); font-weight:600; font-size:13px; color:var(--ink); font-variant-numeric:tabular-nums }
@media (max-width:760px){ .fnl-row{ grid-template-columns:1fr 1fr; gap:6px 10px } .fnl-bar{ grid-column:1 / -1; order:-1 } .fnl-c{ text-align:left } }

 

 

 

 
  
 
 
 
 
 

  
 
 
 

   
  

 
    

  

  

.up-code{ font:12px monospace; resize:none; margin-top:6px }

/* App (PWA): alerta de venda dentro do painel */
.sale-alert{ position:fixed; top:16px; left:50%; transform:translate(-50%,-140%); z-index:80; display:flex; align-items:center; gap:12px; min-width:280px; max-width:calc(100vw - 32px);
  background:linear-gradient(135deg,#0f7a3a,#16a34a); color:#fff; text-decoration:none; padding:14px 18px; border-radius:12px; box-shadow:0 14px 40px rgba(0,0,0,.28); transition:transform .35s cubic-bezier(.2,.9,.3,1.2) }
.sale-alert.on{ transform:translate(-50%,0) }
.sale-alert .sa-ico{ font-size:28px; line-height:1 }
.sale-alert b{ display:block; font-size:16px } .sale-alert small{ display:block; font-size:13px; opacity:.92; margin-top:2px }
.row-btns{ display:flex; flex-wrap:wrap; gap:8px } .ok-line{ margin:0 0 10px; font-weight:600 }
@media (display-mode: standalone){ .sale-alert{ top:calc(16px + env(safe-area-inset-top)) } }

/* Cards de números: o valor diminui com a largura do card (não vaza do quadrado) */
.kpis{ grid-template-columns:repeat(auto-fill,minmax(185px,1fr)) }
.kpi{ min-width:0; container-type:inline-size }
.kpi b{ font-size:clamp(16px, 13.5cqi, 24px); white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.kpi small{ overflow-wrap:anywhere }

/* Carregando: tela escurecida e desfocada, logo brilhando e "Carregando..." (todas as telas do painel) */
.ld-ov{ position:fixed; inset:0; z-index:200; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:18px;
  background:rgba(6,7,10,.62); backdrop-filter:blur(8px) saturate(.8); -webkit-backdrop-filter:blur(8px) saturate(.8); opacity:0; visibility:hidden; transition:opacity .2s, visibility .2s }
.ld-ov.on{ opacity:1; visibility:visible }
.ld-ov img{ width:90px; max-width:30vw; animation:busyglow 1.6s ease-in-out infinite }
.ld-ov p{ margin:0; font-weight:600; letter-spacing:.08em; color:#f3d79a; text-shadow:0 0 10px rgba(217,162,79,.8); font-size:15px }
.ld-ov p i{ font-style:normal; animation:busydot 1.2s infinite; text-shadow:0 0 12px rgba(255,215,140,1) } .ld-ov p i:nth-child(2){ animation-delay:.2s } .ld-ov p i:nth-child(3){ animation-delay:.4s }
@keyframes busyglow{ 0%,100%{ filter:drop-shadow(0 0 6px rgba(217,162,79,.45)) brightness(1); transform:scale(1) } 50%{ filter:drop-shadow(0 0 26px rgba(255,205,120,.95)) brightness(1.25); transform:scale(1.04) } }
@keyframes busydot{ 0%,100%{ opacity:.15 } 40%{ opacity:1 } }

/* Seletor de contas de anúncio (Vendas → Campanhas) */
.acc-pick{ border:1px solid var(--line); border-radius:10px; padding:12px 14px; margin:12px 0 14px; background:var(--bg) }
.acc-all{ display:flex; align-items:center; gap:8px; padding-bottom:10px; margin-bottom:10px; border-bottom:1px solid var(--line); cursor:pointer }
.acc-list{ display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:8px 16px }
.acc-list label{ display:flex; align-items:flex-start; gap:8px; cursor:pointer; font-size:13.5px; line-height:1.35 } .acc-list input, .acc-all input{ margin-top:2px; width:16px; height:16px; flex:none }

/* Encurtador e Redirect */
.rd-form label, .rd-edit label{ display:block; margin-bottom:10px } .rd-form textarea, .rd-edit textarea{ width:100%; margin-top:4px; font-size:13.5px }
.rd-slug{ display:flex; gap:8px; align-items:center; margin-top:4px } .rd-slug input{ flex:1; min-width:0 } .rd-slug > span{ white-space:nowrap; font-size:13.5px }
.rd-item{ margin-bottom:10px } .rd-item.off{ opacity:.6 } .rd-top{ display:flex; justify-content:space-between; gap:12px; align-items:flex-start }
.rd-url{ color:var(--accent); word-break:break-all } .rd-dest{ font-size:12.5px; margin-top:6px; word-break:break-all } .rd-act{ display:flex; gap:6px; flex-wrap:wrap; justify-content:flex-end; flex:none }
.rd-edit{ margin-top:12px; padding-top:12px; border-top:1px solid var(--line) }
@media (max-width:640px){ .rd-top{ flex-direction:column } .rd-act{ justify-content:flex-start } .rd-slug > span{ display:none } }

/* Vendas: 4 quadros por linha; lucro sobre anúncio verde/vermelho */
.kpis.kpis-4{ grid-template-columns:repeat(4,minmax(0,1fr)) }
@media (max-width:900px){ .kpis.kpis-4{ grid-template-columns:repeat(2,minmax(0,1fr)) } }
.kpi.kpi-good{ background:var(--ok-soft); border-color:var(--ok) } .kpi.kpi-good b{ color:var(--ok) }
.kpi.kpi-bad{ background:var(--err-soft); border-color:var(--err) } .kpi.kpi-bad b{ color:var(--err) }

.wai{ --wa-out:#e2f3e4; --wa-chat:#efeae2; display:grid; grid-template-columns:340px minmax(0,1fr) 300px; height:calc(100vh - 92px); background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow) }
:root[data-theme="dark"] .wai{ --wa-out:#1f3b2c; --wa-chat:#101317 }

 

 
 

 

 
 
  

 

 

 
 

 
 
  

 

 
 

 
 @keyframes waipulse{ 50%{ opacity:.3 } }

  

@media (max-width:900px){   .wai, .wai:not(:has(.wai-info:not([hidden]))){ grid-template-columns:1fr; height:calc(100vh - 100px); border-radius:0 }
     }

/* Vendas: seletor de contas de anúncio acima dos quadros + gráfico por forma de pagamento */
.acc-bar{ display:flex; justify-content:flex-end; margin:0 0 10px }
.pm-sum{ display:grid; gap:12px; margin-bottom:14px }
.pm-sum > div{ border:1px solid var(--line); border-top:3px solid; border-radius:8px; padding:10px 14px; min-width:0 }
.pm-h{ display:flex; align-items:center; gap:8px; font-size:14px } .pm-pct{ margin-left:auto; font-size:18px }
.pm-v{ font-size:17px; font-weight:600; margin-top:6px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-variant-numeric:tabular-nums } .pm-sum small{ color:var(--muted); font-size:12.5px }
@media (max-width:700px){ .pm-sum{ grid-template-columns:1fr !important } }
.pm-dot{ width:11px; height:11px; border-radius:3px; flex:none }
.pm-share{ display:flex; height:10px; border-radius:5px; overflow:hidden; gap:2px; margin-bottom:16px } .pm-share i{ min-width:2px }
.pm-chart{ display:flex; align-items:flex-end; gap:3px; height:160px }
.pm-chart > div{ flex:1; height:100%; display:flex; align-items:flex-end; position:relative }
.pm-chart > div > span{ width:100%; display:flex; flex-direction:column; border-radius:3px 3px 0 0; overflow:hidden; min-height:1px }
.pm-chart > div > span i{ display:block; min-height:1px }
.pm-chart > div:hover::after{ content:attr(data-t); position:absolute; bottom:100%; left:50%; transform:translateX(-50%); white-space:nowrap; background:var(--ink); color:var(--panel); font-size:12px; padding:4px 8px; border-radius:6px; z-index:3 }

/* WhatsApp: abas Conversas | Números, QR Code e automações */
.wa-tabs{ margin-bottom:14px } .wa-tabs a{ font-size:14.5px; font-weight:600; padding:10px 16px }
.kpis.pm-kpis{ grid-template-columns:repeat(2,minmax(0,1fr)); margin-bottom:16px } .pm-kpis .kpi{ box-shadow:none; background:var(--bg) }

/* Aba Vendas (lista de todas as vendas): no celular cada venda vira um cartão */
.sl-filters input[name="q"]{ min-width:220px }
.sl-m{ display:none }
.sl-why{ margin-top:4px; font-size:11.5px; line-height:1.3; color:var(--err); max-width:190px }
@media (max-width:760px){
  .sl-filters{ display:grid; grid-template-columns:1fr 1fr; gap:8px }
  .sl-filters .period, .sl-filters input[name="q"]{ grid-column:1 / -1; min-width:0 }
  .sl-filters select, .sl-filters input{ width:100%; max-width:none }
  .sl-box{ padding:0; background:transparent; border:0; box-shadow:none }
  .sl-table thead{ display:none }
  .sl-table, .sl-table tbody{ display:block }
  .sl-table tr{ display:grid; grid-template-columns:1fr auto; gap:2px 10px; padding:12px 14px; margin-bottom:10px; border:1px solid var(--line); border-radius:12px; background:var(--panel) }
  .sl-table td{ display:block; padding:0; border:0 }
  .sl-table .sl-cl{ grid-column:1; grid-row:1; font-weight:600 } .sl-table .sl-cl .muted{ font-weight:400; font-size:12.5px }
  .sl-table .sl-vl{ grid-column:2; grid-row:1; font-weight:700; font-size:15px; text-align:right }
  .sl-table .sl-pr{ grid-column:1; grid-row:2; font-size:13.5px }
  .sl-table .sl-st{ grid-column:2; grid-row:2; text-align:right }
  .sl-table .sl-dt{ grid-row:3; font-size:12px; color:var(--muted) }
  .sl-table .sl-dt{ grid-column:1 } .sl-table .sl-pl{ grid-column:2; grid-row:3; font-size:12px; color:var(--muted); text-align:right }
  .sl-table .sl-ex, .sl-table .sl-pg{ display:none } .sl-m{ display:inline }
  .sl-table td[colspan]{ grid-column:1 / -1 }
}

/* Aba Anúncios (Meta Ads): tabela larga com a coluna do nome fixa ao rolar para o lado */
.ad-box{ padding:0 }
.ad-table{ min-width:1500px }
.ad-table th, .ad-table td{ white-space:nowrap; font-size:13px; padding:9px 10px }
.ad-table .ad-name{ white-space:normal; min-width:220px; max-width:300px; position:sticky; left:0; background:var(--panel); z-index:1 }
.ad-table th:nth-child(2){ position:sticky; left:0; z-index:2 }
.ad-table .ad-name a{ color:var(--ink); text-decoration:none; font-weight:500 } .ad-table .ad-name a:hover{ text-decoration:underline }
.ad-tot td{ background:var(--line2) }
.ad-bud{ padding:0 6px; min-height:0; line-height:1.4 }
.ad-sw{ position:relative; display:inline-block; width:38px; height:22px; cursor:pointer }
.ad-sw input{ opacity:0; width:0; height:0 }
.ad-sw i{ position:absolute; inset:0; background:#cbd5e1; border-radius:22px; transition:.2s }
.ad-sw i::before{ content:""; position:absolute; width:16px; height:16px; left:3px; top:3px; background:#fff; border-radius:50%; transition:.2s }
.ad-sw input:checked + i{ background:#2563eb } .ad-sw input:checked + i::before{ transform:translateX(16px) }
@media (max-width:760px){ .ad-table .ad-name{ min-width:150px; max-width:170px } }

/* Títulos na serifada da marca */
h1{ font-family:"Baskervville",Georgia,serif; font-weight:600; letter-spacing:.005em }
/* Logo da loja: o B dourado + "Loja" na serifada */
.logo{ gap:10px } .logo img{ width:40px !important; height:40px; border-radius:8px }
.logo-txt{ font-family:"Baskervville",Georgia,serif; font-size:22px; color:#F5F4F3; letter-spacing:.02em }
.logo img + .logo-txt::before{ content:"Bods & Co. · "; color:var(--gold); font-size:15px }
.auth-logo{ width:96px !important; height:auto }
