/* ══════════════════════════════════════════
   New Features CSS — Bank Rates, Fuel, Holidays, Tax, Lottery, World Clock
   ══════════════════════════════════════════ */

/* ── Bank Rates ── */
.br-meta { font-size:12px; color:var(--ink-subtle); margin-bottom:12px; padding:6px 10px; background:var(--surface-2); border-radius:var(--radius-sm); border:1px solid var(--hairline); }
.br-table { width:100%; border-collapse:collapse; font-size:12px; }
.br-table th { background:var(--surface-2); color:var(--ink-subtle); font-size:10px; text-transform:uppercase; letter-spacing:.06em; padding:8px 10px; text-align:left; border-bottom:1px solid var(--hairline); white-space:nowrap; }
.br-table td { padding:8px 10px; border-bottom:1px solid var(--hairline); }
.br-table tr:hover td { background:var(--surface-3); }
.br-flag { font-size:16px; margin-right:6px; }
.br-code { font-family:'JetBrains Mono',monospace; font-weight:700; color:var(--accent-primary); background:rgba(94,106,210,0.10); padding:1px 6px; border-radius:4px; font-size:12px; }
.br-name { color:var(--ink-subtle); font-size:11px; }
.br-val { font-family:'JetBrains Mono',monospace; font-weight:600; }
.br-sell { color:var(--accent-green); }
.br-dash { color:var(--ink-subtle); }
.br-spread { font-size:10px; color:var(--ink-subtle); }

/* ── Fuel Price ── */
.fuel-meta { font-size:12px; color:var(--ink-subtle); margin-bottom:16px; display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.fuel-grid { display:flex; flex-direction:column; gap:10px; }
.fuel-card { display:flex; align-items:center; gap:14px; padding:14px 16px; background:var(--surface-2); border:1px solid var(--hairline); border-radius:var(--radius); transition:border-color .2s, background .2s; }
.fuel-card:hover { border-color:var(--hairline-strong); background:var(--surface-3); }
.fuel-icon { width:42px; height:42px; border-radius:10px; border:1px solid; display:flex; align-items:center; justify-content:center; font-size:20px; flex-shrink:0; }
.fuel-info { flex:1; }
.fuel-code { font-size:13px; font-weight:700; font-family:'JetBrains Mono',monospace; margin-bottom:3px; }
.fuel-name { font-size:11px; color:var(--ink-subtle); }
.fuel-tag { font-size:9px; padding:1px 6px; border-radius:8px; background:var(--surface-3); color:var(--ink-subtle); font-weight:600; margin-left:6px; }
.fuel-price-wrap { text-align:right; }
.fuel-price { font-size:20px; font-weight:800; font-family:'JetBrains Mono',monospace; color:var(--ink); }
.fuel-unit { font-size:10px; color:var(--ink-subtle); }
.fuel-note { font-size:11px; color:var(--ink-subtle); margin-top:14px; padding:8px 10px; border-radius:var(--radius-sm); background:var(--surface-2); border:1px solid var(--hairline); }

/* ── Holidays ── */
.hl-hero { background:linear-gradient(135deg,rgba(248,113,113,0.1),rgba(251,191,36,0.08)); border:1px solid rgba(248,113,113,0.25); border-radius:14px; padding:20px; margin-bottom:16px; display:flex; align-items:center; gap:20px; }
.hl-hero-label { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.07em; color:var(--text-muted); margin-bottom:4px; }
.hl-hero-name { font-size:18px; font-weight:800; color:var(--text-primary); margin-bottom:4px; }
.hl-hero-date { font-size:12px; color:var(--text-muted); }
.hl-hero-countdown { margin-left:auto; text-align:center; background:rgba(248,113,113,0.12); border:1px solid rgba(248,113,113,0.3); border-radius:12px; padding:12px 20px; }
.hl-hero-num { font-size:42px; font-weight:900; font-family:'JetBrains Mono',monospace; color:#f87171; line-height:1; }
.hl-hero-unit { font-size:11px; color:var(--text-muted); font-weight:600; }
.hl-section-label { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.07em; color:var(--text-muted); margin-bottom:10px; }
.hl-list { display:flex; flex-direction:column; gap:8px; }
.hl-item { display:flex; align-items:center; gap:12px; padding:10px 14px; background:rgba(255,255,255,0.02); border:1px solid var(--border); border-radius:10px; }
.hl-item--holiday { border-color:rgba(248,113,113,0.25); background:rgba(248,113,113,0.04); }
.hl-icon { font-size:20px; flex-shrink:0; }
.hl-body { flex:1; }
.hl-name { font-size:13px; font-weight:600; color:var(--text-primary); }
.hl-date { font-size:11px; color:var(--text-muted); margin-top:2px; }
.hl-countdown { font-size:12px; font-weight:700; white-space:nowrap; }
.hl-note { font-size:10px; color:var(--text-muted); margin-top:12px; padding:6px 10px; border-radius:8px; background:rgba(255,255,255,0.02); }

/* ── Tax Calculator ── */
.tax-hero { display:flex; align-items:center; gap:14px; margin-bottom:20px; padding:16px; background:linear-gradient(135deg,rgba(96,165,250,0.1),rgba(167,139,250,0.08)); border:1px solid rgba(96,165,250,0.2); border-radius:14px; }
.tax-hero-icon { font-size:32px; }
.tax-hero-title { font-size:16px; font-weight:800; }
.tax-hero-sub { font-size:11px; color:var(--text-muted); margin-top:2px; }
.tax-form { background:var(--surface-2); border:1px solid var(--hairline); border-radius:var(--radius); padding:16px; margin-bottom:16px; }
.tax-row, .tax-row-2 { margin-bottom:14px; }
.tax-row-2 { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.tax-label { display:block; font-size:11px; font-weight:600; color:var(--ink-subtle); text-transform:uppercase; letter-spacing:.05em; margin-bottom:6px; }
.tax-req { color:var(--accent-red); }
.tax-input { width:100%; background:var(--surface-3); border:1px solid var(--hairline); border-radius:var(--radius-sm); padding:8px 12px; color:var(--ink); font-size:14px; box-sizing:border-box; }
.tax-input:focus { outline:none; border-color:var(--accent-primary); box-shadow:0 0 0 3px rgba(94,106,210,0.16); }
.tax-toggle-group { display:flex; gap:8px; }
.tax-toggle { padding:7px 14px; border-radius:var(--radius-sm); border:1px solid var(--hairline); background:var(--surface-2); color:var(--ink-subtle); cursor:pointer; font-size:12px; transition:all .2s; }
.tax-toggle.active { background:rgba(39,166,68,0.10); border-color:rgba(39,166,68,0.35); color:var(--accent-green); }
.tax-result-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.tax-result-card { padding:14px; border-radius:var(--radius); border:1px solid var(--hairline); background:var(--surface-2); }
.tax-result-net { grid-column:1/-1; background:rgba(39,166,68,0.07); border-color:rgba(39,166,68,0.2); }
.tax-result-label { font-size:11px; color:var(--ink-subtle); margin-bottom:6px; }
.tax-result-val { font-size:18px; font-weight:800; font-family:'JetBrains Mono',monospace; }
.tax-brackets { margin-top:20px; padding:16px; background:var(--surface-2); border:1px solid var(--hairline); border-radius:var(--radius); }
.tax-brackets-title { font-size:12px; font-weight:700; margin-bottom:12px; }
.tax-table { width:100%; border-collapse:collapse; font-size:12px; }
.tax-table th, .tax-table td { padding:7px 10px; border-bottom:1px solid var(--hairline); text-align:left; }
.tax-table th { font-size:10px; color:var(--ink-subtle); text-transform:uppercase; }
.tax-table tfoot td { border-top:2px solid var(--hairline-strong); border-bottom:none; }
.tax-note { font-size:11px; color:var(--ink-subtle); margin-top:10px; }
.tax-threshold-banner { display:flex; align-items:center; gap:8px; font-size:12px; color:var(--ink-subtle); background:rgba(94,106,210,0.07); border:1px solid rgba(94,106,210,0.22); border-radius:var(--radius-sm); padding:10px 14px; margin-bottom:4px; line-height:1.5; }
.tax-threshold-banner strong { color:var(--accent-primary); }

/* ── Lottery ── */
.lot-chips { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:14px; }
.lot-chip { padding:6px 14px; border-radius:var(--radius-pill); border:1px solid var(--hairline); background:var(--surface-2); color:var(--ink-subtle); cursor:pointer; font-size:12px; transition:all .2s; }
.lot-chip.active { background:rgba(239,68,68,0.12); border-color:rgba(239,68,68,0.35); color:var(--accent-red); font-weight:700; }
.lot-wrap { background:var(--surface-1); border:1px solid var(--hairline); border-radius:var(--radius); overflow:hidden; }
.lot-header { display:flex; justify-content:space-between; align-items:center; padding:12px 16px; font-size:13px; font-weight:700; border-bottom:1px solid var(--hairline); }
.lot-date { font-size:11px; color:var(--ink-subtle); font-weight:400; }
.lot-table { width:100%; border-collapse:collapse; font-size:13px; }
.lot-table th { background:var(--surface-2); padding:8px 12px; text-align:left; font-size:10px; text-transform:uppercase; letter-spacing:.05em; color:var(--ink-subtle); }
.lot-table td { padding:8px 12px; border-bottom:1px solid var(--hairline); }
.lot-prize-name { color:var(--ink-subtle); font-size:12px; width:100px; }
.lot-prize-nums { font-family:'JetBrains Mono',monospace; font-weight:700; font-size:16px; color:var(--ink); letter-spacing:.08em; }
.lot-row--db .lot-prize-nums { font-size:24px; }
.lot-link { display:inline-block; padding:8px 20px; background:rgba(94,106,210,0.10); border:1px solid rgba(94,106,210,0.30); border-radius:var(--radius-pill); color:var(--accent-primary); font-size:12px; text-decoration:none; }
.lot-link:hover { background:rgba(94,106,210,0.18); }
.lot-footer { text-align:center; padding:12px 16px 14px; border-top:1px solid var(--hairline); }
.lot-loading { text-align:center; padding:30px; color:var(--ink-subtle); font-size:14px; }

/* Date navigation */
.lot-date-nav { display:flex; align-items:center; gap:8px; margin-bottom:14px; background:rgba(255,255,255,0.02); border:1px solid var(--border); border-radius:10px; padding:8px 12px; }
.lot-nav-btn { padding:6px 12px; border-radius:8px; border:1px solid var(--border); background:rgba(255,255,255,0.04); color:var(--text-primary); cursor:pointer; font-size:12px; white-space:nowrap; transition:all .2s; }
.lot-nav-btn:hover:not(:disabled) { background:rgba(255,255,255,0.08); border-color:rgba(255,255,255,0.15); }
.lot-nav-btn:disabled { opacity:.35; cursor:not-allowed; }
.lot-date-center { flex:1; text-align:center; }
.lot-date-input { background:transparent; border:none; color:var(--accent-blue); font-size:13px; font-weight:700; cursor:pointer; text-align:center; }
.lot-date-input::-webkit-calendar-picker-indicator { filter:invert(.6); cursor:pointer; }
.lot-date-label { font-size:10px; color:var(--text-muted); margin-top:2px; }

/* Number pills */
.lot-num { display:inline-flex; align-items:center; justify-content:center; min-width:34px; height:34px; padding:0 6px; margin:2px; border-radius:8px; font-family:'JetBrains Mono',monospace; font-weight:700; font-size:16px; background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.08); }
.lot-num--db { min-width:50px; height:44px; font-size:22px; background:rgba(248,113,113,0.12); border-color:rgba(248,113,113,0.3); color:#f87171; }
.lot-raw { padding:10px; font-size:13px; }
.lot-raw table { width:100%; }
.lot-raw td { padding:4px 8px; border-bottom:1px solid rgba(255,255,255,0.05); }


/* ── World Clock ── */
.wc-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.wc-section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent-primary);
  text-shadow: 0 0 10px rgba(94, 106, 210, 0.2);
}

/* Controls bar */
.wc-controls { display:flex; gap:10px; align-items:center; }
.wc-add-dropdown {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 13px;
  font-family: var(--font-sans);
  cursor: pointer;
  outline: none;
  transition: all .25s ease;
}
.wc-add-dropdown:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
}
.wc-add-dropdown:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(94,106,210,0.22);
  background: var(--surface-1);
}
.wc-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-subtle);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all .2s ease;
  white-space: nowrap;
}
.wc-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.15);
}
.wc-btn-icon {
  font-size: 13px;
  line-height: 1;
}

/* Clock grid */
.wc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
@media(max-width:768px){ .wc-grid { grid-template-columns: repeat(3, 1fr); } }
@media(max-width:576px){ .wc-grid { grid-template-columns: repeat(2, 1fr); } }

/* Clock card */
.wc-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 16px 14px 14px;
  text-align: center;
  position: relative;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}
.wc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.04);
}
.wc-card.wc-day {
  border-color: rgba(251, 191, 36, 0.12);
}
.wc-card.wc-day:hover {
  border-color: rgba(251, 191, 36, 0.3);
  box-shadow: 0 12px 24px rgba(251, 191, 36, 0.06);
}
.wc-card.wc-night {
  border-color: rgba(96, 165, 250, 0.12);
}
.wc-card.wc-night:hover {
  border-color: rgba(96, 165, 250, 0.3);
  box-shadow: 0 12px 24px rgba(96, 165, 250, 0.06);
}

.wc-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.wc-flag {
  font-size: 24px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}
.wc-status-badge {
  font-size: 13px;
  opacity: 0.85;
}
.wc-remove-btn {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--ink-subtle);
  cursor: pointer;
  font-size: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.wc-remove-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.wc-city {
  font-size: 13px;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 4px;
}
.wc-utc {
  font-size: 10px;
  color: var(--ink-subtle);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 2px 8px;
  display: inline-block;
  margin-bottom: 10px;
  font-family: 'JetBrains Mono', monospace;
}
.wc-time {
  font-size: 22px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: .02em;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
}
.wc-date {
  font-size: 11px;
  color: var(--ink-subtle);
  font-weight: 500;
}

/* Tools Row */
.wc-tools-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 12px;
}
@media(max-width:768px){ .wc-tools-row { grid-template-columns: 1fr; } }

.wc-tool-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}
.wc-tool-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 10px;
}
.wc-tool-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Digital Displays */
.sw-display-wrap, .cd-display-wrap {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 24px 16px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.3);
}
.sw-display, .cd-display {
  font-family: 'JetBrains Mono', monospace;
  font-size: 38px;
  font-weight: 800;
  text-align: center;
  color: var(--accent-primary);
  letter-spacing: .02em;
  text-shadow: 0 0 15px rgba(94, 106, 210, 0.4);
}
.sw-ms {
  font-size: 26px;
  opacity: 0.7;
}

/* Button styles */
.sw-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.sw-btn {
  padding: 10px 20px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.sw-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}
.sw-btn:active:not(:disabled) {
  transform: translateY(1px);
}
.sw-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}
.sw-btn--start {
  background: rgba(52, 211, 153, 0.08);
  border-color: rgba(52, 211, 153, 0.25);
  color: #34d399;
}
.sw-btn--start:hover:not(:disabled) {
  background: rgba(52, 211, 153, 0.15);
  border-color: rgba(52, 211, 153, 0.4);
  box-shadow: 0 0 15px rgba(52, 211, 153, 0.15);
}
.sw-btn--start.sw-btn--running {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
  color: #ef4444;
}
.sw-btn--start.sw-btn--running:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.15);
}
.sw-btn--lap {
  background: rgba(94, 106, 210, 0.08);
  border-color: rgba(94, 106, 210, 0.25);
  color: var(--accent-primary);
}
.sw-btn--lap:hover:not(:disabled) {
  background: rgba(94, 106, 210, 0.15);
  border-color: rgba(94, 106, 210, 0.4);
  box-shadow: 0 0 15px rgba(94, 106, 210, 0.15);
}
.sw-btn--reset {
  background: rgba(156, 163, 175, 0.06);
  border-color: rgba(156, 163, 175, 0.2);
  color: var(--ink-subtle);
}
.sw-btn--reset:hover:not(:disabled) {
  background: rgba(156, 163, 175, 0.12);
  border-color: rgba(156, 163, 175, 0.35);
}

/* Laps record */
.sw-laps {
  max-height: 150px;
  overflow-y: auto;
  margin-top: 16px;
  padding-right: 4px;
}
.sw-laps::-webkit-scrollbar {
  width: 4px;
}
.sw-laps::-webkit-scrollbar-track {
  background: transparent;
}
.sw-laps::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}
.sw-lap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--ink-subtle);
  background: rgba(255,255,255,0.01);
  border-radius: 6px;
  margin-bottom: 4px;
}
.sw-lap-num {
  font-weight: 500;
}
.sw-lap-time {
  color: var(--ink);
  font-weight: 700;
}

/* Countdown inputs */
.cd-form {
  margin-bottom: 20px;
}
.cd-inputs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}
.cd-inp-wrap {
  text-align: center;
}
.cd-inp-wrap label {
  display: block;
  font-size: 9px;
  color: var(--ink-subtle);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: 4px;
  font-weight: 600;
}
.cd-input {
  width: 60px;
  padding: 8px 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 20px;
  font-family: 'JetBrains Mono', monospace;
  text-align: center;
  outline: none;
  transition: all 0.2s ease;
}
.cd-input:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(94, 106, 210, 0.2);
}
.cd-sep {
  font-size: 24px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.25);
  line-height: 1;
  padding-bottom: 14px;
}
.cd-divider {
  text-align: center;
  margin: 12px 0;
  font-size: 11px;
  color: var(--ink-subtle);
  letter-spacing: .02em;
}
.cd-date-picker-wrap {
  max-width: 260px;
  margin: 0 auto;
}
.cd-input-date {
  width: 100%;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 12px;
  font-family: var(--font-sans);
  box-sizing: border-box;
  outline: none;
  transition: all 0.2s ease;
  cursor: pointer;
}
.cd-input-date:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}
.cd-input-date:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(94, 106, 210, 0.2);
  background: var(--surface-1);
}

/* Countdown progress bar */
.cd-progress-container {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 16px;
}
.cd-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), #4f46e5);
  border-radius: 2px;
  transition: width 1s linear;
  box-shadow: 0 0 8px rgba(94, 106, 210, 0.5);
}

.cd-done {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  color: #4ade80;
  padding: 12px;
  margin-top: 14px;
  text-shadow: 0 0 12px rgba(74, 222, 128, 0.3);
  animation: pulse 1s infinite;
}

/* ── Lottery Mode Tabs ── */
.lot-mode-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}

.lot-mode-tab {
  padding: 8px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

.lot-mode-tab:hover { background: rgba(255,255,255,0.06); color: var(--text-primary); }
.lot-mode-tab.active {
  background: rgba(248,113,113,0.12);
  border-color: rgba(248,113,113,0.4);
  color: #f87171;
}

/* ── Vietlott result card ── */
.vl-result-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.vl-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.vl-title { font-size: 15px; font-weight: 800; }
.vl-date  { font-size: 11px; color: var(--text-muted); }

.vl-balls-wrap {
  padding: 20px 16px;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.vl-ball {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  transition: transform 0.2s;
}

.vl-ball:hover { transform: scale(1.1); }

.vl-ball--power {
  width: 50px; height: 50px;
  font-size: 19px;
  box-shadow: 0 0 16px currentColor;
}

.vl-jackpot-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
}

.vl-jackpot-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  text-align: center;
}

.vl-jackpot-label { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.vl-jackpot-val   { font-size: 16px; font-weight: 800; font-family: 'JetBrains Mono', monospace; }

.vl-footer { padding: 12px 16px; text-align: center; border-top: 1px solid var(--border); }

/* ── Vietlott History & Stats ── */
.vl-tab-bar { display:flex; gap:8px; margin:8px 0; }
.vl-tab { padding:6px 14px; border-radius:20px; border:1px solid var(--border); background:rgba(255,255,255,0.03); color:var(--text-muted); cursor:pointer; font-size:12px; font-weight:600; font-family:'Inter',sans-serif; transition:all .2s; }
.vl-tab:hover { background:rgba(255,255,255,0.07); color:var(--text-primary); }
.vl-tab.active { background:rgba(248,113,113,0.12); border-color:rgba(248,113,113,0.4); color:#f87171; }

.vl-hist-list { padding:8px 0; }
.vl-hist-row { display:flex; align-items:center; gap:12px; padding:8px 16px; border-top:1px solid rgba(255,255,255,0.04); flex-wrap:wrap; }
.vl-hist-meta { display:flex; flex-direction:column; gap:2px; min-width:80px; }
.vl-hist-kky { font-size:11px; font-weight:700; color:var(--text-muted); }
.vl-hist-date { font-size:10px; color:var(--text-muted); }
.vl-hist-balls { display:flex; gap:5px; flex-wrap:wrap; flex:1; }
.vl-hist-jp { font-size:12px; font-family:'JetBrains Mono',monospace; font-weight:700; white-space:nowrap; }

.vl-ball-sm { width:30px; height:30px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-size:11px; font-weight:800; background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.1); font-family:'JetBrains Mono',monospace; }
.vl-ball-sm--sp { box-shadow:0 0 8px currentColor; }

.vl-stat-title { font-size:12px; font-weight:700; margin-bottom:8px; }
.vl-stat-list { display:flex; flex-direction:column; gap:5px; }
.vl-stat-row { display:flex; align-items:center; gap:10px; }
.vl-stat-num { width:36px; height:28px; border-radius:6px; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:800; font-family:'JetBrains Mono',monospace; flex-shrink:0; }
.vl-stat-bar-wrap { flex:1; height:8px; background:rgba(255,255,255,0.06); border-radius:4px; overflow:hidden; }
.vl-stat-bar { height:100%; border-radius:4px; transition:width .5s ease; }
.vl-stat-cnt { font-size:11px; color:var(--text-muted); width:50px; text-align:right; font-family:'JetBrains Mono',monospace; }

/* ── Lottery Stats and Predict ── */
.lot-stat-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  margin: 2px;
}

.lot-stats-table {
  width: 100%;
  border-collapse: collapse;
}

.lot-stats-table th {
  font-size: 9px;
  padding: 6px 10px;
}

.lot-stats-table td {
  padding: 6px 10px;
}

@media (max-width: 768px) {
  .lot-stats-container {
    grid-template-columns: 1fr !important;
  }
}

