/* Sempre Cheio — Plataforma (Revenda + Admin) local styles. Tokens from ../../colors_and_type.css */
body { background: var(--bg-page); }

.app-shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }

/* ---------- Sidebar ---------- */
.sidebar { background: var(--petroleo-700); color: var(--areia-200); padding: 22px 16px; display: flex; flex-direction: column; gap: 3px; position: sticky; top: 0; height: 100vh; overflow-y: auto; overscroll-behavior: contain; }
.sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 18px; }
.sidebar .brand img { height: 26px; }
.role-switch { display: flex; background: var(--petroleo-800); border-radius: 999px; padding: 3px; margin: 0 4px 18px; }
.role-switch button { flex: 1; padding: 8px 0; border: 0; background: transparent; color: var(--areia-300); font: 600 12px var(--font-body); border-radius: 999px; cursor: pointer; transition: all var(--t-base) var(--ease-out); }
.role-switch button.on { background: var(--chama-400); color: white; }
.navgroup { font: 600 10px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--areia-400); padding: 14px 12px 6px; }
.navlink { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; color: var(--areia-200); cursor: pointer; font: 500 14px var(--font-body); text-decoration: none; position: relative; }
.navlink:hover { background: rgba(255,253,248,0.06); color: var(--areia-0); }
.navlink.active { background: var(--petroleo-500); color: var(--areia-0); font-weight: 600; }
.navlink i { width: 18px; height: 18px; }
.navlink .pill { margin-left: auto; background: var(--chama-400); color: white; font: 700 10px var(--font-body); padding: 2px 7px; border-radius: 999px; }
.sidebar .sep { flex: 1; }
.sidebar .user { display: flex; gap: 10px; padding: 10px 12px; border-radius: 10px; align-items: center; cursor: pointer; }
.sidebar .user:hover { background: rgba(255,253,248,0.06); }
.sidebar .user .av { width: 34px; height: 34px; border-radius: 10px; background: var(--chama-400); display: grid; place-items: center; font: 700 13px var(--font-body); color: white; flex-shrink: 0; }
.sidebar .user .who { display: flex; flex-direction: column; min-width: 0; }
.sidebar .user .name { font: 600 13px var(--font-body); color: var(--areia-0); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar .user .where { font: 500 11px var(--font-mono); color: var(--areia-300); letter-spacing: 0.02em; }

/* ---------- Main ---------- */
.main { padding: 26px 36px 64px; max-width: 1180px; }
.topbar { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.topbar h1 { font-size: 30px; }
.topbar .sub { color: var(--ink-3); font-size: 14px; margin-top: 3px; }
.topbar .right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.iconbtn { width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center; background: var(--bg-paper); border: 1px solid var(--line-1); color: var(--ink-2); cursor: pointer; position: relative; }
.iconbtn .dot { position: absolute; top: 7px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--chama-400); }
.balance-chip { display: flex; align-items: center; gap: 10px; background: var(--petroleo-500); color: var(--areia-0); border-radius: 999px; padding: 7px 8px 7px 16px; }
.balance-chip .lbl { font: 500 11px var(--font-body); color: var(--areia-200); }
.balance-chip .val { font: 700 15px var(--font-mono); color: var(--areia-0); }
.balance-chip .go { width: 28px; height: 28px; border-radius: 999px; background: var(--chama-400); display: grid; place-items: center; }
.balance-chip .go i { width: 15px; height: 15px; color: white; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; font: 600 14px var(--font-body); border: 0; cursor: pointer; transition: background var(--t-base) var(--ease-out); text-decoration: none; white-space: nowrap; }
.btn.primary { background: var(--chama-400); color: white; }
.btn.primary:hover { background: var(--chama-500); }
.btn.brand { background: var(--petroleo-500); color: var(--areia-0); }
.btn.brand:hover { background: var(--petroleo-600); }
.btn.secondary { background: transparent; color: var(--petroleo-500); border: 1.5px solid var(--petroleo-500); }
.btn.secondary:hover { background: var(--petroleo-50); }
.btn.ghost { background: transparent; color: var(--ink-2); padding: 8px 12px; }
.btn.ghost:hover { color: var(--ink-1); text-decoration: underline; text-underline-offset: 4px; }
.btn.sm { padding: 7px 14px; font-size: 13px; }
.btn.lg { padding: 14px 24px; font-size: 15px; }
.btn:disabled { background: var(--areia-200); color: var(--ink-3); cursor: not-allowed; }

/* ---------- KPI tiles ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.kpi { background: var(--bg-paper); border: 1px solid var(--line-1); border-radius: var(--r-md); padding: 18px 20px; }
.kpi .top { display: flex; align-items: center; gap: 8px; color: var(--ink-3); }
.kpi .top i { width: 16px; height: 16px; }
.kpi .top .t { font: 600 12px var(--font-body); }
.kpi .v { font-family: var(--font-display); font-size: 32px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; color: var(--ink-1); margin-top: 12px; }
.kpi .d { font: 500 12px var(--font-body); margin-top: 6px; color: var(--ink-3); }
.kpi .d.up { color: var(--sucesso); }
.kpi .d.warn { color: var(--alerta); }
.kpi.accent { background: var(--petroleo-500); border: none; box-shadow: var(--shadow-cool); }
.kpi.accent .top, .kpi.accent .v, .kpi.accent .d { color: var(--areia-0); }
.kpi.accent .top { color: var(--chama-300); }
.kpi.accent .d { color: var(--areia-200); }

/* ---------- Section header ---------- */
.section-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.section-h h3 { font-size: 18px; }
.section-h a, .section-h button.link { font: 600 13px var(--font-body); color: var(--petroleo-500); text-decoration: none; background: none; border: 0; cursor: pointer; }
.cols { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; }

/* ---------- Cards / panels ---------- */
.panel { background: var(--bg-paper); border: 1px solid var(--line-1); border-radius: var(--r-md); }
.panel-pad { padding: 20px; }

/* ---------- Device status ---------- */
.dev { display: inline-flex; align-items: center; gap: 7px; font: 600 12px var(--font-body); }
.dev .led { width: 8px; height: 8px; border-radius: 50%; position: relative; }
.dev.online .led { background: var(--sucesso); box-shadow: 0 0 0 3px var(--sucesso-bg); }
.dev.offline .led { background: var(--ink-4); box-shadow: 0 0 0 3px var(--areia-100); }
.dev.online { color: var(--sucesso); }
.dev.offline { color: var(--ink-3); }

/* level bar */
.level { display: flex; align-items: center; gap: 10px; }
.level .bar { width: 80px; height: 7px; border-radius: 999px; background: var(--areia-200); overflow: hidden; }
.level .bar .fill { height: 100%; border-radius: 999px; }
.level .fill.ok { background: var(--sucesso); }
.level .fill.mid { background: var(--alerta); }
.level .fill.low { background: var(--chama-400); }
.level .pct { font: 600 12px var(--font-mono); color: var(--ink-2); width: 34px; }

/* ---------- Table ---------- */
.tbl { width: 100%; border-collapse: collapse; }
.tbl thead th { text-align: left; font: 600 11px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.tbl tbody td { padding: 13px 16px; border-bottom: 1px solid var(--line-1); font-size: 14px; color: var(--ink-1); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover { background: var(--areia-50); }
.tbl .who2 { display: flex; align-items: center; gap: 11px; }
.tbl .who2 .av { width: 32px; height: 32px; border-radius: 9px; background: var(--areia-100); display: grid; place-items: center; font: 700 12px var(--font-body); color: var(--ink-2); flex-shrink: 0; }
.tbl .who2 .nm { font-weight: 600; }
.tbl .who2 .sub { font: 500 12px var(--font-body); color: var(--ink-3); }
.tbl .prod { display: inline-flex; align-items: center; gap: 7px; }
.tbl .prod img { height: 26px; }
.tbl .right { text-align: right; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 600 11px var(--font-body); }
.badge .d { width: 6px; height: 6px; border-radius: 50%; }
.b-ok { background: var(--sucesso-bg); color: var(--sucesso); }
.b-warn { background: var(--alerta-bg); color: var(--alerta); }
.b-err { background: var(--erro-bg); color: var(--erro); }
.b-info { background: var(--petroleo-50); color: var(--petroleo-600); }
.b-flame { background: var(--chama-100); color: var(--chama-700); }
.b-muted { background: var(--areia-100); color: var(--ink-3); }

/* ---------- Reposição alert cards ---------- */
.alert-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line-1); }
.alert-row:last-child { border-bottom: none; }
.alert-row .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; }
.alert-row .ico.gas { background: var(--chama-100); }
.alert-row .ico.water { background: var(--petroleo-50); }
.alert-row .ico img { height: 30px; }
.alert-row .t1 { font: 600 14px var(--font-body); color: var(--ink-1); }
.alert-row .t2 { font: 500 12px var(--font-body); color: var(--ink-3); margin-top: 2px; display: flex; gap: 8px; align-items: center; }

/* ---------- Financeiro / split ---------- */
.split-card { background: var(--bg-paper); border: 1px solid var(--line-1); border-radius: var(--r-md); padding: 20px; }
.split-bd { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.split-line { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line-1); font-size: 14px; }
.split-line:last-child { border-bottom: none; }
.split-line .l { color: var(--ink-2); display: inline-flex; gap: 8px; align-items: center; }
.split-line .v { font-family: var(--font-mono); font-weight: 500; color: var(--ink-1); }
.split-line.fee .v { color: var(--erro); }
.split-line.net { padding-top: 12px; }
.split-line.net .l { font-weight: 700; color: var(--ink-1); }
.split-line.net .v { font-weight: 700; color: var(--sucesso); font-size: 16px; }

.flow { display: flex; align-items: center; gap: 0; margin: 4px 0 2px; }
.flow .node { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; flex: 1; }
.flow .node .circ { width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; background: var(--areia-100); color: var(--ink-3); border: 2px solid var(--areia-200); }
.flow .node .circ i { width: 16px; height: 16px; }
.flow .node.done .circ { background: var(--sucesso); color: white; border-color: var(--sucesso); }
.flow .node.current .circ { background: var(--chama-400); color: white; border-color: var(--chama-400); }
.flow .node .lbl { font: 600 11px var(--font-body); color: var(--ink-2); }
.flow .node .sub { font: 500 10px var(--font-mono); color: var(--ink-3); }
.flow .seg { height: 2px; flex: 0 0 28px; background: var(--areia-200); margin-bottom: 28px; }
.flow .seg.done { background: var(--sucesso); }

/* ---------- Loja ---------- */
.store-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.product-card { background: var(--bg-paper); border: 1px solid var(--line-1); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.product-card .media { background: var(--areia-100); padding: 28px; display: grid; place-items: center; }
.product-card .media img { height: 120px; }
.product-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-card .tag { font: 600 11px var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--chama-500); }
.product-card .nm { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.product-card .desc { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.product-card ul { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 6px; }
.product-card li { font-size: 13px; color: var(--ink-2); display: flex; gap: 8px; align-items: center; }
.product-card li i { width: 15px; height: 15px; color: var(--sucesso); flex-shrink: 0; }
.product-card .price { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -0.02em; margin-top: auto; }
.product-card .price .per { font: 500 13px var(--font-body); color: var(--ink-3); margin-left: 4px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.qty button { width: 34px; height: 34px; border: 0; background: var(--bg-paper); color: var(--ink-1); font-size: 18px; cursor: pointer; }
.qty button:hover { background: var(--areia-100); }
.qty .n { width: 40px; text-align: center; font: 700 15px var(--font-mono); }
.cart-bar { position: sticky; bottom: 0; margin-top: 18px; background: var(--petroleo-500); color: var(--areia-0); border-radius: var(--r-md); padding: 16px 22px; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow-3); }
.cart-bar .sum { font: 500 13px var(--font-body); color: var(--areia-200); }
.cart-bar .total { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }

/* ---------- ROI calculator ---------- */
.roi-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 18px; align-items: start; }
.roi-controls { background: var(--bg-paper); border: 1px solid var(--line-1); border-radius: var(--r-md); padding: 22px 24px; display: flex; flex-direction: column; gap: 20px; }
.ctrl label { display: flex; justify-content: space-between; align-items: baseline; font: 600 13px var(--font-body); color: var(--ink-2); margin-bottom: 8px; }
.ctrl label .num { font: 700 16px var(--font-mono); color: var(--ink-1); }
.ctrl input[type=range] { width: 100%; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 999px; background: var(--areia-200); outline: none; accent-color: var(--chama-400); }
.ctrl input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--chama-400); cursor: pointer; border: 3px solid var(--bg-paper); box-shadow: var(--shadow-2); }
.ctrl input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--chama-400); cursor: pointer; border: 3px solid var(--bg-paper); }
.ctrl .hint { font: 500 11px var(--font-body); color: var(--ink-3); margin-top: 6px; }
.ctrl .range-ends { display: flex; justify-content: space-between; font: 500 10px var(--font-mono); color: var(--ink-4); margin-top: 4px; }

.roi-out { display: flex; flex-direction: column; gap: 14px; }
.roi-hero { background: var(--petroleo-500); color: var(--areia-0); border-radius: var(--r-lg); padding: 24px 26px; box-shadow: var(--shadow-cool); }
.roi-hero .eyebrow { color: var(--chama-300); }
.roi-hero .big { font-family: var(--font-display); font-size: 56px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; margin-top: 6px; }
.roi-hero .big .unit { font-size: 22px; font-weight: 500; color: var(--areia-200); margin-left: 8px; letter-spacing: 0; }
.roi-hero .cap { color: var(--areia-200); font-size: 13px; margin-top: 8px; }
.roi-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.roi-stat { background: var(--bg-paper); border: 1px solid var(--line-1); border-radius: var(--r-md); padding: 16px 18px; }
.roi-stat .l { font: 600 12px var(--font-body); color: var(--ink-3); }
.roi-stat .v { font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink-1); margin-top: 6px; }
.roi-stat .v.green { color: var(--sucesso); }

/* projection chart */
.chart { background: var(--bg-paper); border: 1px solid var(--line-1); border-radius: var(--r-md); padding: 20px; }
.chart .bars { display: flex; align-items: flex-end; gap: 6px; height: 150px; margin-top: 14px; }
.chart .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; position: relative; }
.chart .col .stack { width: 100%; display: flex; flex-direction: column-reverse; height: 100%; justify-content: flex-start; }
.chart .col .b { width: 100%; border-radius: 3px 3px 0 0; transition: height var(--t-slow) var(--ease-out); }
.chart .col .b.profit { background: var(--chama-400); }
.chart .col .mo { font: 500 10px var(--font-mono); color: var(--ink-4); }
.chart .baseline { position: relative; border-top: 2px dashed var(--petroleo-300); margin-top: -2px; }
.chart .legend { display: flex; gap: 16px; margin-top: 12px; font: 500 12px var(--font-body); color: var(--ink-3); }
.chart .legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart .legend .sw { width: 12px; height: 12px; border-radius: 3px; }

/* insight strip */
.insight { background: var(--chama-50); border: 1px solid var(--chama-100); border-radius: var(--r-md); padding: 16px 18px; display: flex; gap: 12px; align-items: flex-start; }
.insight i { color: var(--chama-500); flex-shrink: 0; margin-top: 1px; }
.insight .tx { font-size: 13px; color: var(--carvao-400); line-height: 1.5; }
.insight .tx strong { color: var(--ink-1); }

/* segmented filter */
.seg-filter { display: inline-flex; background: var(--areia-100); border-radius: 999px; padding: 3px; gap: 2px; }
.seg-filter button { border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; font: 600 13px var(--font-body); color: var(--ink-2); cursor: pointer; }
.seg-filter button.on { background: var(--bg-paper); color: var(--ink-1); box-shadow: var(--shadow-1); }

/* cadastro / login overlay */
.modal-scrim { position: fixed; inset: 0; background: rgba(15,76,92,0.5); z-index: 50; display: grid; place-items: center; padding: 24px; }
.modal { background: var(--bg-paper); border-radius: var(--r-xl); max-width: 460px; width: 100%; padding: 30px; box-shadow: var(--shadow-3); }
.modal h2 { font-size: 24px; margin-bottom: 6px; }
.modal p.sub { font-size: 14px; color: var(--ink-2); margin-bottom: 16px; }
.modal label { display: block; font: 600 12px var(--font-body); color: var(--ink-2); margin: 12px 0 6px; }
.modal input { width: 100%; padding: 11px 13px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--bg-paper); font: 500 15px var(--font-body); }
.modal input:focus { outline: 2px solid var(--chama-400); outline-offset: 1px; border-color: var(--petroleo-500); }

/* ---------- Preços e taxas (admin) ---------- */
.price-section { margin-bottom: 22px; }
.price-row { display: grid; grid-template-columns: 40px 1fr auto auto; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line-1); }
.price-row:last-child { border-bottom: none; }
.price-row .pimg { height: 32px; }
.price-row .pic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--areia-100); color: var(--petroleo-500); }
.price-row .pic i { width: 18px; height: 18px; }
.price-row .nm { font: 600 14px var(--font-body); color: var(--ink-1); }
.price-row .sub { font: 500 12px var(--font-body); color: var(--ink-3); margin-top: 1px; }
.price-row .was { font: 500 12px var(--font-mono); color: var(--ink-3); text-align: right; }
.price-input { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 10px; overflow: hidden; background: var(--bg-paper); transition: border-color var(--t-base), box-shadow var(--t-base); }
.price-input:focus-within { border-color: var(--petroleo-500); box-shadow: 0 0 0 2px var(--chama-400); }
.price-input .pre { padding: 0 4px 0 12px; font: 600 14px var(--font-mono); color: var(--ink-3); }
.price-input input { width: 78px; border: 0; outline: 0; padding: 10px 12px 10px 2px; font: 600 15px var(--font-mono); color: var(--ink-1); background: transparent; text-align: right; }
.price-input.pct input { width: 56px; }
.price-input .suf { padding: 0 12px 0 2px; font: 600 14px var(--font-mono); color: var(--ink-3); }
.price-dirty { color: var(--chama-600) !important; }
.save-bar { position: sticky; bottom: 0; margin-top: 20px; background: var(--bg-paper); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 14px 20px; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow-2); }
.save-bar .meta { font: 500 13px var(--font-body); color: var(--ink-3); }
.save-bar .meta strong { color: var(--ink-1); }
.saved-toast { display: inline-flex; align-items: center; gap: 7px; font: 600 13px var(--font-body); color: var(--sucesso); }
.saved-toast i { width: 16px; height: 16px; }

/* =========================================================
   Ray & Luz — dark-luxury overrides (loads last, wins)
   ========================================================= */

/* Gold fills → near-black text (never white) */
.btn.primary { background: var(--gold-400); color: var(--on-gold); letter-spacing: 0.02em; }
.btn.primary:hover { background: var(--gold-300); color: var(--on-gold); }
.btn.brand { background: var(--carvao-900); color: var(--areia-0); }
.btn.brand:hover { background: var(--petroleo-500); }
.btn.secondary { color: var(--carvao-900); border-color: var(--carvao-900); }
.btn.secondary:hover { background: var(--carvao-900); color: var(--areia-0); }
.role-switch button.on { background: var(--gold-400); color: var(--on-gold); }
.navlink .pill { background: var(--gold-400); color: var(--on-gold); }
.sidebar .user .av { color: var(--on-gold); }
.balance-chip .go i { color: var(--on-gold); }
.flow .node.current .circ { background: var(--gold-400); color: var(--on-gold); border-color: var(--gold-400); }
.level .fill.low { background: var(--gold-400); }

/* Accents & links → gold */
.iconbtn .dot { background: var(--gold-400); }
.section-h a, .section-h button.link { color: var(--accent-press); }
.section-h a:hover, .section-h button.link:hover { color: var(--accent); }
.balance-chip { background: var(--carvao-900); border: 1px solid rgba(196,148,60,0.16); }
.next-card .eyebrow, .roi-hero .eyebrow { color: var(--gold-300); }
.product-card .tag { color: var(--accent-press); }
.cart-bar { background: var(--petroleo-500); border: 1px solid rgba(196,148,60,0.16); }
.b-flame { background: var(--gold-100); color: var(--gold-700); }
.insight { background: var(--gold-50); border-color: var(--gold-100); }
.insight i { color: var(--accent-press); }
.chart .col .b.profit { background: var(--gold-400); }

/* Sidebar active — gold hairline on near-black */
.navlink.active { background: var(--petroleo-500); color: var(--gold-200); box-shadow: inset 2px 0 0 var(--gold-400); }

/* Serif display — refined Cormorant weight */
.kpi .v, .product-card .nm, .product-card .price, .roi-hero .big,
.roi-stat .v, .cart-bar .total, .plan-card2 .head .pr { font-weight: 500; }

/* Focus rings + scrim */
.modal input:focus { outline-color: var(--gold-400); border-color: var(--carvao-900); }
.price-input:focus-within { border-color: var(--gold-500); box-shadow: 0 0 0 2px rgba(196,148,60,0.35); }
.modal-scrim { background: rgba(15,13,11,0.5); backdrop-filter: blur(3px); }

/* ---------------------------------------------------------
   DARK THEME overrides — Plataforma / Admin
   --------------------------------------------------------- */
:root[data-theme="dark"] .btn.secondary { color: var(--areia-0); border-color: rgba(232,201,122,0.5); }
:root[data-theme="dark"] .btn.secondary:hover { background: var(--gold-400); color: var(--on-gold); border-color: var(--gold-400); }
:root[data-theme="dark"] .btn.brand { background: #221B12; border: 1px solid rgba(232,201,122,0.32); color: var(--gold-100); }
:root[data-theme="dark"] .btn.brand:hover { background: #2C2216; }
:root[data-theme="dark"] .btn:disabled { background: rgba(255,255,255,0.06); color: var(--ink-4); }

:root[data-theme="dark"] .tbl thead th { border-bottom-color: var(--line-2); }
:root[data-theme="dark"] .tbl tbody tr:hover { background: rgba(232,201,122,0.06); }
:root[data-theme="dark"] .tbl .who2 .av { background: rgba(232,201,122,0.10); color: var(--gold-200); }

:root[data-theme="dark"] .b-info { background: rgba(232,201,122,0.10); color: var(--gold-200); }
:root[data-theme="dark"] .b-flame { background: rgba(232,201,122,0.12); color: var(--gold-200); }
:root[data-theme="dark"] .b-muted { background: rgba(255,255,255,0.06); color: var(--ink-3); }

:root[data-theme="dark"] .level .bar { background: var(--line-2); }
:root[data-theme="dark"] .dev.offline .led { box-shadow: 0 0 0 3px rgba(255,255,255,0.06); }

:root[data-theme="dark"] .flow .node .circ { background: var(--bg-sunken); color: var(--ink-3); border-color: var(--line-2); }
:root[data-theme="dark"] .flow .seg { background: var(--line-2); }

:root[data-theme="dark"] .alert-row .ico.gas { background: rgba(232,201,122,0.12); }
:root[data-theme="dark"] .alert-row .ico.water { background: rgba(232,201,122,0.08); }

:root[data-theme="dark"] .product-card .media { background: var(--bg-sunken); }
:root[data-theme="dark"] .qty button:hover { background: rgba(232,201,122,0.10); }
:root[data-theme="dark"] .seg-filter { background: rgba(255,255,255,0.05); }
:root[data-theme="dark"] .seg-filter button.on { background: var(--bg-paper); }

:root[data-theme="dark"] .insight { background: rgba(232,201,122,0.08); border-color: rgba(232,201,122,0.18); }
:root[data-theme="dark"] .insight .tx { color: var(--ink-2); }

:root[data-theme="dark"] .price-row .pic { background: rgba(232,201,122,0.10); color: var(--gold-200); }
:root[data-theme="dark"] .chart .baseline { border-top-color: rgba(255,255,255,0.22); }
:root[data-theme="dark"] .save-bar { border-color: var(--line-2); }
