/* =========================================================
   SHADOW_LFA VIEWER PORTAL - iOS LIQUID GLASS (LIGHT THEME DEFAULT)
   Optimized for High Frame Rates, 1GB RAM Server & Dynamic Lucide Icons
   ========================================================= */

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

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);

  /* iOS Liquid Glass LIGHT Theme Core */
  --bg-core: #f8fafc;
  --bg-radial: radial-gradient(circle at 50% 0%, #ffffff 0%, #f1f5f9 55%, #e2e8f0 100%);
  --glass-base: rgba(255, 255, 255, 0.75);
  --glass-surface: rgba(255, 255, 255, 0.65);
  --glass-surface-hover: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-border-subtle: rgba(15, 23, 42, 0.08);
  --glass-border-highlight: rgba(56, 189, 248, 0.5);
  --glass-blur: 24px;

  /* Vibrant Accents */
  --accent-cyan: #0284c7;
  --accent-cyan-light: #e0f2fe;
  --accent-blue: #2563eb;
  --accent-purple: #7c3aed;
  --accent-purple-light: #f3e8ff;
  --accent-amber: #d97706;
  --accent-amber-light: #fef3c7;
  --accent-rose: #e11d48;
  --accent-rose-light: #ffe4e6;
  --accent-emerald: #059669;
  --accent-emerald-light: #d1fae5;
  
  /* Text */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  
  /* Shadows */
  --shadow-glass: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.04), inset 0 1px 2px rgba(255, 255, 255, 0.95);
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(15, 23, 42, 0.05);
  --shadow-glow-cyan: 0 0 25px rgba(2, 132, 199, 0.2);
  --shadow-glow-amber: 0 0 25px rgba(217, 119, 6, 0.22);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-core);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
  background-image: var(--bg-radial);
  background-attachment: fixed;
}

/* =========================================================
   ORGANIC GLOWING BACKGROUND BLOBS (Light Mode Vivid Pastels)
   ========================================================= */
.ambient-blob-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(75px);
  opacity: 0.45;
  will-change: transform;
  animation: floatBlobs 22s infinite ease-in-out alternate;
}

.blob-1 {
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, #38bdf8 0%, rgba(14, 165, 233, 0) 70%);
  top: -100px;
  left: 8%;
  animation-duration: 24s;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #c084fc 0%, rgba(168, 85, 247, 0) 70%);
  top: 30%;
  right: -50px;
  animation-duration: 28s;
  animation-delay: -6s;
}

.blob-3 {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, #fbbf24 0%, rgba(245, 158, 11, 0) 70%);
  bottom: 5%;
  left: 12%;
  animation-duration: 20s;
  animation-delay: -10s;
}

@keyframes floatBlobs {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(50px, 35px) scale(1.1) rotate(35deg); }
  100% { transform: translate(-35px, 65px) scale(0.95) rotate(70deg); }
}

/* Cursor Tracking Light Glow */
.cursor-light-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, rgba(168, 85, 247, 0.04) 45%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.3s ease;
  filter: blur(14px);
}

/* =========================================================
   LIQUID GLASS CRYSTALLINE PANELS & CARDS
   ========================================================= */
.glass-panel {
  background: var(--glass-base);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.95) 50%, transparent 100%);
  pointer-events: none;
}

.glass-card {
  background: var(--glass-surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
  border-radius: 16px;
  padding: 20px;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.glass-card:hover {
  background: var(--glass-surface-hover);
  border-color: rgba(2, 132, 199, 0.3);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(2, 132, 199, 0.2);
  transform: translateY(-2px);
}

/* Glass Interactive Buttons */
.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid var(--glass-border-subtle);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-primary);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .btn-glass {
    padding: 6px 10px;
    font-size: 11px;
    gap: 4px;
    border-radius: 10px;
  }
}

.btn-glass:hover {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.btn-primary-cyan {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: 1px solid rgba(2, 132, 199, 0.6);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.btn-primary-cyan:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
  color: #ffffff;
}

.btn-roblox-glow {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  border: 1px solid rgba(225, 29, 72, 0.5);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(225, 29, 72, 0.3);
}

.btn-roblox-glow:hover {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  box-shadow: 0 6px 22px rgba(225, 29, 72, 0.45);
  color: #ffffff;
}

.btn-roblox-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  border: 1px solid rgba(225, 29, 72, 0.6);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(225, 29, 72, 0.3);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .btn-roblox-nav {
    padding: 6px 10px;
    font-size: 11px;
    gap: 4px;
    border-radius: 9px;
  }
}

.btn-roblox-nav:hover {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.45);
  transform: translateY(-1px);
}

/* ==========================================
   LIVE GIVEAWAY WINNER BANNER (ROYAL CYAN-INDIGO CRYSTAL GLASS)
   ========================================== */
.winner-banner-wrapper {
  position: relative;
  z-index: 10;
  margin-bottom: 24px;
}

.winner-banner {
  background: linear-gradient(135deg, rgba(240, 249, 255, 0.95) 0%, rgba(238, 242, 255, 0.92) 50%, rgba(245, 243, 255, 0.9) 100%);
  border: 1px solid rgba(56, 189, 248, 0.45);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-radius: 20px;
  padding: 18px 24px;
  box-shadow: 0 0 25px rgba(2, 132, 199, 0.15), 0 10px 25px -5px rgba(99, 102, 241, 0.12), inset 0 1px 2px rgba(255, 255, 255, 0.95);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.winner-banner.celebrate-pulse {
  animation: bannerPulseLight 1.2s infinite alternate ease-in-out;
  border-color: #0284c7;
}

@keyframes bannerPulseLight {
  0% { box-shadow: 0 0 20px rgba(2, 132, 199, 0.25), inset 0 0 15px rgba(99, 102, 241, 0.1); }
  100% { box-shadow: 0 0 45px rgba(2, 132, 199, 0.55), inset 0 0 25px rgba(99, 102, 241, 0.25); }
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(225, 29, 72, 0.1);
  border: 1px solid rgba(225, 29, 72, 0.3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #be123c;
  text-transform: uppercase;
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: #e11d48;
  border-radius: 50%;
  box-shadow: 0 0 8px #e11d48;
  animation: blink 1.2s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

/* =========================================================
   XP & PROGRESS BAR (iOS Pill Design)
   ========================================================= */
.xp-track {
  width: 100%;
  height: 9px;
  background: rgba(15, 23, 42, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

.xp-fill {
  height: 100%;
  background: linear-gradient(90deg, #0284c7 0%, #7c3aed 100%);
  border-radius: 9999px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.4);
}

/* Badge Pills */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--glass-border-subtle);
  backdrop-filter: blur(12px);
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Modal Liquid Glass Backdrop */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.modal-sheet {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 480px;
  padding: 24px;
  transform: scale(0.94) translateY(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-primary);
  max-height: 90vh;
  overflow-y: auto;
}

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

/* Scrollbar utilities */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Icon helper styling */
i[data-lucide] {
  display: inline-block;
  vertical-align: middle;
  stroke-width: 2.2px;
}

/* Responsive */
@media (max-width: 768px) {
  .glass-card {
    padding: 14px;
  }
  .winner-banner {
    padding: 14px 16px;
  }
  .modal-sheet {
    padding: 20px 16px;
    border-radius: 20px;
  }
}
