:root {
  --bg-0: #0a0c12;
  --bg-1: #0f1219;
  --bg-2: #151924;
  --bg-3: #1d2231;
  --bg-4: #252b3d;
  --border: #252b3a;
  --border-strong: #323a4f;
  --text: #e8ecf3;
  --text-mid: #b4bccd;
  --text-muted: #7a8398;
  --accent: #fbbf24;
  --accent-2: #f97316;
  --info: #60a5fa;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { background: var(--bg-0); }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-feature-settings: 'cv11','ss01','ss03';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(251,191,36,.10), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 10%, rgba(96,165,250,.08), transparent 55%),
    var(--bg-0);
  min-height: 100vh;
  color: var(--text);
  line-height: 1.55;
  letter-spacing: -0.01em;
}
code, .mono { font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }
h1, h2, h3, h4, h5, h6, .h5, .h6 { letter-spacing: -0.02em; font-weight: 700; }

.navbar {
  background: rgba(15, 18, 25, .8) !important;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: .85rem 0;
}
.navbar-brand {
  background: linear-gradient(135deg, #fcd34d, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  letter-spacing: -0.5px;
  font-size: 19px;
}
.navbar-brand i { color: #fbbf24; -webkit-text-fill-color: initial; }
.accent { color: var(--accent); }

.stat-chip {
  background: rgba(251,191,36,.08);
  color: #fcd34d;
  border: 1px solid rgba(251,191,36,.22);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  letter-spacing: -0.01em;
}
.stat-chip i { font-size: 13px; opacity: .9; }

.card {
  background-color: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.02);
}
.card-header {
  background-color: var(--bg-3);
  border-bottom: 1px solid var(--border);
  border-radius: 16px 16px 0 0 !important;
  padding: .85rem 1.15rem;
  font-size: 14.5px;
}
.card-body { padding: 1.15rem; }

.table { --bs-table-bg: transparent; --bs-table-color: var(--text); margin-bottom: 0; font-size: 14px; }
.table > :not(caption) > * > * {
  border-color: var(--border);
  padding: .7rem .95rem;
  vertical-align: middle;
}
.table thead th {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border-strong);
  padding-top: .8rem;
  padding-bottom: .8rem;
}
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: rgba(251,191,36,.04); }
.num { text-align: right; font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }

.vnum-link {
  color: var(--info);
  text-decoration: none;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}
.vnum-link:hover { color: #93c5fd; text-decoration: underline; }

.form-control, .form-select {
  background-color: var(--bg-1);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: .6rem .9rem;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 500;
  transition: border-color .15s, box-shadow .15s;
}
.form-control::placeholder { color: #5a6378; font-weight: 400; }
.form-control:focus, .form-select:focus {
  background-color: var(--bg-1);
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 0 0 4px rgba(251,191,36,.12);
}
.form-select { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%237a8398' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }

.btn-accent {
  background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
  color: #1a1306;
  font-weight: 700;
  border: 0;
  border-radius: 11px;
  padding: .6rem 1.1rem;
  font-size: 14px;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 14px rgba(249,115,22,.3), inset 0 1px 0 rgba(255,255,255,.2);
  transition: transform .12s, box-shadow .2s;
}
.btn-accent:hover {
  color: #1a1306;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(249,115,22,.45), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-accent:active { transform: translateY(0); }

.nav-pills { gap: .35rem; }
.nav-pills .nav-link {
  color: var(--text-mid);
  border-radius: 11px;
  font-weight: 600;
  font-size: 14px;
  padding: .55rem 1.1rem;
  transition: all .15s;
  border: 1px solid transparent;
  letter-spacing: -0.01em;
}
.nav-pills .nav-link i { margin-right: 4px; opacity: .85; }
.nav-pills .nav-link:hover { color: var(--text); background: var(--bg-2); }
.nav-pills .nav-link.active {
  background: linear-gradient(135deg, rgba(251,191,36,.18), rgba(249,115,22,.10));
  color: #fcd34d;
  border: 1px solid rgba(251,191,36,.35);
  box-shadow: 0 2px 10px rgba(251,191,36,.1);
}

.grand-total {
  background:
    radial-gradient(circle at 0% 0%, rgba(251,191,36,.18), transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(96,165,250,.14), transparent 50%),
    var(--bg-2) !important;
  border: 1px solid rgba(251,191,36,.3) !important;
}

.empty-state { padding: 70px 20px; text-align: center; color: var(--text-muted); font-size: 14.5px; }
.empty-state i { font-size: 56px; opacity: .35; display: block; margin-bottom: 14px; }

.stat-card {
  background: rgba(10,12,18,.55);
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  padding: 14px 24px;
  min-width: 155px;
  text-align: center;
}
.stat-card .label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-weight: 700;
}
.stat-card .value {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, #fcd34d, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 4px;
  letter-spacing: -0.02em;
  font-feature-settings: 'tnum';
}

.pill-muted {
  background: var(--bg-4);
  color: var(--text-mid);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--border-strong);
  letter-spacing: -0.01em;
}

.badge {
  font-weight: 600;
  padding: .42em .75em;
  border-radius: 8px;
  font-size: 11.5px;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
}
.badge.text-bg-warning { background: rgba(251,146,60,.15) !important; color: #fdba74 !important; border-color: rgba(251,146,60,.35); }
.badge.text-bg-secondary { background: rgba(148,163,184,.12) !important; color: #cbd5e1 !important; border-color: rgba(148,163,184,.25); }
.badge.text-bg-info { background: rgba(96,165,250,.15) !important; color: #93c5fd !important; border-color: rgba(96,165,250,.35); }
.badge.text-bg-success { background: rgba(52,211,153,.15) !important; color: #6ee7b7 !important; border-color: rgba(52,211,153,.35); }
.badge.text-bg-danger { background: rgba(248,113,113,.15) !important; color: #fca5a5 !important; border-color: rgba(248,113,113,.35); }
.badge.text-bg-primary { background: rgba(96,165,250,.15) !important; color: #93c5fd !important; border-color: rgba(96,165,250,.35); }
.badge.text-bg-dark { background: rgba(115,115,115,.15) !important; color: #a3a3a3 !important; border-color: rgba(115,115,115,.3); }

.win-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
  border: 1px solid;
  font-family: 'JetBrains Mono', monospace;
}

code {
  color: #93c5fd;
  background: rgba(96,165,250,.1);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(96,165,250,.2);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 6px; border: 2px solid var(--bg-0); }
::-webkit-scrollbar-thumb:hover { background: #424a62; }
::selection { background: rgba(251,191,36,.3); color: #fff; }
