
/* ==========================================================================
   BARTONE CITY | ULTRA LUXURY MASTER STYLESHEET
   Comprehensive Premium Theme, Glassmorphism 2.0 & Neon Glow Architecture
   ========================================================================== */

:root {
  /* Core Luxury Palette */
  --primary-cyan: #00f2fe;
  --primary-blue: #0284c7;
  --neon-cyan: #00f2fe;
  --neon-gold: #facc15;
  --neon-emerald: #10b981;
  --neon-purple: #a855f7;
  --neon-rose: #f43f5e;
  
  /* Glow Drop Shadows */
  --glow-cyan: 0 0 25px rgba(0, 242, 254, 0.45);
  --glow-cyan-strong: 0 0 35px rgba(0, 242, 254, 0.75);
  --glow-gold: 0 0 25px rgba(250, 204, 21, 0.5);
  --glow-emerald: 0 0 25px rgba(16, 185, 129, 0.45);
  --glow-purple: 0 0 25px rgba(168, 85, 247, 0.45);
  
  /* Surfaces & Glass */
  --dark-bg: #030712;
  --dark-surface: rgba(8, 15, 30, 0.82);
  --dark-surface-hover: rgba(12, 22, 45, 0.92);
  --card-border: rgba(0, 242, 254, 0.22);
  --card-border-gold: rgba(250, 204, 21, 0.3);
  --card-border-purple: rgba(168, 85, 247, 0.3);
  --card-border-emerald: rgba(16, 185, 129, 0.3);
  
  /* Typography */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --font-arabic: 'Cairo', 'Tajawal', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Fullscreen Luxury Background Canvas */
body {
  font-family: var(--font-arabic);
  background-color: #030712 !important;
  background-image: 
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(0, 242, 254, 0.18), transparent 70%),
    radial-gradient(ellipse 70% 50% at 85% 40%, rgba(168, 85, 247, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 50% at 15% 70%, rgba(250, 204, 21, 0.06), transparent 60%),
    linear-gradient(to bottom, rgba(3, 7, 18, 0.72) 0%, rgba(3, 7, 18, 0.88) 50%, rgba(3, 7, 18, 0.98) 100%),
    url('../images/bg.jpg?v=2026.1200') !important;
  background-attachment: fixed !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  color: var(--text-main);
  direction: rtl;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Custom Luxury Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: #020617;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00f2fe 0%, #0284c7 50%, #0369a1 100%);
  border-radius: 6px;
  border: 2px solid #020617;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #38bdf8 0%, #00f2fe 100%);
  box-shadow: 0 0 10px #00f2fe;
}

/* Glassmorphism 2.0 Engine */
.glass-panel {
  background: var(--dark-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  box-shadow: 
    0 15px 35px -5px rgba(0, 0, 0, 0.65),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 20px 0 rgba(0, 242, 254, 0.03);
  border-radius: 1.25rem;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel-hover {
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.glass-panel-hover:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 242, 254, 0.6);
  background: var(--dark-surface-hover);
  box-shadow: 
    0 20px 45px -5px rgba(0, 0, 0, 0.8),
    0 0 25px rgba(0, 242, 254, 0.25),
    inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

/* Luxury Card Variants */
.glass-panel-gold {
  background: rgba(20, 16, 5, 0.85);
  border-color: var(--card-border-gold);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.65), inset 0 1px 1px rgba(255, 215, 0, 0.15);
}
.glass-panel-gold:hover {
  border-color: rgba(250, 204, 21, 0.7);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 25px rgba(250, 204, 21, 0.25);
}

.glass-panel-purple {
  background: rgba(18, 8, 28, 0.85);
  border-color: var(--card-border-purple);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.65), inset 0 1px 1px rgba(168, 85, 247, 0.15);
}
.glass-panel-purple:hover {
  border-color: rgba(168, 85, 247, 0.7);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 25px rgba(168, 85, 247, 0.25);
}

.glass-panel-emerald {
  background: rgba(5, 20, 14, 0.85);
  border-color: var(--card-border-emerald);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.65), inset 0 1px 1px rgba(16, 185, 129, 0.15);
}
.glass-panel-emerald:hover {
  border-color: rgba(16, 185, 129, 0.7);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 25px rgba(16, 185, 129, 0.25);
}

/* Glowing Typography Utilities */
.glow-cyan {
  text-shadow: 0 0 18px rgba(0, 242, 254, 0.75), 0 0 35px rgba(0, 242, 254, 0.35);
}
.glow-gold {
  text-shadow: 0 0 18px rgba(250, 204, 21, 0.75), 0 0 35px rgba(250, 204, 21, 0.35);
}
.glow-emerald {
  text-shadow: 0 0 18px rgba(16, 185, 129, 0.75), 0 0 35px rgba(16, 185, 129, 0.35);
}
.glow-purple {
  text-shadow: 0 0 18px rgba(168, 85, 247, 0.75), 0 0 35px rgba(168, 85, 247, 0.35);
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #ffffff 0%, #cffafe 40%, #00f2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-gradient-gold {
  background: linear-gradient(135deg, #ffffff 0%, #fef08a 40%, #facc15 80%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-gradient-purple {
  background: linear-gradient(135deg, #ffffff 0%, #f3e8ff 40%, #c084fc 80%, #9333ea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-gradient-emerald {
  background: linear-gradient(135deg, #ffffff 0%, #d1fae5 40%, #34d399 80%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Animations */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.8), 0 0 50px rgba(2, 132, 199, 0.4);
  }
}

@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes shineSlide {
  0% {
    left: -100%;
  }
  100% {
    left: 200%;
  }
}

.animate-pulse-glow {
  animation: pulseGlow 3s infinite ease-in-out;
}
.animate-float {
  animation: floatSlow 5s infinite ease-in-out;
}

/* Shimmer Button */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}
.btn-shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-25deg);
  animation: shineSlide 3.5s infinite linear;
}

/* Quick Action Cards */
.quick-card {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.quick-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 242, 254, 0.8), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.quick-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 242, 254, 0.22);
}
.quick-card:hover::after {
  opacity: 1;
}

/* Status Indicator Pulse */
.status-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
}
.status-pulse.online {
  background: #10b981;
  box-shadow: 0 0 12px #10b981;
}
.status-pulse.online::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  border: 2px solid #10b981;
  animation: pulse-ring 1.8s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.status-pulse.maintenance {
  background: #ef4444;
  box-shadow: 0 0 12px #ef4444;
}
.status-pulse.maintenance::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  border: 2px solid #ef4444;
  animation: pulse-ring 1.8s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.8);
    opacity: 0.9;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* SPA Views Transitions */
.spa-view {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.spa-view.active-view {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.spa-view.hidden {
  display: none !important;
}

.spa-view.active-view,
.spa-view:not(.hidden) {
  display: block !important;
  animation: fadeInView 0.3s ease-in-out;
}

@keyframes fadeInView {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mandatory Discord Login Gate Strict Rules */
#discord-login-gate {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#discord-login-gate.hidden,
#discord-login-gate[style*="display: none"],
html.is-authenticated #discord-login-gate,
body.is-authenticated #discord-login-gate {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -9999 !important;
}

/* Modals Strict Display Handling */
#checkout-modal.hidden,
#heist-modal.hidden,
#discord-auth-modal.hidden,
#checkout-modal[style*="display: none"],
#heist-modal[style*="display: none"],
#discord-auth-modal[style*="display: none"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -9999 !important;
}
