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

/* ── Bank Rates ── */
.br-meta { font-size:12px; color:var(--text-muted); margin-bottom:12px; padding:6px 10px; background:rgba(255,255,255,0.03); border-radius:8px; border:1px solid var(--border); }
.br-table { width:100%; border-collapse:collapse; font-size:12px; }
.br-table th { background:rgba(255,255,255,0.04); color:var(--text-muted); font-size:10px; text-transform:uppercase; letter-spacing:.06em; padding:8px 10px; text-align:left; border-bottom:1px solid var(--border); white-space:nowrap; }
.br-table td { padding:8px 10px; border-bottom:1px solid rgba(255,255,255,0.04); }
.br-table tr:hover td { background:rgba(255,255,255,0.02); }
.br-flag { font-size:16px; margin-right:6px; }
.br-code { font-family:'JetBrains Mono',monospace; font-weight:700; color:var(--accent-blue); background:rgba(96,165,250,0.1); padding:1px 6px; border-radius:4px; font-size:12px; }
.br-name { color:var(--text-muted); font-size:11px; }
.br-val { font-family:'JetBrains Mono',monospace; font-weight:600; }
.br-sell { color:#4ade80; }
.br-dash { color:var(--text-muted); }
.br-spread { font-size:10px; color:var(--text-muted); }

/* ── Fuel Price ── */
.fuel-meta { font-size:12px; color:var(--text-muted); 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:rgba(255,255,255,0.02); border:1px solid var(--border); border-radius:12px; transition:border-color .2s; }
.fuel-card:hover { border-color:rgba(255,255,255,0.12); }
.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(--text-muted); }
.fuel-tag { font-size:9px; padding:1px 6px; border-radius:8px; background:rgba(255,255,255,0.08); color:var(--text-muted); 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(--text-primary); }
.fuel-unit { font-size:10px; color:var(--text-muted); }
.fuel-note { font-size:11px; color:var(--text-muted); margin-top:14px; padding:8px 10px; border-radius:8px; background:rgba(255,255,255,0.02); border:1px solid var(--border); }

/* ── 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:rgba(255,255,255,0.02); border:1px solid var(--border); border-radius:12px; 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(--text-muted); text-transform:uppercase; letter-spacing:.05em; margin-bottom:6px; }
.tax-req { color:#f87171; }
.tax-input { width:100%; background:rgba(255,255,255,0.04); border:1px solid var(--border); border-radius:8px; padding:8px 12px; color:var(--text-primary); font-size:14px; box-sizing:border-box; }
.tax-input:focus { outline:none; border-color:var(--accent-blue); }
.tax-toggle-group { display:flex; gap:8px; }
.tax-toggle { padding:7px 14px; border-radius:8px; border:1px solid var(--border); background:rgba(255,255,255,0.03); color:var(--text-muted); cursor:pointer; font-size:12px; transition:all .2s; }
.tax-toggle.active { background:rgba(52,211,153,0.1); border-color:rgba(52,211,153,0.4); color:#34d399; }
.tax-result-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.tax-result-card { padding:14px; border-radius:12px; border:1px solid var(--border); background:rgba(255,255,255,0.02); }
.tax-result-net { grid-column:1/-1; background:rgba(52,211,153,0.08); }
.tax-result-label { font-size:11px; color:var(--text-muted); 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:rgba(255,255,255,0.02); border:1px solid var(--border); border-radius:12px; }
.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 rgba(255,255,255,0.05); text-align:left; }
.tax-table th { font-size:10px; color:var(--text-muted); text-transform:uppercase; }
.tax-table tfoot td { border-top:2px solid var(--border); border-bottom:none; }
.tax-note { font-size:11px; color:var(--text-muted); margin-top:10px; }
.tax-threshold-banner { display:flex; align-items:center; gap:8px; font-size:12px; color:var(--text-muted); background:rgba(96,165,250,0.07); border:1px solid rgba(96,165,250,0.22); border-radius:10px; padding:10px 14px; margin-bottom:4px; line-height:1.5; }
.tax-threshold-banner strong { color:var(--accent-blue); }

/* ── Lottery ── */
.lot-chips { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:14px; }
.lot-chip { padding:6px 14px; border-radius:20px; border:1px solid var(--border); background:rgba(255,255,255,0.04); color:var(--text-muted); cursor:pointer; font-size:12px; transition:all .2s; }
.lot-chip.active { background:rgba(248,113,113,0.12); border-color:rgba(248,113,113,0.4); color:#f87171; font-weight:700; }
.lot-wrap { background:rgba(255,255,255,0.02); border:1px solid var(--border); border-radius:12px; 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(--border); }
.lot-date { font-size:11px; color:var(--text-muted); font-weight:400; }
.lot-table { width:100%; border-collapse:collapse; font-size:13px; }
.lot-table th { background:rgba(255,255,255,0.03); padding:8px 12px; text-align:left; font-size:10px; text-transform:uppercase; letter-spacing:.05em; color:var(--text-muted); }
.lot-table td { padding:8px 12px; border-bottom:1px solid rgba(255,255,255,0.04); }
.lot-prize-name { color:var(--text-muted); font-size:12px; width:100px; }
.lot-prize-nums { font-family:'JetBrains Mono',monospace; font-weight:700; font-size:16px; color:var(--text-primary); letter-spacing:.08em; }
.lot-row--db .lot-prize-nums { font-size:24px; }
.lot-link { display:inline-block; padding:8px 20px; background:rgba(96,165,250,0.1); border:1px solid rgba(96,165,250,0.3); border-radius:20px; color:var(--accent-blue); font-size:12px; text-decoration:none; }
.lot-link:hover { background:rgba(96,165,250,0.2); }
.lot-footer { text-align:center; padding:12px 16px 14px; border-top:1px solid var(--border); }
.lot-loading { text-align:center; padding:30px; color:var(--text-muted); 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-label { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.07em; color:var(--text-muted); margin-bottom:12px; }

/* Controls bar */
.wc-controls { display:flex; gap:10px; align-items:center; margin-bottom:14px; flex-wrap:wrap; }
.wc-add-dropdown {
  flex:1; min-width:200px; max-width:340px;
  padding:8px 12px;
  background:rgba(255,255,255,0.05); border:1px solid var(--border); border-radius:10px;
  color:var(--text-primary); font-size:12px; font-family:'Inter',sans-serif; cursor:pointer;
  transition:border-color .2s;
}
.wc-add-dropdown:hover { border-color:rgba(96,165,250,0.4); }
.wc-add-dropdown:focus { outline:none; border-color:var(--accent-blue); }
.wc-btn { padding:7px 14px; border-radius:10px; border:1px solid var(--border); background:rgba(255,255,255,0.04); color:var(--text-muted); cursor:pointer; font-size:12px; transition:all .2s; white-space:nowrap; }
.wc-btn:hover { background:rgba(255,255,255,0.08); color:var(--text-primary); }

/* Clock grid */
.wc-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(130px,1fr)); gap:10px; margin-bottom:20px; }
@media(max-width:700px){ .wc-grid { grid-template-columns:repeat(3,1fr); } }
@media(max-width:500px){ .wc-grid { grid-template-columns:1fr 1fr; } }

/* Clock card */
.wc-card { background:rgba(255,255,255,0.03); border:1px solid var(--border); border-radius:12px; padding:12px 10px 10px; text-align:center; position:relative; transition:border-color .2s; }
.wc-card:hover { border-color:rgba(255,255,255,0.12); }
.wc-card-top { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:4px; }
.wc-flag { font-size:22px; flex:1; text-align:left; }
.wc-remove-btn { background:none; border:none; color:var(--text-muted); cursor:pointer; font-size:14px; padding:0 2px; line-height:1; transition:color .15s; opacity:0.5; }
.wc-remove-btn:hover { color:#f87171; opacity:1; }
.wc-city { font-size:11px; color:var(--text-secondary); font-weight:600; margin-bottom:3px; }
.wc-utc { font-size:9px; color:var(--text-muted); background:rgba(255,255,255,0.06); border-radius:10px; padding:1px 6px; display:inline-block; margin-bottom:6px; font-family:'JetBrains Mono',monospace; }
.wc-time { font-size:17px; font-weight:800; font-family:'JetBrains Mono',monospace; color:var(--text-primary); margin-bottom:2px; letter-spacing:.03em; }
.wc-date { font-size:10px; color:var(--text-muted); }

.wc-tools-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media(max-width:700px){ .wc-tools-row { grid-template-columns:1fr; } }
.wc-tool-card { background:rgba(255,255,255,0.02); border:1px solid var(--border); border-radius:14px; padding:16px; }
.wc-tool-title { font-size:14px; font-weight:800; margin-bottom:14px; }
.sw-display { font-family:'JetBrains Mono',monospace; font-size:32px; font-weight:900; text-align:center; color:var(--text-primary); margin-bottom:14px; letter-spacing:.05em; }
.cd-display { font-family:'JetBrains Mono',monospace; font-size:32px; font-weight:900; text-align:center; color:var(--text-primary); margin-bottom:14px; letter-spacing:.1em; }
.sw-btns { display:flex; gap:8px; justify-content:center; flex-wrap:wrap; }
.sw-btn { padding:8px 16px; border-radius:20px; border:1px solid var(--border); background:rgba(255,255,255,0.05); color:var(--text-primary); cursor:pointer; font-size:12px; font-weight:600; transition:all .2s; }
.sw-btn:disabled { opacity:.4; cursor:not-allowed; }
.sw-btn--start { background:rgba(52,211,153,0.1); border-color:rgba(52,211,153,0.4); color:#34d399; }
.sw-btn--start.sw-btn--running { background:rgba(251,146,60,0.1); border-color:rgba(251,146,60,0.4); color:#fb923c; }
.sw-btn--lap { background:rgba(96,165,250,0.08); border-color:rgba(96,165,250,0.3); color:var(--accent-blue); }
.sw-btn--reset { background:rgba(248,113,113,0.08); border-color:rgba(248,113,113,0.3); color:#f87171; }
.sw-laps { max-height:160px; overflow-y:auto; margin-top:12px; }
.sw-lap { font-family:'JetBrains Mono',monospace; font-size:12px; padding:4px 8px; border-bottom:1px solid rgba(255,255,255,0.04); color:var(--text-muted); }
.cd-form { margin-bottom:14px; }
.cd-inputs { display:flex; align-items:center; justify-content:center; gap:6px; margin-bottom:10px; }
.cd-inp-wrap { text-align:center; }
.cd-inp-wrap label { display:block; font-size:9px; color:var(--text-muted); text-transform:uppercase; margin-top:2px; }
.cd-input { width:56px; padding:6px 8px; background:rgba(255,255,255,0.06); border:1px solid var(--border); border-radius:8px; color:var(--text-primary); font-size:18px; font-family:'JetBrains Mono',monospace; text-align:center; }
.cd-input-date { width:100%; padding:8px 10px; background:rgba(255,255,255,0.04); border:1px solid var(--border); border-radius:8px; color:var(--text-primary); font-size:12px; box-sizing:border-box; }
.cd-sep { font-size:22px; font-weight:700; color:var(--text-muted); }
.cd-done { text-align:center; font-size:24px; font-weight:800; color:#4ade80; padding:10px; 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;
  }
}

