/* =====================================================================
   NextViral — camada de marca sobre base.css
   Cores tiradas do perfil @nextviral_: preto profundo, vermelho vivo
   (botões e destaques), vinho escuro (fundos dos posts) e branco.
   ===================================================================== */

@font-face { font-family: 'Urbanist'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/urbanist-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Urbanist'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/urbanist-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bebas Neue'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/bebas-neue-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Bebas Neue'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/bebas-neue-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tema claro (alternativo) ---------- */
:root {
  --display: 'Bebas Neue', 'Urbanist', system-ui, sans-serif;
  --nv-red: #e3262f;
  --nv-red-deep: #7a0d12;
  --nv-black: #0a0a0a;

  --bg: #ece7e7;
  --veil: linear-gradient(180deg, #f6f0f02e, #ece4e452);
  --tint: rgba(246, 241, 241, calc(.44 + var(--frost) * .28));
  --card: rgba(255, 255, 255, calc(.46 + var(--frost) * .2));
  --card-2: #2a10100b;
  --card-3: #2a101016;
  --panel: #faf7f7f2;
  --ink: #140d0d;
  --ink-2: #2e2222;
  --muted: #5f5252;
  --line: #2a10101a;
  --line-2: #2a10102b;
  --shadow-sm: 0 1px 2px #2a101012;
  --shadow: 0 1px 2px #2a10100f, 0 18px 40px -26px #2a101061;
  --glass-edge: #2a10101a;

  --accent: #d0141c;
  --accent-from: #ec2f37;
  --accent-to: #a50f16;
  --accent-ink: #ffffff;
  --accent-hi: #e0222a;
  --accent-soft: #d0141c1c;
  --accent-text: #b5121a;
  --accent-glow: #d0141c66;
  --mint: #d81f27;
  --mint-deep: #a3121a;
  --mint-soft: #d81f2730;
  --thumb: #d0141c;
  --on-thumb: #ffffff;
  --sig: #d0141c;
  --sig-text: #b5121a;
  --sig-soft: #d0141c1c;
  --data: #d81f27;
  --out: #8d8282;

  --good: #17774a;
  --warn: #8a5a08;
  --bad: #b3261e;
  --info: #3a5f8f;

  --c1: #d81f27;  /* produto principal */
  --c2: #3b3333;  /* order bump        */
  --c3: #e8833a;  /* upsell            */
  --c4: #c49a2c;  /* downsell / boleto */
  --c5: #8d8282;
  --c6: #6f87b5;

  --h: #f1d6d6;
  --tile-1: #d81f2722;
  --tile-2: #3b33331a;
  --tile-3: #e8833a22;
  --tile-4: #6f87b51c;
  --mono-ink: #1a0d0d;
}

/* ---------- Tema escuro (padrão da marca) ---------- */
[data-theme=dark] {
  --bg: #080606;
  --veil: linear-gradient(180deg, #0503031a, #03020257);
  --tint: rgba(26, 18, 18, calc(.36 + var(--frost) * .26));
  --card: rgba(10, 7, 7, calc(.40 + var(--frost) * .16));
  --card-2: #ffe4e40d;
  --card-3: #ffe4e419;
  --panel: #150e0ef2;
  --ink: #f7f2f2;
  --ink-2: #e6dada;
  --muted: #b6a6a6;
  --line: #ffdede17;
  --line-2: #ffdede29;
  --glass-hi: #ffe1e10e;
  --glass-rim: #ffe1e11a;
  --glass-top: #fff0f033;
  --glass-edge: #00000040;

  --accent: #ff3a41;
  --accent-from: #ff5a60;
  --accent-to: #c9141c;
  --accent-ink: #ffffff;
  --accent-hi: #ff5257;
  --accent-soft: #ff3a4124;
  --accent-text: #ff6e73;
  --accent-glow: #ff3a4166;
  --mint: #ff3a41;
  --mint-deep: #d61c24;
  --mint-soft: #ff3a4133;
  --thumb: #ff3a41;
  --on-thumb: #ffffff;
  --sig: #ff3a41;
  --sig-text: #ff6e73;
  --sig-soft: #ff3a4124;
  --data: #ff3a41;
  --out: #9b8f8f;

  --good: #86e0aa;
  --warn: #f6c56b;
  --bad: #ff9d8b;
  --info: #a9c4ee;
  --good-soft: #86e0aa1f;
  --warn-soft: #f6c56b21;
  --bad-soft: #ff9d8b21;
  --info-soft: #a9c4ee1f;

  --c1: #ff3a41;
  --c2: #efe6e6;
  --c3: #ff9a52;
  --c4: #f6c56b;
  --c5: #9b8f8f;
  --c6: #9db6e8;

  --h: #f4d9d9;
  --tile-1: #ff3a411f;
  --tile-2: #efe6e612;
  --tile-3: #ff9a521a;
  --tile-4: #9db6e81a;
}

/* ---------- Marca ---------- */
.side__brand { gap: 0; }
.nv-logo { display: block; width: 168px; height: auto; }
[data-theme=light] .nv-logo,
[data-theme=light] .nv-mark img { filter: brightness(0); }
.nv-mark {
  width: 38px; height: 38px; flex: none; border-radius: 11px;
  display: none; place-items: center;
  background: linear-gradient(145deg, var(--accent-from), var(--accent-to));
  box-shadow: inset 0 1px 0 #fff6, 0 8px 20px -8px var(--accent-glow);
}
.nv-mark img { width: 19px; height: auto; }
[data-theme=light] .nv-mark img { filter: none; }
html.is-rail .nv-logo { display: none; }
html.is-rail .nv-mark { display: grid; }
@media (width<=1279px) { .nv-logo { display: none; } .nv-mark { display: grid; } }
.head__mark .nv-mark { display: grid; }

.side__tag {
  font-size: var(--fs-2xs); color: var(--muted); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; margin-top: 6px; display: block;
}
html.is-rail .side__tag { display: none; }
@media (width<=1279px) { .side__tag { display: none; } }

/* Títulos no estilo dos posts (Bebas Neue, caixa alta) */
.phead h1 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  letter-spacing: .01em; font-size: clamp(40px, 4vw, 58px); line-height: .95;
}
.phead h1 em { font-style: normal; color: var(--accent-text); }
.phead__eyebrow {
  font-size: var(--fs-sm); color: var(--muted); font-weight: 600; display: block; margin-bottom: 6px;
}
.bal__num { font-family: var(--display); font-weight: 400; letter-spacing: .01em; font-size: clamp(48px, 4.6vw, 64px); }
.kpi__value { font-family: var(--display); font-weight: 400; letter-spacing: .02em; font-size: 34px; line-height: 1; }
.nv-big { font-family: var(--display); font-weight: 400; letter-spacing: .01em; line-height: .95; }

/* ---------- Layouts das páginas ---------- */
.nv-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(12, minmax(0, 1fr)); }
.nv-grid > * { min-width: 0; }
.span-12 { grid-column: span 12; } .span-8 { grid-column: span 8; } .span-7 { grid-column: span 7; }
.span-6 { grid-column: span 6; } .span-5 { grid-column: span 5; } .span-4 { grid-column: span 4; }
@media (width<=1279px) { .span-5, .span-7 { grid-column: span 6; } .span-4 { grid-column: span 6; } .span-8 { grid-column: span 12; } }
@media (width<=999px)  { .nv-grid > * { grid-column: span 12; } }
.nv-stack { display: flex; flex-direction: column; gap: var(--gap); }
.kpis + .nv-grid, .nv-grid + .nv-grid, .kpis + .card { margin-top: var(--gap); }

/* ---------- Faturamento (gráfico de linha) ---------- */
.nv-fat .bal { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; justify-content: space-between; }
.fc__ev--bump { background: var(--c2); }

/* ---------- Alunos ---------- */
.nv-alunos { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.nv-alunos__num { display: flex; align-items: flex-end; gap: 12px; }
.nv-alunos__num .nv-big { font-size: 76px; }
.nv-alunos__num small { color: var(--muted); font-weight: 600; font-size: var(--fs-sm); padding-bottom: 12px; }
.nv-meta { display: flex; flex-direction: column; gap: 8px; }
.nv-meta__row { display: flex; justify-content: space-between; font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }
.nv-meta__row b { color: var(--ink); font-weight: 700; }
.meter { display: block; height: 8px; border-radius: 99px; background: var(--card-3); overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: inherit; transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent-to), var(--accent-from)); transition: transform 1.1s var(--ease); }
.nv-mini { flex: none; margin-top: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }

/* ---------- Pagamentos ---------- */
.nv-pay { display: flex; flex-direction: column; gap: 4px; }
.nv-pay__row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.nv-pay__row:last-child { border-bottom: 0; }
.nv-pay__row .meter { grid-column: 2 / 4; height: 6px; }
.nv-pay__name { font-weight: 600; font-size: var(--fs-md); display: flex; align-items: center; gap: 8px; min-width: 0; }
.nv-pay__name small { color: var(--muted); font-weight: 600; font-size: var(--fs-xs); }
.nv-pay__val { text-align: right; font-weight: 700; font-size: var(--fs-md); }
.nv-pay__val small { display: block; color: var(--muted); font-weight: 600; font-size: var(--fs-2xs); }
.nv-best {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; margin-bottom: 8px;
  background: linear-gradient(135deg, var(--accent-soft), transparent 70%), var(--card-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.nv-best b { display: block; font-size: var(--fs-lg); }
.nv-best small { color: var(--muted); font-weight: 600; font-size: var(--fs-xs); }
.nv-crit { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

.nv-methods { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.nv-method { display: flex; flex-direction: column; gap: 12px; }
.nv-method__head { display: flex; align-items: center; gap: 12px; }
.nv-method__head .cell__text { flex: 1; }
.nv-method__big { font-family: var(--display); font-size: 40px; line-height: 1; letter-spacing: .01em; }
.nv-method__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.nv-method.is-best { box-shadow: inset 0 0 0 1.5px var(--accent), var(--shadow-sm); }

/* ---------- Tabela de vendas ---------- */
.nv-table td small { display: block; color: var(--muted); font-weight: 500; font-size: var(--fs-xs); margin-top: 2px; }
.nv-table td.r, .nv-table th.r { text-align: right; }
.nv-table tbody tr:hover td { background: var(--card-2); }
.nv-src { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.nv-src i { width: 9px; height: 9px; border-radius: 3px; background: var(--cc, var(--c1)); flex: none; }
.nv-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 6px 2px; color: var(--muted); font-size: var(--fs-sm); font-weight: 600; }
.nv-foot .btn { height: 34px; }
.card--flush .table-wrap { padding: 0 6px 6px; }

/* ---------- Funil / produtos ---------- */
.nv-prod { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.nv-prod:last-child { border-bottom: 0; }
.nv-prod .cell__text b { display: flex; align-items: center; gap: 8px; }
.nv-prod__nums { text-align: right; font-weight: 700; }
.nv-prod__nums small { display: block; color: var(--muted); font-weight: 600; font-size: var(--fs-xs); }
.nv-prod .meter { grid-column: 2 / 4; height: 6px; }
.nv-funnel { display: flex; flex-direction: column; gap: 10px; }
.nv-funnel__step { display: grid; grid-template-columns: 150px minmax(0, 1fr) 70px; align-items: center; gap: 12px; font-weight: 600; font-size: var(--fs-sm); }
.nv-funnel__bar { height: 34px; border-radius: 10px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.nv-funnel__bar i { display: flex; align-items: center; height: 100%; padding-left: 10px; color: #fff; font-weight: 700; font-size: var(--fs-sm); white-space: nowrap;
  background: linear-gradient(90deg, var(--cc, var(--accent-to)), color-mix(in oklab, var(--cc, var(--accent)) 70%, #fff)); border-radius: 10px; transition: width 1s var(--ease); }
.nv-funnel__step > span:last-child { text-align: right; color: var(--muted); }
@media (width<=760px) { .nv-funnel__step { grid-template-columns: 96px minmax(0, 1fr) 52px; } }

/* ---------- Integração ---------- */
.nv-status { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 99px; font-weight: 700; font-size: var(--fs-sm); }
.nv-status:before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in oklab, currentColor 22%, transparent); }
.nv-steps { display: flex; flex-direction: column; gap: 4px; counter-reset: passo; }
.nv-step { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.nv-step:last-child { border-bottom: 0; }
.nv-step:before { counter-increment: passo; content: counter(passo); grid-row: span 2; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center;
  font-weight: 700; background: var(--accent-soft); color: var(--accent-text); }
.nv-step b { font-weight: 600; }
.nv-step p { color: var(--muted); font-size: var(--fs-sm); line-height: 1.5; }
.nv-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line);
  border-radius: 8px; padding: 2px 7px; color: var(--ink-2); word-break: break-all; }
pre.nv-code { display: block; padding: 12px 14px; white-space: pre; overflow: auto; max-height: 340px; line-height: 1.5; word-break: normal; }
.nv-map td:first-child { white-space: nowrap; }

/* ---------- Alunos (lista) ---------- */
.nv-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.nv-tag { height: 22px; padding: 0 8px; border-radius: 99px; font-size: var(--fs-2xs); font-weight: 700; display: inline-flex; align-items: center;
  background: color-mix(in oklab, var(--cc, var(--c1)) 18%, transparent); color: color-mix(in oklab, var(--cc, var(--c1)) 75%, var(--ink)); }

/* Modo demonstração */
.nv-demo { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px; font-size: var(--fs-2xs); font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--warn); background: var(--warn-soft); white-space: nowrap; }
@media (width<=760px) { .nv-demo { display: none; } }

/* Entrada suave das páginas */
.view > .page { animation: nv-in .5s var(--ease) both; }
@keyframes nv-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.nav__pill { transition: transform .45s var(--ease), height .45s var(--ease), opacity .2s; }
.tabbar__pill { transition: transform .45s var(--ease), width .45s var(--ease), opacity .2s; }
.seg__thumb { transition: clip-path .4s var(--ease); }
.tube__fill { transition: transform .9s var(--ease); }
.split__seg i { transition: transform .9s var(--ease); }
@media (prefers-reduced-motion: reduce) { .view > .page { animation: none; } }

/* Menu "Mais" (celular) */
.nv-more {
  position: fixed; z-index: 41; right: 14px; bottom: calc(86px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 2px; padding: 6px; min-width: 220px; border-radius: 18px;
  background: linear-gradient(165deg, var(--glass-hi), transparent 46%), var(--panel);
  box-shadow: inset 0 0 0 1px var(--glass-rim), var(--shadow-lg);
  -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4);
}
.nv-more[hidden] { display: none; }
.nv-more a, .nv-more button { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; border-radius: 12px; font-weight: 600; font-size: var(--fs-md); color: var(--ink); text-align: left; }
.nv-more a:hover, .nv-more button:hover { background: var(--card-3); }
@media (width>760px) { .nv-more { display: none !important; } }
.side__me { cursor: default; }
.nv-recentes { display: flex; flex-direction: column; gap: 2px; }
.nv-recentes > small { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.nv-recente { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.nv-recente .cell__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nv-recente .cell__text b { font-size: var(--fs-md); font-weight: 600; }
.nv-recente .cell__text small { font-size: var(--fs-xs); color: var(--muted); font-weight: 500; }

/* correções de layout */
.nv-method__stats, .nv-mini, .nv-method .pace { flex: none; }
.nv-table td:first-child, .nv-table td:nth-child(5), .nv-table td:nth-child(6), .nv-table td.r { white-space: nowrap; }
.nv-table .nv-code { white-space: nowrap; word-break: normal; }
.nv-table td { vertical-align: top; }
.nv-method__head .cell__text { min-width: 0; }
.nv-method__head .cell__text b, .nv-method__head .cell__text small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nv-table--alunos td:nth-child(2), .nv-table--alunos td:nth-child(4), .nv-table--alunos td:nth-child(5) { white-space: nowrap; }
.nv-table--alunos td:nth-child(5) { text-align: right; }
.nv-table--alunos td:nth-child(6) { white-space: normal; }
.nv-funnel__bar i { text-shadow: 0 1px 2px #000a; }
@media (width<=999px) {
  .nv-fat .bal { flex-direction: column; align-items: stretch; }
  .nv-fat .bal__fig { align-items: flex-start; }
}

/* =====================================================================
   Acesso: login, janelas, equipe
   ===================================================================== */
.nv-auth { display: grid; place-items: center; overflow-y: auto; }
.nv-login { width: 100%; min-height: 100%; display: grid; place-items: center; padding: 24px 12px; }
.nv-login__card { width: min(440px, 100%); display: flex; flex-direction: column; gap: 14px; padding: 30px 28px 26px !important;
  background: linear-gradient(160deg, var(--glass-hi), transparent 50%), var(--panel) !important; box-shadow: inset 0 0 0 1px var(--glass-rim), var(--shadow-lg) !important; }
.nv-login__logo { width: 210px; height: auto; align-self: center; }
[data-theme=light] .nv-login__logo { filter: brightness(0); }
.nv-login__tag { text-align: center; margin: -8px 0 6px; }
.nv-login__h { font-size: 40px; text-align: center; }
.nv-login .seg { display: flex; }
.nv-login .seg button { flex: 1; justify-content: center; height: 36px; }
.nv-login form { display: flex; flex-direction: column; gap: 12px; }
.nv-login form[hidden] { display: none; }
.nv-login__btn { width: 100%; justify-content: center; margin-top: 4px; }
.nv-login__txt { color: var(--muted); font-size: var(--fs-sm); line-height: 1.5; }
.nv-field { display: flex; flex-direction: column; gap: 6px; }
.nv-field > span { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.nv-field .input { padding-left: 13px; }
.nv-aviso { border-radius: 12px; padding: 10px 12px; font-size: var(--fs-sm); font-weight: 600; line-height: 1.45; }
.nv-aviso[hidden] { display: none; }
.nv-pedido-ok { display: flex; gap: 10px; align-items: flex-start; }
.nv-pedido-ok svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.nv-demo-box { border-radius: 14px; padding: 12px 14px; font-size: var(--fs-xs); line-height: 1.55; color: var(--muted);
  background: var(--warn-soft); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--warn) 30%, transparent); display: flex; flex-direction: column; gap: 6px; }
.nv-demo-box b { color: var(--warn); display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); }
.nv-demo-box .nv-code { font-size: 11px; padding: 1px 6px; }
.nv-demo-box .linkbtn { align-self: flex-start; font-size: var(--fs-xs); }
.btn.is-busy { opacity: .6; pointer-events: none; }
.btn--danger-solid { background: var(--bad) !important; color: #fff !important; box-shadow: none !important; }
[data-theme=dark] .btn--danger-solid { color: #2a0a08 !important; }

/* botão de conta na barra lateral */
button.side__me { text-align: left; width: 100%; border-radius: 14px; padding: 6px; margin-left: -6px; margin-right: -6px; width: calc(100% + 12px); cursor: pointer; }
button.side__me:hover { background: var(--card-2); }
button.side__me .me__text { flex: 1; min-width: 0; }
button.side__me .me__text b, button.side__me .me__text small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
button.side__me > svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
button.head__me { border-radius: 50%; }

/* janelas */
.nv-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: #0008;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: nv-fade .2s ease both; }
.nv-modal__box { width: min(460px, 100%); max-height: calc(100dvh - 32px); overflow: auto; border-radius: 22px; padding: 6px 4px 18px;
  background: linear-gradient(160deg, var(--glass-hi), transparent 50%), var(--panel); box-shadow: inset 0 0 0 1px var(--glass-rim), var(--shadow-lg);
  animation: nv-in .3s var(--ease) both; }
.nv-modal__box .chead { padding: 14px 18px 0; }
.nv-modal__body { padding: 0 20px; display: flex; flex-direction: column; gap: 14px; }
.nv-modal__body form { display: flex; flex-direction: column; gap: 10px; }
.nv-modal__body form .btn { align-self: flex-start; }
.nv-modal__foot { padding: 16px 20px 0; margin-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
.nv-modal__txt { color: var(--muted); font-size: var(--fs-sm); line-height: 1.55; }
.nv-modal__txt b { color: var(--ink); }
.nv-modal__sub { font-size: var(--fs-md); font-weight: 700; margin-top: 4px; }
.nv-conta { display: flex; align-items: center; gap: 12px; }
.nv-conta .cell__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nv-conta .cell__text small { color: var(--muted); font-size: var(--fs-xs); }
.nv-senha { display: flex; align-items: center; gap: 10px; }
.nv-senha .nv-code { font-size: 18px; padding: 8px 12px; letter-spacing: .04em; }
@keyframes nv-fade { from { opacity: 0; } to { opacity: 1; } }

/* avisos rápidos */
.nv-toasts { position: fixed; z-index: 120; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.nv-toast { padding: 11px 14px; border-radius: 12px; font-weight: 600; font-size: var(--fs-sm); max-width: 360px;
  background: var(--panel) !important; box-shadow: inset 0 0 0 1px var(--glass-rim), inset 3px 0 0 currentColor, var(--shadow-lg); animation: nv-in .3s var(--ease) both; transition: opacity .4s, transform .4s; }
.nv-toast.is-out { opacity: 0; transform: translateY(6px); }
@media (width<=760px) { .nv-toasts { left: 12px; right: 12px; bottom: calc(92px + env(safe-area-inset-bottom)); align-items: stretch; } }

/* equipe */
.nv-pessoa { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nv-pessoa b { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nv-pessoa .pill { height: 20px; font-size: var(--fs-2xs); }
.nv-muted { color: var(--muted); font-weight: 500; font-size: var(--fs-sm); }
.nv-pedidos { display: flex; flex-direction: column; }
.nv-pedido { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.nv-pedido:last-child { border-bottom: 0; }
.nv-pedido__acoes { display: flex; gap: 6px; align-items: center; }
@media (width<=760px) { .nv-pedido { grid-template-columns: 1fr; } .nv-pedido__acoes { flex-wrap: wrap; } }
.nv-select { height: 32px; min-width: 140px; padding: 0 10px; border-radius: 10px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.nv-select:disabled { opacity: .55; }
.nv-select option { color: #111; }
.nv-acoes { display: inline-flex; gap: 6px; flex-wrap: nowrap; justify-content: flex-end; }
.nv-table--equipe td { vertical-align: middle; }
.nv-table--equipe td:nth-child(3), .nv-table--equipe td:nth-child(4), .nv-table--equipe td:nth-child(5) { white-space: nowrap; }
.nv-papeis { display: flex; flex-direction: column; }
.nv-papel { display: grid; grid-template-columns: auto minmax(0, 220px) minmax(0, 1fr); gap: 8px 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.nv-papel:last-child { border-bottom: 0; }
.nv-papel .cell__text { display: flex; flex-direction: column; }
.nv-papel .cell__text small { color: var(--muted); font-size: var(--fs-xs); }
@media (width<=760px) { .nv-papel { grid-template-columns: auto 1fr; } .nv-papel .nv-tags { grid-column: 1 / -1; } }
.nv-login__alt { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--muted); font-weight: 500; margin-top: 2px; }
.nv-login__link { font-size: var(--fs-sm); }
.nv-login__txt b { color: var(--ink); }
.nv-login input[readonly] { opacity: .8; cursor: default; }
.nv-login__titulo { font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1; letter-spacing: .01em; text-transform: uppercase; text-align: center; margin: 2px 0 2px; }
.nv-login__row { display: flex; justify-content: flex-end; margin-top: -4px; }
.nv-login__sep { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: var(--fs-sm); font-weight: 500; margin: 6px 0 -2px; }
.nv-login__sep:before, .nv-login__sep:after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.nv-codigo { text-align: center; font-size: 26px !important; letter-spacing: .4em; font-weight: 700; height: 56px !important; font-variant-numeric: tabular-nums; }
.nv-codigo::placeholder { letter-spacing: .3em; color: var(--muted); opacity: .5; }
.nv-code--big { font-size: 16px !important; letter-spacing: .15em; padding: 3px 10px !important; color: var(--ink) !important; font-weight: 700; }

/* =====================================================================
   Central de avisos e e-mails
   ===================================================================== */
.nv-bignums { display: grid; gap: var(--gap); grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (width>=1680px) { .nv-bignums { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (width<=760px) { .nv-bignums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nv-bignums .kpi__foot { display: block; line-height: 1.45; }
.nv-bignums .kpi__foot .delta { vertical-align: 1px; }
.chead h2 svg { width: 18px; height: 18px; vertical-align: -3px; margin-right: 4px; color: var(--accent-text); }
.nv-avisos { display: flex; flex-direction: column; gap: 8px; }
.nv-av { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px;
  background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line), inset 3px 0 0 var(--tom, var(--line-2)); }
.nv-av.tone-bad { --tom: var(--bad); } .nv-av.tone-warn { --tom: var(--warn); } .nv-av.tone-good { --tom: var(--good); } .nv-av.tone-info { --tom: var(--info); }
.nv-av__ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--tom); background: color-mix(in oklab, var(--tom) 16%, transparent); }
.nv-av__ico svg { width: 20px; height: 20px; }
.nv-av__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nv-av__tag { font-size: var(--fs-2xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--tom); }
.nv-av__txt b { font-size: var(--fs-lg); font-weight: 600; line-height: 1.3; }
.nv-av__txt small { color: var(--muted); font-size: var(--fs-sm); line-height: 1.45; }
.nv-av__acoes { display: flex; align-items: center; gap: 10px; }
@media (width<=760px) { .nv-av { grid-template-columns: 40px minmax(0, 1fr); } .nv-av__acoes { grid-column: 2; } }
.nv-var { font-weight: 700; }
.nv-var.is-up { color: var(--good); } .nv-var.is-down { color: var(--bad); }
.nv-pay__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nv-emails { display: flex; flex-direction: column; padding: 0 8px 8px; }
.nv-email { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 14px; padding: 14px 10px; border-bottom: 1px solid var(--line); align-items: start; }
.nv-email:last-child { border-bottom: 0; }
.nv-email:not(.is-lido) { background: linear-gradient(90deg, var(--accent-soft), transparent 40%); border-radius: 12px; }
.nv-email.is-lido .nv-email__assunto { font-weight: 500; }
.nv-email__corpo { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.nv-email__topo { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.nv-email__topo small { color: var(--muted); font-size: var(--fs-xs); }
.nv-email__quando { margin-left: auto; color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }
.nv-email__tags { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.nv-email__tags .pill { height: 22px; font-size: var(--fs-2xs); }
.nv-email__assunto { font-weight: 700; font-size: var(--fs-md); }
.nv-email__trecho { color: var(--muted); font-size: var(--fs-sm); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nv-email__acoes { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
@media (width<=760px) { .nv-email { grid-template-columns: auto minmax(0, 1fr); } .nv-email__acoes { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; } }

/* Exportar relatório */
.nv-modal__box--largo { width: min(560px, 100%); }
.nv-formatos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.nv-formato { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 0 10px; align-items: center; text-align: left; padding: 12px 14px; border-radius: 14px;
  background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); }
.nv-formato svg { grid-row: span 2; width: 26px; height: 26px; color: var(--muted); }
.nv-formato b { font-size: var(--fs-md); }
.nv-formato small { color: var(--muted); font-size: var(--fs-xs); }
.nv-formato:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.nv-formato[aria-checked=true] { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.nv-formato[aria-checked=true] svg { color: var(--accent-text); }
.nv-modal .seg { display: flex; } .nv-modal .seg button { flex: 1; justify-content: center; }
.nv-exp-acoes { display: flex; gap: 8px; } .nv-exp-acoes .btn { flex: 1; justify-content: center; }
.nv-exp-email { padding-top: 12px; border-top: 1px solid var(--line); }
.nv-exp-email[hidden] { display: none !important; }
.textarea { font-family: inherit; color: var(--ink); resize: vertical; }
