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

:root {
  --bg-dark: #090B18;
  --bg-deeper: #060711;
  --primary: #8B5CF6;
  --secondary: #A855F7;
  --accent: #FBBF24;
  --accent-glow: rgba(251, 191, 36, 0.35);
  --text-main: #FFFFFF;
  --text-muted: #94A3B8;
  --text-soft: #CBD5E1;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-bg-hover: rgba(255, 255, 255, 0.12);
  --glass-deep: rgba(15, 18, 38, 0.72);
  --glass-border: rgba(255, 255, 255, 0.15);
  --gold-border: rgba(251, 191, 36, 0.35);
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #38BDF8;
  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-glass: 0 20px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Animated Background Gradient Orbs */
.ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(139, 92, 246, 0.22) 0%, transparent 42%),
    radial-gradient(circle at 85% 22%, rgba(251, 191, 36, 0.14) 0%, transparent 38%),
    radial-gradient(circle at 50% 85%, rgba(168, 85, 247, 0.18) 0%, transparent 45%),
    linear-gradient(180deg, #090B18 0%, #0D0F24 50%, #090B18 100%);
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.ambient-orb.orb-1 {
  width: 420px;
  height: 420px;
  background: var(--primary);
  top: -100px;
  left: -80px;
}

.ambient-orb.orb-2 {
  width: 360px;
  height: 360px;
  background: var(--accent);
  top: 25%;
  right: -120px;
  animation-delay: -5s;
}

.ambient-orb.orb-3 {
  width: 450px;
  height: 450px;
  background: var(--secondary);
  bottom: -150px;
  left: 30%;
  animation-delay: -10s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(35px, -30px) scale(1.08); }
  100% { transform: translate(-25px, 25px) scale(0.95); }
}

/* Page Transition Animation */
.page-enter {
  animation: fadeSlideUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Regulatory Demo Banner */
.regulatory-banner {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.25), rgba(251, 191, 36, 0.22), rgba(139, 92, 246, 0.25));
  border-bottom: 1px solid var(--gold-border);
  backdrop-filter: blur(12px);
  font-size: 0.82rem;
  padding: 0.45rem 1rem;
  text-align: center;
  color: #FEF3C7;
}

/* Glassmorphism Surfaces */
.glass-navbar {
  background: rgba(9, 11, 24, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-glass);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.glass-card-interactive:hover {
  transform: translateY(-5px);
  background: var(--glass-bg-hover);
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 24px 60px rgba(139, 92, 246, 0.22), 0 0 25px rgba(251, 191, 36, 0.12);
}

.glass-card-gold {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.13) 0%, rgba(139, 92, 246, 0.12) 100%);
  backdrop-filter: blur(18px);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-glass);
}

.glass-panel-sm {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1rem;
}

/* Typography & Gradients */
.text-gradient-gold {
  background: linear-gradient(135deg, #FDE68A 0%, #FBBF24 50%, #F59E0B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-violet {
  background: linear-gradient(135deg, #C4B5FD 0%, #A855F7 55%, #EC4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-accent {
  color: var(--accent) !important;
}

.text-soft {
  color: var(--text-soft) !important;
}

.text-muted-glass {
  color: var(--text-muted) !important;
}

/* Premium Buttons */
.btn-gold {
  background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
  color: #090B18 !important;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.68rem 1.45rem;
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.3);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(251, 191, 36, 0.48);
  filter: brightness(1.06);
}

.btn-violet {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #FFFFFF !important;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 0.68rem 1.45rem;
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.35);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-violet:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(168, 85, 247, 0.52);
  filter: brightness(1.08);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF !important;
  font-weight: 600;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 0.65rem 1.3rem;
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* Inputs & Forms */
.form-control-glass,
.form-select-glass {
  background: rgba(9, 11, 24, 0.65) !important;
  border: 1px solid var(--glass-border) !important;
  color: #FFFFFF !important;
  border-radius: var(--radius-md) !important;
  padding: 0.72rem 1rem !important;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control-glass::placeholder {
  color: rgba(148, 163, 184, 0.7);
}

.form-control-glass:focus,
.form-select-glass:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2) !important;
  outline: none;
}

.form-select-glass option {
  background-color: #0F1226;
  color: #FFFFFF;
}

.form-label-glass {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 0.4rem;
  display: block;
}

/* Badges */
.badge-glass {
  padding: 0.35rem 0.78rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid transparent;
}

.badge-success-glass {
  background: rgba(16, 185, 129, 0.16);
  color: #34D399;
  border-color: rgba(16, 185, 129, 0.35);
}

.badge-warning-glass {
  background: rgba(245, 158, 11, 0.16);
  color: #FBBF24;
  border-color: rgba(245, 158, 11, 0.35);
}

.badge-danger-glass {
  background: rgba(239, 68, 68, 0.16);
  color: #F87171;
  border-color: rgba(239, 68, 68, 0.35);
}

.badge-violet-glass {
  background: rgba(139, 92, 246, 0.2);
  color: #C4B5FD;
  border-color: rgba(139, 92, 246, 0.4);
}

.badge-info-glass {
  background: rgba(56, 189, 248, 0.16);
  color: #38BDF8;
  border-color: rgba(56, 189, 248, 0.35);
}

/* Tables */
.table-glass {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--text-main);
}

.table-glass thead th {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--glass-border);
}

.table-glass tbody td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  vertical-align: middle;
  font-size: 0.92rem;
}

.table-glass tbody tr:hover td {
  background: rgba(255, 255, 255, 0.04);
}

/* Countdown Timer Boxes */
.countdown-grid {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.countdown-box {
  background: rgba(9, 11, 24, 0.75);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  min-width: 64px;
  padding: 0.5rem 0.65rem;
  text-align: center;
}

.countdown-box .num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}

.countdown-box .lbl {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* Progress Bar */
.progress-glass {
  height: 9px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar-gold {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 999px;
  transition: width 0.5s ease;
}

/* Navigation Links */
.nav-link-glass {
  color: var(--text-soft) !important;
  font-weight: 500;
  padding: 0.5rem 0.9rem !important;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  text-decoration: none;
}

.nav-link-glass:hover,
.nav-link-glass.active {
  color: var(--accent) !important;
  background: rgba(255, 255, 255, 0.07);
}

/* Sidebar Layout (User Dashboard & Admin Panel) */
.app-shell {
  display: flex;
  min-height: calc(100vh - 72px);
}

.glass-sidebar {
  width: 270px;
  background: rgba(9, 11, 24, 0.82);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--glass-border);
  padding: 1.5rem 1rem;
  flex-shrink: 0;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.72rem 1rem;
  color: var(--text-soft);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.92rem;
  margin-bottom: 0.3rem;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.sidebar-nav-item i {
  width: 20px;
  text-align: center;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.sidebar-nav-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #FFFFFF;
}

.sidebar-nav-item.active {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.28), rgba(251, 191, 36, 0.12));
  color: #FFFFFF;
  border-color: rgba(251, 191, 36, 0.35);
}

.sidebar-nav-item.active i {
  color: var(--accent);
}

.app-main {
  flex: 1;
  padding: 2rem;
  max-width: 100%;
  overflow-x: hidden;
}

/* Toast Notification Container */
.toast-container-glass {
  position: fixed;
  top: 85px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 400px;
}

.toast-glass {
  background: rgba(15, 18, 38, 0.94);
  backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  color: #FFFFFF;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  animation: slideInRight 0.35s ease forwards;
}

.toast-glass.toast-success { border-left-color: var(--success); }
.toast-glass.toast-error { border-left-color: var(--danger); }
.toast-glass.toast-warning { border-left-color: var(--warning); }

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(35px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Skeleton Loader Shimmer */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.05) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

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

/* Ticket Stub Visual */
.ticket-stub {
  position: relative;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.18) 0%, rgba(15, 18, 38, 0.85) 100%);
  border: 1px dashed var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .app-shell {
    flex-direction: column;
  }
  .glass-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem;
  }
  .sidebar-scroll-mobile {
    display: flex;
    overflow-x: auto;
    gap: 0.5rem;
    padding-bottom: 0.25rem;
  }
  .sidebar-nav-item {
    white-space: nowrap;
    margin-bottom: 0;
  }
  .app-main {
    padding: 1.25rem;
  }
}

