/* ===================================================================
   VIBRANT LUXURY DARK DESIGN SYSTEM
   Modern Dark Cyber-Aurora Aesthetic
   Featuring Rich Luminous Colors (Cyan, Violet, Magenta, Emerald, Gold)
   With Full Color Profile & Vibrant Fluid Liquid Waves
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Prompt:wght@300;400;500;600;700&display=swap');

:root {
  --bg-deep: #06080e;
  --bg-card: rgba(13, 17, 28, 0.82);
  --border-card: rgba(255, 255, 255, 0.08);
  --font-sans: 'Inter', 'Prompt', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Vibrant Accent Palette */
  --c-cyan: #06b6d4;
  --c-sky: #38bdf8;
  --c-indigo: #6366f1;
  --c-purple: #8b5cf6;
  --c-fuchsia: #d946ef;
  --c-pink: #ec4899;
  --c-emerald: #10b981;
  --c-amber: #f59e0b;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  background-color: var(--bg-deep);
  color: #f8fafc;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: #f8fafc;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* -------------------------------------------------------------------
   1. VIBRANT BACKGROUND: COLORFUL LIQUID WAVES + NEON GLOWS
   ------------------------------------------------------------------- */
.lux-background-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(circle at 50% 0%, #0d1326 0%, #06080e 70%);
}

/* Minimal Geometric Grid Lines with subtle color tinge */
.lux-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(99, 102, 241, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(6, 182, 212, 0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 85%);
}

/* Ambient 3D Colorful Aurora Glowing Spots */
.lux-light-spot-1 {
  position: absolute;
  top: 5%;
  right: 10%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, rgba(6, 8, 14, 0) 65%);
  filter: blur(60px);
  will-change: transform;
  animation: lightPulse 16s ease-in-out infinite alternate;
}

.lux-light-spot-2 {
  position: absolute;
  top: 40%;
  left: 5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.16) 0%, rgba(6, 8, 14, 0) 60%);
  filter: blur(65px);
  will-change: transform;
  animation: lightPulse 20s ease-in-out infinite alternate-reverse;
}

.lux-light-spot-3 {
  position: absolute;
  bottom: 8%;
  right: 20%;
  width: 750px;
  height: 750px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.14) 0%, rgba(6, 8, 14, 0) 70%);
  filter: blur(75px);
}

/* Large Flowing Liquid Waves (Vibrant Multi-Color SVG Layer) */
.lux-wave-svg {
  position: absolute;
  width: 160%;
  left: -30%;
  pointer-events: none;
  opacity: 0.9;
}

.lux-wave-top {
  top: -100px;
  animation: liquidWaveSlow1 22s ease-in-out infinite alternate;
}

.lux-wave-mid {
  top: 36%;
  animation: liquidWaveSlow2 28s ease-in-out infinite alternate;
}

.lux-wave-bottom {
  bottom: -120px;
  animation: liquidWaveSlow1 26s ease-in-out infinite alternate-reverse;
}

@keyframes liquidWaveSlow1 {
  0% { transform: translate3d(0, 0, 0) scaleY(1); }
  50% { transform: translate3d(35px, -25px, 0) scaleY(1.05); }
  100% { transform: translate3d(-25px, 15px, 0) scaleY(0.98); }
}

@keyframes liquidWaveSlow2 {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(-40px, 30px, 0) rotate(1deg); }
  100% { transform: translate3d(30px, -20px, 0) rotate(-0.8deg); }
}

@keyframes lightPulse {
  0% { opacity: 0.65; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1.1); }
}

/* -------------------------------------------------------------------
   2. VIBRANT GRADIENTS & CARD SURFACES
   ------------------------------------------------------------------- */
.vibrant-gradient-text {
  background: linear-gradient(135deg, #ffffff 10%, #38bdf8 45%, #a855f7 75%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.vibrant-gradient-cyan {
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
}

.vibrant-gradient-purple {
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
}

.vibrant-gradient-emerald {
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
}

.vibrant-gradient-amber {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}

/* Vibrant Glassmorphism Card */
.lux-card {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.85) 0%, rgba(10, 14, 26, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.3s ease, 
              box-shadow 0.3s ease;
}

.lux-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 25px rgba(99, 102, 241, 0.15);
}

/* Avatar Vibrant Glowing Ring */
.avatar-glow-ring {
  background: linear-gradient(135deg, #06b6d4 0%, #6366f1 50%, #ec4899 100%);
  padding: 3px;
  border-radius: 1.25rem;
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.35);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.avatar-glow-ring:hover {
  box-shadow: 0 0 45px rgba(236, 72, 153, 0.5), 0 0 20px rgba(6, 182, 212, 0.4);
  transform: scale(1.02);
}

/* Primary Vibrant Button */
.lux-btn-primary {
  background: linear-gradient(135deg, #06b6d4 0%, #6366f1 60%, #8b5cf6 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 700;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

.lux-btn-primary:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #8b5cf6 60%, #ec4899 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(236, 72, 153, 0.45);
}

/* Secondary Button with Neon Border Accent */
.lux-btn-secondary {
  background-color: rgba(17, 24, 39, 0.75);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}

.lux-btn-secondary:hover {
  border-color: rgba(6, 182, 212, 0.6);
  background-color: rgba(30, 41, 59, 0.85);
  color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(6, 182, 212, 0.25);
}

/* -------------------------------------------------------------------
   3. SCROLLBAR & SELECTION
   ------------------------------------------------------------------- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 9999px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #06b6d4, #8b5cf6);
}

::selection {
  background-color: #8b5cf6;
  color: #ffffff;
}

.file-upload-input {
  opacity: 0;
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

/* -------------------------------------------------------------------
   4. MODALS & TOAST ANIMATIONS
   ------------------------------------------------------------------- */
@keyframes modalScaleIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.animate-modal-in {
  animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toastSlideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(110%);
    opacity: 0;
  }
}

.toast-enter {
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-leave {
  animation: toastSlideOut 0.25s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}

/* -------------------------------------------------------------------
   5. ACCESSIBILITY: PREFERS-REDUCED-MOTION
   ------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .lux-wave-top,
  .lux-wave-mid,
  .lux-wave-bottom,
  .lux-light-spot-1,
  .lux-light-spot-2 {
    animation: none !important;
  }

  .lux-card,
  .lux-btn-primary,
  .lux-btn-secondary,
  .avatar-glow-ring {
    transition: none !important;
    transform: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
