/* ============================================
   OBSIDIAN — AS-Stats Dark Dashboard Theme
   Pure CSS · No framework dependency
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg-base: #0b0f19;
  --bg-surface: #111827;
  --bg-card: #161d2e;
  --bg-card-hover: #1c2538;
  --bg-input: #0e1424;
  --bg-nav: rgba(11, 15, 25, 0.82);
  --bg-graph: #f0f2f5;

  --border: #1e293b;
  --border-light: #2d3a4d;
  --border-focus: #3b82f6;

  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-subtle: rgba(59, 130, 246, 0.1);
  --green: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.35);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 20px rgba(59,130,246,0.12);

  --sp-xs: 0.25rem;
  --sp-sm: 0.5rem;
  --sp-md: 1rem;
  --sp-lg: 1.5rem;
  --sp-xl: 2rem;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 6px;
  --r-full: 6px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

  --nav-h: 56px;
  --transition: 150ms ease;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }

/* === App layout === */
.app { display: flex; flex-direction: column; min-height: 100vh; }

.app-content {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--sp-xl);
  max-width: 1600px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + var(--sp-xl)) var(--sp-xl) var(--sp-xl);
  width: 100%;
}

.app-content--wide { grid-template-columns: 1fr; }

.app-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
}

.app-main { min-width: 0; }

/* === Navigation === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--bg-nav);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 var(--sp-xl);
  gap: var(--sp-xs);
}

.nav-brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-right: var(--sp-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-brand:hover { color: var(--text-primary); }

.nav-brand .logo-icon {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--accent), #06b6d4);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 800; color: white;
  font-family: var(--mono);
  letter-spacing: -0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a,
.nav-link {
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  background: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
.nav-links a:hover,
.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}
.nav-links a.active,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.1);
}

/* Nav dropdown */
.nav-dropdown { position: relative; }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px); left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 4px;
  min-width: 220px;
  z-index: 1001;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }

.nav-dropdown-menu a {
  display: block !important;
  padding: 8px 14px !important;
  border-radius: var(--r-sm) !important;
  color: var(--text-secondary) !important;
  font-size: 0.85rem !important;
}
.nav-dropdown-menu a:hover {
  background: rgba(255,255,255,0.06) !important;
  color: var(--text-primary) !important;
}

/* Nav search */
.nav-search {
  margin-left: auto;
  position: relative;
  display: flex;
  align-items: center;
}

.nav-search input[type="text"] {
  width: 260px;
  padding: 7px 14px 7px 36px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.85rem;
  outline: none;
  transition: all var(--transition);
}
.nav-search input[type="text"]::placeholder { color: var(--text-muted); }
.nav-search input[type="text"]:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.nav-search-icon {
  position: absolute;
  left: 11px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
}

.nav-search button[type="submit"] { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--r-sm);
  line-height: 0;
}
.nav-toggle:hover { background: rgba(255,255,255,0.06); }

/* === Page header === */
.page-header {
  grid-column: 1 / -1;
  padding-bottom: var(--sp-lg);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-sm);
}

.page-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  display: flex;
  align-items: baseline;
  gap: var(--sp-sm);
  flex-wrap: wrap;
  line-height: 1.3;
}

.page-title small {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
}

.direction-legend {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.direction-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-in { background: var(--green); }
.dot-out { background: var(--amber); }

/* === Cards === */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--transition);
}
.card:hover { border-color: var(--border-light); }

.card-header {
  padding: var(--sp-md) var(--sp-lg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-body { padding: var(--sp-lg); }
.card-body--flush { padding: 0; }

.card-footer {
  padding: var(--sp-md) var(--sp-lg);
  border-top: 1px solid var(--border);
}

/* === AS entries === */
.as-list {
  display: flex;
  flex-direction: column;
}

.as-entry {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--sp-sm) var(--sp-lg);
  padding: var(--sp-lg);
  align-items: start;
  transition: background var(--transition);
}
.as-entry:hover { background: rgba(255,255,255,0.02); }
.as-entry + .as-entry { border-top: 1px solid var(--border); }

.as-rank {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.as-entry:nth-child(1) .as-rank {
  background: linear-gradient(135deg, rgba(251,191,36,0.15), rgba(245,158,11,0.05));
  border-color: rgba(251,191,36,0.3);
  color: var(--amber);
}
.as-entry:nth-child(2) .as-rank {
  background: linear-gradient(135deg, rgba(148,163,184,0.12), rgba(148,163,184,0.04));
  border-color: rgba(148,163,184,0.25);
  color: #b0bec5;
}
.as-entry:nth-child(3) .as-rank {
  background: linear-gradient(135deg, rgba(180,83,9,0.12), rgba(180,83,9,0.04));
  border-color: rgba(180,83,9,0.25);
  color: #d97706;
}

.as-info { min-width: 0; }

.as-name {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.as-name .asn {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
}
.as-name .descr {
  color: var(--text-secondary);
  font-size: 0.85rem;
}
.as-name .flag { vertical-align: middle; }

.as-traffic {
  display: flex;
  gap: var(--sp-lg);
  margin: 6px 0;
  flex-wrap: wrap;
}

.traffic-group {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
}

.traffic-label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.65rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  padding: 1px 6px;
  border-radius: var(--r-full);
}

.traffic-in  { color: var(--green); font-family: var(--mono); font-weight: 500; font-size: 0.8rem; }
.traffic-out { color: var(--amber); font-family: var(--mono); font-weight: 500; font-size: 0.8rem; }
.traffic-sep { color: var(--text-muted); }

.as-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.as-links a {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 2px 9px;
  border-radius: var(--r-full);
  background: var(--accent-subtle);
  color: var(--accent);
  border: 1px solid rgba(59,130,246,0.12);
  transition: all var(--transition);
  text-decoration: none;
}
.as-links a:hover {
  background: rgba(59,130,246,0.18);
  border-color: rgba(59,130,246,0.3);
}

.as-graphs {
  grid-column: 1 / -1;
  display: flex;
  gap: var(--sp-sm);
  align-items: start;
  margin-top: var(--sp-xs);
}
.as-graphs a {
  flex: 1 1 0;
  min-width: 0;
  display: block;
  border-radius: var(--r-sm);
  overflow: hidden;
  transition: all var(--transition);
}
.as-graphs a:hover {
  box-shadow: var(--shadow-glow);
}

/* Graph images */
img.graph-img {
  display: block;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  max-width: 100%;
  height: auto;
}

/* === Legend === */
.legend-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 7px 8px;
  border-radius: var(--r-sm);
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--transition);
}
.legend-item:hover { background: rgba(255,255,255,0.04); }

.legend-swatch {
  display: flex;
  gap: 1px;
  flex-shrink: 0;
}
.legend-swatch span {
  width: 10px; height: 18px;
  border-radius: 2px;
}
.legend-swatch span:last-child { opacity: 0.6; }

.legend-name {
  flex: 1; min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.legend-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px; height: 16px;
  border: 2px solid var(--border-light);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: all var(--transition);
  flex-shrink: 0;
}
.legend-item input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.legend-item input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 1px; left: 4px;
  width: 4px; height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* === Forms === */
.form-input,
.form-select {
  width: 100%;
  padding: 9px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.85rem;
  outline: none;
  transition: all var(--transition);
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus,
.form-select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}
.form-select {
  cursor: pointer;
  color-scheme: dark;
}
.form-select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
}

.btn-danger {
  background: transparent;
  color: var(--red);
  border-color: rgba(239,68,68,0.2);
}
.btn-danger:hover { background: rgba(239,68,68,0.08); }

.btn-block { width: 100%; }

/* === Graph grid (history, linkusage) === */
.graph-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-lg);
}

.graph-row {
  display: flex;
  gap: var(--sp-md);
}

.graph-row img {
  flex: 1 1 0;
  min-width: 0;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  max-width: 100%;
  height: auto;
}

/* === Link list (custom links in history) === */
.link-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.link-list a {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 8px 10px;
  border-radius: var(--r-sm);
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: all var(--transition);
  text-decoration: none;
}
.link-list a:hover {
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
}
.link-list a svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* === Inline input (top N in header) === */
.inline-input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-primary);
  font-family: var(--mono);
  font-size: inherit;
  width: 4ch;
  text-align: center;
  padding: 2px 4px;
  outline: none;
  transition: all var(--transition);
}
.inline-input:focus { border-color: var(--border-focus); }

/* === Alerts === */
.alert {
  padding: var(--sp-md) var(--sp-lg);
  border-radius: var(--r-md);
  font-size: 0.9rem;
  border: 1px solid;
}
.alert-info {
  background: var(--accent-subtle);
  border-color: rgba(59,130,246,0.2);
  color: var(--accent);
}
.alert-warning {
  background: rgba(245,158,11,0.08);
  border-color: rgba(245,158,11,0.2);
  color: var(--amber);
}

/* === Footer === */
.app-footer {
  margin-top: auto;
  padding: var(--sp-lg) var(--sp-xl);
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.app-footer strong { color: var(--text-secondary); font-weight: 600; }

/* === Typeahead (ix.php) === */
.typeahead.dropdown-menu {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: var(--r-md) !important;
  box-shadow: var(--shadow-lg) !important;
  padding: 4px !important;
}
.typeahead.dropdown-menu li > a {
  padding: 8px 14px !important;
  border-radius: var(--r-sm) !important;
  color: var(--text-secondary) !important;
  font-size: 0.85rem !important;
  display: block !important;
}
.typeahead.dropdown-menu li.active > a,
.typeahead.dropdown-menu li > a:hover {
  background: rgba(255,255,255,0.06) !important;
  color: var(--text-primary) !important;
}

.searchBox {
  background-image: none !important;
  opacity: 0.6;
}

/* === AS-SET list === */
.asset-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.asset-list a {
  display: block;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.85rem;
  transition: all var(--transition);
}
.asset-list a:hover { background: var(--accent-subtle); }

/* === No data message === */
.no-data {
  text-align: center;
  padding: var(--sp-xl);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* === Utility === */
.text-center { text-align: center; }
.text-mono  { font-family: var(--mono); }

/* === Compare AS === */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--sp-lg);
}
.compare-col { margin: 0; }
.compare-col-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-sm);
}
.compare-col-title {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  min-width: 0;
}
.compare-col-title .asn {
  font-weight: 600;
  color: var(--text-primary);
}
.compare-remove {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.4rem;
  line-height: 1;
  padding: 0 var(--sp-xs);
  border-radius: var(--r-sm);
  transition: all var(--transition);
}
.compare-remove:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}
.compare-descr {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: var(--sp-md);
  word-break: break-word;
}
.compare-traffic {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
  margin-bottom: var(--sp-md);
  padding-bottom: var(--sp-md);
  border-bottom: 1px solid var(--border);
}
.compare-graphs {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-md);
}
.compare-graphs a { display: block; border-radius: var(--r-sm); overflow: hidden; }
.compare-graphs img { width: 100%; height: auto; display: block; }

/* === Responsive === */
@media (max-width: 1100px) {
  .app-content { grid-template-columns: 220px 1fr; gap: var(--sp-lg); }
}

@media (max-width: 860px) {
  .app-content {
    grid-template-columns: 1fr;
    padding: calc(var(--nav-h) + var(--sp-lg)) var(--sp-md) var(--sp-lg);
  }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: var(--sp-md);
    box-shadow: var(--shadow-lg);
  }
  .as-entry { grid-template-columns: 36px 1fr; }
  .graph-grid { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-search input[type="text"] { width: 160px; }
  .as-traffic { flex-direction: column; gap: 2px; }
  .page-title { font-size: 1.15rem; }
}

/* === Theme toggle button === */
.theme-toggle {
  margin-left: var(--sp-sm);
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  border-color: var(--border-light);
}
.theme-toggle .theme-icon { display: none; line-height: 0; }
.theme-toggle .theme-icon--sun { display: inline-flex; }
[data-theme="light"] .theme-toggle .theme-icon--sun { display: none; }
[data-theme="light"] .theme-toggle .theme-icon--moon { display: inline-flex; }
[data-theme="light"] .theme-toggle:hover { background: rgba(0,0,0,0.05); }

/* === Light theme overrides === */
[data-theme="light"] {
  --bg-base: #f6f8fb;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-input: #ffffff;
  --bg-nav: rgba(255, 255, 255, 0.85);
  --bg-graph: #f0f2f5;

  --border: #e2e8f0;
  --border-light: #cbd5e1;
  --border-focus: #3b82f6;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-subtle: rgba(37, 99, 235, 0.1);

  --shadow-sm: 0 1px 2px rgba(15,23,42,0.06);
  --shadow-md: 0 4px 12px rgba(15,23,42,0.08);
  --shadow-lg: 0 8px 24px rgba(15,23,42,0.12);
  --shadow-glow: 0 0 20px rgba(37,99,235,0.15);
}

[data-theme="light"] .form-select { color-scheme: light; }

/* Hover/active fills that used white-on-dark need black-on-light */
[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-toggle:hover,
[data-theme="light"] .as-entry:hover,
[data-theme="light"] .legend-item:hover,
[data-theme="light"] .link-list a:hover,
[data-theme="light"] .btn-ghost:hover,
[data-theme="light"] .compare-remove:hover,
[data-theme="light"] .nav-dropdown-menu a:hover,
[data-theme="light"] .typeahead.dropdown-menu li.active > a,
[data-theme="light"] .typeahead.dropdown-menu li > a:hover {
  background: rgba(15,23,42,0.05) !important;
}
[data-theme="light"] .nav-links a.active,
[data-theme="light"] .nav-link.active {
  background: rgba(15,23,42,0.08);
}
[data-theme="light"] .as-entry:hover { background: rgba(15,23,42,0.025) !important; }
[data-theme="light"] .traffic-label { background: rgba(15,23,42,0.05); }

/* Rank podium colors read better with slightly stronger fills on light */
[data-theme="light"] .as-entry:nth-child(1) .as-rank {
  background: linear-gradient(135deg, rgba(251,191,36,0.2), rgba(245,158,11,0.08));
  color: #b45309;
}
[data-theme="light"] .as-entry:nth-child(2) .as-rank {
  background: linear-gradient(135deg, rgba(100,116,139,0.18), rgba(100,116,139,0.06));
  color: #475569;
}
[data-theme="light"] .as-entry:nth-child(3) .as-rank {
  background: linear-gradient(135deg, rgba(180,83,9,0.18), rgba(180,83,9,0.06));
  color: #92400e;
}
