/* ============================================
   BASEMENT - TAILWIND + FLOWBITE THEME
   Only brand colors and custom overrides
   ============================================ */

/* ============================================
   SCROLL REVEAL ANIMATIONS
   Subtle entrance animations triggered by IntersectionObserver.
   Disabled for users who prefer reduced motion.
   ============================================ */
@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes revealScale {
    from {
        opacity: 0;
        transform: scale(0.97);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* Elements waiting to be revealed */
.reveal {
    opacity: 0;
    transform: translateY(20px);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.97);
}

/* When IntersectionObserver adds .revealed */
.reveal.revealed {
    animation: revealUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-scale.revealed {
    animation: revealScale 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Stagger children: cards in grids */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(16px);
}
.reveal-stagger.revealed > * {
    animation: revealUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.reveal-stagger.revealed > *:nth-child(1) { animation-delay: 0ms; }
.reveal-stagger.revealed > *:nth-child(2) { animation-delay: 80ms; }
.reveal-stagger.revealed > *:nth-child(3) { animation-delay: 160ms; }
.reveal-stagger.revealed > *:nth-child(4) { animation-delay: 240ms; }
.reveal-stagger.revealed > *:nth-child(5) { animation-delay: 320ms; }
.reveal-stagger.revealed > *:nth-child(6) { animation-delay: 400ms; }
.reveal-stagger.revealed > *:nth-child(7) { animation-delay: 450ms; }
.reveal-stagger.revealed > *:nth-child(8) { animation-delay: 500ms; }

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-scale,
    .reveal-stagger > * {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}

/* Cloud Gradient Journey - Dark Basement to Bright Sky */
.gradient-basement-glimpse {
    background: #0a0a0f;
    position: relative;
    overflow: hidden;
}

.gradient-ascending {
    background: linear-gradient(to bottom, #001a33, #002b5c, #003d7a);
    position: relative;
    overflow: hidden;
}

.gradient-peak-light {
    background: linear-gradient(to bottom, #003d7a, #0066ff, #004080);
    position: relative;
    overflow: hidden;
}

.gradient-descending {
    background: linear-gradient(to bottom, #004080, #002b5c, #0a1628);
    position: relative;
    overflow: hidden;
}

.gradient-return-dark {
    background: linear-gradient(to bottom, #0a1628, #000000);
    position: relative;
    overflow: hidden;
}

/* Subtle ambient glow - minimal */
.gradient-basement-glimpse::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(ellipse 600px 300px at 50% 50%, rgba(100, 181, 246, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.gradient-ascending::before {
    opacity: 1.3;
    animation: cloudFloat 50s ease-in-out infinite reverse;
}

.gradient-peak-light::before {
    opacity: 1.8;
    background-image: 
        radial-gradient(ellipse 900px 250px at 30% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 700px 200px at 70% 50%, rgba(135, 206, 250, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse 800px 220px at 40% 70%, rgba(173, 216, 230, 0.18) 0%, transparent 50%);
    animation: cloudFloat 45s ease-in-out infinite;
}

.gradient-descending::before {
    opacity: 1.1;
    animation: cloudFloat 55s ease-in-out infinite;
}

@keyframes cloudFloat {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(-10px) translateX(-15px);
    }
    75% {
        transform: translateY(-25px) translateX(5px);
    }
}

/* Most Popular Badge - explicit styles for Tailwind v4 */
.popular-badge {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 1rem;
    background: linear-gradient(to right, #93c5fd, #60a5fa);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 0.25rem;
    text-transform: uppercase;
    box-shadow: 0 0 25px rgba(135, 206, 250, 0.5);
}

/* Supercharge 3D Font */
@font-face {
    font-family: 'Supercharge3D';
    src: url('/fonts/Supercharge3D-GO79P.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Radial gradient utility for spotlight effect */
.bg-gradient-radial {
    background-image: radial-gradient(circle, var(--tw-gradient-stops));
}

/* ============================================
   ANIMATED RAINBOW STRIPE HERO BACKGROUND
   ============================================ */

@keyframes smoothBg {
  from {
    background-position: 50% 50%, 50% 50%;
  }
  to {
    background-position: 350% 50%, 350% 50%;
  }
}

.hero-wrapper {
  width: 100%;
  position: relative;
  background: #000;
}

.hero-stripes {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  position: absolute;
  inset: 0;
  display: flex;
  place-content: center;
  place-items: center;
  
  --stripes: repeating-linear-gradient(
    100deg,
    #000 0%,
    #000 7%,
    transparent 10%,
    transparent 12%,
    #000 16%
  );

  --rainbow: repeating-linear-gradient(
    100deg,
    #60a5fa 10%,
    #e879f9 15%,
    #60a5fa 20%,
    #5eead4 25%,
    #60a5fa 30%
  );
  
  background-image: var(--stripes), var(--rainbow);
  background-size: 300%, 200%;
  background-position: 50% 50%, 50% 50%;
  filter: blur(20px) opacity(50%);
  mask-image: radial-gradient(ellipse at 100% 0%, black 40%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 100% 0%, black 40%, transparent 70%);
}

.hero-stripes::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--stripes), var(--rainbow);
  background-size: 200%, 100%;
  animation: smoothBg 60s linear infinite;
  background-attachment: fixed;
  mix-blend-mode: difference;
}

/* Hero Content Styling - Enhanced visibility */
.hero-content {
  position: relative;
}

/* Hero title styling */
.hero-title {
  position: relative;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* ============================================
   3D CARD STACK EFFECT - "What You Get"
   ============================================ */

.card-stack-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 600px;
  padding: 60px 0;
  pointer-events: none;
}

.card-stack {
  position: relative;
  transform-style: preserve-3d;
  perspective: 800px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: 600ms cubic-bezier(0.4, 0, 0.2, 1);
  list-style: none;
  pointer-events: all;
}

.card-stack:hover {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  perspective: none;
}

.card-stack-item {
  position: relative;
  width: 500px;
  max-width: 90vw;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(30, 30, 50, 0.9), rgba(20, 20, 40, 0.95));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(135, 206, 250, 0.2);
  border-radius: 12px;
  display: flex;
  gap: 16px;
  align-items: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 
              0 0 20px rgba(135, 206, 250, 0.1);
  transition: 600ms cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: calc(var(--i) * 40ms);
  cursor: pointer;
}

.card-stack-item:hover {
  border-color: rgba(135, 206, 250, 0.5);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5),
              0 0 30px rgba(135, 206, 250, 0.3);
}

/* Initial 3D positioning - only first 5 cards visible */
.card-stack-item:nth-child(1) {
  transform: translateZ(-120px) translateY(25px);
  opacity: 0.5;
  filter: blur(4px);
  z-index: 1;
}

.card-stack-item:nth-child(2) {
  transform: translateZ(-60px) translateY(12px);
  opacity: 0.7;
  filter: blur(2px);
  z-index: 2;
}

.card-stack-item:nth-child(3) {
  transform: translateZ(0px);
  opacity: 0.85;
  filter: blur(1px);
  z-index: 3;
}

.card-stack-item:nth-child(4) {
  transform: translateZ(60px) translateY(-12px);
  opacity: 0.95;
  filter: blur(0.5px);
  z-index: 4;
}

.card-stack-item:nth-child(5) {
  transform: translateZ(120px) translateY(-25px);
  opacity: 1;
  filter: blur(0);
  z-index: 5;
}

/* Cards 6-10 hidden behind the 5th card */
.card-stack-item:nth-child(6),
.card-stack-item:nth-child(7),
.card-stack-item:nth-child(8),
.card-stack-item:nth-child(9),
.card-stack-item:nth-child(10) {
  transform: translateZ(120px) translateY(-25px);
  opacity: 0;
  filter: blur(6px);
  z-index: 0;
  pointer-events: none;
}

/* On hover - all 10 cards in 2-column grid */
.card-stack:hover .card-stack-item {
  opacity: 1;
  filter: blur(0);
  transform: translateZ(0) translateY(0);
  pointer-events: all;
  z-index: 10;
  width: auto;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: linear-gradient(135deg, rgba(135, 206, 250, 0.2), rgba(100, 181, 246, 0.15));
  border: 1px solid rgba(135, 206, 250, 0.3);
  border-radius: 10px;
  color: #87CEFA;
  font-size: 24px;
  font-weight: bold;
  box-shadow: 0 0 20px rgba(135, 206, 250, 0.2);
}

.card-content {
  flex: 1;
}

.card-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
  line-height: 1.3;
}

.card-content p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
}

/* Mobile: 2-column grid with smaller cards */
@media (max-width: 768px) {
  .card-stack-container {
    min-height: auto;
    padding: 20px 0;
  }
  
  .card-stack {
    perspective: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .card-stack:hover {
    gap: 8px;
  }
  
  .card-stack-item {
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    z-index: auto !important;
    pointer-events: all !important;
    width: 100%;
    padding: 10px 12px;
    flex-direction: column;
    text-align: center;
    border-radius: 6px;
    gap: 8px;
  }
  
  .card-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    font-size: 16px;
    border-radius: 6px;
  }
  
  .card-content h3 {
    font-size: 12px;
    margin-bottom: 2px;
  }
  
  .card-content p {
    font-size: 10px;
    line-height: 1.3;
  }
  
  .card-stack:hover .card-stack-item {
    transform: none !important;
  }
}

/* PS5 Design System - Brand Colors & Motion */
:root {
    --brand-blue: #87CEFA;
    --brand-dark: #000000;
    --text-primary: #FFFFFF;
    --text-secondary: #B3B3B3;
    
    /* Sony timing - buttery smooth */
    --transition-fast: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --hover-lift: translateY(-4px);
    --hover-scale: scale(1.02);
}

/* Modern Tech Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

/* Body text — prevent orphan last word */
p, li, blockquote {
    text-wrap: pretty;
}

/* Hero heading - Space Grotesk with responsive sizing */
.hero-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-wrap: balance;}

/* Glossy Gradient Text - hero only */
.hero-title {
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(255, 255, 255, 1) 30%,
        rgba(200, 230, 255, 1) 70%,
        rgba(135, 206, 250, 0.95) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

/* Section headings - subtle white-to-gray gradient for depth */
section h2 {
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(200, 210, 230, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.25;
    padding-bottom: 0.25em;
}

/* Card/sub headings - plain white, no gradient */
h3, h4 {
    color: white;
    -webkit-text-fill-color: white;
}

/* Lock viewport — prevent horizontal nudge on mobile */
/* Using clip instead of hidden: clip prevents horizontal scroll
   but does NOT create a new scroll context, so position:sticky
   still works correctly for descendant elements. */
html {
    overflow-x: clip;
}

/* Dark theme background based on vite.dev */
body {
    font-family: 'Inter', sans-serif;
    background: #16171d;
    color: var(--text-primary);
    position: relative;
    overflow-x: clip;
    min-height: 100vh;
}

/* Ensure content stays above any effects */
main, nav, footer, section {
    position: relative;
    z-index: 1;
}

/* Brand color utilities */
.text-brand {
    color: var(--brand-blue);
}

.bg-brand {
    background-color: var(--brand-blue);
}

.border-brand {
    border-color: var(--brand-blue);
}

/* Blue glow effect (PS5 style) */
.glow-brand {
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.4);
}

/* Consistent button timing across site */
button, a, input, textarea, select {
    transition: all var(--transition-fast);
}

/* Container max-width override */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ============================================
   NAVIGATION - PS5 Sleek Style
   ============================================ */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s ease, box-shadow 0.4s ease;
    height: 60px;
    transform: translateY(0);
}

.main-nav.scrolled {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px) saturate(150%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.main-nav.hidden {
    transform: translateY(-100%);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 90px;
    width: auto;
    transition: transform 0.3s ease;
}

.nav-logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Hamburger menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--brand-blue);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 65px;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(0, 102, 255, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        pointer-events: none;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links li {
        padding: 0.75rem 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }
}

/* ============================================
   iOS-STYLE LIQUID RAINDROP BUTTONS & CARDS
   ============================================ */

/* Primary Button - iOS Liquid Raindrop Blue */
.btn-primary, button[type="submit"], a.bg-blue-600, .bg-blue-600 {
    position: relative;
    background: linear-gradient(145deg, 
        rgba(135, 206, 250, 0.85) 0%, 
        rgba(100, 181, 246, 0.75) 50%,
        rgba(173, 216, 230, 0.65) 100%) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 0.5px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 2px !important;
    box-shadow: 
        0 1px 2px 0 rgba(0, 0, 0, 0.05),
        0 8px 24px -4px rgba(135, 206, 250, 0.3),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 2px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}


.btn-primary::before, button[type="submit"]::before, a.bg-blue-600::before,
.btn-secondary::before, .bg-gray-700::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    transition: left 0.6s ease;
    pointer-events: none;
    z-index: 2;
}

.btn-primary:hover, button[type="submit"]:hover, a.bg-blue-600:hover {
    transform: translateY(-1px) scale(1.01);
    background: linear-gradient(145deg, 
        rgba(135, 206, 250, 0.95) 0%, 
        rgba(100, 181, 246, 0.85) 50%,
        rgba(173, 216, 230, 0.75) 100%) !important;
    box-shadow: 
        0 2px 4px 0 rgba(0, 0, 0, 0.08),
        0 12px 32px -4px rgba(135, 206, 250, 0.5),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 2px 0 rgba(0, 0, 0, 0.1),
        0 0 40px rgba(135, 206, 250, 0.4);
}

.btn-primary:hover::before, button[type="submit"]:hover::before, a.bg-blue-600:hover::before,
.btn-secondary:hover::before, .bg-gray-700:hover::before {
    left: 100%;
}

.btn-primary:active, button[type="submit"]:active, a.bg-blue-600:active {
    transform: translateY(0) scale(0.99);
    transition: all 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Secondary Button - iOS Liquid Dark Glass */
.btn-secondary, .bg-gray-700 {
    position: relative;
    background: linear-gradient(145deg, 
        rgba(40, 40, 50, 0.8) 0%, 
        rgba(25, 25, 35, 0.9) 100%) !important;
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 0.5px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 2px !important;
    box-shadow: 
        0 1px 2px 0 rgba(0, 0, 0, 0.2),
        0 8px 24px -4px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 2px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.btn-secondary:hover {
    border-color: rgba(100, 181, 246, 0.4) !important;
    background: linear-gradient(145deg, 
        rgba(45, 45, 60, 0.85) 0%, 
        rgba(30, 30, 40, 0.95) 100%) !important;
    box-shadow: 
        0 2px 4px 0 rgba(0, 0, 0, 0.25),
        0 12px 32px -4px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 2px 0 rgba(0, 0, 0, 0.2),
        0 0 30px rgba(100, 181, 246, 0.2);
    transform: translateY(-1px);
}

/* Danger Button - iOS Liquid Red Glass */
.btn-danger, .bg-red-600 {
    background: linear-gradient(145deg, 
        rgba(239, 68, 68, 0.85) 0%, 
        rgba(220, 38, 38, 0.75) 100%) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 0.5px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 2px !important;
    box-shadow: 
        0 1px 2px 0 rgba(0, 0, 0, 0.05),
        0 8px 24px -4px rgba(220, 38, 38, 0.3),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 2px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-danger:hover {
    background: linear-gradient(145deg, 
        rgba(239, 68, 68, 0.95) 0%, 
        rgba(220, 38, 38, 0.85) 100%) !important;
    box-shadow: 
        0 2px 4px 0 rgba(0, 0, 0, 0.08),
        0 12px 32px -4px rgba(220, 38, 38, 0.5),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 2px 0 rgba(0, 0, 0, 0.1),
        0 0 40px rgba(220, 38, 38, 0.4);
    transform: translateY(-1px);
}

/* Cards - iOS Liquid Glass Aesthetic */
.bg-gray-800, .bg-gray-900, .card {
    background: linear-gradient(135deg, 
        rgba(20, 20, 40, 0.6) 0%, 
        rgba(10, 10, 25, 0.8) 100%) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 0.5px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 4px !important;
    box-shadow: 
        0 1px 2px 0 rgba(0, 0, 0, 0.2),
        0 8px 32px -4px rgba(0, 0, 0, 0.37),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bg-gray-800:hover, .bg-gray-900:hover, .card:hover {
    border-color: rgba(100, 181, 246, 0.3) !important;
    box-shadow: 
        0 2px 4px 0 rgba(0, 0, 0, 0.25),
        0 12px 48px -4px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.1),
        0 0 40px rgba(100, 181, 246, 0.15);
    transform: translateY(-2px);
}

/* Input Fields - Glassy */
input[type="text"], input[type="email"], input[type="password"], 
input[type="url"], textarea, select {
    background: rgba(20, 20, 40, 0.4) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

input:focus, textarea:focus, select:focus {
    background: rgba(20, 20, 40, 0.6) !important;
    border-color: rgba(0, 102, 255, 0.5) !important;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3),
                0 0 0 3px rgba(0, 102, 255, 0.1),
                0 0 20px rgba(0, 102, 255, 0.3);
    outline: none;
}

/* Glassy Badge/Pill */
.badge, .bg-blue-500, .bg-green-500, .bg-yellow-500 {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.6) 0%, rgba(0, 153, 255, 0.4) 100%);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(0, 102, 255, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Liquid Animation Keyframe */
@keyframes liquid-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Apply liquid effect to primary buttons */
.btn-primary, button[type="submit"] {
    background-size: 200% 200%;
    animation: liquid-flow 3s ease infinite;
}

/* ============================================
   CLOUD GLOW CARDS - "Why Choose" Section
   Subtle glow effect on cards
   ============================================ */

.cloud-glow-card {
    position: relative;
    background: #111118;
    border: 1px solid rgba(100, 181, 246, 0.15);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cloud-glow-card:hover {
    transform: translateY(-4px);
    border-color: rgba(100, 181, 246, 0.4);
    box-shadow: 0 0 30px rgba(100, 181, 246, 0.15);
}

/* Content layer */
.cloud-glow-card > div {
    position: relative;
    z-index: 2;
}
/* ============================================
   DASHBOARD V2 - VERCEL-CLEAN DESIGN SYSTEM
   Minimal, layered dark theme, spacious
   ============================================ */

/* Design Tokens - Layered Dark Theme */
:root {
    /* Background layers (darkest to lightest) */
    --dash-bg-base: #000000;
    --dash-bg: #0a0a0a;
    --dash-bg-elevated: #111111;
    --dash-bg-surface: #171717;
    --dash-bg-hover: #1a1a1a;
    
    /* Legacy alias */
    --dash-card-bg: var(--dash-bg-elevated);
    --dash-card-border: #262626;
    
    /* Text hierarchy */
    --dash-text-primary: #fafafa;
    --dash-text-secondary: #a1a1a1;
    --dash-text-muted: #525252;
    
    /* Accent - subtle, not loud */
    --dash-accent: #3b82f6;
    --dash-accent-muted: rgba(59, 130, 246, 0.15);
    
    /* Status colors - muted, not alarming */
    --dash-success: #22c55e;
    --dash-success-muted: rgba(34, 197, 94, 0.15);
    --dash-warning: #eab308;
    --dash-warning-muted: rgba(234, 179, 8, 0.15);
    --dash-danger: #ef4444;
    --dash-danger-muted: rgba(239, 68, 68, 0.15);
    
    /* Spacing */
    --dash-radius: 8px;
    --dash-radius-lg: 12px;
    --dash-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --dash-shadow-lg: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

/* Card Component - Subtle elevation */
.dash-card {
    background: var(--dash-bg-elevated);
    border: 1px solid var(--dash-card-border);
    border-radius: var(--dash-radius-lg);
    padding: 24px;
}

.dash-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.dash-card-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--dash-text-secondary);
    letter-spacing: 0.01em;
}

/* Data Row - for key/value pairs */
.dash-data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.dash-data-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dash-data-label {
    font-size: 13px;
    color: var(--dash-text-secondary);
}

.dash-data-value {
    font-size: 14px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--dash-text-primary);
}

/* Button styles - Clean and minimal */
.dash-btn {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dash-btn-primary {
    background: linear-gradient(145deg, rgba(135, 206, 250, 0.9) 0%, rgba(59, 130, 246, 0.85) 100%);
    color: #000;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.dash-btn-primary:hover {
    background: linear-gradient(145deg, rgba(135, 206, 250, 1) 0%, rgba(59, 130, 246, 0.95) 100%);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.5);
    transform: translateY(-1px);
}

.dash-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--dash-card-border);
    color: var(--dash-text-secondary);
}

.dash-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--dash-text-muted);
    color: var(--dash-text-primary);
}

.dash-btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.dash-btn-danger:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.dash-btn-ghost {
    background: transparent;
    color: var(--dash-text-muted);
    border: none;
}

.dash-btn-ghost:hover {
    color: var(--dash-text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Input fields - Clean */
.dash-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 13px;
    background: var(--dash-bg);
    border: 1px solid var(--dash-card-border);
    border-radius: 6px;
    color: var(--dash-text-primary);
    transition: border-color 0.15s ease;
}

.dash-input:focus {
    outline: none;
    border-color: var(--dash-text-muted);
}

.dash-input::placeholder {
    color: var(--dash-text-muted);
}

/* Dashboard Sections - Hash-based navigation */
.dash-section {
    display: none;
    animation: fadeIn 0.2s ease;
}

.dash-section.active {
    display: block;
}

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

/* Status indicators */
.dash-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
}

.dash-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dash-status-dot.running {
    background: var(--dash-success);
    box-shadow: 0 0 8px var(--dash-success);
}

.dash-status-dot.stopped {
    background: var(--dash-text-muted);
}

.dash-status-dot.provisioning {
    background: var(--dash-accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============================================
   DASHBOARD LAYOUT
   ============================================ */

.dashboard-grid {
    display: grid;
    width: 100%;
    min-height: 100vh;
    grid-gap: 0;
    grid-template-columns: 260px 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas: 
        'sidebar header'
        'sidebar content';
    background: var(--dash-bg);
}

/* Mobile + Tablet: stack vertically */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        grid-template-areas: 
            'header'
            'content';
    }
}

.dashboard-sidebar {
    grid-area: sidebar;
    background: var(--dash-card-bg);
    border-right: 1px solid var(--dash-card-border);
    padding-top: 80px;
    overflow-y: auto;
    position: sticky;
    top: 0;
    height: 100vh;
}

/* 768px sidebar rules merged into 1024px block below */

.dashboard-header {
    grid-area: header;
    background: var(--dash-bg);
    border-bottom: 1px solid var(--dash-card-border);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
    margin-top: 60px;
}

.dashboard-content {
    grid-area: content;
    padding: 32px;
    padding-top: 100px;
    overflow-y: auto;
    background: var(--dash-bg);
    /* KEY: Constrain content width and center it */
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

@media (max-width: 1400px) {
    .dashboard-content {
        max-width: 100%;
        padding: 24px;
        padding-top: 100px;
    }
}

@media (max-width: 1024px) {
    .dashboard-sidebar {
        z-index: 45;
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        background: var(--dash-bg-elevated);
        padding-top: 70px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
}

@media (max-width: 1024px) {
    .dashboard-content {
        padding: 20px;
        padding-top: 90px;
    }
}

@media (max-width: 768px) {
    .dashboard-content {
        padding: 16px;
        padding-top: 80px;
    }
}

/* Sidebar Navigation Sections */
.sidebar-section {
    display: block;
    padding: 1.25rem 1rem 0;
}

.sidebar-section-title {
    margin: 0 0 0.5rem;
    padding: 0 0.75rem;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--dash-text-muted);
    font-weight: 600;
    letter-spacing: 0.08em;
}

.sidebar-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav-list li {
    margin: 0.25rem 0;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    color: var(--dash-text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8125rem;
    border-radius: 6px;
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    min-height: 40px;
}

.sidebar-nav-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.15s ease;
}

.sidebar-nav-link:hover {
    color: var(--dash-text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-nav-link:hover svg {
    opacity: 0.9;
}

.sidebar-nav-link.active {
    color: var(--dash-text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-nav-link.active svg {
    opacity: 1;
}

/* Sidebar User Section */
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--dash-card-border);
}

.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--dash-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: 700;
    font-size: 0.875rem;
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.sidebar-user-name {
    color: var(--dash-text-primary);
    font-weight: 600;
    font-size: 0.8125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-plan {
    color: var(--dash-text-muted);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   MOBILE SIDEBAR TOGGLE
   ============================================ */

.dashboard-mobile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.sidebar-toggle-btn {
    display: none; /* Hidden on desktop */
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid var(--dash-card-border);
    color: var(--dash-text-secondary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.sidebar-toggle-btn:hover {
    background: var(--dash-bg-hover);
    color: var(--dash-text-primary);
    border-color: var(--dash-text-muted);
}

/* Show toggle button on mobile/tablet */
@media (max-width: 1024px) {
    .sidebar-toggle-btn {
        display: flex;
    }
    
    .dashboard-mobile-header {
        margin-top: 0.5rem;
        margin-bottom: 1.5rem;
    }
}

/* Body class when sidebar is open - prevent scroll */
body.sidebar-open {
    overflow: hidden;
}

@media (max-width: 1024px) {
    body.sidebar-open .dashboard-sidebar {
        transform: translateX(0);
    }
}

/* ============================================================
   Admin UI helpers — matches React dashboard visual language
   ============================================================ */
.admin-card {
    background: var(--dash-card-bg);
    border: 1px solid var(--dash-card-border);
    border-radius: var(--dash-radius-lg);
}

.admin-section-title {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--dash-text-muted);
    margin-bottom: 1rem;
}

.admin-table { width: 100%; }
.admin-table thead tr { background: rgba(0,0,0,0.3); }
.admin-table tbody tr { border-bottom: 1px solid rgba(255,255,255,0.04); transition: background 0.1s; }
.admin-table tbody tr:hover { background: var(--dash-bg-hover); }
.admin-table th {
    padding: 0.6875rem 1rem;
    text-align: left;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--dash-text-muted);
}
.admin-table td { padding: 0.6875rem 1rem; }

.admin-badge {
    display: inline-block;
    padding: 0.1875rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.admin-badge-green  { background: rgba(34,197,94,0.12);  color: #4ade80; }
.admin-badge-red    { background: rgba(239,68,68,0.12);  color: #f87171; }
.admin-badge-yellow { background: rgba(234,179,8,0.12);  color: #fbbf24; }
.admin-badge-blue   { background: rgba(59,130,246,0.12); color: #60a5fa; }
.admin-badge-gray   { background: rgba(255,255,255,0.06); color: #a1a1a1; }
.admin-badge-orange { background: rgba(249,115,22,0.12); color: #fb923c; }
.admin-badge-purple { background: rgba(168,85,247,0.12); color: #c084fc; }

.admin-btn {
    display: inline-block;
    padding: 0.3125rem 0.625rem;
    border-radius: 0.3125rem;
    font-size: 0.6875rem;
    font-weight: 500;
    cursor: pointer;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--dash-text-secondary);
    text-decoration: none;
    transition: background 0.12s;
    white-space: nowrap;
}
.admin-btn:hover { background: rgba(255,255,255,0.06); }
.admin-btn-red    { border-color: rgba(239,68,68,0.3);  color: #f87171; }
.admin-btn-red:hover    { background: rgba(239,68,68,0.08); }
.admin-btn-orange { border-color: rgba(249,115,22,0.3); color: #fb923c; }
.admin-btn-orange:hover { background: rgba(249,115,22,0.08); }
.admin-btn-green  { border-color: rgba(34,197,94,0.3);  color: #4ade80; }
.admin-btn-green:hover  { background: rgba(34,197,94,0.08); }
.admin-btn-primary { background: #2563eb; border-color: #2563eb; color: #fff; }
.admin-btn-primary:hover { background: #1d4ed8; }

.admin-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.375rem;
    color: var(--dash-text-primary);
    font-size: 0.875rem;
    outline: none;
    box-sizing: border-box;
}
.admin-input:focus { border-color: rgba(59,130,246,0.5); }
textarea.admin-input { resize: vertical; }
select.admin-input { cursor: pointer; }
