:root {
  --black: #030304;
  --graphite-950: #07080a;
  --graphite-900: #0e1014;
  --graphite-800: #161920;
  --graphite-700: #1f232d;
  --graphite-600: #2a3040;
  --graphite-500: #3d4455;
  --gold-300: #e8c872;
  --gold-400: #d4af55;
  --gold-500: #c9a227;
  --gold-600: #9a7b1a;
  --gold-glow: rgba(201, 162, 39, 0.18);
  --amber: #f59e0b;
  --crimson: #dc2626;
  --text-primary: #f5f0e8;
  --text-secondary: #a8a29e;
  --text-muted: #6b6560;
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --info: #60a5fa;
  --live: #ef4444;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 40px rgba(0,0,0,0.55);
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-display: 'Cinzel', Georgia, serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--black);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background:
    linear-gradient(180deg, rgba(3,3,4,0.72) 0%, rgba(3,3,4,0.88) 40%, rgba(3,3,4,0.95) 100%),
    url('https://images.unsplash.com/photo-1489599849927-2ee91cede3ba?w=1920&q=80') center/cover no-repeat;
  pointer-events: none;
}

body.auth-mode::before {
  background:
    linear-gradient(135deg, rgba(3,3,4,0.85) 0%, rgba(3,3,4,0.7) 50%, rgba(3,3,4,0.92) 100%),
    url('https://images.unsplash.com/photo-1536440136628-849c177e76a1?w=1920&q=80') center/cover no-repeat;
}

.film-grain {
  pointer-events: none; position: fixed; inset: 0; z-index: 9998; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.spotlight {
  pointer-events: none; position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(201,162,39,0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(201,162,39,0.04), transparent),
    radial-gradient(ellipse 40% 30% at 5% 60%, rgba(120,80,20,0.06), transparent);
}

/* ─── SPLASH ─── */
.splash {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: var(--black);
  transition: opacity 0.8s ease, visibility 0.8s;
}
.splash.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-reel {
  position: absolute; top: 0; left: 0; right: 0; height: 28px;
  background: repeating-linear-gradient(90deg, var(--graphite-800) 0 18px, var(--graphite-700) 18px 22px);
  border-bottom: 2px solid var(--gold-600);
  animation: reelScroll 2s linear infinite;
}
@keyframes reelScroll { from { background-position: 0 0; } to { background-position: 44px 0; } }

.splash-inner { text-align: center; position: relative; z-index: 1; }
.logo-mark {
  width: 88px; height: 88px; margin: 0 auto 1.25rem;
  background: radial-gradient(circle at 30% 30%, var(--gold-300), var(--gold-600));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 60px var(--gold-glow), 0 0 120px rgba(201,162,39,0.08);
  border: 2px solid rgba(212,175,85,0.4);
}
.cinematic-pulse { animation: pulse 2.5s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 40px var(--gold-glow); } 50% { box-shadow: 0 0 80px rgba(201,162,39,0.35); } }
.logo-icon { font-size: 2rem; }

.splash-title {
  font-family: var(--font-display); font-size: 2.75rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-primary);
}
.splash-title span { color: var(--gold-400); }
.splash-tagline {
  font-family: var(--font-serif); font-size: 1.15rem; font-style: italic;
  color: var(--gold-400); margin: 0.5rem 0 2rem; opacity: 0.9;
}
.splash-sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 1rem; letter-spacing: 0.08em; text-transform: uppercase; }

.loader-bar {
  width: 200px; height: 2px; background: var(--graphite-700); margin: 0 auto;
  border-radius: 2px; overflow: hidden;
}
.loader-fill {
  height: 100%; width: 40%; background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
  animation: loadSlide 1.2s ease infinite;
}
@keyframes loadSlide { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }

/* ─── LANDING (pre-auth) ─── */
.landing {
  min-height: 100vh; display: grid; grid-template-columns: 1fr 420px;
  position: relative; z-index: 1;
}
@media (max-width: 960px) { .landing { grid-template-columns: 1fr; } }

.landing-hero {
  padding: 4rem 3rem; display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.landing-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(201,162,39,0.04) 0%, transparent 50%);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 1rem; border: 1px solid rgba(201,162,39,0.3);
  border-radius: 999px; font-size: 0.7rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold-400); width: fit-content; margin-bottom: 1.5rem;
}
.hero-badge .dot { width: 6px; height: 6px; background: var(--live); border-radius: 50%; animation: blink 1.5s infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero-title {
  font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800; line-height: 1.1; letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero-title em { font-style: normal; color: var(--gold-400); display: block; }

.hero-desc {
  font-family: var(--font-serif); font-size: 1.25rem; color: var(--text-secondary);
  max-width: 520px; line-height: 1.7; margin-bottom: 2rem;
}

.hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-stat .num {
  font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; color: var(--gold-400);
}
.hero-stat .lbl { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }

.hero-pipeline {
  display: flex; gap: 0; overflow-x: auto; padding: 0.5rem 0;
}
.hero-stage {
  flex-shrink: 0; padding: 0.5rem 1rem; font-size: 0.65rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted);
  border-right: 1px solid var(--graphite-700); white-space: nowrap;
}
.hero-stage:last-child { border-right: none; }
.hero-stage.active { color: var(--gold-400); }

.marquee-wrap {
  overflow: hidden; border-top: 1px solid var(--graphite-700);
  border-bottom: 1px solid var(--graphite-700); padding: 0.6rem 0;
  background: rgba(14,16,20,0.8);
}
.marquee { display: flex; animation: marquee 30s linear infinite; white-space: nowrap; }
.marquee span {
  padding: 0 2rem; font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-muted);
}
.marquee span strong { color: var(--gold-500); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.landing-auth {
  background: var(--graphite-900); border-left: 1px solid var(--graphite-700);
  padding: 2.5rem 2rem; display: flex; flex-direction: column; justify-content: center;
}
@media (max-width: 960px) { .landing-auth { border-left: none; border-top: 1px solid var(--graphite-700); } }

/* ─── LAYOUT ─── */
.layout { display: flex; min-height: 100vh; position: relative; z-index: 1; }

.glass-panel {
  background: rgba(14,16,20,0.72);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(201,162,39,0.12);
  border-radius: var(--radius);
}

.live-ticker {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 1rem;
  background: rgba(201,162,39,0.08); border: 1px solid rgba(201,162,39,0.2);
  border-radius: 999px; font-size: 0.72rem; letter-spacing: 0.06em;
  margin-bottom: 1.25rem; width: fit-content;
}
.live-ticker .pulse-dot {
  width: 8px; height: 8px; background: var(--live); border-radius: 50%;
  animation: blink 1.5s infinite;
}

.logistics-feed { max-height: 420px; overflow-y: auto; }
.logistics-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: 0.85rem;
  padding: 0.85rem 0; border-bottom: 1px solid var(--graphite-800);
  align-items: start;
}
.logistics-item:last-child { border-bottom: none; }
.logistics-icon {
  width: 36px; height: 36px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 0.85rem;
  background: var(--graphite-800); border: 1px solid var(--graphite-700);
}
.logistics-item.courier .logistics-icon { border-color: rgba(96,165,250,0.4); color: var(--info); }
.logistics-item.dsp .logistics-icon { border-color: rgba(52,211,153,0.4); color: var(--success); }
.logistics-item.investment .logistics-icon { border-color: rgba(201,162,39,0.4); color: var(--gold-400); }
.logistics-item.release .logistics-icon { border-color: rgba(239,68,68,0.4); color: var(--live); }
.logistics-title { font-size: 0.85rem; font-weight: 600; }
.logistics-msg { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.15rem; }
.logistics-time { font-size: 0.68rem; color: var(--text-muted); white-space: nowrap; }

.prediction-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 900px) { .prediction-grid { grid-template-columns: 1fr; } }
.prediction-card {
  padding: 1.25rem; border-radius: var(--radius-sm);
  background: linear-gradient(145deg, rgba(22,25,32,0.9), rgba(14,16,20,0.9));
  border: 1px solid var(--graphite-700);
}
.prediction-card.highlight { border-color: rgba(201,162,39,0.35); box-shadow: 0 0 30px var(--gold-glow); }
.prediction-card .label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.prediction-card .value { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold-400); margin: 0.35rem 0; }
.prediction-card .sub { font-size: 0.75rem; color: var(--text-secondary); }

.india-map-wrap { display: grid; grid-template-columns: 1fr 280px; gap: 1.25rem; }
@media (max-width: 900px) { .india-map-wrap { grid-template-columns: 1fr; } }
.india-map-svg { width: 100%; height: auto; min-height: 280px; background: rgba(14,16,20,0.5); border-radius: var(--radius-sm); border: 1px solid var(--graphite-700); }
.map-dot { fill: rgba(201,162,39,0.35); stroke: rgba(201,162,39,0.6); stroke-width: 0.3; }
.map-dot.star { fill: rgba(201,162,39,0.85); stroke: var(--gold-300); }
.map-dot.strong { fill: rgba(52,211,153,0.55); stroke: var(--success); }
.map-dot.growing { fill: rgba(96,165,250,0.45); stroke: var(--info); }
.map-dot.unexplored { fill: rgba(107,101,96,0.35); stroke: var(--text-muted); }
.map-label { fill: var(--text-muted); font-size: 2px; text-anchor: middle; }
.map-legend { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.75rem; font-size: 0.68rem; color: var(--text-muted); }
.map-legend .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 0.25rem; }
.map-legend .dot.star { background: var(--gold-400); }
.map-legend .dot.strong { background: var(--success); }
.map-legend .dot.growing { background: var(--info); }
.map-legend .dot.unexplored { background: var(--text-muted); }
.map-state-list { display: flex; flex-direction: column; gap: 0.5rem; }
.map-state-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 0.5rem; align-items: center;
  padding: 0.5rem 0.75rem; background: var(--graphite-800); border-radius: var(--radius-sm);
  font-size: 0.78rem;
}

.investment-bar {
  height: 8px; background: var(--graphite-700); border-radius: 4px; overflow: hidden; margin-top: 0.5rem;
}
.investment-bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--gold-600), var(--gold-400));
  border-radius: 4px; transition: width 0.6s ease;
}

.dcr-preview {
  font-family: 'Courier New', monospace; font-size: 0.75rem; line-height: 1.8;
  padding: 1rem; background: var(--graphite-800); border: 1px dashed var(--graphite-600);
  border-radius: var(--radius-sm);
}

.sidebar {
  width: 272px; background: rgba(14,16,20,0.95); backdrop-filter: blur(20px);
  border-right: 1px solid var(--graphite-700);
  display: flex; flex-direction: column; position: fixed; height: 100vh; z-index: 100;
}
.sidebar-brand {
  padding: 1.5rem; border-bottom: 1px solid var(--graphite-700);
  display: flex; align-items: center; gap: 0.85rem;
}
.sidebar-brand .mark {
  width: 44px; height: 44px;
  background: radial-gradient(circle at 30% 30%, var(--gold-300), var(--gold-600));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; box-shadow: 0 4px 20px var(--gold-glow);
}
.sidebar-brand h2 {
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
  letter-spacing: 0.1em; color: var(--gold-400);
}
.sidebar-brand span { font-size: 0.65rem; color: var(--text-muted); letter-spacing: 0.05em; }

.nav { flex: 1; padding: 0.75rem; overflow-y: auto; }
.nav-section {
  font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text-muted); padding: 0.85rem 0.75rem 0.3rem;
}
.nav-item {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm); color: var(--text-secondary); cursor: pointer;
  transition: all 0.2s; font-size: 0.85rem; border: 1px solid transparent;
  background: none; width: 100%; text-align: left; font-family: inherit;
}
.nav-item:hover { background: var(--graphite-800); color: var(--text-primary); transform: translateX(2px); }
.nav-item.active {
  background: linear-gradient(90deg, var(--gold-glow), transparent);
  color: var(--gold-400); border-color: rgba(201,162,39,0.25);
  box-shadow: inset 3px 0 0 var(--gold-500);
}
.nav-icon { font-size: 1rem; width: 22px; text-align: center; }

.sidebar-footer { padding: 1rem; border-top: 1px solid var(--graphite-700); }
.user-chip {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem;
  background: var(--graphite-800); border-radius: var(--radius-sm);
  border: 1px solid var(--graphite-700);
}
.user-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--graphite-600), var(--graphite-700));
  border: 1px solid rgba(201,162,39,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; color: var(--gold-400);
  font-family: var(--font-display);
}

.main { flex: 1; margin-left: 272px; min-height: 100vh; }
.topbar {
  padding: 1rem 2rem; border-bottom: 1px solid var(--graphite-700);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(14,16,20,0.85); backdrop-filter: blur(16px);
  position: sticky; top: 0; z-index: 50;
}
.topbar h1 {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.content { padding: 1.75rem 2rem 3rem; }

.page-hero {
  padding: 2rem 2.5rem; margin-bottom: 1.75rem; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--graphite-900) 0%, var(--graphite-800) 100%);
  border: 1px solid var(--graphite-700); position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; right: -20px; top: -20px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, var(--gold-glow), transparent 70%);
}
.page-hero h2 {
  font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold-400); margin-bottom: 0.35rem;
}
.page-hero p { font-family: var(--font-serif); font-size: 1.05rem; color: var(--text-secondary); font-style: italic; }

/* ─── CARDS ─── */
.card {
  background: rgba(14,16,20,0.78);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(201,162,39,0.1);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
  transition: border-color 0.2s;
}
.card:hover { border-color: rgba(201,162,39,0.15); }
.card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.25rem; gap: 1rem; }
.card-title {
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.card-subtitle { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.3rem; }

.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1200px) { .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.3s; }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .landing-hero { padding: 2rem 1.5rem; }
}

.stat-card {
  background: linear-gradient(145deg, var(--graphite-900), var(--graphite-800));
  border: 1px solid var(--graphite-700); border-radius: var(--radius);
  padding: 1.35rem; position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
}
.stat-label { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.stat-value {
  font-family: var(--font-display); font-size: 1.85rem; font-weight: 700;
  color: var(--gold-400); margin: 0.4rem 0; letter-spacing: 0.02em;
}
.stat-delta { font-size: 0.75rem; color: var(--success); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.65rem 1.35rem; border-radius: var(--radius-sm);
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
  transition: all 0.2s; border: none; font-family: inherit; letter-spacing: 0.03em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--black); box-shadow: 0 4px 20px var(--gold-glow);
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(201,162,39,0.25); }
.btn-secondary { background: var(--graphite-700); color: var(--text-primary); border: 1px solid var(--graphite-600); }
.btn-secondary:hover { background: var(--graphite-600); }
.btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid var(--graphite-600); }
.btn-ghost:hover { border-color: var(--gold-500); color: var(--gold-400); }
.btn-danger { background: rgba(220,38,38,0.15); color: var(--danger); border: 1px solid rgba(220,38,38,0.3); }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.78rem; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }

/* ─── FORMS ─── */
.form-group { margin-bottom: 1rem; }
.form-label {
  display: block; font-size: 0.72rem; font-weight: 600;
  color: var(--text-secondary); margin-bottom: 0.4rem;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 0.7rem 0.9rem; background: var(--graphite-800);
  border: 1px solid var(--graphite-600); border-radius: var(--radius-sm);
  color: var(--text-primary); font-size: 0.875rem; font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px var(--gold-glow);
}
.form-hint { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.3rem; font-style: italic; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.format-spec {
  padding: 0.75rem; background: var(--graphite-800); border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold-500); margin-top: 0.5rem;
  font-size: 0.78rem; color: var(--text-secondary);
}
.format-spec strong { color: var(--gold-400); display: block; margin-bottom: 0.2rem; }

/* ─── BADGES ─── */
.badge {
  display: inline-flex; align-items: center; padding: 0.25rem 0.65rem;
  border-radius: 999px; font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap;
}
.badge-gold { background: var(--gold-glow); color: var(--gold-400); border: 1px solid rgba(201,162,39,0.35); }
.badge-success { background: rgba(52,211,153,0.12); color: var(--success); border: 1px solid rgba(52,211,153,0.25); }
.badge-warning { background: rgba(251,191,36,0.12); color: var(--warning); border: 1px solid rgba(251,191,36,0.25); }
.badge-danger { background: rgba(248,113,113,0.12); color: var(--danger); border: 1px solid rgba(248,113,113,0.25); }
.badge-info { background: rgba(96,165,250,0.12); color: var(--info); border: 1px solid rgba(96,165,250,0.25); }
.badge-live { background: rgba(239,68,68,0.15); color: var(--live); border: 1px solid rgba(239,68,68,0.35); animation: livePulse 2s infinite; }
@keyframes livePulse { 0%,100% { opacity: 1; } 50% { opacity: 0.7; } }

/* ─── TABLES ─── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
th {
  text-align: left; padding: 0.8rem 1rem; color: var(--text-muted);
  font-weight: 600; font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.08em; border-bottom: 1px solid var(--graphite-700);
  background: var(--graphite-800);
}
td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--graphite-800); color: var(--text-secondary); }
tr:hover td { background: rgba(201,162,39,0.03); color: var(--text-primary); }

/* ─── PIPELINE ─── */
.pipeline { display: flex; gap: 0; overflow-x: auto; padding: 1rem 0; scrollbar-width: thin; }
.pipeline-step {
  flex: 1; min-width: 90px; text-align: center; position: relative; padding: 0 0.35rem;
}
.pipeline-step::after {
  content: ''; position: absolute; top: 16px; left: 55%; width: 90%; height: 2px;
  background: var(--graphite-700); z-index: 0;
}
.pipeline-step:last-child::after { display: none; }
.pipeline-dot {
  width: 32px; height: 32px; border-radius: 50%; margin: 0 auto 0.5rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700; position: relative; z-index: 1;
  background: var(--graphite-700); color: var(--text-muted);
  border: 2px solid var(--graphite-600); transition: all 0.3s;
}
.pipeline-step.completed .pipeline-dot { background: var(--success); color: var(--black); border-color: var(--success); }
.pipeline-step.active .pipeline-dot {
  background: var(--gold-500); color: var(--black); border-color: var(--gold-300);
  box-shadow: 0 0 20px var(--gold-glow); transform: scale(1.1);
}
.pipeline-label { font-size: 0.6rem; color: var(--text-muted); line-height: 1.3; letter-spacing: 0.02em; }
.pipeline-step.active .pipeline-label { color: var(--gold-400); }

/* ─── AUTH ─── */
.auth-card { width: 100%; }
.auth-card h1 {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; text-align: center;
  color: var(--gold-400); margin-bottom: 0.35rem;
}
.auth-card .subtitle { text-align: center; color: var(--text-muted); font-size: 0.82rem; margin-bottom: 1.5rem; }
.auth-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.25rem; }
.auth-tab {
  flex: 1; padding: 0.55rem; text-align: center; border-radius: var(--radius-sm);
  background: var(--graphite-800); color: var(--text-muted); cursor: pointer;
  font-size: 0.8rem; font-weight: 600; border: 1px solid transparent; transition: all 0.2s;
}
.auth-tab.active { background: var(--gold-glow); color: var(--gold-400); border-color: rgba(201,162,39,0.3); }
.otp-display {
  background: rgba(201,162,39,0.08); border: 1px dashed var(--gold-500);
  border-radius: var(--radius-sm); padding: 0.75rem; text-align: center;
  font-size: 0.85rem; color: var(--gold-400); margin-bottom: 1rem;
  font-family: monospace; letter-spacing: 0.1em;
}
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; margin-bottom: 1rem; }
.role-chip {
  padding: 0.4rem 0.6rem; font-size: 0.65rem; text-align: center;
  background: var(--graphite-800); border-radius: var(--radius-sm);
  color: var(--text-muted); border: 1px solid var(--graphite-700);
  letter-spacing: 0.04em;
}

/* ─── ALERTS ─── */
.alert {
  padding: 0.85rem 1.1rem; border-radius: var(--radius-sm);
  font-size: 0.85rem; margin-bottom: 1rem;
}
.alert-success { background: rgba(52,211,153,0.08); border: 1px solid rgba(52,211,153,0.25); color: var(--success); }
.alert-error { background: rgba(248,113,113,0.08); border: 1px solid rgba(248,113,113,0.25); color: var(--danger); }
.alert-info { background: rgba(96,165,250,0.08); border: 1px solid rgba(96,165,250,0.25); color: var(--info); }
.alert-warning { background: rgba(251,191,36,0.08); border: 1px solid rgba(251,191,36,0.25); color: var(--warning); }

.empty-state { text-align: center; padding: 3rem 1.5rem; color: var(--text-muted); }
.empty-state .icon { font-size: 2.5rem; margin-bottom: 1rem; opacity: 0.35; }

.chart-container { position: relative; height: 300px; }
canvas { max-height: 300px; }

/* ─── SEATS / POS ─── */
.seat-grid { display: grid; gap: 5px; justify-content: center; margin: 1.25rem 0; }
.seat {
  width: 30px; height: 30px; border-radius: 5px; font-size: 0.5rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: var(--graphite-700); color: var(--text-muted);
  border: 1px solid var(--graphite-600); transition: all 0.15s;
}
.seat.available:hover { border-color: var(--gold-500); transform: scale(1.08); }
.seat.selected { background: var(--gold-500); color: var(--black); border-color: var(--gold-300); box-shadow: 0 0 12px var(--gold-glow); }
.seat.locked { background: rgba(96,165,250,0.2); border-color: var(--info); cursor: not-allowed; color: var(--info); }
.seat.sold { background: var(--graphite-800); opacity: 0.35; cursor: not-allowed; }
.screen-label {
  text-align: center; padding: 0.5rem 3rem; margin: 0 auto 1rem;
  background: linear-gradient(90deg, transparent, rgba(201,162,39,0.15), transparent);
  font-family: var(--font-display); font-size: 0.65rem; color: var(--gold-400);
  letter-spacing: 0.35em; text-transform: uppercase;
  border-top: 1px solid rgba(201,162,39,0.2); border-bottom: 1px solid rgba(201,162,39,0.2);
}

.tracking-id {
  font-family: 'Courier New', monospace; font-size: 0.82rem; color: var(--gold-400);
  background: var(--graphite-800); padding: 0.35rem 0.85rem; border-radius: var(--radius-sm);
  border: 1px solid rgba(201,162,39,0.25); letter-spacing: 0.05em;
}

.film-card {
  display: flex; gap: 1.25rem; align-items: flex-start;
  padding: 1.25rem; background: linear-gradient(135deg, var(--graphite-900), var(--graphite-800));
  border: 1px solid var(--graphite-700); border-radius: var(--radius); margin-bottom: 1rem;
  transition: all 0.2s;
}
.film-card:hover { border-color: rgba(201,162,39,0.25); transform: translateY(-1px); }
.film-poster {
  width: 64px; height: 90px; flex-shrink: 0;
  background: linear-gradient(160deg, var(--graphite-700), var(--graphite-800));
  border: 1px solid var(--graphite-600); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}

/* ─── HEALTH CHECK ─── */
.health-grid { display: grid; gap: 0.5rem; }
.health-row {
  display: grid; grid-template-columns: 1fr auto auto auto; gap: 1rem;
  align-items: center; padding: 0.75rem 1rem;
  background: var(--graphite-800); border-radius: var(--radius-sm);
  border: 1px solid var(--graphite-700); font-size: 0.82rem;
}
.health-row.ok { border-left: 3px solid var(--success); }
.health-row.error { border-left: 3px solid var(--danger); }
.health-row.skipped { border-left: 3px solid var(--text-muted); opacity: 0.6; }

/* ─── MODAL / TOAST ─── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  backdrop-filter: blur(8px);
}
.modal {
  background: var(--graphite-900); border: 1px solid var(--graphite-700);
  border-radius: var(--radius); padding: 1.75rem; max-width: 640px; width: 100%;
  max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow);
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.modal-header h3 { font-family: var(--font-display); letter-spacing: 0.06em; }
.modal-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.5rem; line-height: 1; }

.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; display: flex; flex-direction: column; gap: 0.5rem; }
.toast {
  padding: 0.85rem 1.35rem; border-radius: var(--radius-sm); font-size: 0.85rem;
  background: var(--graphite-800); border: 1px solid var(--graphite-600);
  box-shadow: var(--shadow); animation: slideIn 0.35s ease;
  max-width: 360px;
}
.toast.success { border-color: var(--success); border-left: 3px solid var(--success); }
.toast.error { border-color: var(--danger); border-left: 3px solid var(--danger); }
@keyframes slideIn { from { transform: translateX(110%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

.filter-bar { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.25rem; align-items: center; }
.filter-bar .form-select { width: auto; min-width: 150px; }

.receipt {
  background: var(--graphite-800); border: 1px dashed var(--graphite-600);
  border-radius: var(--radius-sm); padding: 1.25rem;
  font-family: 'Courier New', monospace; font-size: 0.78rem; line-height: 1.8;
}
.receipt h4 { color: var(--gold-400); margin-bottom: 0.75rem; font-family: var(--font-display); letter-spacing: 0.08em; }

.kdm-status {
  display: flex; align-items: center; gap: 1rem; padding: 1rem;
  background: var(--graphite-800); border-radius: var(--radius-sm);
  border: 1px solid var(--graphite-700); margin-bottom: 0.75rem;
}
.kdm-status.unlocked { border-color: rgba(52,211,153,0.35); background: rgba(52,211,153,0.05); }
.kdm-status.locked { border-color: rgba(251,191,36,0.35); background: rgba(251,191,36,0.05); }

.hidden { display: none !important; }
.text-gold { color: var(--gold-400); }
.text-muted { color: var(--text-muted); }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 1rem; }
