/* ==========================================================================
   LEVEL UP - FUTURISTIC SALES FUNNEL DASHBOARD & REMOTE ENGINE
   Palette: Void Black (#070B14, #0B111E), Neon Turquoise (#00E5FF), Neon Green (#00FF87)
   ========================================================================== */

:root {
  --bg-primary: #070B14;
  --bg-surface: #0E1626;
  --bg-card: rgba(14, 22, 38, 0.78);
  --bg-card-hover: rgba(19, 31, 53, 0.9);
  --cyan-primary: #00E5FF;
  --cyan-glow: rgba(0, 229, 255, 0.35);
  --green-primary: #00FF87;
  --green-glow: rgba(0, 255, 135, 0.35);
  --accent-orange: #FF9900;
  --text-primary: #F8FAFC;
  --text-muted: #94A3B8;
  --border-subtle: rgba(0, 229, 255, 0.18);
  --border-active: rgba(0, 229, 255, 0.6);
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 229, 255, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 90% 40%, rgba(0, 255, 135, 0.06) 0%, transparent 50%),
    linear-gradient(to bottom, #070B14, #0A0F1D 60%, #050811);
  min-height: 100vh;
}

/* Custom Futuristic Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #080D1A;
}
::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 4px;
  border: 1px solid rgba(0, 229, 255, 0.2);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cyan-primary);
  box-shadow: 0 0 10px var(--cyan-primary);
}

/* Cyber Grid Effect */
.cyber-grid {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(0, 229, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
}

/* Glassmorphism Surface */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6), 0 0 20px -5px rgba(0, 229, 255, 0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
  border-color: rgba(0, 229, 255, 0.35);
  box-shadow: 0 14px 40px -10px rgba(0, 0, 0, 0.7), 0 0 30px -5px rgba(0, 229, 255, 0.12);
}

/* Neon Glow utilities */
.glow-cyan {
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.7);
}
.glow-green {
  text-shadow: 0 0 12px rgba(0, 255, 135, 0.7);
}
.box-glow-cyan {
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.3);
}
.box-glow-green {
  box-shadow: 0 0 25px rgba(0, 255, 135, 0.3);
}

/* Gradient Texts */
.text-gradient-levelup {
  background: linear-gradient(135deg, #00E5FF 0%, #00FF87 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #FFFFFF 0%, #00E5FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Interactive Futuristic Buttons */
.btn-cyber-primary {
  background: linear-gradient(135deg, #00E5FF 0%, #00B4D8 100%);
  color: #070B14;
  font-weight: 700;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.btn-cyber-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.7);
  background: linear-gradient(135deg, #33EBFF 0%, #00C8F0 100%);
}
.btn-cyber-primary:active {
  transform: translateY(0);
}

.btn-cyber-secondary {
  background: rgba(14, 22, 38, 0.85);
  color: #00E5FF;
  font-weight: 600;
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  border: 1px solid rgba(0, 229, 255, 0.35);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.btn-cyber-secondary:hover {
  background: rgba(0, 229, 255, 0.12);
  border-color: #00E5FF;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.25);
  color: #FFFFFF;
}

/* Futuristic Number Selector Badges (1-10) like in image 3 */
.number-selector-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(26, 38, 59, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #CBD5E1;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.number-selector-btn:hover {
  border-color: var(--cyan-primary);
  color: #FFFFFF;
  transform: scale(1.08);
}
.number-selector-btn.selected-orange {
  background: #FF9900 !important;
  color: #000000 !important;
  border-color: #FFB74D !important;
  box-shadow: 0 0 18px rgba(255, 153, 0, 0.7) !important;
}
.number-selector-btn.selected-cyan {
  background: var(--cyan-primary) !important;
  color: #070B14 !important;
  border-color: #70F2FF !important;
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.8) !important;
}
.number-selector-btn.selected-green {
  background: var(--green-primary) !important;
  color: #070B14 !important;
  border-color: #85FFC0 !important;
  box-shadow: 0 0 18px rgba(0, 255, 135, 0.8) !important;
}

/* Modal styling from image 3 */
.modal-backdrop {
  background: rgba(5, 8, 17, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content-container {
  background: #0B111E;
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 20px;
  width: 100%;
  max-width: 580px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 40px -10px rgba(0, 229, 255, 0.25);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-content-container {
  transform: translateY(0) scale(1);
}

/* Input Fields */
.cyber-input {
  background: #0E1626;
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #F8FAFC;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  width: 100%;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  outline: none;
}
.cyber-input:focus {
  border-color: var(--cyan-primary);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.3);
  background: #111B30;
}
.cyber-input::placeholder {
  color: #64748B;
}

/* Table Styling */
.table-funnel {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.table-funnel th {
  background: rgba(15, 23, 42, 0.95);
  color: #94A3B8;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.9rem 0.85rem;
  border-bottom: 1px solid rgba(0, 229, 255, 0.25);
  white-space: nowrap;
}
.table-funnel td {
  padding: 0.85rem 0.85rem;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}
.table-funnel tr:hover td {
  background: rgba(0, 229, 255, 0.035);
}

.badge-locked {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(0, 229, 255, 0.15);
  color: #00E5FF;
  border: 1px solid rgba(0, 229, 255, 0.4);
}

/* Pulse animation for live sync dot */
@keyframes pulseGlow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 10px #00FF87;
  }
  50% {
    opacity: 0.5;
    transform: scale(0.9);
    box-shadow: 0 0 3px #00FF87;
  }
}
.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #00FF87;
  border-radius: 50%;
  display: inline-block;
  animation: pulseGlow 2s infinite ease-in-out;
}

/* Toast Notification */
#toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
#toast-notification.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
