/* ═══════════════════════════════════════════
   LOTOSTAT — PROFESSIONAL LOTTERY ANALYTICS
   lotostat.tendencias.app.br
   ═══════════════════════════════════════════ */

/* ── LIGHT THEME (padrão) ── */
:root {
  --bg:       #f0f2f7;
  --bg2:      #ffffff;
  --bg3:      #e8ebf2;
  --bg4:      #dde1ec;
  --bg5:      #cdd3e0;
  --border:   rgba(0,0,0,0.09);
  --border2:  rgba(0,0,0,0.16);
  --border3:  rgba(0,0,0,0.24);
  --text:     #0a0e1a;
  --text2:    #2d3748;
  --text3:    #5a6478;
  --text4:    #8a94a6;

  --mega:     #007a50;
  --mega2:    #005c3c;
  --mega-bg:  rgba(0,122,80,0.10);
  --loto:     #1a4fd6;
  --loto2:    #1440b8;
  --loto-bg:  rgba(26,79,214,0.10);
  --quina:    #be185d;
  --quina2:   #9d1050;
  --quina-bg: rgba(190,24,93,0.10);
  --gold:     #92400e;
  --gold-bg:  rgba(146,64,14,0.09);

  --fire:   #b91c1c;
  --hot:    #c2410c;
  --neutral:#4b5563;
  --cool:   #1d4ed8;
  --ice:    #bfdbfe;

  --accent: var(--mega);
  --accent-bg: var(--mega-bg);

  --sidebar-w: 256px;
  --radius:    12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --font-heading: 'Syne', sans-serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:    0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
}

/* ── DARK THEME ── */
body.dark {
  --bg:       #08090d;
  --bg2:      #0f1117;
  --bg3:      #161a24;
  --bg4:      #1e2435;
  --bg5:      #252c3f;
  --border:   rgba(255,255,255,0.06);
  --border2:  rgba(255,255,255,0.11);
  --border3:  rgba(255,255,255,0.18);
  --text:     #e4e8f0;
  --text2:    #8892a4;
  --text3:    #4d5668;
  --text4:    #2e3547;

  --mega:     #00e89a;
  --mega2:    #00b87a;
  --mega-bg:  rgba(0,232,154,0.08);
  --loto:     #5b9eff;
  --loto2:    #3b7de0;
  --loto-bg:  rgba(91,158,255,0.08);
  --quina:    #ff6eb5;
  --quina2:   #d94e93;
  --quina-bg: rgba(255,110,181,0.08);
  --gold:     #f5c542;
  --gold-bg:  rgba(245,197,66,0.08);

  --fire:   #ef4444;
  --hot:    #f97316;
  --neutral:#374151;
  --cool:   #3b82f6;
  --ice:    #1e3a5f;

  --shadow-sm: none;
  --shadow:    none;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.25s, color 0.25s;
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--bg5); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border3); }

/* ── SIDEBAR ── */
.sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform 0.3s ease, background 0.25s, border-color 0.25s;
  box-shadow: var(--shadow);
}
.sidebar-logo {
  padding: 1.5rem 1.25rem 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}
.logo-icon {
  width: 34px; height: 34px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--bg);
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.logo-text span { color: var(--accent); }

.sidebar-nav {
  flex: 1;
  padding: 1.25rem 0.75rem;
  overflow-y: auto;
}
.nav-group-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text3);
  padding: 0 0.5rem;
  margin-bottom: 0.5rem;
}
.nav-game-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text2);
  font-family: var(--font-body);
  font-size: 15px;
.nav-game-btn:hover { background: var(--bg4); color: var(--text); }
.nav-game-btn.active { background: var(--accent-bg); color: var(--text); }
.nav-game-btn.active.mega-active { background: var(--mega-bg); }
.nav-game-btn.active.loto-active { background: var(--loto-bg); }
.nav-game-btn.active.quina-active { background: var(--quina-bg); }
.nav-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.mega-dot  { background: var(--mega); }
.loto-dot  { background: var(--loto); }
.quina-dot { background: var(--quina); }
.nav-btn-name { flex: 1; }
.nav-btn-count {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text3);
}

.nav-section-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text3);
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: 1px;
  text-align: left;
}
.nav-section-btn span { font-size: 11px; }
.nav-section-btn:hover { background: var(--bg3); color: var(--text2); }
.nav-section-btn.active { color: var(--accent); }

.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
}
.data-source-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 4px;
}
.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text3);
  flex-shrink: 0;
}
.pulse-dot.green {
  background: var(--mega);
  box-shadow: 0 0 6px var(--mega);
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.4;} }
.sidebar-version {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text2);
  margin-top: 2px;
}

/* ── MOBILE HEADER ── */
.mobile-header {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  align-items: center;
  padding: 0 1rem;
  gap: 1rem;
  z-index: 200;
}
.hamburger {
  background: none;
  border: none;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
}
.mobile-logo {
  flex: 1;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.mobile-logo span { color: var(--mega); }
.mobile-theme-btn {
  background: none;
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  color: var(--text2);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: background 0.15s;
}
.mobile-theme-btn:hover { background: var(--bg3); }
.mobile-game-dots { display: flex; gap: 8px; align-items: center; }
.mdot {
  width: 12px; height: 12px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.15s;
}
.mdot.active { opacity: 1; }

/* ── MAIN AREA ── */
.main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
}

/* ── PAGE HEADER ── */
.page-header {
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}
.page-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.page-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}
.page-subtitle {
  font-size: 15px;
  color: var(--text2);
  margin-top: 4px;
}
.header-meta { text-align: right; }
.last-updated {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text3);
  margin-bottom: 4px;
}
.data-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--mega);
  background: var(--mega-bg);
  border: 1px solid rgba(0,232,154,0.2);
  border-radius: var(--radius-pill, 999px);
  padding: 3px 10px;
}

/* ── KPI ROW ── */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}
.kpi-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}
.kpi-card:hover { border-color: var(--border2); box-shadow: var(--shadow); }
.kpi-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 6px;
}
.kpi-value {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}
.kpi-sub { font-size: 13px; color: var(--text2); font-family: var(--font-mono); }

/* ── LOADING ── */
.section-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
}
.loader-wrap { text-align: center; }
.loader-ring-outer {
  width: 48px; height: 48px;
  border: 2px solid var(--bg5);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin: 0 auto 8px;
}
.loader-ring-inner {
  width: 32px; height: 32px;
  border: 2px solid var(--bg4);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.5s linear infinite reverse;
  margin: -40px auto 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-text {
  font-size: 13px;
  color: var(--text3);
  font-family: var(--font-mono);
  margin-top: 14px;
}
.hidden { display: none !important; }
.loading-shimmer {
  background: linear-gradient(90deg, var(--bg3) 25%, var(--bg4) 50%, var(--bg3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ── CONTENT ── */
.content-wrap { padding: 0 2rem 4rem; }

/* ── SECTIONS ── */
.stat-section {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}
.stat-section:last-child { border-bottom: none; }
.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.section-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.section-desc { font-size: 15px; color: var(--text2); }
.section-controls { display: flex; gap: 4px; flex-wrap: wrap; }
.ctrl-btn {
  padding: 7px 16px;
  border: 1px solid var(--border2);
  border-radius: 999px;
  background: transparent;
  color: var(--text2);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.ctrl-btn:hover { background: var(--bg4); color: var(--text); }
.ctrl-btn.active { background: var(--accent-bg); color: var(--accent); border-color: var(--accent); opacity: 0.9; }
.subsection-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text2);
  margin-bottom: 0.75rem;
}

/* ── HEATMAP ── */
.heatmap-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 1rem;
}
.hml-item { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text2); }
.hml-dot { width: 13px; height: 13px; border-radius: 50%; flex-shrink: 0; }
.heatmap-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.hball {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-mono);
  cursor: default;
  position: relative;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s;
  user-select: none;
  flex-shrink: 0;
}
.hball:hover {
  transform: scale(1.2);
  z-index: 10;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}
.hball .htip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg4);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text2);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s;
  z-index: 20;
  min-width: 120px;
  text-align: center;
}
.hball:hover .htip { opacity: 1; }

/* ── NUMBER LIST ── */
.number-list { display: flex; flex-direction: column; gap: 4px; }
.number-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg3);
  border: 1px solid var(--border);
  transition: border-color 0.15s;
}
.number-row:hover { border-color: var(--border2); }
.nr-rank { font-size: 12px; font-family: var(--font-mono); color: var(--text3); width: 20px; }
.nr-ball {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.nr-bar-wrap { flex: 1; }
.nr-bar-track {
  height: 5px;
  background: var(--bg5);
  border-radius: 2px;
  overflow: hidden;
}
.nr-bar-fill { height: 100%; border-radius: 2px; transition: width 0.5s ease; }
.nr-count { font-size: 14px; font-family: var(--font-mono); color: var(--text); white-space: nowrap; font-weight: 600; }
.nr-pct { font-size: 13px; color: var(--text2); white-space: nowrap; }

/* ── CHARTS ── */
.chart-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.chart-card-header { margin-bottom: 1rem; }
.chart-card-title { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text2); }
.chart-wrap { position: relative; }
.h200 { height: 200px; }
.h220 { height: 220px; }
.h240 { height: 240px; }
.h260 { height: 260px; }
.h280 { height: 280px; }

/* ── LAYOUTS ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.three-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
@media(max-width:900px) { .three-col { grid-template-columns: 1fr; } .two-col { grid-template-columns: 1fr; } }

/* ── TREND CARDS ── */
.trend-cards-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
@media(max-width:860px) { .trend-cards-row { grid-template-columns: 1fr; } }
.trend-side-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.trend-side-card.rising  { border-top: 3px solid var(--fire); }
.trend-side-card.cooling { border-top: 3px solid var(--cool); }
.trend-side-card.overdue { border-top: 3px solid var(--gold); }
.tsc-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.tsc-subtitle { font-size: 13px; color: var(--text2); margin-bottom: 1rem; }
.trend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}
.trend-num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  width: 28px;
  text-align: right;
  flex-shrink: 0;
}
.trend-bar-track { flex: 1; height: 6px; background: var(--bg5); border-radius: 3px; overflow: hidden; }
.trend-bar-fill { height: 100%; border-radius: 3px; transition: width 0.5s ease; }
.trend-val { font-size: 12px; font-family: var(--font-mono); color: var(--text2); width: 32px; text-align: right; }
.trend-delta {
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  font-weight: 600;
}
.trend-delta.up { background: rgba(239,68,68,0.15); color: #fca5a5; }
.trend-delta.down { background: rgba(59,130,246,0.15); color: #93c5fd; }

/* ── PAIRS ── */
.pairs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px,1fr)); gap: 8px; }
.pair-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s;
}
.pair-card:hover { border-color: var(--border2); background: var(--bg4); }
.pair-nums { font-family: var(--font-mono); font-size: 15px; font-weight: 600; color: var(--text); }
.pair-cnt { font-size: 13px; font-family: var(--font-mono); color: var(--text2); }
.pair-rank-badge {
  font-size: 9px;
  font-family: var(--font-mono);
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--bg5);
  color: var(--text3);
}

/* ── PARITY / SUM ── */
.parity-stat-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.parity-stat {
  flex: 1;
  min-width: 120px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  text-align: center;
}
.parity-stat-val { font-size: 22px; font-weight: 700; font-family: var(--font-heading); color: var(--text); }
.parity-stat-label { font-size: 11px; color: var(--text3); }

/* ── DECADES ── */
.decade-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 8px; margin-top: 1rem; }
.decade-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
}
.decade-card-range { font-size: 13px; font-family: var(--font-mono); color: var(--text2); margin-bottom: 4px; }
.decade-card-val { font-size: 26px; font-weight: 700; font-family: var(--font-heading); color: var(--text); }
.decade-card-pct { font-size: 13px; color: var(--text2); }
.decade-card-bar-track { height: 3px; background: var(--bg5); border-radius: 2px; margin-top: 8px; }
.decade-card-bar-fill { height: 100%; border-radius: 2px; }

/* ── SUGGESTIONS ── */
.suggest-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 12px; margin-bottom: 2rem; }
.suggest-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: all 0.2s;
}
.suggest-card:hover { border-color: var(--border2); background: var(--bg4); }
.suggest-strategy-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text2);
  margin-bottom: 3px;
}
.suggest-strategy-name { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 0.75rem; }
.suggest-balls { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 0.75rem; }
.sball {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  border: 1px solid transparent;
  flex-shrink: 0;
}
.suggest-stats { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.suggest-stat-item {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 3px;
}
.suggest-tip { font-size: 14px; color: var(--text2); line-height: 1.5; margin-top: 6px; }
.regen-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid var(--border2);
  border-radius: 999px;
  background: transparent;
  color: var(--text2);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.regen-btn:hover { background: var(--bg4); color: var(--text); border-color: var(--border3); }
.regen-btn svg { transition: transform 0.4s; }
.regen-btn:hover svg { transform: rotate(180deg); }

/* ── NOTICE ── */
.notice-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(146,64,14,0.07);
  border: 1px solid rgba(146,64,14,0.2);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--gold);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
body.dark .notice-warning {
  background: rgba(245,197,66,0.06);
  border-color: rgba(245,197,66,0.18);
  color: rgba(253,230,138,0.85);
}
.notice-warning svg { flex-shrink: 0; margin-top: 2px; color: var(--gold); }

/* ── CUSTOM GAME CHECKER ── */
.custom-check-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-top: 1.5rem;
}
.ccc-title { font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.ccc-desc { font-size: 14px; color: var(--text3); margin-bottom: 1.25rem; }
.ccc-input-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1rem; }
.ccc-input {
  width: 52px;
  height: 44px;
  text-align: center;
  background: var(--bg4);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  transition: border-color 0.15s;
}
.ccc-input:focus { outline: none; border-color: var(--accent); }
.ccc-btn {
  padding: 10px 24px;
  background: var(--accent-bg);
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.ccc-btn:hover { background: var(--accent); color: var(--bg); }
.ccc-result { margin-top: 1.25rem; }
.ccc-result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 8px; }
.ccc-result-item {
  background: var(--bg4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
}
.ccc-result-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text3); margin-bottom: 4px; }
.ccc-result-val { font-size: 18px; font-weight: 700; font-family: var(--font-heading); color: var(--text); }
.ccc-result-balls { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 1rem; }

/* ── THEME TOGGLE ── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.theme-toggle-label {
  font-size: 14px;
  color: var(--text2);
  font-weight: 600;
}
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  cursor: pointer;
}
.toggle-switch input { display: none; }
.toggle-track {
  position: absolute;
  inset: 0;
  background: var(--bg4);
  border-radius: 999px;
  border: 1px solid var(--border2);
  transition: background 0.2s, border-color 0.2s;
}
.toggle-switch input:checked + .toggle-track { background: var(--accent); border-color: var(--accent); }
.toggle-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-track + .toggle-thumb { transform: translateX(20px); }
/* ── SIDEBAR OVERLAY (mobile) ── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 99;
}

/* ── RESPONSIVE ── */
@media(max-width:768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 32px rgba(0,0,0,0.5);
  }
  .sidebar-overlay.show { display: block; }
  .mobile-header { display: flex; }
  .main { margin-left: 0; padding-top: 56px; }
  .page-header { padding: 1.25rem 1rem 1rem; }
  .content-wrap { padding: 0 1rem 3rem; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .hball { width: 38px; height: 38px; font-size: 11px; }
  .page-title { font-size: 24px; }
}
@media(max-width:480px) {
  .kpi-row { grid-template-columns: 1fr; }
  .hball { width: 34px; height: 34px; font-size: 10px; }
}

/* ── FADE-IN ANIMATION ── */
@keyframes fadeIn { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.4s ease both; }

/* ── GAME THEME ACCENT SWITCHING ── */
body.game-mega   { --accent: var(--mega);  --accent-bg: var(--mega-bg);  }
body.game-loto   { --accent: var(--loto);  --accent-bg: var(--loto-bg);  }
body.game-quina  { --accent: var(--quina); --accent-bg: var(--quina-bg); }
