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

:root {
  /* --- Luxury Monochrome & Deep Space Design Tokens --- */
  --bg-app: #030304;
  --bg-surface: #0a0a0d;
  --bg-surface-glass: rgba(14, 14, 18, 0.72);
  --bg-surface-elevated: #131318;
  --bg-surface-card: #0c0c10;
  --bg-surface-hover: rgba(255, 255, 255, 0.04);
  --bg-input: rgba(8, 8, 11, 0.8);
  --bg-code: #060608;

  /* Hairline Precision Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-elevated: rgba(255, 255, 255, 0.20);
  --border-strong: rgba(255, 255, 255, 0.35);
  --border-active: #ffffff;
  --border-glow: rgba(255, 255, 255, 0.15);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  --text-primary: #ffffff;
  --text-secondary: #a1a1aa; /* Zinc 400 */
  --text-muted: #71717a;     /* Zinc 500 */
  --text-dim: #52525b;       /* Zinc 600 */

  /* High Contrast & Accents */
  --accent-white: #ffffff;
  --accent-zinc: #27272a;
  --accent-glow: rgba(255, 255, 255, 0.08);

  /* Semantic Alerts */
  --red: #f87171;
  --red-surface: rgba(248, 113, 113, 0.10);
  --red-border: rgba(248, 113, 113, 0.28);

  --green: #4ade80;
  --green-surface: rgba(74, 222, 128, 0.10);
  --green-border: rgba(74, 222, 128, 0.28);
  --green-glow: rgba(74, 222, 128, 0.35);

  --amber: #fbbf24;
  --amber-surface: rgba(251, 191, 36, 0.10);
  --amber-border: rgba(251, 191, 36, 0.28);

  --cyan: #38bdf8;
  --cyan-surface: rgba(56, 189, 248, 0.10);
  --cyan-border: rgba(56, 189, 248, 0.28);

  /* Micro-interactions */
  --transition-fast: 120ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 220ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-app);
  background-image: 
    radial-gradient(ellipse 70% 45% at 50% -15%, rgba(120, 119, 198, 0.14), transparent 70%),
    radial-gradient(ellipse 50% 30% at 85% 15%, rgba(56, 189, 248, 0.06), transparent 60%),
    radial-gradient(ellipse 45% 25% at 15% 45%, rgba(74, 222, 128, 0.04), transparent 50%);
  background-size: 100% 100%, 100% 100%, 100% 100%;
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Top Accent Light */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 260px;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255, 255, 255, 0.07), transparent 75%);
  pointer-events: none;
  z-index: 0;
}

/* Background Canvas (Grid Dots & Falling Meteors) */
#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* Custom Sleek Monochrome Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-app);
}
::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

::selection {
  background: #ffffff;
  color: #000000;
}

.mono {
  font-family: var(--font-mono);
  font-feature-settings: 'tnum' 1, 'zero' 1;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 24px 90px;
  position: relative;
  z-index: 1;
}

/* Header & Minimalist Nav */
header {
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(3, 3, 4, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: border-color var(--transition-normal);
}

.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 13px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-wrap > .brand {
  flex: 1;
  display: flex;
  align-items: center;
}

.nav-wrap > .nav-links {
  flex: 0 0 auto;
}

.nav-wrap > .nav-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.035em;
  transition: opacity var(--transition-fast);
}

.brand:hover {
  opacity: 0.9;
}

.brand-icon-box {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #d4d4d8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 1.05rem;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.25), inset 0 1px 1px #ffffff;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.brand-logo-img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  object-fit: cover;
  display: block;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.22);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.brand:hover .brand-icon-box,
.brand:hover .brand-logo-img {
  transform: scale(1.06);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.38);
}

.brand-badge,
.brand-badge-0API {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-medium);
  color: #ededed;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.02);
  padding: 3px 4px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link::after, .nav-link::before {
  display: none !important;
}

.nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--border-medium);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* User Nav Pill */
.user-nav-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-medium);
  padding: 4px 13px;
  border-radius: 20px;
  font-size: 0.84rem;
  backdrop-filter: blur(10px);
}

/* Luxury Cards & Glass Surfaces */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0.005) 100%), #0b0b0f;
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  padding: 26px;
  margin-bottom: 22px;
  position: relative;
  box-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 12px 36px -4px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 18px 48px -6px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.card-header {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-subtitle {
  color: var(--text-secondary);
  font-size: 0.86rem;
  margin-bottom: 20px;
  line-height: 1.55;
}

/* Monochrome Banner Box */
.banner-box,
.banner-0API {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.01) 100%), #0e0e13;
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  padding: 24px 26px;
  margin-bottom: 24px;
  box-shadow: 0 8px 30px -4px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Metrics Cards (Linear / Vercel style) */
.grid-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}

@media (max-width: 980px) {
  .grid-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 580px) {
  .grid-metrics {
    grid-template-columns: 1fr;
  }
}

.metric-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.028) 0%, rgba(255, 255, 255, 0.005) 100%), #0b0b0e;
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  padding: 22px 24px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.metric-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px -4px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.metric-card:hover::before {
  opacity: 1;
}

.metric-title {
  color: var(--text-muted);
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metric-value {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #ffffff;
  line-height: 1.15;
  background: linear-gradient(180deg, #ffffff 45%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric-sub {
  color: var(--text-dim);
  font-size: 0.79rem;
  margin-top: 8px;
  font-weight: 500;
}

/* Radar Beacon & Status Indicators */
.status-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  position: relative;
}

.status-dot-pulse.green {
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80, 0 0 12px var(--green-glow);
}

.status-dot-pulse.yellow {
  background: #fbbf24;
  box-shadow: 0 0 8px #fbbf24;
}

.status-dot-pulse.red {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

/* Animated Radar Beacon */
.beacon-dot {
  width: 7px;
  height: 7px;
  background: #4ade80;
  border-radius: 50%;
  position: relative;
  display: inline-block;
}

.beacon-dot::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid #4ade80;
  animation: radar-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes radar-ping {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.badge-green {
  background: var(--green-surface);
  color: #4ade80;
  border: 1px solid var(--green-border);
  box-shadow: 0 0 15px rgba(74, 222, 128, 0.4), inset 0 0 8px rgba(74, 222, 128, 0.2);
}

.badge-yellow {
  background: var(--amber-surface);
  color: #fbbf24;
  border: 1px solid var(--amber-border);
}

.badge-red {
  background: var(--red-surface);
  color: #f87171;
  border: 1px solid var(--red-border);
}

.badge-cyan {
  background: var(--cyan-surface);
  color: #38bdf8;
  border: 1px solid var(--cyan-border);
}

.badge-neutral {
  background: rgba(255, 255, 255, 0.05);
  color: #d4d4d8;
  border: 1px solid var(--border-medium);
}

.category-badge {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 5px;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  border-radius: 8px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.table-wrap::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
  width: 0;
  height: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

th {
  color: var(--text-muted);
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-medium);
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.028);
}

/* Action Buttons */
.btn {
  font-family: var(--font-sans);
  background: #ffffff;
  color: #000000;
  border: 1px solid #ffffff;
  padding: 8px 17px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  outline: none;
  text-decoration: none;
  user-select: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 10px rgba(255, 255, 255, 0.12);
}

.btn:hover {
  background: #f4f4f5;
  border-color: #ffffff;
  box-shadow: inset 0 1px 0 #ffffff, 0 4px 18px rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 4px rgba(0, 0, 0, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: #ededed;
  border: 1px solid var(--border-medium);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 2px 6px rgba(0, 0, 0, 0.4);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-elevated);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 12px rgba(0, 0, 0, 0.6);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 5px 11px;
  font-size: 0.79rem;
  border-radius: 6px;
}

.btn-danger {
  background: var(--red-surface);
  color: var(--red);
  border: 1px solid var(--red-border);
  box-shadow: 0 2px 8px rgba(248, 113, 113, 0.12);
}

.btn-danger:hover {
  background: rgba(248, 113, 113, 0.18);
  border-color: var(--red);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(248, 113, 113, 0.25);
  transform: translateY(-1px);
}

/* Form Controls */
input, select, textarea {
  font-family: var(--font-sans);
  background: var(--bg-input);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.90rem;
  outline: none;
  transition: all var(--transition-fast);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6);
}

input:focus, select:focus, textarea:focus {
  border-color: #ffffff;
  box-shadow: 0 0 0 1px #ffffff, 0 0 20px -3px rgba(255, 255, 255, 0.25), inset 0 1px 2px rgba(0, 0, 0, 0.8);
}

input::placeholder, textarea::placeholder {
  color: var(--text-dim);
}

/* Navigation Tabs (Pill Segmented Control) */
.tabs {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 26px;
  overflow-x: auto;
  backdrop-filter: blur(8px);
}

.tab-btn {
  background: none;
  border: none;
  font-family: var(--font-sans);
  color: var(--text-muted);
  padding: 9px 18px;
  font-size: 0.87rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 7px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
  color: #000000;
  background: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Codebox Terminal Window */
.code-box {
  background: var(--bg-code);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  padding: 12px 15px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: #e4e4e7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.7);
}

.copy-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.76rem;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.copy-btn.copied {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
}

/* Authentic Telegram Desktop Bot Card in Cyber Glass */
.tg-container {
  max-width: 640px;
  margin: 0 auto 34px;
}

.tg-bot-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%), #0f1115;
  border: 1px solid var(--border-medium);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.tg-bot-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.2rem;
  color: #000000;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.25);
}

.tg-bot-meta {
  flex: 1;
}

.tg-bot-name {
  font-weight: 700;
  font-size: 0.98rem;
  color: #ffffff;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tg-verified-icon {
  width: 15px;
  height: 15px;
  color: #38bdf8;
  display: inline-block;
}

.tg-bot-sub {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.tg-message-wrap {
  background: #060709;
  border: 1px solid var(--border-medium);
  padding: 20px;
}

.tg-bubble {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.008) 100%), #101216;
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tg-banner-img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid var(--border-subtle);
  filter: contrast(1.1);
}

.tg-bubble-body {
  padding: 22px 24px;
  font-size: 0.92rem;
  color: #d4d4d8;
  line-height: 1.62;
}

.tg-msg-time {
  text-align: right;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-family: var(--font-mono);
}

/* Telegram Keyboard in Cyber Glass */
.tg-keyboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 16px 20px;
  background: #090a0d;
  border: 1px solid var(--border-medium);
  border-top: none;
  border-radius: 0 0 12px 12px;
}

.tg-key-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: #ededed;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.89rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  outline: none;
  user-select: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.tg-key-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--border-strong);
  color: #ffffff;
  transform: translateY(-1px);
}

.tg-key-btn:active {
  transform: translateY(0);
}

.tg-key-btn.active {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
  box-shadow: 0 2px 12px rgba(255, 255, 255, 0.25);
}

/* Category & Feed List */
.category-header,
.feed-category-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 28px 0 12px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 9px;
}

.feed-list,
.feed-list-0API {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.005) 100%), #090a0d;
  border: 1px solid var(--border-medium);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 22px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

.feed-item,
.feed-item-0API {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-fast);
  flex-wrap: wrap;
  gap: 12px;
}

.feed-item:last-child,
.feed-item-0API:last-child {
  border-bottom: none;
}

.feed-item:hover,
.feed-item-0API:hover {
  background: rgba(255, 255, 255, 0.035);
}

.feed-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 280px;
}

.feed-item-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Modals with Blurred Backdrop */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%), #111217;
  border: 1px solid var(--border-elevated);
  border-radius: 14px;
  width: 100%;
  max-width: 500px;
  padding: 28px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: modal-enter 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-enter {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
  color: #ffffff;
}

.modal-desc {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 22px;
  line-height: 1.55;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

/* Modern Glowing Toast */
#toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #ffffff;
  color: #000000;
  padding: 11px 20px;
  border-radius: 8px;
  border: 1px solid #ffffff;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.8), 0 0 24px rgba(255, 255, 255, 0.25);
  display: none;
  z-index: 2000;
  font-weight: 700;
  font-size: 0.86rem;
  animation: toast-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toast-in {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Terminal Chrome (macOS / Linux traffic lights) */
.terminal-window {
  background: #050608;
  border: 1px solid var(--border-medium);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.terminal-header {
  background: #0d0f12;
  border-bottom: 1px solid var(--border-medium);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-dots {
  display: flex;
  gap: 7px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot:nth-child(1) { background: #ff5f56; }
.terminal-dot:nth-child(2) { background: #ffbd2e; }
.terminal-dot:nth-child(3) { background: #27c93f; }

.terminal-title {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
  font-family: var(--font-mono);
}

.terminal-body {
  padding: 18px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.65;
}

/* Cyber Voucher Style */
.voucher-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed var(--border-elevated);
  color: #ffffff;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 5px;
  display: inline-block;
  letter-spacing: 0.05em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Filter Pills in Mono */
.filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-pill {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-medium);
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-pill svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.filter-pill img {
  transition: filter 0.3s ease;
}

.filter-pill.active img[alt="GPT"] {
  filter: invert(1);
}

.filter-pill img[alt="Moonshot AI"],
.filter-pill img[alt="Moonshot"],
.filter-pill img[src*="moonshot"],
.filter-pill img[src*="XsMOC1Y"] {
  filter: invert(1);
}

.filter-pill.active img[alt="Moonshot AI"],
.filter-pill.active img[alt="Moonshot"],
.filter-pill.active img[src*="moonshot"],
.filter-pill.active img[src*="XsMOC1Y"] {
  filter: none;
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--border-active);
}

.filter-pill:hover svg, .filter-pill.active svg {
  opacity: 1;
}

.filter-pill.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.15);
}

/* Topup Grid Cards */
.topup-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

@media (max-width: 640px) {
  .topup-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.topup-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.topup-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.1);
}

.topup-card-val {
  font-weight: 800;
  font-size: 1.1rem;
  color: #ffffff;
}

.topup-card-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
  font-family: var(--font-mono);
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 20px 16px 70px;
  }
  .tg-keyboard {
    grid-template-columns: 1fr;
  }
  .nav-wrap {
    padding: 12px 16px;
  }
}

/* Interactive Model Telemetry Inspector Drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  justify-content: flex-end;
  z-index: 1200;
  opacity: 0;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-overlay.active {
  display: flex;
  opacity: 1;
}

.drawer-panel {
  background: linear-gradient(180deg, #101217 0%, #08090b 100%);
  border-left: 1px solid var(--border-elevated);
  width: 100%;
  max-width: 580px;
  height: 100vh;
  overflow-y: auto;
  padding: 32px 28px;
  box-shadow: -24px 0 80px rgba(0, 0, 0, 0.95), inset 1px 0 0 rgba(255, 255, 255, 0.08);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.drawer-overlay.active .drawer-panel {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-close-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-medium);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.drawer-close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: #ffffff;
}

.drawer-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.drawer-metric-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 14px;
}

.drawer-metric-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.drawer-metric-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
}

.timeline-probe-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 0.82rem;
}

.timeline-probe-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

tr.model-clickable-row {
  cursor: pointer;
  transition: background 0.15s ease;
}

tr.model-clickable-row:hover td {
  background: rgba(255, 255, 255, 0.05) !important;
}

/* ===================================================================
   MODERN LIVELY ANIMATIONS
   ================================================================ */

/* Fade-in-up on page load for cards */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced button interactions */
.btn {
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Button ripple effect */
.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  pointer-events: none;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

/* Input focus animations */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--border-active);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
  transform: scale(1.002);
}

input:focus::placeholder {
  opacity: 0.5;
  transform: translateX(4px);
}

/* Status badge pulse animations */
.status-badge.badge-green {
  animation: pulse-green 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.4), inset 0 0 8px rgba(74, 222, 128, 0.2), 0 0 0 0 rgba(74, 222, 128, 0.4);
  }
  100% {
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.4), inset 0 0 8px rgba(74, 222, 128, 0.2), 0 0 0 8px rgba(74, 222, 128, 0);
  }
}

.status-badge.badge-amber {
  animation: pulse-amber 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-amber {
  0% {
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4);
  }
  100% {
    box-shadow: 0 0 0 8px rgba(251, 191, 36, 0);
  }
}

.status-badge.badge-red {
  animation: pulse-red 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-red {
  0% {
    box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.4);
  }
  100% {
    box-shadow: 0 0 0 8px rgba(248, 113, 113, 0);
  }
}

/* Loading spinner */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Table row hover and transition */
table tbody tr {
  transition: background-color 0.15s ease, transform 0.15s ease;
}

table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.03);
  transform: translateX(2px);
}

table tbody tr:active {
  transform: translateX(0);
}

/* Enhanced modal animations */
.modal-overlay {
  backdrop-filter: blur(8px);
  animation: modal-backdrop-enter 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-backdrop-enter {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(8px);
  }
}

.modal-content {
  animation: modal-content-enter 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-content-enter {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Copy button success animation */
.copy-btn {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.copy-btn.copied {
  background: var(--green) !important;
  color: #000000 !important;
  transform: scale(1.05);
  font-weight: 600;
}

/* Number counter animation */
.metric-value {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              color 0.3s ease;
}

.metric-value.update {
  transform: scale(1.08);
  color: var(--green);
}

/* Skeleton loading state */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 25%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.03) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: 4px;
  min-height: 16px;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Enhanced toast slide-in */
#toast {
  animation: toast-slide-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toast-slide-in {
  from {
    opacity: 0;
    transform: translateY(100px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}



/* Form error shake */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

.error-shake {
  animation: shake 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Fade-out animation */
@keyframes fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

.fade-out {
  animation: fade-out 0.3s forwards;
}

/* Scale-in for modals/popovers */
@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.scale-in {
  animation: scale-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   0API Telemetry Chart & Interactive Sparkline Styles
   ========================================================================== */
.telemetry-chart-card {
  background: linear-gradient(180deg, rgba(20, 24, 33, 0.7) 0%, rgba(10, 12, 16, 0.85) 100%);
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.telemetry-chart-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.timeframe-pills {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}

.timeframe-pill {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.timeframe-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.timeframe-pill.active {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

.timeframe-pill.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.live-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: livePulseDot 1.4s ease-in-out infinite;
}

@keyframes livePulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

.timeframe-pill.live-pill.active {
  background: rgba(34, 197, 94, 0.16);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.45);
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.25);
}

.chart-provider-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.chart-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.chart-tab-btn img,
.chart-tab-btn svg {
  width: 15px;
  height: 15px;
  object-fit: contain;
  flex-shrink: 0;
}

.chart-tab-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.chart-tab-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.chart-tab-btn.active svg {
  color: #38bdf8;
}

.chart-tab-btn.active img {
  filter: none;
}

.chart-tab-btn img[alt="Moonshot AI"],
.chart-tab-btn img[alt="Moonshot"],
.chart-tab-btn img[src*="moonshot"],
.chart-tab-btn img[src*="XsMOC1Y"],
.chart-tab-btn.active img[alt="Moonshot AI"],
.chart-tab-btn.active img[alt="Moonshot"],
.chart-tab-btn.active img[src*="moonshot"],
.chart-tab-btn.active img[src*="XsMOC1Y"] {
  filter: invert(1);
}

.category-header img[alt*="Moonshot"],
.category-header img[src*="XsMOC1Y"],
.category-header img[src*="moonshot"],
.feed-category-title img[alt*="Moonshot"],
.feed-category-title img[src*="XsMOC1Y"],
.feed-category-title img[src*="moonshot"] {
  filter: invert(1) !important;
}

.telemetry-canvas-wrap {
  position: relative;
  width: 100%;
  border-radius: 10px;
  background: radial-gradient(circle at 50% 25%, rgba(20, 27, 40, 0.4) 0%, rgba(9, 12, 18, 0.6) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 12px;
  cursor: crosshair;
  overflow: visible;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.chart-tooltip {
  position: absolute;
  pointer-events: none;
  z-index: 100;
  background: rgba(11, 15, 24, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #ffffff;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.85), 0 0 1px rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(16px);
  min-width: 220px;
  max-width: 320px;
  transform: none;
  transition: top 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              left 0.05s ease-out,
              opacity 0.15s ease,
              box-shadow 0.22s ease,
              border-color 0.22s ease;
}

.telemetry-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 10px;
  max-height: 110px;
  overflow-y: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  align-items: center;
}

.model-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.76rem;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 11px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  white-space: nowrap;
}

.model-pill-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.model-pill-btn.pinned {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.18);
}

.model-pill-btn.dimmed {
  opacity: 0.3;
  filter: grayscale(0.5);
}

.model-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform 0.18s ease;
  box-shadow: 0 0 6px currentColor;
}

.model-pill-btn:hover .model-pill-dot,
.model-pill-btn.pinned .model-pill-dot {
  transform: scale(1.3);
}

.model-pill-lat {
  font-size: 0.7rem;
  opacity: 0.7;
  padding-left: 2px;
  font-family: var(--font-mono);
}

.model-pill-reset {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.model-pill-reset:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.04);
}

/* Row-Level Interactive Sparkline */
.sparkline-container {
  display: inline-flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  vertical-align: middle;
}

.sparkline-svg {
  display: block;
  overflow: visible;
}

.spark-pt {
  transition: r 0.15s ease, transform 0.15s ease;
  cursor: pointer;
}

.spark-pt:hover {
  r: 4.5 !important;
  stroke: #ffffff !important;
  stroke-width: 1.5px !important;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6));
}

.spark-tooltip-portal {
  position: fixed;
  z-index: 99999;
  pointer-events: none;
  background: rgba(10, 13, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 5px 9px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  transform: translate(-50%, -120%);
  display: none;
}

