/* ===========================================================================
   theme.css v2 — "EMBER OBSIDIAN"
   Identidade visual própria, carregada DEPOIS do <style> inline (sobrepõe a
   aparência sem mexer na lógica nem nos nomes de classe/variáveis).
   Paleta: obsidiana profunda + brasa (ember/cobre) + ciano-gelo para dados.
   Fontes: Marcellus (títulos, romana lapidar) + Outfit (corpo).
   =========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  --bg-0: #070709;
  --bg-1: #0c0c11;
  --panel: #121218;
  --panel-2: #1a1a23;
  --border: #26262f;
  --border-2: #3a3a49;
  --text: #ecebe6;
  --muted: #92919f;
  --gold: #ff8a3c;      /* ember — cor primária de ação */
  --gold-2: #ffb066;
  --teal: #5ad0e8;      /* ciano-gelo — dados/taxas */
  --violet: #a18dff;
  --green: #5fe0a0;
  --red: #ff5d73;
  --amber: #ffc36b;     /* valores/preços */
}

/* ---------- base ---------- */
body {
  background:
    radial-gradient(1100px 520px at 12% -12%, rgba(255,122,50,.09), transparent 60%),
    radial-gradient(880px 480px at 98% -6%, rgba(90,150,232,.07), transparent 55%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0));
  color: var(--text);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

input:focus, select:focus, textarea:focus {
  outline: none !important;
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 2px rgba(255,138,60,.18) !important;
}

*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--border-2), #23232e);
  border-radius: 10px; border: 2px solid transparent; background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--gold), #b4581f); background-clip: padding-box; }

::selection { background: rgba(255,138,60,.3); }

/* ---------- header ---------- */
header {
  position: relative;
  background: linear-gradient(150deg, rgba(30,26,38,.72), rgba(14,13,18,.72));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 22px 16px;
  margin-bottom: 14px;
  overflow: hidden;
}
header::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 22%, var(--gold-2) 50%, var(--gold) 78%, transparent);
  opacity: .8;
}
header::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(560px 190px at 88% -40%, rgba(255,138,60,.12), transparent 70%);
}
/* Logo da marca (img/logo.png) — moldura com brilho ember; se o arquivo não
   existir, o emblema SVG de fallback assume. */
.brand-logo {
  width: 62px; height: 62px; object-fit: contain;
  padding: 4px; border-radius: 14px;
  background:
    radial-gradient(circle at 32% 26%, rgba(255,176,102,.20), transparent 60%),
    linear-gradient(160deg, #1c1922, #121016);
  border: 1px solid var(--border-2);
  box-shadow: 0 0 26px rgba(255,138,60,.22), inset 0 0 12px rgba(255,138,60,.07);
  transition: transform .15s ease, box-shadow .15s ease;
}
.brand-logo:hover { transform: scale(1.05) rotate(-2deg); box-shadow: 0 0 34px rgba(255,138,60,.35); }

.header-icon {
  width: 50px; height: 50px; padding: 8px; border-radius: 12px;
  background:
    radial-gradient(circle at 32% 26%, rgba(255,176,102,.28), transparent 55%),
    linear-gradient(160deg, #1c1922, #121016);
  border: 1px solid var(--border-2);
  box-shadow: 0 0 24px rgba(255,138,60,.2), inset 0 0 12px rgba(255,138,60,.08);
}
h1 {
  font-family: 'Marcellus', Georgia, serif;
  font-weight: 400; font-size: 32px; letter-spacing: 1.5px;
  background: linear-gradient(94deg, #ffe3c2, #ffb066 45%, #ff8a3c 75%, #ff6b4a);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.subtitle { color: var(--muted); letter-spacing: .2px; }
.info-banner {
  background: rgba(20,18,26,.6);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 9px; color: #c6c2d2;
}
.info-banner strong { color: var(--gold-2); }
.info-banner code {
  background: rgba(255,255,255,.06); color: var(--teal);
  padding: 1px 5px; border-radius: 4px; font-size: 11px;
}
.data-freshness {
  margin-top: 8px; font-size: 11.5px; color: var(--muted);
  display: flex; align-items: center; gap: 6px; letter-spacing: .2px;
}
.data-freshness::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.special-link {
  display: inline-block; margin-top: 10px; padding: 7px 15px; font-size: 13px;
  color: #dceaff; text-decoration: none; border-radius: 999px;
  border: 1px solid var(--border-2);
  background: linear-gradient(135deg, rgba(90,150,232,.14), rgba(161,141,255,.12));
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.special-link strong { color: #bfe0ff; }
.special-link:hover { border-color: #7aa8ff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.4), 0 0 0 1px rgba(122,168,255,.25); }

/* ---------- abas (controle segmentado) ---------- */
.tab-bar {
  background: var(--panel);
  border: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px 8px;
}
.tab-btn {
  border: 1px solid transparent; background: transparent; color: var(--muted);
  border-radius: 8px; padding: 7px 18px;
  text-transform: uppercase; letter-spacing: 1px; font-weight: 600; font-size: 11.5px;
  font-family: 'Outfit', sans-serif;
}
.tab-btn:hover { color: var(--text); background: rgba(255,255,255,.04); }
.tab-btn.active {
  color: #190e04;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  border-color: transparent;
  box-shadow: 0 3px 14px rgba(255,138,60,.32);
}
.profile-selector { color: var(--muted); }
.profile-selector select { color: var(--violet); border-color: var(--border-2); background: var(--bg-0); border-radius: 7px; }

/* ---------- barra de simulação ---------- */
.simulation-setting {
  background: linear-gradient(160deg, rgba(24,22,32,.7), rgba(14,13,18,.7));
  border: 1px solid var(--border); border-radius: 11px;
}
.simulation-setting input { color: var(--teal); border-color: var(--border-2); background: var(--bg-0); border-radius: 6px; }
.setting-hint { color: var(--muted); }

/* ---------- cabeçalhos de categoria (chips) ---------- */
.category-header { border-bottom: none; padding-bottom: 0; margin-bottom: 12px; }
.category-name {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 5px 14px; border-radius: 999px; font-size: 12.5px; letter-spacing: 1.2px;
  border: 1px solid;
}
.category-name::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; box-shadow: 0 0 9px currentColor;
}
.category-name.safe, .category-name.low { color: var(--green); border-color: rgba(95,224,160,.35); background: rgba(95,224,160,.08); }
.category-name.medium { color: var(--amber); border-color: rgba(255,195,107,.35); background: rgba(255,195,107,.08); }
.category-name.high, .category-name.negative { color: var(--red); border-color: rgba(255,93,115,.35); background: rgba(255,93,115,.08); }
.category-count { color: var(--muted); }

/* ---------- cards de boss ---------- */
.category-grid { gap: 12px; }
.boss-card {
  position: relative; overflow: hidden;
  width: 232px;
  background: linear-gradient(165deg, #16151d, #0f0e13);
  border: 1px solid var(--border); border-radius: 12px;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.boss-card::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2), transparent 85%);
  opacity: .8;
}
.boss-card:has(.boss-ev.positive)::before { background: linear-gradient(90deg, var(--green), #2f9e69, transparent 85%); }
.boss-card:has(.boss-ev.negative)::before { background: linear-gradient(90deg, var(--red), #c23a52, transparent 85%); }
.boss-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,.5), 0 0 0 1px rgba(255,138,60,.25), 0 0 24px rgba(255,138,60,.08);
}
.boss-name { font-family: 'Marcellus', Georgia, serif; font-weight: 400; font-size: 15px; letter-spacing: .4px; color: var(--text); }

/* ícones dos itens de entrada (fragmentos/convites) no card */
.boss-entry-icons {
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
  margin: 2px 0 8px;
}
.entry-icon {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 6px;
  background: rgba(8,8,11,.55); border: 1px solid var(--border);
}
.entry-icon img { width: 20px; height: 20px; object-fit: contain; image-rendering: -webkit-optimize-contrast; filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }
.entry-icon i {
  position: absolute; right: -4px; bottom: -4px; font-style: normal;
  font-size: 8.5px; font-weight: 700; color: var(--amber);
  background: #1a1626; border: 1px solid var(--border-2); border-radius: 5px; padding: 0 3px; line-height: 1.3;
}
.boss-card:hover .entry-icon { border-color: var(--border-2); }

/* ícone na linha de entrada do detalhe */
.entry-item-icon { width: 20px; height: 20px; object-fit: contain; vertical-align: -4px; margin-right: 2px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }
.boss-entry { color: var(--muted); }
.boss-win-rate { color: var(--teal); }
.boss-ttk { color: var(--violet); }
.boss-hourly { border-top: 1px solid rgba(58,58,73,.55); }
.boss-per-hour.positive { color: var(--green); }
.boss-per-hour.negative { color: var(--red); }
.boss-ev { padding: 2px 9px; border-radius: 999px; font-weight: 700; }
.boss-ev.positive { color: #a9f5cb; background: rgba(95,224,160,.13); }
.boss-ev.negative { color: #ffb9c3; background: rgba(255,93,115,.13); }
.quantity-badge { color: #ffd9a1; background: rgba(255,138,60,.15); }

/* ---------- tooltip dos breakpoints de IIQ (T17) ---------- */
.has-tip { cursor: help; }
.iiq-tip {
  display: none; position: fixed; z-index: 4000;
  left: 0; top: 0; width: 258px;
  padding: 11px 13px; border-radius: 10px;
  background: linear-gradient(160deg, #1c1826, #131019);
  border: 1px solid var(--border-2);
  box-shadow: 0 12px 32px rgba(0,0,0,.6);
  font-size: 11.5px; font-weight: 400; color: var(--text);
  text-align: left; letter-spacing: 0; text-transform: none; line-height: 1.45;
  white-space: normal; pointer-events: none;
}
.iiq-tip.open { display: block; }
.iiq-tip b { display: block; color: var(--gold-2); font-size: 12px; margin-bottom: 7px; }
.iiq-tip table { width: 100%; border-collapse: collapse; margin-bottom: 7px; }
.iiq-tip th {
  text-align: left; font-size: 9.5px; text-transform: uppercase; letter-spacing: .5px;
  color: var(--muted); font-weight: 600; padding: 0 6px 4px 0; border-bottom: 1px solid var(--border);
}
.iiq-tip td { padding: 4px 6px 4px 0; color: var(--muted); border-bottom: 1px solid rgba(44,39,64,.5); }
.iiq-tip tr.on td { color: var(--gold-2); font-weight: 600; }
.iiq-tip tr.on td:first-child::before { content: '▸ '; color: var(--gold); }
.iiq-tip i { display: block; font-style: normal; color: var(--muted); font-size: 10.5px; }
body.theme-light .iiq-tip { background: #fffdf9; }
.modified-badge { color: #ff8ab8; }

/* ---------- detalhe / breakdown ---------- */
.breakdown-panel {
  background: linear-gradient(165deg, #141319, #0e0d12);
  border: 1px solid var(--border); border-radius: 14px;
}
.breakdown-header { background: rgba(8,8,11,.65); border-bottom: 1px solid var(--border); }
.breakdown-title { color: var(--gold-2); font-family: 'Marcellus', Georgia, serif; font-weight: 400; letter-spacing: .6px; }
.detail-back { color: var(--teal); }
.detail-back:hover { color: #93e8f7; }
.summary-item { color: var(--muted); }
.summary-value { color: var(--amber); }
.summary-value.positive { color: var(--green); }
.summary-value.negative { color: var(--red); }
.summary-value.medium { color: var(--amber); }
.section {
  background: linear-gradient(165deg, #111017, #0d0c11);
  border: 1px solid var(--border); border-radius: 10px;
}
.section-title { color: var(--muted); border-bottom-color: var(--border); }
.section-ev { color: var(--green); }
.entry-label { color: var(--muted); }
.entry-line { background: rgba(8,8,11,.55); border: 1px solid var(--border); border-radius: 8px; }
.entry-total, .entry-item input { color: var(--amber); }
.entry-qty { color: var(--teal); }

.drop-table th { background: #16151d; color: var(--muted); border-bottom-color: var(--border); }
.drop-table th, .drop-table td { border-bottom-color: var(--border); }
.drop-table tbody tr:nth-child(odd) td { background: rgba(255,255,255,.015); }
.drop-table .price, .drop-table .price input[type="text"] { color: var(--amber); }
.drop-table .rate, .drop-table .rate input[type="text"] { color: var(--teal); }
.drop-table .ev.positive { color: var(--green); }
.drop-table input { border-radius: 5px; }
.guaranteed-label { color: #9df3c4; background: rgba(95,224,160,.15); }
.trade-icon { color: var(--teal); }

/* ---------- botões de ação (ember) ---------- */
.create-profile-btn, .modal-btn.confirm, .simulator-btn {
  background: linear-gradient(180deg, var(--gold-2), var(--gold)) !important;
  color: #190e04 !important; border: none !important; font-weight: 600;
  box-shadow: 0 2px 12px rgba(255,138,60,.3);
}
.create-profile-btn:hover, .modal-btn.confirm:hover, .simulator-btn:hover { filter: brightness(1.08); }
.reset-btn { border-radius: 7px; }
.simulator-title { color: var(--amber); }
.sim-result { background: rgba(8,8,11,.55); border: 1px solid var(--border); border-radius: 8px; }
.sim-result-value.success { color: var(--green); }
.sim-result-value.danger { color: var(--red); }
.sim-result-value.neutral { color: var(--teal); }

/* ---------- perfis ---------- */
.profile-item {
  background: linear-gradient(165deg, #16151d, #0f0e13);
  border: 1px solid var(--border); border-radius: 11px;
}
.profile-item:hover { border-color: var(--border-2); }
.profile-item.active { border-color: var(--violet); box-shadow: 0 0 0 1px rgba(161,141,255,.22); }
.profile-item.editing { border-color: var(--gold); background: #1b1820; }
.profile-editor { background: rgba(8,8,11,.5); border-radius: 10px; }
.ttk-item { background: #15141b; border-radius: 7px; }
.ttk-item input { color: var(--violet); border-radius: 5px; }
.profile-btn { border-radius: 7px; }
.profile-btn.primary { border-color: rgba(161,141,255,.4); color: var(--violet); }
.profile-btn.danger { border-color: rgba(255,93,115,.35); color: var(--red); }

/* ---------- modais ---------- */
.modal {
  background: linear-gradient(165deg, #191722, #100f15);
  border: 1px solid var(--border-2); border-radius: 16px;
  box-shadow: 0 28px 70px rgba(0,0,0,.65);
}
.modal h3 { color: var(--gold-2); font-family: 'Marcellus', Georgia, serif; font-weight: 400; letter-spacing: .5px; }
.modal-field input, .modal-field textarea { border-radius: 8px; }
.template-option.selected { border-color: var(--violet); box-shadow: 0 0 0 1px rgba(161,141,255,.22); }

/* ---------- menu de contexto / tooltips ---------- */
.ctx-menu { background: #181721; border: 1px solid var(--border-2); border-radius: 10px; }
.ctx-menu-item:hover { background: var(--panel-2); }
.ctx-menu-item.danger { color: #ff8ab8; }
.info-tooltip { background: #181721; border: 1px solid var(--border-2); border-radius: 9px; }
.info-btn { background: var(--panel-2); }
.info-btn:hover { background: var(--border-2); color: var(--gold-2); }

/* ---------- overlay de cotação ---------- */
.header-right {
  background: linear-gradient(160deg, rgba(24,22,32,.85), rgba(14,13,18,.85));
  border: 1px solid var(--border-2); border-radius: 11px;
}
.ratio-input label { color: var(--muted); }
.ratio-input input { background: var(--bg-0); border: 1px solid var(--border-2); color: var(--text); border-radius: 6px; }
.ratio-refresh:hover, .ratio-settings:hover { background: var(--panel-2); color: var(--gold); }
.ratio-divider { background: var(--border-2); }
.toggle-btn { background: var(--bg-0); }
.toggle-btn.active { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #190e04; }
.settings-modal { background: linear-gradient(165deg, #191722, #100f15); border: 1px solid var(--border-2); border-radius: 14px; }
.settings-checkbox-label input[type="checkbox"] { accent-color: var(--gold); }

/* ---------- badge de status da live (canto inferior direito) ---------- */
.live-badge {
  position: fixed; right: 18px; bottom: 18px; z-index: 3000;
  display: flex; align-items: center; gap: 9px;
  padding: 10px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; text-decoration: none; color: var(--text);
  background: linear-gradient(160deg, rgba(24,22,32,.92), rgba(14,13,18,.92));
  border: 1px solid var(--border-2);
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  backdrop-filter: blur(6px);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.live-badge:hover { transform: translateY(-2px); }
.live-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.live-badge.checking .live-dot { background: var(--muted); }
.live-badge.is-off .live-dot { background: var(--muted); }
.live-badge.is-off { color: var(--muted); }
.live-badge.is-off:hover { border-color: var(--border-2); color: var(--text); }
.live-badge.is-live {
  border-color: rgba(255,70,120,.55);
  box-shadow: 0 8px 24px rgba(0,0,0,.5), 0 0 22px rgba(255,70,120,.25);
}
.live-badge.is-live .live-dot {
  background: #ff4676;
  box-shadow: 0 0 10px #ff4676;
  animation: live-pulse 1.6s ease-in-out infinite;
}
.live-badge.is-live b { color: #ff6d93; letter-spacing: .6px; }
.live-badge.is-live:hover { border-color: #ff4676; }
.live-sub { display: block; font-size: 10.5px; font-weight: 400; color: var(--muted); margin-top: 1px; }
@keyframes live-pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.82); } }
@media (max-width: 640px) { .live-badge { right: 10px; bottom: 10px; padding: 8px 12px; font-size: 12px; } }

/* ---------- botão de tema (pop-up no canto inferior esquerdo) ---------- */
.theme-toggle {
  position: fixed; left: 18px; bottom: 18px; z-index: 3000;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--border-2);
  background: linear-gradient(160deg, rgba(24,22,32,.92), rgba(14,13,18,.92));
  font-size: 19px; cursor: pointer; line-height: 1;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  backdrop-filter: blur(6px);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.theme-toggle:hover { transform: translateY(-2px) rotate(14deg); border-color: var(--gold); box-shadow: 0 8px 24px rgba(0,0,0,.5), 0 0 18px rgba(255,138,60,.25); }
body.theme-light .theme-toggle { background: rgba(255,253,249,.95); }
@media (max-width: 640px) { .theme-toggle { left: 10px; bottom: 10px; width: 40px; height: 40px; font-size: 16px; } }

/* ===========================================================================
   MODO CLARO — ativado por body.theme-light (botão ☀️/🌙 na barra de abas).
   Troca as variáveis e sobrepõe os fundos escuros fixos.
   =========================================================================== */
body.theme-light {
  --bg-0: #efece5;
  --bg-1: #f7f4ee;
  --panel: #ffffff;
  --panel-2: #f0ebe2;
  --border: #ddd5c6;
  --border-2: #c6bba7;
  --text: #2c261e;
  --muted: #79705f;
  --gold: #d96f1f;
  --gold-2: #f0932e;
  --teal: #0e7c9e;
  --violet: #6a4fd8;
  --green: #178a53;
  --red: #cf3b56;
  --amber: #a56a10;

  color: var(--text);
  background:
    radial-gradient(1100px 520px at 12% -12%, rgba(217,111,31,.10), transparent 60%),
    radial-gradient(880px 480px at 98% -6%, rgba(90,120,200,.08), transparent 55%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0));
}

/* painéis e superfícies */
body.theme-light header { background: linear-gradient(150deg, #fffdf9, #f4efe6); }
body.theme-light header::after { background: radial-gradient(560px 190px at 88% -40%, rgba(217,111,31,.10), transparent 70%); }
body.theme-light h1 { background: linear-gradient(94deg, #b35510, #d96f1f 55%, #c14e18); -webkit-background-clip: text; background-clip: text; }
body.theme-light .info-banner { background: #fbf8f2; color: #5d5546; }
body.theme-light .info-banner code { background: rgba(0,0,0,.06); }
body.theme-light .brand-logo { background: radial-gradient(circle at 32% 26%, rgba(240,147,46,.18), transparent 60%), #fff; }

body.theme-light .simulation-setting { background: #fbf8f2; }
body.theme-light .tab-btn:hover { background: rgba(0,0,0,.05); }
body.theme-light .boss-card { background: linear-gradient(165deg, #ffffff, #f7f3ec); }
body.theme-light .boss-card:hover { box-shadow: 0 12px 30px rgba(80,60,30,.18), 0 0 0 1px rgba(217,111,31,.3); }
body.theme-light .boss-hourly { border-top-color: var(--border); }
body.theme-light .boss-ev.positive { color: #0f6b3e; background: rgba(23,138,83,.12); }
body.theme-light .boss-ev.negative { color: #a02940; background: rgba(207,59,86,.12); }
body.theme-light .quantity-badge { color: #8a5a00; background: rgba(217,111,31,.14); }
body.theme-light .entry-icon { background: rgba(0,0,0,.05); }

body.theme-light .breakdown-panel { background: linear-gradient(165deg, #ffffff, #f6f2ea); }
body.theme-light .breakdown-header { background: #f3eee5; }
body.theme-light .section { background: linear-gradient(165deg, #fbf8f2, #f4efe6); }
body.theme-light .entry-line { background: #fff; }
body.theme-light .drop-table th { background: #efe9dd; }
body.theme-light .drop-table tbody tr:nth-child(odd) td { background: rgba(0,0,0,.022); }
body.theme-light .guaranteed-label { color: #0f6b3e; background: rgba(23,138,83,.14); }
body.theme-light .sim-result { background: #fff; }

body.theme-light .profile-item { background: linear-gradient(165deg, #ffffff, #f7f3ec); }
body.theme-light .profile-item.editing { background: #fdf6ea; }
body.theme-light .profile-editor { background: rgba(0,0,0,.035); }
body.theme-light .ttk-item { background: #fff; }

body.theme-light .modal,
body.theme-light .settings-modal,
body.theme-light .ctx-menu,
body.theme-light .info-tooltip { background: #fffdf9; }
body.theme-light .ctx-menu-item:hover { background: var(--panel-2); }
body.theme-light .info-btn { background: var(--panel-2); color: var(--muted); }
body.theme-light .header-right { background: #fffdf9; }
body.theme-light .live-badge { background: rgba(255,253,249,.95); color: var(--text); }

/* campos: fundo claro em TODOS os inputs/selects/textarea */
body.theme-light input,
body.theme-light select,
body.theme-light textarea {
  background: #fff !important;
  color: var(--text) !important;
  border-color: var(--border-2) !important;
}
body.theme-light .drop-table .rate input[type="text"] { color: var(--teal) !important; }
body.theme-light .drop-table .price input[type="text"],
body.theme-light .entry-item input { color: var(--amber) !important; }
body.theme-light .ttk-item input,
body.theme-light .profile-selector select { color: var(--violet) !important; }
body.theme-light .simulation-setting input { color: var(--teal) !important; }
body.theme-light input.modified { color: #c02a74 !important; border-color: #c02a74 !important; }

/* textos que o estilo base fixa em cinza-claro/cinza-escuro */
body.theme-light .simulation-setting label,
body.theme-light .profile-name,
body.theme-light .ttk-item-name,
body.theme-light .entry-name,
body.theme-light .template-name,
body.theme-light .ctx-menu-item,
body.theme-light .settings-checkbox-label,
body.theme-light .settings-modal-header,
body.theme-light .profiles-header h2,
body.theme-light .info-tooltip { color: var(--text); }
body.theme-light .boss-stats,
body.theme-light .boss-entry,
body.theme-light .category-count,
body.theme-light .profile-stats,
body.theme-light .modal-field label,
body.theme-light .modal-hint,
body.theme-light .template-desc,
body.theme-light .setting-sep,
body.theme-light .setting-hint,
body.theme-light .section-title,
body.theme-light .section-hint,
body.theme-light .entry-label,
body.theme-light .entry-subtotal,
body.theme-light .entry-equals,
body.theme-light .summary-item,
body.theme-light .simulator-toggle,
body.theme-light .sim-result-label,
body.theme-light .loading,
body.theme-light .subtitle,
body.theme-light .back-link,
body.theme-light .profile-btn,
body.theme-light .modal-btn.cancel,
body.theme-light .import-profile-btn,
body.theme-light .ratio-input label,
body.theme-light .ratio-input .ratio-unit { color: var(--muted); }
body.theme-light .drop-table td { color: var(--text); }

/* scrollbar clara */
body.theme-light ::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #cfc5b2, #bfb39d); background-clip: padding-box; }
