/* =====================================================================
   AceleraBio · Painel administrativo — design system + layout responsivo
   Mobile first: <900px = barra inferior + cards | ≥900px = menu lateral + tabelas
   ===================================================================== */
:root {
  --bg: #f4f5fb; --surface: #ffffff; --surface2: #f8f9fe; --ink: #14172b; --muted: #667089; --line: #e5e8f3;
  --brand: #5b4bff; --brand2: #8a5cff; --brand-ink: #fff; --brand-soft: #eeebff;
  --ok: #12a566; --ok-soft: #e3f7ee; --warn: #d98a00; --warn-soft: #fff3d6; --bad: #e0344f; --bad-soft: #fde8ec; --info: #2b7bff; --info-soft: #e5efff;
  --side: #12143a; --side-ink: #c9cdf5;
  --r: 16px; --r-sm: 11px; --shadow: 0 1px 2px rgba(20, 23, 43, .04), 0 8px 24px rgba(20, 23, 43, .06);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --nav-h: 66px; --top-h: 60px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0d0f22; --surface: #161934; --surface2: #1b1f3e; --ink: #eef0ff; --muted: #9aa2c9; --line: #262a52; --brand-soft: #25225a; --ok-soft: #0f3326; --warn-soft: #3b2d0a; --bad-soft: #3d1420; --info-soft: #11264d; --side: #0a0b21; --shadow: 0 8px 24px rgba(0, 0, 0, .35); }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- shell ---------- */
.app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.side { display: none; }
.main { flex: 1; min-width: 0; padding: calc(var(--top-h) + 14px) 14px calc(var(--nav-h) + 24px + env(safe-area-inset-bottom)); max-width: 1240px; width: 100%; margin: 0 auto; }

.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 30; height: var(--top-h); display: flex; align-items: center; gap: 10px; padding: 0 14px; background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: -.02em; font-size: 17px; text-decoration: none; color: var(--ink); }
.logo { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-weight: 900; background: linear-gradient(135deg, var(--brand), var(--brand2) 60%, #ff7ab8); box-shadow: 0 6px 16px rgba(91, 75, 255, .4); }
.top-sp { flex: 1; }
.store-pick { max-width: 190px; }
.store-pick select { width: 100%; height: 38px; padding: 0 30px 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 13.5px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23667089' stroke-width='2' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; }
.me { display: flex; align-items: center; gap: 9px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: var(--brand); background: var(--brand-soft); border: 0; cursor: pointer; }
.me-meta { display: none; line-height: 1.15; } .me-meta b { display: block; font-size: 13.5px; } .me-meta small { color: var(--muted); font-size: 12px; }

.menu-pop { position: absolute; right: 14px; top: calc(var(--top-h) - 4px); min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; z-index: 40; }
.menu-pop .who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; } .menu-pop .who b { display: block; font-size: 14px; word-break: break-all; } .menu-pop .who small { color: var(--muted); }
.menu-pop button { width: 100%; text-align: left; border: 0; background: none; padding: 11px 10px; border-radius: 9px; cursor: pointer; font-weight: 600; display: flex; gap: 10px; align-items: center; } .menu-pop button:hover { background: var(--surface2); }

/* navegação inferior (mobile) */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding: 6px 6px env(safe-area-inset-bottom); display: flex; justify-content: space-around; background: color-mix(in srgb, var(--surface) 92%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.nav a { flex: 1; max-width: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 600; border-radius: 12px; position: relative; }
.nav a svg { width: 23px; height: 23px; } .nav a.on { color: var(--brand); } .nav a.on::before { content: ''; position: absolute; top: -7px; width: 26px; height: 3px; border-radius: 0 0 4px 4px; background: var(--brand); }

/* ---------- desktop ---------- */
@media (min-width: 900px) {
  .app { flex-direction: row; }
  .side { display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; width: 250px; background: var(--side); color: var(--side-ink); padding: 20px 14px; z-index: 35; }
  .side .brand { color: #fff; padding: 4px 8px 22px; font-size: 19px; }
  .side nav { display: flex; flex-direction: column; gap: 4px; }
  .side nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; text-decoration: none; color: var(--side-ink); font-weight: 600; font-size: 14.5px; transition: background .15s, color .15s; }
  .side nav a svg { width: 20px; height: 20px; flex: none; opacity: .9; } .side nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
  .side nav a.on { background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff; box-shadow: 0 8px 20px rgba(91, 75, 255, .35); }
  .side .side-foot { margin-top: auto; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .06); font-size: 12.5px; }
  .side .side-foot a { color: #fff; font-weight: 700; text-decoration: none; display: inline-block; margin-top: 6px; }
  .nav { display: none; }
  .topbar { left: 250px; padding: 0 28px; }
  .topbar .brand { display: none; }
  .main { margin-left: 250px; width: calc(100% - 250px); max-width: none; padding: calc(var(--top-h) + 26px) 28px 48px; }
  .main > .page { max-width: 1180px; margin: 0 auto; }
  .me-meta { display: block; }
  .store-pick { max-width: 260px; }
}

/* ---------- componentes ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 4px 0 18px; }
.page-head h1 { font-size: 24px; letter-spacing: -.02em; font-weight: 800; } .page-head p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; }
.card + .card { margin-top: 14px; }
.card h3 { font-size: 15.5px; font-weight: 800; letter-spacing: -.01em; } .card .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; color: var(--ink); transition: transform .12s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn:hover { background: var(--surface2); } .btn:active { transform: scale(.98); } .btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn.primary { background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff; border-color: transparent; box-shadow: 0 8px 18px rgba(91, 75, 255, .3); } .btn.primary:hover { filter: brightness(1.06); }
.btn.ok { background: var(--ok); color: #fff; border-color: transparent; } .btn.ok:hover { filter: brightness(1.08); }
.btn.wa { background: #1fbf63; color: #fff; border-color: transparent; } .btn.wa:hover { filter: brightness(1.07); }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); } .btn.danger:hover { background: var(--bad-soft); }
.btn.sm { min-height: 34px; padding: 0 11px; font-size: 13px; border-radius: 10px; }
.btn.block { width: 100%; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field > label, .lbl { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.input, .select, textarea.input { width: 100%; min-height: 44px; padding: 0 13px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s; font-size: 15px; }
textarea.input { padding: 11px 13px; min-height: 84px; resize: vertical; }
.input:focus, .select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.input[disabled] { background: var(--surface2); color: var(--muted); }
.select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23667089' stroke-width='2' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; }
.hint { font-size: 12.5px; color: var(--muted); }
.grid2 { display: grid; gap: 0 14px; grid-template-columns: 1fr; } @media (min-width: 560px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: var(--line); transition: background .2s; } .switch i::after { content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.switch input:checked + i { background: var(--ok); } .switch input:checked + i::after { transform: translateX(18px); } .switch input:disabled { cursor: not-allowed; } .switch input:disabled + i { opacity: .55; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-active { background: var(--info-soft); color: var(--info); } .b-redeemed { background: var(--ok-soft); color: var(--ok); } .b-expired { background: var(--bad-soft); color: var(--bad); } .b-none { background: var(--surface2); color: var(--muted); }
.b-warn { background: var(--warn-soft); color: var(--warn); } .b-brand { background: var(--brand-soft); color: var(--brand); }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 720px) { .kpis { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.kpi { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; box-shadow: var(--shadow); overflow: hidden; }
.kpi .ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 10px; } .kpi .ic svg { width: 18px; height: 18px; }
.kpi .v { font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; } .kpi .l { color: var(--muted); font-size: 12.5px; font-weight: 600; margin-top: 3px; } .kpi .d { font-size: 12px; color: var(--muted); margin-top: 5px; }
.ic.c1 { background: var(--brand-soft); color: var(--brand); } .ic.c2 { background: var(--info-soft); color: var(--info); } .ic.c3 { background: var(--ok-soft); color: var(--ok); } .ic.c4 { background: var(--warn-soft); color: var(--warn); } .ic.c5 { background: var(--bad-soft); color: var(--bad); }

.cols { display: grid; gap: 14px; margin-top: 14px; } .cols > .card { margin: 0; }
@media (min-width: 1000px) { .cols.c21 { grid-template-columns: 2fr 1fr; } .cols.c11 { grid-template-columns: 1fr 1fr; } }

/* gráfico */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { font: 600 10px var(--font); fill: var(--muted); } .chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .bar { fill: color-mix(in srgb, var(--brand) 22%, transparent); transition: fill .15s; } .chart .bar:hover { fill: color-mix(in srgb, var(--brand) 45%, transparent); }
.chart .ln1 { fill: none; stroke: var(--brand); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; } .chart .ln2 { fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 10px; } .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* funil / listas de barras */
.bars { display: grid; gap: 12px; }
.bar-row .top { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 600; margin-bottom: 5px; gap: 10px; } .bar-row .top span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.bar-track { height: 9px; border-radius: 99px; background: var(--surface2); overflow: hidden; border: 1px solid var(--line); } .bar-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--brand2)); transition: width .6s cubic-bezier(.2, .9, .3, 1); }

/* lista responsiva: tabela no desktop, cards no mobile */
.tbl { width: 100%; border-collapse: collapse; display: none; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 14px; } .tbl tr:last-child td { border-bottom: 0; } .tbl tbody tr:hover { background: var(--surface2); }
.tbl .code { font-weight: 800; letter-spacing: .02em; font-variant-numeric: tabular-nums; } .tbl small { color: var(--muted); }
.tbl .acts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.cards { display: grid; gap: 10px; }
.item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; box-shadow: var(--shadow); }
.item .hd { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.item .code { font-size: 20px; font-weight: 800; letter-spacing: .03em; font-variant-numeric: tabular-nums; } .item .who { color: var(--muted); font-size: 13.5px; }
.item .pz { font-weight: 700; margin: 8px 0 2px; } .item .meta { color: var(--muted); font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 2px 12px; }
.item .acts { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; } .item .acts .btn { flex: 1; min-width: 120px; }
.card.table-card { display: none; }
@media (min-width: 900px) { .tbl { display: table; } .cards.mobile-only { display: none; } .card.table-card { display: block; padding: 6px 10px; } }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; margin: 0 -14px; padding-left: 14px; padding-right: 14px; } .chips::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .chips { margin: 0; padding-left: 0; padding-right: 0; flex-wrap: wrap; } }
.chip { flex: none; height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 13.5px; cursor: pointer; color: var(--muted); } .chip.on { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 6px 14px rgba(91, 75, 255, .3); }
.searchbar { position: relative; margin-bottom: 10px; } .searchbar svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); } .searchbar .input { padding-left: 40px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; color: var(--muted); font-size: 13.5px; }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); } .empty b { display: block; font-size: 16px; color: var(--ink); margin: 8px 0 2px; } .empty .big { font-size: 38px; }
.skeleton { border-radius: 10px; background: linear-gradient(90deg, var(--surface2), var(--line), var(--surface2)); background-size: 200% 100%; animation: sk 1.2s infinite; height: 18px; } @keyframes sk { to { background-position: -200% 0; } }

/* prêmios */
.prob-bar { display: flex; height: 16px; border-radius: 99px; overflow: hidden; background: var(--surface2); border: 1px solid var(--line); margin: 6px 0 4px; }
.prob-bar span { height: 100%; transition: width .3s; min-width: 0; }
.prob-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--muted); font-weight: 600; } .prob-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }
.prize { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--surface); margin-bottom: 10px; }
.prize.off { opacity: .6; } .prize.fixed { background: var(--surface2); border-style: dashed; }
.prize .ph { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; } .prize .ph .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; } .prize .ph b { flex: 1; min-width: 0; }
.prize .fields { display: grid; gap: 0 12px; grid-template-columns: 1fr; } @media (min-width: 700px) { .prize .fields { grid-template-columns: 2fr 1fr 1fr; } .prize .fields .span3 { grid-column: 1 / -1; } }
.prize .field { margin-bottom: 10px; }
.ro-list .prize .fields > div { margin-bottom: 8px; } .ro-list .v { font-weight: 700; }
.savebar { position: sticky; bottom: calc(var(--nav-h) + 8px + env(safe-area-inset-bottom)); z-index: 10; display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(20, 23, 43, .18); margin-top: 14px; }
@media (min-width: 900px) { .savebar { bottom: 16px; } }

/* modal */
.overlay { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; background: rgba(10, 12, 32, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: 100%; max-width: 560px; max-height: 92dvh; max-height: 92vh; overflow: auto; background: var(--surface); border-radius: 22px 22px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); animation: up .3s cubic-bezier(.2, .9, .3, 1); box-shadow: 0 -10px 50px rgba(0, 0, 0, .3); }
@keyframes up { from { transform: translateY(40px); opacity: .6; } }
@media (min-width: 640px) { .overlay { align-items: center; } .modal { border-radius: 22px; padding: 24px; } }
.modal h2 { font-size: 19px; letter-spacing: -.02em; margin-bottom: 4px; } .modal .lead { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.modal .foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; flex-wrap: wrap; } .modal .foot .btn { flex: 1 1 130px; }
.pwbox { display: flex; gap: 8px; align-items: center; padding: 12px; border-radius: 12px; background: var(--brand-soft); border: 1px dashed var(--brand); font-weight: 800; font-size: 18px; letter-spacing: .04em; word-break: break-all; justify-content: space-between; }
.note { padding: 11px 13px; border-radius: 12px; font-size: 13.5px; background: var(--warn-soft); color: var(--warn); font-weight: 600; margin-bottom: 14px; } .note.info { background: var(--info-soft); color: var(--info); }

.toasts { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + 14px + env(safe-area-inset-bottom)); z-index: 200; display: grid; gap: 8px; justify-items: center; pointer-events: none; padding: 0 14px; }
@media (min-width: 900px) { .toasts { bottom: 24px; } }
.toast { pointer-events: auto; max-width: 440px; width: fit-content; padding: 12px 16px; border-radius: 14px; background: #14172b; color: #fff; font-weight: 600; font-size: 14px; box-shadow: 0 12px 34px rgba(0, 0, 0, .35); animation: up .3s; display: flex; gap: 9px; align-items: center; }
.toast.ok { background: #0f7a4d; } .toast.err { background: #b3243b; }

.loading-screen { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg); z-index: 300; } .spinner { width: 38px; height: 38px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }
.btn .spinner { width: 16px; height: 16px; border-width: 2px; }

/* utilitários */
.mt { margin-top: 14px; } .mb { margin-bottom: 14px; } .right { text-align: right; } .muted { color: var(--muted); } .nowrap { white-space: nowrap; } .flex { display: flex; gap: 10px; align-items: center; } .grow { flex: 1; }
@media print { .side, .nav, .topbar, .savebar { display: none !important; } .main { margin: 0; padding: 0; width: 100%; } }

/* 6 KPIs em linha no desktop */
@media (min-width: 720px) { .kpis.k6 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1180px) { .kpis.k6 { grid-template-columns: repeat(6, 1fr); } }
.kpi .v small { font-weight: 600; }

.row-actions .select { width: auto; }

/* ---- em negociação ---- */
.b-neg { background: #fff4d6; color: #a86400; }
@media (prefers-color-scheme: dark) { .b-neg { background: rgba(255, 190, 60, .16); color: #ffc660; } }
.b-lost { background: #ffe4e4; color: #b3261e; }
@media (prefers-color-scheme: dark) { .b-lost { background: rgba(255, 90, 90, .16); color: #ff8a8a; } }
.btn.lost { background: #ffe4e4; color: #b3261e; border-color: #f5b5b0; font-weight: 700; } .btn.lost:hover { background: #ffd1cf; }
.kpis.k10 { grid-template-columns: repeat(2, 1fr); } @media (min-width: 1180px) { .kpis.k10 { grid-template-columns: repeat(5, 1fr); } }
.btn.neg { background: #fff4d6; color: #a86400; border-color: #f3d58a; font-weight: 700; } .btn.neg:hover { background: #ffe9b0; }

/* ---- v2: assinatura/serviço ---- */
.b-lead { background: #fff1de; color: #b45f00; } .b-member { background: #efe8ff; color: #6a3fd1; }
@media (prefers-color-scheme: dark) { .b-lead { background: rgba(255, 159, 28, .16); color: #ffb454; } .b-member { background: rgba(124, 92, 255, .2); color: #b9a4ff; } }
.stack { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.grp { margin: 22px 0 10px; font-size: 17px; } .page-head.tight { margin-bottom: 10px; align-items: flex-end; } .page-head.tight .grp { margin: 0 0 2px; }
.pgroup { margin-bottom: 30px; } .pgroup + .pgroup { padding-top: 22px; border-top: 2px dashed var(--line); }
.hint.warn { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--bad-soft); color: var(--bad); font-weight: 600; }
.seg-box { padding: 14px; border: 1px solid var(--line); border-radius: 14px; } .seg-t { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; } .seg-t b { font-size: 24px; }
.ro-list .prize .fields { grid-template-columns: 1fr 1fr; } @media (min-width: 700px) { .ro-list .prize .fields { grid-template-columns: repeat(4, 1fr); } }
.ro-list .prize .fields .span3 { grid-column: 1 / -1; }

/* logo (imagem) */
.logo-img { width: 34px; height: 34px; border-radius: 11px; flex: none; display: block; box-shadow: 0 6px 16px rgba(91, 75, 255, .4); }
.logo-full { height: 40px; width: auto; display: block; }

/* ícones do menu do usuário (estavam sem tamanho) */
.menu-pop button svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.menu-pop button { font-size: 14.5px; color: var(--ink); line-height: 1.2; }
.menu-pop #mOut, .menu-pop #mOut svg { color: var(--bad); }
.menu-pop { min-width: 240px; }
.btn.ghost { background: transparent; color: var(--muted); }
