/* ==========================================================================
   numBer Campaign Intelligence Dashboard — Modern Audio-Lifestyle Theme
   Grounded in DESIGN.md: Spotify Obsidian Void + Electric Cyan & Violet Accents
   ========================================================================== */

:root {
  --bg-core: #0B0F17;
  --bg-surface: #131B29;
  --bg-surface-hover: #1A2436;
  --bg-surface-elevated: #1F2C42;
  --border-subtle: #243147;
  --border-focus: #3B82F6;
  
  --accent-cyan: #00F0FF;
  --accent-cyan-glow: rgba(0, 240, 255, 0.25);
  --accent-violet: #818CF8;
  --accent-violet-glow: rgba(129, 140, 248, 0.25);
  --accent-emerald: #10B981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.2);
  --accent-amber: #F59E0B;
  --accent-amber-glow: rgba(245, 158, 11, 0.2);
  --accent-crimson: #EF4444;
  --accent-crimson-glow: rgba(239, 68, 68, 0.2);

  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-inverse: #0B0F17;

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

  --sidebar-width: 260px;
  --header-height: 64px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 20px rgba(0, 240, 255, 0.15);
}

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

html, body {
  background-color: var(--bg-core);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

.tabular {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* App Layout Grid */
.app-layout {
  display: flex;
  min-height: 100vh;
  width: 100vw;
  max-width: 100%;
  overflow-x: hidden;
}

/* ==========================================================================
   Desktop Sidebar Rail
   ========================================================================== */
.sidebar-rail {
  width: var(--sidebar-width);
  background-color: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  padding: 24px 16px;
}

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

.brand-mark {
  display: flex;
  flex-direction: column;
}

.brand-logo-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #FFFFFF;
}

.brand-accent {
  color: var(--accent-cyan);
}

.brand-sub {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.brand-tag {
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Navigation Links */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

.nav-item:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

.nav-item.active {
  background: var(--bg-surface-elevated);
  color: #FFFFFF;
  box-shadow: inset 3px 0 0 var(--accent-cyan);
  font-weight: 600;
}

.nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.cyan-icon { stroke: var(--accent-cyan); }
.violet-icon { stroke: var(--accent-violet); }
.amber-icon { stroke: var(--accent-amber); }
.emerald-icon { stroke: var(--accent-emerald); }

.nav-label {
  flex: 1;
  text-align: left;
}

.nav-badge {
  background: var(--bg-surface-hover);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.amber-badge {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
}

/* Sidebar Footer & 3H Countdown */
.sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.scrape-pulse-card {
  background: rgba(11, 15, 23, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
}

.pulse-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.pulse-text {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-emerald);
}

.next-sync-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.countdown-clock {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  margin-top: 2px;
}

.quick-actions {
  display: flex;
  gap: 8px;
}

.action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s;
}

.action-btn:hover {
  background: var(--bg-surface-hover);
  border-color: var(--accent-cyan);
}

.action-btn.secondary {
  color: var(--text-secondary);
}

/* ==========================================================================
   Main Viewport
   ========================================================================== */
.main-viewport {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
  background-color: var(--bg-core);
}

/* Header Top Bar */
.top-nav-bar {
  height: var(--header-height);
  background: rgba(19, 27, 41, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 90;
}

.mobile-brand {
  display: none;
}

.header-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 12px;
}

.month-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.sync-status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--accent-emerald);
}

.pulse-dot-mini {
  width: 6px;
  height: 6px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-emerald);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #00F0FF, #00B8D9);
  color: #071018;
  box-shadow: 0 4px 12px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 240, 255, 0.45);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-surface-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Tab Containers */
.tab-content-container {
  padding: 28px;
  flex: 1;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.25s ease-out;
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Overview Hero & KPI Grid
   ========================================================================== */
.hero-banner {
  background: linear-gradient(135deg, #131B29 0%, #1A2436 60%, rgba(0, 240, 255, 0.08) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.hero-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 13px;
  max-width: 620px;
}

.highlight-cyan {
  color: var(--accent-cyan);
  font-weight: 600;
}

.highlight-violet {
  color: var(--accent-violet);
  font-weight: 600;
}

.hero-countdown-box {
  background: rgba(11, 15, 23, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  text-align: right;
}

.countdown-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
}

.countdown-display {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
}

.countdown-frequency {
  font-size: 11px;
  color: var(--text-muted);
}

/* KPI Cards Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}

.kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.cyan-glow:hover { border-color: var(--accent-cyan); box-shadow: var(--shadow-glow); }
.violet-glow:hover { border-color: var(--accent-violet); }
.emerald-glow:hover { border-color: var(--accent-emerald); }
.amber-glow:hover { border-color: var(--accent-amber); }

.kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.kpi-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kpi-icon-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.cyan-pill { background: rgba(0, 240, 255, 0.12); color: var(--accent-cyan); }
.violet-pill { background: rgba(129, 140, 248, 0.12); color: var(--accent-violet); }
.emerald-pill { background: rgba(16, 185, 129, 0.12); color: var(--accent-emerald); }
.amber-pill { background: rgba(245, 158, 11, 0.12); color: var(--accent-amber); }

.kpi-value {
  font-size: 28px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 4px;
}

/* Creative Delta Badges */
.kpi-delta-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  transition: all 0.25s ease;
}

.kpi-delta-badge .delta-arrow {
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.kpi-delta-badge.cyan-delta {
  background: rgba(0, 240, 255, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

.kpi-delta-badge.cyan-delta:hover {
  background: rgba(0, 240, 255, 0.18);
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.3);
}

.kpi-delta-badge.violet-delta {
  background: rgba(129, 140, 248, 0.12);
  color: var(--accent-violet);
  border: 1px solid rgba(129, 140, 248, 0.3);
  box-shadow: 0 0 10px rgba(129, 140, 248, 0.15);
}

.kpi-delta-badge.violet-delta:hover {
  background: rgba(129, 140, 248, 0.18);
  border-color: rgba(129, 140, 248, 0.5);
  box-shadow: 0 0 14px rgba(129, 140, 248, 0.3);
}

.kpi-delta-badge.emerald-delta {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

.kpi-delta-badge.emerald-delta:hover {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.3);
}

.kpi-delta-badge.amber-delta {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.15);
}

.kpi-delta-badge.amber-delta:hover {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.3);
}

.kpi-delta-badge.positive-delta {
  background: rgba(16, 185, 129, 0.14) !important;
  color: #34D399 !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25) !important;
  animation: delta-pop 0.5s ease-out;
}

.kpi-delta-badge.neutral-delta {
  background: rgba(148, 163, 184, 0.08);
  color: var(--text-muted);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: none;
}

@keyframes delta-pop {
  0% { transform: scale(0.92); opacity: 0.7; }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

.kpi-subtext {
  font-size: 12px;
  color: var(--text-muted);
}

/* Analytics Row (Split Cards) */
.analytics-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.analytics-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
}

.card-badge {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-surface-elevated);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.card-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.progress-bar-stack {
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  display: flex;
  overflow: hidden;
  margin-bottom: 16px;
}

.bar-segment {
  height: 100%;
  transition: width 0.4s ease;
}

.cyan-bar { background-color: var(--accent-cyan); }
.violet-bar { background-color: var(--accent-violet); }
.red-bar { background-color: #EF4444; }
.purple-bar { background-color: #A855F7; }
.emerald-bar { background-color: var(--accent-emerald); }
.crimson-bar { background-color: var(--accent-crimson); }
.amber-bar { background-color: var(--accent-amber); }

/* Card Action Links & Sub-headers */
.card-action-link {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--accent-cyan);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.card-action-link:hover {
  background: rgba(0, 240, 255, 0.18);
  border-color: var(--accent-cyan);
  color: #FFFFFF;
}

.card-sub-info {
  font-size: 11px;
  color: var(--text-muted);
}

.header-with-badge {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.distribution-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.legend-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.legend-views {
  font-family: var(--font-mono);
  font-weight: 600;
  color: #FFFFFF;
}

/* Top Posts Podium */
.section-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.top-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.top-post-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s;
}

.top-post-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-cyan);
}

.post-rank-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 8px;
}

.rank-1 { background: rgba(245, 158, 11, 0.2); color: #F59E0B; border: 1px solid rgba(245, 158, 11, 0.4); }
.rank-2 { background: rgba(148, 163, 184, 0.2); color: #CBD5E1; }
.rank-3 { background: rgba(180, 83, 9, 0.2); color: #D97706; }

.top-post-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.top-post-creator {
  font-size: 12px;
  color: var(--accent-cyan);
  font-weight: 500;
  margin-bottom: 8px;
}

.top-post-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
}

.metric-views {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
}

/* ==========================================================================
   Tab 2: 44 Roster Table & Toolbar
   ========================================================================== */
.tab-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 14px;
}

.tab-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tab-subtitle {
  color: var(--text-secondary);
  font-size: 13px;
}

.code-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--bg-surface-elevated);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-cyan);
}

.filter-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.search-input-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  width: 280px;
}

.search-input-box input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 13px;
  width: 100%;
}

.search-input-box input::placeholder {
  color: var(--text-muted);
}

.filter-pills-group {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 4px;
  border-radius: var(--radius-full);
}

.pill-filter {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.pill-filter:hover {
  color: var(--text-primary);
}

.pill-filter.active {
  background: var(--bg-surface-elevated);
  color: #FFFFFF;
}

.pill-filter.emerald.active {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
}

.pill-filter.crimson.active {
  background: rgba(239, 68, 68, 0.2);
  color: var(--accent-crimson);
}

.pill-filter.amber.active {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-amber);
}

/* Data Table */
.roster-table-container {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-card);
  width: 100%;
  max-width: 100%;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

#statsTable {
  table-layout: fixed;
  width: 100%;
}

.data-table th {
  background: var(--bg-surface-elevated);
  padding: 10px 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.data-table td {
  padding: 9px 10px;
  font-size: 12.5px;
  border-bottom: 1px solid rgba(36, 49, 71, 0.5);
  vertical-align: middle;
}

/* Stats Table Specific Column Formatting */
.col-sr { width: 44px; text-align: center; }
.col-creator { width: 22%; min-width: 160px; }
.col-units { width: 14%; min-width: 110px; }
.col-location { width: 13%; min-width: 110px; }
.col-status { width: 12%; min-width: 100px; text-align: center; }
.col-views-delta { width: 14%; min-width: 115px; text-align: right; }
.col-engagement { width: 11%; min-width: 85px; text-align: right; }
.col-actions { width: 14%; min-width: 120px; text-align: center; white-space: nowrap; }

.data-table tbody tr:hover {
  background-color: var(--bg-surface-hover);
}

.creator-cell {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.creator-cell-name {
  font-weight: 600;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.creator-cell-handle {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  max-width: 100%;
}

.creator-cell-handle:hover {
  color: var(--accent-cyan);
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-verified {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-delinquent {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-crimson);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.badge-media {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.badge-running {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.4);
  animation: pulse-glow 2s infinite ease-in-out;
}

.badge-interrupted, .badge-timed-out {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.status-running-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 11.5px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 1.2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 4px rgba(6, 182, 212, 0.2); }
  50% { box-shadow: 0 0 10px rgba(6, 182, 212, 0.5); }
}

.btn-scraping-active {
  opacity: 0.85;
  cursor: wait !important;
  pointer-events: none;
}

.spin-icon {
  animation: spin 1s linear infinite;
}

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

.btn-table-action {
  padding: 4px 10px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.btn-table-action:hover {
  background: var(--bg-surface-hover);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* ==========================================================================
   Content Grid (Headit Pro / Earbuds / Other Creators)
   ========================================================================== */
.content-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.content-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, border-color 0.2s;
}

.content-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-cyan);
}

.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.format-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
}

.badge-youtube {
  color: #FF0000;
  border: 1px solid rgba(255, 0, 0, 0.3);
}

.badge-instagram {
  color: #E1306C;
  border: 1px solid rgba(225, 48, 108, 0.3);
}

.card-title-text {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #FFFFFF;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-creator-tag {
  font-size: 12px;
  color: var(--accent-cyan);
  font-weight: 500;
  margin-bottom: 14px;
}

.card-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  margin-bottom: 14px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
}

.stat-lbl {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.btn-watch {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-watch:hover {
  background: var(--accent-cyan);
  color: #071018;
  border-color: var(--accent-cyan);
}

/* Notice Banner */
.banner-notice {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent-amber);
  margin-bottom: 20px;
  font-size: 13px;
}

.cyan-text { color: var(--accent-cyan); }
.violet-text { color: var(--accent-violet); }
.amber-text { color: var(--accent-amber); }

.count-chip {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.cyan-chip { background: rgba(0, 240, 255, 0.12); color: var(--accent-cyan); }
.violet-chip { background: rgba(129, 140, 248, 0.12); color: var(--accent-violet); }
.amber-chip { background: rgba(245, 158, 11, 0.12); color: var(--accent-amber); }

/* ==========================================================================
   Telemetry Section
   ========================================================================== */
.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.telemetry-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.telemetry-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.telemetry-value {
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.telemetry-desc {
  font-size: 11px;
  color: var(--text-secondary);
}

.mt-24 { margin-top: 24px; }
.table-scroll { overflow-x: auto; }

/* ==========================================================================
   Modal Dialog
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 650px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  padding: 24px;
}

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

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
}

.modal-subtitle {
  font-size: 12px;
  color: var(--accent-cyan);
}

.modal-close-btn {
  font-size: 24px;
  color: var(--text-muted);
  line-height: 1;
}

.modal-close-btn:hover {
  color: #FFFFFF;
}

.creator-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.meta-pill {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  color: var(--text-secondary);
}

.modal-section-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.modal-post-item {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-post-title {
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
}

.modal-post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid rgba(36, 49, 71, 0.4);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  color: #FFFFFF;
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s ease;
}

.toast.success { border-color: var(--accent-emerald); }
.toast.info { border-color: var(--accent-cyan); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   Links & Stats Tabs Styling
   ========================================================================== */

/* Links Section Headers */
.links-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.links-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.links-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
}

.links-header-metrics {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.metric-chip {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.metric-chip.cyan {
  color: var(--accent-cyan);
  border-color: rgba(0, 240, 255, 0.3);
  background: rgba(0, 240, 255, 0.08);
}

.metric-chip.emerald {
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.08);
}

.metric-chip.amber {
  color: var(--accent-amber);
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.08);
}

.metric-chip.violet {
  color: var(--accent-violet);
  border-color: rgba(129, 140, 248, 0.3);
  background: rgba(129, 140, 248, 0.08);
}

/* Obsidian Glass Section Divider */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 36px 0 28px;
}

.section-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(129, 140, 248, 0.4), transparent);
}

.divider-label {
  position: relative;
  background: var(--bg-void);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(129, 140, 248, 0.3);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-violet);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Links Table Specifics */
.links-table-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

.col-link-rank { width: 56px; text-align: center; }
.col-link-format { width: 130px; text-align: center; }
.col-link-creator { min-width: 180px; }
.col-link-title { min-width: 240px; }
.col-link-views { width: 140px; text-align: right; }
.col-link-engagement { width: 130px; text-align: right; }
.col-link-action { width: 110px; text-align: center; }

/* Rank Badges */
.rank-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 6px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.rank-gold {
  background: rgba(245, 158, 11, 0.2);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.2);
}

.rank-silver {
  background: rgba(148, 163, 184, 0.2);
  color: #E2E8F0;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.rank-bronze {
  background: rgba(180, 83, 9, 0.2);
  color: #FBBF24;
  border: 1px solid rgba(180, 83, 9, 0.4);
}

.rank-default {
  background: var(--bg-surface-elevated);
  color: var(--text-muted);
}

/* Format Badges */
.format-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.format-badge.yt-long {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.format-badge.yt-short {
  background: rgba(244, 63, 94, 0.15);
  color: #FB7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.format-badge.ig-reel {
  background: rgba(168, 85, 247, 0.15);
  color: #C084FC;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

/* Content Title & Snippet */
.content-title-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.content-title-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s;
}

.content-title-link:hover {
  color: var(--accent-cyan);
}

.content-tag-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.content-tag-pill.roster {
  color: var(--accent-emerald);
}

.content-tag-pill.organic {
  color: var(--accent-amber);
}

/* Delta Badge in Table Cells */
.table-delta-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  margin-top: 3px;
}

.table-delta-pill.positive {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
}

.table-delta-pill.baseline {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-muted);
}

/* Action button for links */
.btn-watch-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 5px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-watch-link:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-1px);
}

/* Stats Summary Strip */
.stats-summary-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.stats-summary-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.stats-summary-pill strong {
  color: #FFFFFF;
  font-weight: 700;
}

/* ==========================================================================
   Apify Token & Balance Management Styles
   ========================================================================== */
.sky-icon {
  color: #38BDF8;
}

.token-hero-card {
  background: linear-gradient(135deg, rgba(19, 27, 41, 0.95), rgba(31, 44, 66, 0.9));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.token-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #38BDF8, #818CF8, #10B981);
}

.token-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.token-user-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.token-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284C7, #38BDF8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

.token-user-details h3 {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 8px;
}

.token-user-details p {
  font-size: 12px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.token-plan-tag {
  display: inline-block;
  padding: 3px 8px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid #38BDF8;
  color: #38BDF8;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.token-active-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--accent-emerald);
  color: var(--accent-emerald);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
}

.token-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.token-stat-box {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.token-stat-title {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.token-balance-value {
  font-size: 26px;
  font-weight: 800;
  color: #10B981;
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 4px;
  text-shadow: 0 0 16px rgba(16, 185, 129, 0.25);
}

.token-usage-value {
  font-size: 20px;
  font-weight: 700;
  color: #F8FAFC;
  line-height: 1.2;
  margin-bottom: 6px;
}

.token-stat-sub {
  font-size: 11px;
  color: var(--text-secondary);
}

.token-progress-wrapper {
  margin-top: 8px;
}

.token-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.token-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #38BDF8, #818CF8);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.token-progress-fill.warning {
  background: linear-gradient(90deg, #F59E0B, #EF4444);
}

.token-masked-code {
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 8px;
  border-radius: 4px;
  color: #38BDF8;
  font-size: 12px;
  display: inline-block;
  user-select: all;
}

.token-hero-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.token-meta-text {
  font-size: 11px;
  color: var(--text-muted);
}

.token-action-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Form Layout */
.token-form-wrapper {
  padding: 24px;
}

.token-form-wrapper .form-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.token-form-wrapper .flex-2 {
  flex: 2;
  min-width: 280px;
}

.token-form-wrapper .flex-1 {
  flex: 1;
  min-width: 220px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-label .required {
  color: var(--accent-crimson);
}

.form-input {
  width: 100%;
  background: var(--bg-core);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13px;
  padding: 10px 14px;
  outline: none;
  transition: all 0.2s;
  box-sizing: border-box;
}

.form-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.token-input-group {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.token-input-group input {
  width: 100%;
  padding-right: 44px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.5px;
}

.btn-toggle-visibility {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.2s;
}

.btn-toggle-visibility:hover {
  color: #FFFFFF;
}

.token-helper-link {
  float: right;
  font-size: 11px;
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

.token-helper-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.form-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.validation-status {
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.validation-status.loading {
  color: var(--accent-cyan);
}

.validation-status.success {
  color: var(--accent-emerald);
}

.validation-status.error {
  color: var(--accent-crimson);
}

/* Empty State Banner */
.token-empty-card {
  background: var(--bg-surface);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  color: var(--text-secondary);
}

.token-empty-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px auto;
  color: #F59E0B;
  opacity: 0.8;
}

.token-empty-title {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.token-empty-desc {
  font-size: 13px;
  max-width: 500px;
  margin: 0 auto 20px auto;
  line-height: 1.5;
}

/* Action buttons in Table */
.btn-action-small {
  padding: 4px 10px;
  font-size: 11px;
  border-radius: 6px;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-action-small:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38BDF8;
  color: #38BDF8;
}

.btn-action-small.danger:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: var(--accent-crimson);
  color: var(--accent-crimson);
}

.btn-action-small.success:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
}

@media (max-width: 768px) {
  .token-hero-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .token-stats-grid {
    grid-template-columns: 1fr;
  }
  .token-form-wrapper .form-row {
    flex-direction: column;
  }
  .token-form-wrapper .flex-1,
  .token-form-wrapper .flex-2 {
    width: 100%;
  }
}

