/* ============================================================
   AstroSeva - Premium Design System
   Deep Purple / Navy / Gold Cosmic Theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Cinzel:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');

/* ---- DESIGN TOKENS ---- */
:root {
  /* Color Palette */
  --color-cosmic-deep:   #0a0514;
  --color-cosmic-dark:   #0f0a1e;
  --color-cosmic-navy:   #130d2b;
  --color-cosmic-purple: #1a1035;
  --color-purple-deep:   #2d1b69;
  --color-purple-mid:    #4c2b8c;
  --color-purple-light:  #6d3fc0;
  --color-purple-glow:   #8b5cf6;
  --color-violet:        #7c3aed;
  --color-indigo:        #4f46e5;

  /* Gold / Accent */
  --color-gold:          #f5c518;
  --color-gold-light:    #fdd835;
  --color-gold-dark:     #e6b000;
  --color-gold-glow:     rgba(245,197,24,0.3);
  --color-amber:         #f59e0b;
  --color-orange:        #ea7c37;

  /* Neutrals */
  --color-white:         #ffffff;
  --color-off-white:     #f8f7ff;
  --color-light:         #e8e4f8;
  --color-muted:         #a89dc9;
  --color-gray:          #6b638a;
  --color-dark-gray:     #2d2650;

  /* Status */
  --color-online:        #10b981;
  --color-busy:          #f59e0b;
  --color-offline:       #6b638a;
  --color-success:       #10b981;
  --color-warning:       #f59e0b;
  --color-error:         #ef4444;
  --color-info:          #3b82f6;

  /* Gradients */
  --gradient-hero:       linear-gradient(135deg, #0a0514 0%, #1a1035 40%, #2d1b69 70%, #0f0a1e 100%);
  --gradient-card:       linear-gradient(135deg, rgba(45,27,105,0.4), rgba(13,10,30,0.6));
  --gradient-gold:       linear-gradient(135deg, #f5c518, #e6b000);
  --gradient-purple:     linear-gradient(135deg, #7c3aed, #4c2b8c);
  --gradient-cosmic:     linear-gradient(180deg, #0a0514 0%, #130d2b 50%, #0a0514 100%);
  --gradient-glass:      linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  --gradient-cta:        linear-gradient(135deg, #f5c518 0%, #e6b000 50%, #f5c518 100%);

  /* Shadows */
  --shadow-sm:           0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:           0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:           0 8px 48px rgba(0,0,0,0.5);
  --shadow-xl:           0 16px 64px rgba(0,0,0,0.6);
  --shadow-gold:         0 4px 24px rgba(245,197,24,0.25);
  --shadow-purple:       0 4px 24px rgba(139,92,246,0.3);
  --shadow-glow:         0 0 40px rgba(139,92,246,0.15);

  /* Glass */
  --glass-bg:            rgba(255,255,255,0.05);
  --glass-border:        rgba(255,255,255,0.1);
  --glass-blur:          backdrop-filter: blur(16px);

  /* Typography */
  --font-primary:        'Inter', -apple-system, sans-serif;
  --font-display:        'Cinzel', serif;
  --font-body:           'Lato', sans-serif;

  /* Spacing */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   16px;
  --space-lg:   24px;
  --space-xl:   32px;
  --space-2xl:  48px;
  --space-3xl:  64px;
  --space-4xl:  96px;

  /* Border Radius */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-2xl:  32px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast:   0.15s ease;
  --transition-mid:    0.3s ease;
  --transition-slow:   0.5s ease;

  /* Navbar */
  --navbar-height: 70px;
  --nav-bg: rgba(10,5,20,0.85);
  --nav-scrolled: rgba(10,5,20,0.98);
  --nav-border: rgba(255,255,255,0.06);
  --nav-link: rgba(255,255,255,0.8);
  --nav-shadow: rgba(0,0,0,0.5);
}

[data-theme="light"] {
  --color-cosmic-deep:   #f4f6f8;
  --color-cosmic-dark:   #ffffff;
  --color-cosmic-navy:   #ffffff;
  --color-cosmic-purple: #e8eaed;
  --color-white:         #1a1035;
  --color-off-white:     #333333;
  --color-light:         #555555;
  --color-muted:         #6b638a;
  
  --gradient-hero:       linear-gradient(135deg, #f4f6f8 0%, #e8eaed 40%, #ffffff 70%, #f4f6f8 100%);
  --gradient-card:       linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
  --gradient-cosmic:     linear-gradient(180deg, #f4f6f8 0%, #ffffff 50%, #f4f6f8 100%);
  
  --glass-bg:            rgba(0,0,0,0.03);
  --glass-border:        rgba(0,0,0,0.08);
  
  --shadow-sm:           0 2px 8px rgba(0,0,0,0.05);
  --shadow-md:           0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:           0 8px 48px rgba(0,0,0,0.12);

  --nav-bg: rgba(244,246,248,0.85);
  --nav-scrolled: rgba(255,255,255,0.98);
  --nav-border: rgba(0,0,0,0.08);
  --nav-link: #333333;
  --nav-shadow: rgba(0,0,0,0.08);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-primary);
  background-color: var(--color-cosmic-dark);
  color: var(--color-white);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }
ul, ol { list-style: none; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--color-cosmic-dark); }
::-webkit-scrollbar-thumb { background: var(--color-purple-mid); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--color-purple-light); }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-white);
}
.display-title {
  font-family: var(--font-display);
  letter-spacing: 0.05em;
}
.text-gold  { color: var(--color-gold); }
.text-muted { color: var(--color-muted); }
.text-purple{ color: var(--color-purple-glow); }
.text-sm    { font-size: 0.875rem; }
.text-xs    { font-size: 0.75rem; }
.text-lg    { font-size: 1.125rem; }
.text-xl    { font-size: 1.25rem; }
.text-2xl   { font-size: 1.5rem; }
.text-3xl   { font-size: 1.875rem; }
.text-4xl   { font-size: 2.25rem; }
.text-5xl   { font-size: 3rem; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.fw-300 { font-weight: 300; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.fw-900 { font-weight: 900; }

/* ---- LAYOUT ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-lg); width: 100%; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 var(--space-lg); }
.section { padding: var(--space-4xl) 0; }
.section-sm { padding: var(--space-3xl) 0; }

/* Grid */
.grid { display: grid; gap: var(--space-lg); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* Flex */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-center { align-items: center; justify-content: center; }
.flex-between { align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.items-center { align-items: center; }

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--navbar-height);
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--nav-border);
  transition: all var(--transition-mid);
}
.navbar.scrolled {
  background: var(--nav-scrolled);
  box-shadow: 0 4px 30px var(--nav-shadow);
}
.navbar-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.navbar-logo { display: flex; align-items: center; gap: 10px; }
.navbar-logo img { height: 36px; width: auto; }
.navbar-logo-text { font-family: var(--font-display); font-size: 1.4rem; color: var(--color-gold); letter-spacing: 0.05em; }

.navbar-nav { display: flex; align-items: center; gap: var(--space-xs); }
.nav-link {
  padding: 8px 14px;
  color: var(--nav-link);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--color-gold); }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 2px;
  background: var(--color-gold);
  transition: all var(--transition-fast);
  border-radius: var(--radius-full);
}
.nav-link:hover::after, .nav-link.active::after { left: 14px; right: 14px; }

.navbar-actions { display: flex; align-items: center; gap: var(--space-sm); }
.navbar-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; }
.navbar-toggle span { display: block; width: 24px; height: 2px; background: var(--color-white); border-radius: var(--radius-full); transition: all var(--transition-mid); }

/* Mobile nav */
@media (max-width: 768px) {
  .navbar-nav { display: none; position: fixed; top: var(--navbar-height); left: 0; right: 0; flex-direction: column; background: var(--color-cosmic-dark); padding: var(--space-lg); gap: var(--space-xs); border-bottom: 1px solid var(--glass-border); z-index: 999; }
  .navbar-nav.open { display: flex; }
  .navbar-toggle { display: flex; }
  .hide-on-mobile { display: none !important; }
  .show-on-mobile { display: flex !important; }
}
.show-on-mobile { display: none; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-mid);
  cursor: pointer;
  border: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: rgba(255,255,255,0.1);
  transition: left var(--transition-mid);
}
.btn:hover::before { left: 100%; }

.btn-primary {
  background: var(--gradient-cta);
  color: var(--color-cosmic-dark);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(245,197,24,0.4); }

.btn-secondary {
  background: var(--gradient-purple);
  color: var(--color-white);
  box-shadow: var(--shadow-purple);
}
.btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(139,92,246,0.4); }

.btn-outline {
  background: transparent;
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
}
.btn-outline:hover { background: var(--color-gold); color: var(--color-cosmic-dark); transform: translateY(-2px); }

.btn-ghost {
  background: var(--glass-bg);
  color: var(--color-white);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }

.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-xl { padding: 18px 36px; font-size: 1.1rem; border-radius: var(--radius-lg); }
.btn-round { border-radius: var(--radius-full); }
.btn-full { width: 100%; }

.btn-danger { background: #ef4444; color: white; }
.btn-success { background: #10b981; color: white; }
.btn-warning { background: #f59e0b; color: var(--color-cosmic-dark); }

.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.loading { pointer-events: none; opacity: 0.8; }

/* ---- HERO SECTION ---- */
.hero {
  min-height: 100vh;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--navbar-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Cosmic stars */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 20%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 60%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 70%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(2px 2px at 10% 80%, rgba(245,197,24,0.4) 0%, transparent 100%),
    radial-gradient(2px 2px at 60% 10%, rgba(139,92,246,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 40%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 90%, rgba(255,255,255,0.5) 0%, transparent 100%);
}

/* Nebula glow */
.hero-bg::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(139,92,246,0.2), transparent 70%);
  top: 10%; right: 5%;
  border-radius: 50%;
  animation: pulse-slow 8s ease-in-out infinite;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: orb-float 12s ease-in-out infinite;
}
.orb-1 { width: 400px; height: 400px; background: rgba(76,43,140,0.3); top: -100px; left: -100px; animation-delay: 0s; }
.orb-2 { width: 300px; height: 300px; background: rgba(245,197,24,0.1); bottom: 0; right: 10%; animation-delay: -4s; }
.orb-3 { width: 250px; height: 250px; background: rgba(79,70,229,0.2); top: 30%; left: 40%; animation-delay: -8s; }

@keyframes orb-float {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%       { transform: translate(30px,-20px) scale(1.05); }
  66%       { transform: translate(-20px,30px) scale(0.95); }
}
@keyframes pulse-slow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%       { opacity: 0.8; transform: scale(1.1); }
}

.hero-content { position: relative; z-index: 2; text-align: center; padding: var(--space-4xl) 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,197,24,0.1);
  border: 1px solid rgba(245,197,24,0.3);
  border-radius: var(--radius-full);
  padding: 6px 18px;
  font-size: 0.85rem;
  color: var(--color-gold);
  font-weight: 500;
  margin-bottom: var(--space-lg);
  animation: fadeInDown 0.6s ease;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-white);
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.7s ease 0.1s both;
}
.hero-title .highlight {
  background: var(--gradient-cta);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-muted);
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
  animation: fadeInUp 0.7s ease 0.2s both;
}
.hero-actions { display: flex; gap: var(--space-md); justify-content: center; flex-wrap: wrap; animation: fadeInUp 0.7s ease 0.3s both; }

/* Search bar in hero */
.hero-search {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-md);
  display: flex; align-items: center; gap: var(--space-md);
  max-width: 700px; margin: var(--space-2xl) auto 0;
  animation: fadeInUp 0.7s ease 0.4s both;
  backdrop-filter: blur(16px);
}
.hero-search input {
  flex: 1;
  background: none; border: none; outline: none;
  color: var(--color-white);
  font-size: 1rem;
  padding: 8px;
}
.hero-search input::placeholder { color: var(--color-muted); }
.hero-search .hero-search-divider { width: 1px; height: 30px; background: var(--glass-border); }
.hero-search select {
  background: none; border: none; outline: none;
  color: var(--color-muted);
  font-size: 0.9rem; padding: 8px;
  cursor: pointer;
}
.hero-search select option { background: var(--color-cosmic-dark); }

/* Stats bar */
.hero-stats {
  display: flex; gap: var(--space-2xl); justify-content: center; flex-wrap: wrap;
  margin-top: var(--space-3xl);
  animation: fadeInUp 0.7s ease 0.5s both;
}
.hero-stat-item { text-align: center; }
.hero-stat-value { font-size: 2rem; font-weight: 800; color: var(--color-gold); line-height: 1; }
.hero-stat-label { font-size: 0.85rem; color: var(--color-muted); margin-top: 4px; }

/* ---- SECTION HEADERS ---- */
.section-header { text-align: center; margin-bottom: var(--space-3xl); }
.section-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: var(--radius-full);
  padding: 5px 16px;
  font-size: 0.8rem; color: var(--color-purple-glow); font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: var(--space-md);
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: var(--space-md);
}
.section-subtitle { color: var(--color-muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }
.divider-gold {
  display: block; width: 60px; height: 3px;
  background: var(--gradient-cta);
  border-radius: var(--radius-full);
  margin: var(--space-md) auto 0;
}

/* ---- ASTROLOGER CARDS ---- */
.astrologer-card {
  background: var(--gradient-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-mid);
  position: relative;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.astrologer-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245,197,24,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(245,197,24,0.1);
}
.astrologer-card-img {
  position: relative;
  padding-top: 75%;
  overflow: hidden;
}
.astrologer-card-img img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform var(--transition-slow);
}
.astrologer-card:hover .astrologer-card-img img { transform: scale(1.05); }

/* Status badge */
.status-badge {
  position: absolute; top: 12px; left: 12px;
  display: flex; align-items: center; gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 600;
  backdrop-filter: blur(8px);
}
.status-badge.online  { background: rgba(16,185,129,0.2); border: 1px solid rgba(16,185,129,0.4); color: #10b981; }
.status-badge.busy    { background: rgba(245,158,11,0.2); border: 1px solid rgba(245,158,11,0.4); color: #f59e0b; }
.status-badge.offline { background: rgba(107,99,138,0.2); border: 1px solid rgba(107,99,138,0.4); color: var(--color-muted); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; }
.status-dot.online  { background: #10b981; box-shadow: 0 0 6px #10b981; animation: pulse-dot 2s infinite; }
.status-dot.busy    { background: #f59e0b; }
.status-dot.offline { background: var(--color-muted); }

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 4px #10b981; }
  50%       { box-shadow: 0 0 10px #10b981; }
}

.astrologer-card-fav {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
  font-size: 0.9rem;
}
.astrologer-card-fav:hover, .astrologer-card-fav.active { background: rgba(239,68,68,0.3); }

.astrologer-card-body { padding: var(--space-md); }
.astrologer-card-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.astrologer-card-cats { font-size: 0.8rem; color: var(--color-gold); margin-bottom: 8px; opacity: 0.9; }

.rating-row { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.stars { color: var(--color-gold); font-size: 0.85rem; }
.rating-count { font-size: 0.8rem; color: var(--color-muted); }

.astrologer-card-meta { display: flex; gap: var(--space-md); margin-bottom: var(--space-md); flex-wrap: wrap; }
.meta-item { display: flex; align-items: center; gap: 4px; font-size: 0.8rem; color: var(--color-muted); }
.meta-item span:first-child { font-size: 0.85rem; }

.astrologer-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid var(--glass-border);
}
.price-per-min { font-size: 0.75rem; color: var(--color-muted); }
.price-value { font-size: 1.1rem; font-weight: 700; color: var(--color-gold); }

/* ---- CATEGORY CARDS ---- */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-md); }
.category-card {
  background: var(--gradient-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  transition: all var(--transition-mid);
  cursor: pointer;
}
.category-card:hover {
  border-color: rgba(245,197,24,0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}
.category-icon { font-size: 2rem; margin-bottom: var(--space-sm); }
.category-name { font-size: 0.85rem; font-weight: 600; color: var(--color-light); }
.category-count { font-size: 0.75rem; color: var(--color-muted); margin-top: 4px; }

/* ---- HOW IT WORKS ---- */
.how-it-works-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-xl); }
.hiw-card {
  text-align: center;
  position: relative;
}
.hiw-card::before {
  content: '';
  position: absolute;
  top: 30px; left: calc(50% + 40px);
  width: calc(100% - 80px);
  height: 1px;
  border-top: 2px dashed rgba(245,197,24,0.2);
}
.hiw-card:last-child::before { display: none; }

.hiw-icon {
  width: 70px; height: 70px;
  background: var(--gradient-purple);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto var(--space-md);
  box-shadow: var(--shadow-purple);
  position: relative;
  z-index: 1;
}
.hiw-step {
  position: absolute; top: -4px; right: -4px;
  width: 22px; height: 22px;
  background: var(--gradient-cta);
  color: var(--color-cosmic-dark);
  border-radius: 50%;
  font-size: 0.7rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.hiw-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.hiw-desc { font-size: 0.875rem; color: var(--color-muted); }

/* ---- TESTIMONIALS ---- */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-lg); }
.testimonial-card {
  background: var(--gradient-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all var(--transition-mid);
}
.testimonial-card:hover { border-color: rgba(139,92,246,0.3); transform: translateY(-4px); }
.testimonial-stars { color: var(--color-gold); font-size: 1rem; margin-bottom: var(--space-md); }
.testimonial-text { color: var(--color-light); font-size: 0.95rem; line-height: 1.8; margin-bottom: var(--space-lg); font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: var(--space-md); }
.testimonial-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-gold);
}
.testimonial-name { font-weight: 600; font-size: 0.95rem; }
.testimonial-city { font-size: 0.8rem; color: var(--color-muted); }

/* ---- FORMS ---- */
.form-group { margin-bottom: var(--space-lg); }
.form-label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--color-light); margin-bottom: 8px; }
.form-label .required { color: var(--color-error); margin-left: 4px; }
.form-control {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--color-white);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  outline: none;
}
.form-control:focus {
  border-color: var(--color-purple-glow);
  background: rgba(255,255,255,0.07);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.15);
}
.form-control::placeholder { color: var(--color-gray); }
.form-control.error { border-color: var(--color-error); }
.form-control.success { border-color: var(--color-success); }
.form-error { font-size: 0.8rem; color: var(--color-error); margin-top: 6px; }
.form-hint { font-size: 0.8rem; color: var(--color-muted); margin-top: 6px; }

textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; }
select.form-control option { background: var(--color-cosmic-dark); }

.input-group { display: flex; }
.input-group .form-control { border-radius: var(--radius-md) 0 0 var(--radius-md); flex: 1; }
.input-group .btn { border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.input-group-icon { position: relative; }
.input-group-icon .form-control { padding-left: 44px; }
.input-group-icon .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--color-gray); font-size: 1rem; }

.form-check { display: flex; align-items: center; gap: 10px; }
.form-check input[type="checkbox"], .form-check input[type="radio"] { width: 18px; height: 18px; accent-color: var(--color-purple-glow); cursor: pointer; }
.form-check label { font-size: 0.9rem; color: var(--color-light); cursor: pointer; }

/* OTP Input */
.otp-inputs { display: flex; gap: var(--space-sm); justify-content: center; }
.otp-input {
  width: 52px; height: 56px;
  text-align: center;
  font-size: 1.5rem; font-weight: 700;
  background: rgba(255,255,255,0.07);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  color: var(--color-white);
  outline: none;
  transition: all var(--transition-fast);
}
.otp-input:focus { border-color: var(--color-gold); box-shadow: 0 0 0 3px var(--color-gold-glow); }

/* ---- ALERTS / FLASH MESSAGES ---- */
.alert {
  display: flex; align-items: flex-start; gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  animation: slideIn 0.3s ease;
  position: relative;
}
.alert-success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); color: #34d399; }
.alert-error   { background: rgba(239,68,68,0.1);  border: 1px solid rgba(239,68,68,0.3);  color: #f87171; }
.alert-warning { background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.3); color: #fbbf24; }
.alert-info    { background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.3); color: #60a5fa; }
.alert-close { position: absolute; right: var(--space-md); top: 50%; transform: translateY(-50%); opacity: 0.7; font-size: 1.2rem; cursor: pointer; transition: opacity var(--transition-fast); }
.alert-close:hover { opacity: 1; }

/* Toast notifications */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--color-cosmic-navy);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  display: flex; align-items: center; gap: var(--space-md);
  min-width: 300px; max-width: 420px;
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.4s ease;
}
.toast.exit { animation: slideOutRight 0.3s ease forwards; }

@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOutRight { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }
@keyframes slideIn { from { transform: translateY(-10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ---- GLASS CARDS ---- */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.card {
  background: var(--gradient-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.card-body { padding: var(--space-xl); }
.card-header {
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: space-between;
}
.card-title { font-size: 1.1rem; font-weight: 700; }

/* ---- STATS CARDS ---- */
.stat-card {
  background: var(--gradient-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  display: flex; align-items: center; gap: var(--space-lg);
  transition: all var(--transition-mid);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.stat-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.stat-icon.purple { background: rgba(139,92,246,0.2); }
.stat-icon.gold   { background: rgba(245,197,24,0.15); }
.stat-icon.green  { background: rgba(16,185,129,0.15); }
.stat-icon.blue   { background: rgba(59,130,246,0.15); }
.stat-icon.red    { background: rgba(239,68,68,0.15); }
.stat-value { font-size: 1.8rem; font-weight: 800; color: var(--color-white); line-height: 1; }
.stat-label { font-size: 0.85rem; color: var(--color-muted); margin-top: 4px; }
.stat-change { font-size: 0.8rem; margin-top: 4px; }
.stat-change.up   { color: var(--color-success); }
.stat-change.down { color: var(--color-error); }

/* ---- BADGES ---- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 600;
}
.badge-gold    { background: rgba(245,197,24,0.15); color: var(--color-gold); border: 1px solid rgba(245,197,24,0.3); }
.badge-purple  { background: rgba(139,92,246,0.15); color: var(--color-purple-glow); border: 1px solid rgba(139,92,246,0.3); }
.badge-green   { background: rgba(16,185,129,0.15); color: #10b981; border: 1px solid rgba(16,185,129,0.3); }
.badge-red     { background: rgba(239,68,68,0.15);  color: #ef4444; border: 1px solid rgba(239,68,68,0.3); }
.badge-orange  { background: rgba(245,158,11,0.15); color: #f59e0b; border: 1px solid rgba(245,158,11,0.3); }
.badge-gray    { background: rgba(107,99,138,0.15); color: var(--color-muted); border: 1px solid rgba(107,99,138,0.3); }

/* ---- DASHBOARD LAYOUT ---- */
.dashboard-layout { display: flex; min-height: 100vh; padding-top: var(--navbar-height); }
.dashboard-sidebar {
  width: 260px; flex-shrink: 0;
  background: rgba(10,5,20,0.95);
  border-right: 1px solid var(--glass-border);
  position: sticky; top: var(--navbar-height);
  height: calc(100vh - var(--navbar-height));
  overflow-y: auto;
  transition: transform var(--transition-mid);
}
.dashboard-content { flex: 1; padding: var(--space-xl); min-width: 0; }
.sidebar-nav { padding: var(--space-lg) 0; }
.sidebar-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px var(--space-xl);
  color: var(--color-muted);
  font-size: 0.9rem; font-weight: 500;
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
}
.sidebar-nav-item:hover { color: var(--color-white); background: rgba(255,255,255,0.04); }
.sidebar-nav-item.active { color: var(--color-gold); background: rgba(245,197,24,0.06); border-left-color: var(--color-gold); }
.sidebar-nav-item .icon { font-size: 1.1rem; }
.sidebar-user { padding: var(--space-lg) var(--space-xl); border-bottom: 1px solid var(--glass-border); }
.sidebar-user-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--color-gold); margin-bottom: 10px; }
.sidebar-user-name { font-weight: 700; font-size: 0.95rem; }
.sidebar-user-role { font-size: 0.8rem; color: var(--color-muted); }
.sidebar-section-title { padding: 12px var(--space-xl) 6px; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-gray); font-weight: 700; }

/* ---- CHAT UI ---- */
.chat-container {
  display: flex; flex-direction: column;
  height: calc(100vh - var(--navbar-height));
  background: var(--color-cosmic-dark);
  max-width: 900px; margin: 0 auto;
  border-left: 1px solid var(--glass-border);
  border-right: 1px solid var(--glass-border);
}
.chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  background: rgba(10,5,20,0.9);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  flex-shrink: 0;
}
.chat-header-user { display: flex; align-items: center; gap: var(--space-md); }
.chat-header-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--color-gold); }
.chat-header-name { font-weight: 700; }
.chat-header-status { font-size: 0.8rem; color: var(--color-muted); }

/* Timer */
.chat-timer {
  display: flex; align-items: center; gap: 8px;
  background: rgba(245,197,24,0.1);
  border: 1px solid rgba(245,197,24,0.3);
  border-radius: var(--radius-full);
  padding: 6px 14px;
}
.chat-timer .timer-icon { font-size: 1rem; }
.chat-timer .timer-value { font-size: 1.1rem; font-weight: 800; color: var(--color-gold); font-variant-numeric: tabular-nums; }
.chat-timer.urgent { border-color: rgba(239,68,68,0.4); background: rgba(239,68,68,0.1); }
.chat-timer.urgent .timer-value { color: var(--color-error); }

.chat-messages { flex: 1; overflow-y: auto; padding: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-sm); }
.chat-message {
  display: flex; gap: 10px;
  animation: msgIn 0.2s ease;
  max-width: 80%;
}
.chat-message.sent { flex-direction: row-reverse; align-self: flex-end; }
.chat-message.received { align-self: flex-start; }
.chat-message.system { align-self: center; max-width: 100%; }

@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.msg-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; align-self: flex-end; }
.msg-bubble {
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 0.9rem; line-height: 1.5;
  max-width: 100%;
}
.chat-message.sent .msg-bubble {
  background: var(--gradient-purple);
  border-bottom-right-radius: 4px;
  color: var(--color-white);
}
.chat-message.received .msg-bubble {
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--glass-border);
  border-bottom-left-radius: 4px;
}
.chat-message.system .msg-bubble {
  background: rgba(245,197,24,0.1);
  border: 1px solid rgba(245,197,24,0.2);
  color: var(--color-gold);
  font-size: 0.8rem; text-align: center;
  border-radius: var(--radius-full);
  padding: 6px 16px;
}
.msg-meta { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 0.7rem; color: var(--color-gray); }
.msg-seen { color: var(--color-info); }
.msg-sent { opacity: 0.6; }
.typing-indicator { display: flex; align-items: center; gap: 4px; padding: 12px 16px; }
.typing-dot { width: 7px; height: 7px; background: var(--color-muted); border-radius: 50%; animation: typing 1s infinite; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(-6px); opacity: 1; } }

.chat-input-area {
  display: flex; align-items: center; gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--glass-border);
  background: rgba(10,5,20,0.9);
  flex-shrink: 0;
}
.chat-input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  padding: 12px 20px;
  color: var(--color-white);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
  resize: none;
  max-height: 120px;
}
.chat-input:focus { border-color: var(--color-purple-glow); background: rgba(255,255,255,0.08); }
.chat-send-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gradient-purple);
  color: white; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.chat-send-btn:hover { transform: scale(1.1); box-shadow: var(--shadow-purple); }
.chat-send-btn:disabled { opacity: 0.4; transform: none; }

/* Chat locked overlay */
.chat-locked {
  position: absolute; inset: 0;
  background: rgba(10,5,20,0.9);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: var(--space-lg);
  backdrop-filter: blur(8px);
  z-index: 10;
}
.chat-locked-icon { font-size: 3rem; }
.chat-locked-title { font-size: 1.5rem; font-weight: 700; }
.chat-locked-desc { color: var(--color-muted); text-align: center; max-width: 400px; }

/* ---- FOOTER ---- */
.footer {
  background: var(--color-cosmic-deep);
  border-top: 1px solid var(--glass-border);
  padding: var(--space-4xl) 0 var(--space-xl);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-3xl); margin-bottom: var(--space-3xl); }
.footer-brand-logo { font-family: var(--font-display); font-size: 1.6rem; color: var(--color-gold); margin-bottom: var(--space-md); }
.footer-brand-desc { color: var(--color-muted); font-size: 0.9rem; line-height: 1.7; margin-bottom: var(--space-lg); }
.footer-social { display: flex; gap: var(--space-sm); }
.footer-social-link {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: all var(--transition-fast);
  color: var(--color-muted);
}
.footer-social-link:hover { background: rgba(245,197,24,0.1); border-color: rgba(245,197,24,0.3); color: var(--color-gold); transform: translateY(-2px); }
.footer-col-title { font-weight: 700; font-size: 0.95rem; margin-bottom: var(--space-md); color: var(--color-white); }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--color-muted); font-size: 0.875rem; transition: color var(--transition-fast); }
.footer-links a:hover { color: var(--color-gold); }
.footer-bottom { border-top: 1px solid var(--glass-border); padding-top: var(--space-xl); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-md); }
.footer-bottom-text { color: var(--color-gray); font-size: 0.85rem; }
.footer-disclaimer { color: var(--color-gray); font-size: 0.75rem; text-align: center; margin-top: var(--space-md); line-height: 1.6; }

/* ---- ADMIN PANEL ---- */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 250px; flex-shrink: 0;
  background: var(--color-cosmic-deep);
  border-right: 1px solid var(--glass-border);
  position: sticky; top: 0;
  height: 100vh; overflow-y: auto;
}
.admin-sidebar-logo { padding: var(--space-xl); border-bottom: 1px solid var(--glass-border); }
.admin-sidebar-logo-text { font-family: var(--font-display); font-size: 1.2rem; color: var(--color-gold); }
.admin-sidebar-logo-sub { font-size: 0.75rem; color: var(--color-muted); }

.admin-nav-group { padding: var(--space-md) 0; }
.admin-nav-group-title { padding: 8px var(--space-lg); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-gray); font-weight: 700; }
.admin-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px var(--space-lg);
  color: var(--color-muted);
  font-size: 0.875rem; font-weight: 500;
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
}
.admin-nav-item:hover { color: var(--color-white); background: rgba(255,255,255,0.04); }
.admin-nav-item.active { color: var(--color-gold); background: rgba(245,197,24,0.06); border-left-color: var(--color-gold); }
.admin-nav-badge { margin-left: auto; background: var(--color-error); color: white; border-radius: var(--radius-full); font-size: 0.7rem; padding: 1px 6px; }

.admin-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.admin-topbar {
  height: 60px;
  background: rgba(10,5,20,0.95);
  border-bottom: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--space-xl);
  position: sticky; top: 0; z-index: 100;
}
.admin-content { flex: 1; padding: var(--space-xl); overflow-y: auto; }
.admin-page-title { font-size: 1.5rem; font-weight: 700; margin-bottom: var(--space-xl); }
.admin-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--color-muted); margin-bottom: var(--space-lg); }
.admin-breadcrumb a { color: var(--color-muted); }
.admin-breadcrumb a:hover { color: var(--color-gold); }

/* Data tables */
.table-container { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left; padding: var(--space-md) var(--space-lg);
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--color-muted); font-weight: 600;
  border-bottom: 1px solid var(--glass-border);
  white-space: nowrap;
}
.data-table td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.9rem; color: var(--color-light);
  vertical-align: middle;
}
.data-table tr:hover td { background: rgba(255,255,255,0.02); }
.data-table tr:last-child td { border-bottom: none; }

/* Pagination */
.pagination { display: flex; align-items: center; gap: 4px; justify-content: center; margin-top: var(--space-xl); }
.page-btn {
  min-width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 500;
  color: var(--color-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  transition: all var(--transition-fast);
  cursor: pointer;
}
.page-btn:hover { color: var(--color-white); background: rgba(255,255,255,0.08); }
.page-btn.active { background: var(--gradient-purple); color: var(--color-white); border-color: transparent; }
.page-btn.disabled { opacity: 0.4; cursor: not-allowed; }

/* ---- MODALS ---- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-lg);
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition-mid);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--color-cosmic-navy);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  max-width: 560px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  transform: translateY(20px) scale(0.98);
  transition: all var(--transition-mid);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-xl);
  border-bottom: 1px solid var(--glass-border);
}
.modal-title { font-size: 1.1rem; font-weight: 700; }
.modal-close { font-size: 1.5rem; color: var(--color-muted); cursor: pointer; transition: color var(--transition-fast); }
.modal-close:hover { color: var(--color-white); }
.modal-body { padding: var(--space-xl); }
.modal-footer { padding: var(--space-lg) var(--space-xl); border-top: 1px solid var(--glass-border); display: flex; gap: var(--space-md); justify-content: flex-end; }

/* ---- ANIMATIONS ---- */
@keyframes fadeInUp   { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn     { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin       { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes shimmer    { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes scaleIn    { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

.animate-in    { animation: fadeInUp 0.5s ease both; }
.animate-fade  { animation: fadeIn 0.5s ease both; }
.animate-scale { animation: scaleIn 0.4s ease both; }

/* Stagger children */
.stagger > * { opacity: 0; animation: fadeInUp 0.5s ease both; }
.stagger > *:nth-child(1)  { animation-delay: 0.05s; }
.stagger > *:nth-child(2)  { animation-delay: 0.10s; }
.stagger > *:nth-child(3)  { animation-delay: 0.15s; }
.stagger > *:nth-child(4)  { animation-delay: 0.20s; }
.stagger > *:nth-child(5)  { animation-delay: 0.25s; }
.stagger > *:nth-child(6)  { animation-delay: 0.30s; }

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ---- COSMIC DIVIDER ---- */
.cosmic-divider { position: relative; height: 60px; overflow: hidden; pointer-events: none; }
.cosmic-divider::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(139,92,246,0.05) 50%, transparent 100%);
}
.cosmic-divider svg { width: 100%; height: 100%; }

/* ---- KYC UPLOAD ---- */
.upload-zone {
  border: 2px dashed rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-mid);
}
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--color-purple-glow); background: rgba(139,92,246,0.05); }
.upload-zone .upload-icon { font-size: 2.5rem; margin-bottom: var(--space-md); opacity: 0.7; }
.upload-zone .upload-text { color: var(--color-muted); font-size: 0.9rem; }
.upload-zone .upload-text strong { color: var(--color-purple-glow); }

/* ---- BOOKING FLOW ---- */
.booking-steps { display: flex; gap: 0; margin-bottom: var(--space-2xl); }
.booking-step {
  flex: 1; text-align: center;
  padding: var(--space-md);
  position: relative;
}
.booking-step::before {
  content: '';
  position: absolute;
  top: 20px; left: calc(50% + 20px); right: 0;
  height: 2px; background: var(--glass-border);
}
.booking-step:last-child::before { display: none; }
.booking-step.completed::before { background: var(--color-gold); }
.step-number {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.05); border: 2px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; margin: 0 auto var(--space-sm);
  transition: all var(--transition-mid);
  position: relative; z-index: 1;
}
.booking-step.active .step-number { background: var(--gradient-purple); border-color: transparent; color: white; box-shadow: var(--shadow-purple); }
.booking-step.completed .step-number { background: var(--gradient-cta); border-color: transparent; color: var(--color-cosmic-dark); }
.step-label { font-size: 0.8rem; color: var(--color-muted); }
.booking-step.active .step-label { color: var(--color-white); }
.booking-step.completed .step-label { color: var(--color-gold); }

/* Duration selector */
.duration-selector { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
.duration-option {
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-mid);
  background: rgba(255,255,255,0.03);
}
.duration-option:hover { border-color: rgba(245,197,24,0.3); }
.duration-option.selected { border-color: var(--color-gold); background: rgba(245,197,24,0.08); }
.duration-minutes { font-size: 1.8rem; font-weight: 800; color: var(--color-white); }
.duration-label { font-size: 0.7rem; color: var(--color-muted); text-transform: uppercase; margin: 2px 0; }
.duration-price { font-size: 1.1rem; font-weight: 700; color: var(--color-gold); }

/* ---- CTA BANNER ---- */
.cta-banner {
  background: linear-gradient(135deg, rgba(76,43,140,0.4) 0%, rgba(245,197,24,0.1) 50%, rgba(76,43,140,0.4) 100%);
  border: 1px solid rgba(245,197,24,0.15);
  border-radius: var(--radius-2xl);
  padding: var(--space-4xl) var(--space-3xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 60%, rgba(255,255,255,0.2) 0%, transparent 100%);
}
.cta-banner-title { font-size: clamp(1.5rem, 4vw, 2.5rem); margin-bottom: var(--space-md); }
.cta-banner-desc { color: var(--color-muted); margin-bottom: var(--space-xl); }

/* ---- PROFILE PAGE ---- */
.profile-hero {
  background: var(--gradient-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  margin-bottom: var(--space-xl);
}
.profile-cover { height: 200px; background: var(--gradient-hero); position: relative; overflow: hidden; }
.profile-cover-img { width: 100%; height: 100%; object-fit: cover; }
.profile-info { padding: var(--space-xl); display: flex; align-items: flex-end; gap: var(--space-lg); margin-top: -60px; position: relative; }
.profile-avatar-wrap { position: relative; flex-shrink: 0; }
.profile-avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid var(--color-cosmic-dark); box-shadow: var(--shadow-lg); }
.profile-verified { position: absolute; bottom: 5px; right: 5px; background: var(--color-gold); color: var(--color-cosmic-dark); border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; border: 2px solid var(--color-cosmic-dark); }
.profile-meta { flex: 1; padding-top: 70px; }
.profile-name { font-size: 1.5rem; font-weight: 800; margin-bottom: 4px; }
.profile-cats { color: var(--color-gold); font-size: 0.9rem; margin-bottom: 8px; }
.profile-actions { display: flex; gap: var(--space-md); align-items: flex-start; flex-shrink: 0; }

/* ---- RESPONSIVE BREAKPOINTS ---- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .duration-selector { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --space-4xl: 60px; --space-3xl: 40px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: fixed; left: -260px; z-index: 900; height: 100vh; top: 0; }
  .dashboard-sidebar.open { left: 0; }
  .dashboard-layout { padding-top: var(--navbar-height); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .how-it-works-grid .hiw-card::before { display: none; }
  .admin-sidebar { position: fixed; left: -250px; z-index: 1001; }
  .admin-sidebar.open { left: 0; }
  .booking-steps { overflow-x: auto; }
  .profile-info { flex-direction: column; align-items: flex-start; margin-top: 0; }
  .profile-avatar { width: 80px; height: 80px; }
  .profile-meta { padding-top: 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-md); }
  .hero-title { font-size: 2rem; }
  .hero-search { flex-direction: column; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .duration-selector { grid-template-columns: repeat(2, 1fr); }
  .chat-container { height: calc(100dvh - var(--navbar-height)); }
}

/* ---- UTILITIES ---- */
.mt-auto { margin-top: auto; }
.mb-auto { margin-bottom: auto; }
.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }
.m-0 { margin: 0; }
.p-0 { padding: 0; }
.hidden { display: none !important; }
.invisible { visibility: hidden; }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky-top { position: sticky; top: 0; z-index: 100; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.rounded-full { border-radius: 50%; }
.cursor-pointer { cursor: pointer; }
.pointer-events-none { pointer-events: none; }
.select-none { user-select: none; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- LOADING SPINNER ---- */
.spinner { width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.2); border-top-color: var(--color-gold); border-radius: 50%; animation: spin 0.8s linear infinite; display: inline-block; }
.spinner-lg { width: 40px; height: 40px; border-width: 3px; }
.spinner-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.5); border-radius: inherit; z-index: 10; }

/* ---- EMPTY STATE ---- */
.empty-state { text-align: center; padding: var(--space-4xl) var(--space-xl); }
.empty-state-icon { font-size: 4rem; margin-bottom: var(--space-lg); opacity: 0.5; }
.empty-state-title { font-size: 1.2rem; font-weight: 700; margin-bottom: var(--space-md); }
.empty-state-desc { color: var(--color-muted); margin-bottom: var(--space-xl); }

/* ---- BACK TO TOP ---- */
#back-to-top {
  position: fixed; bottom: 30px; right: 30px;
  width: 44px; height: 44px;
  background: var(--gradient-purple);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  opacity: 0; pointer-events: none;
  transition: all var(--transition-mid);
  z-index: 500;
  box-shadow: var(--shadow-purple);
}
#back-to-top.visible { opacity: 1; pointer-events: all; }
#back-to-top:hover { transform: translateY(-3px); }

/* ---- COOKIE CONSENT ---- */
.cookie-consent {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--color-cosmic-navy);
  border-top: 1px solid var(--glass-border);
  padding: var(--space-md) var(--space-xl);
  display: flex; align-items: center; gap: var(--space-lg); flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform var(--transition-mid);
}
.cookie-consent.visible { transform: translateY(0); }

/* ---- SEARCH BAR (standalone) ---- */
.search-bar {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  gap: 8px;
}
.search-bar input { background: none; border: none; outline: none; color: var(--color-white); flex: 1; font-size: 0.9rem; }
.search-bar input::placeholder { color: var(--color-muted); }

/* ---- FILTER SIDEBAR ---- */
.filter-sidebar {
  background: var(--gradient-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  position: sticky; top: calc(var(--navbar-height) + var(--space-md));
}
.filter-group { margin-bottom: var(--space-xl); }
.filter-title { font-size: 0.9rem; font-weight: 700; margin-bottom: var(--space-md); color: var(--color-light); }
.filter-options { display: flex; flex-direction: column; gap: 8px; }

/* ---- RATING STARS ---- */
.star-rating { color: var(--color-gold); }
.star-rating .full { color: var(--color-gold); }
.star-rating .half { color: var(--color-gold); opacity: 0.7; }
.star-rating .empty { color: var(--color-gray); }

/* ---- INPUT COUNTER ---- */
.input-counter { display: flex; align-items: center; gap: var(--space-sm); }
.counter-btn { width: 34px; height: 34px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.06); border: 1px solid var(--glass-border); color: var(--color-white); font-size: 1.2rem; display: flex; align-items: center; justify-content: center; transition: all var(--transition-fast); }
.counter-btn:hover { background: rgba(255,255,255,0.1); }
.counter-value { min-width: 40px; text-align: center; font-weight: 700; }

/* ---- NOTIFICATION DOT ---- */
.notif-dot { position: relative; }
.notif-dot::after { content: ''; position: absolute; top: 2px; right: 2px; width: 8px; height: 8px; background: var(--color-error); border-radius: 50%; border: 2px solid var(--color-cosmic-dark); }

/* ---- SECTION BG VARIANTS ---- */
.bg-cosmic { background: var(--gradient-cosmic); }
.bg-card    { background: var(--gradient-card); }
.bg-dark    { background: var(--color-cosmic-dark); }
.bg-navy    { background: var(--color-cosmic-navy); }

/* WhatsApp-style mobile chat enhancements */
@media (max-width: 768px) {
  .chat-container { height: 100dvh; }
  .chat-message { max-width: 85%; }
  .chat-header { padding: 12px var(--space-md); }
}

/* --- ENHANCED UI ADDITIONS --- */
/* Enhanced Sections */
.bg-navy { 
  position: relative; overflow: hidden;
  background: var(--color-cosmic-navy) url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); 
}

/* HIW Card Enhancements */
.hiw-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: rgba(255,255,255,0.02);
  border: 1px solid transparent;
  padding: 30px 20px;
  border-radius: var(--radius-xl);
}
.hiw-card:hover {
  transform: translateY(-10px);
  background: var(--glass-bg);
  border-color: rgba(139,92,246,0.3);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2), inset 0 0 20px rgba(139,92,246,0.1);
}
.hiw-card:hover .hiw-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 30px rgba(139,92,246,0.6);
}
.hiw-icon { transition: all 0.3s ease; }

/* Testimonial Card Enhancements */
.testimonial-card {
  position: relative;
  z-index: 1;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 10px; right: 20px;
  font-size: 8rem;
  font-family: serif;
  color: rgba(255,255,255,0.03);
  line-height: 1;
  z-index: -1;
  transition: all 0.3s ease;
}
.testimonial-card:hover::before {
  color: rgba(245,197,24,0.1);
  transform: rotate(10deg);
}
.testimonial-card:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(245,197,24,0.2);
}

/* Category Card Glow */
.category-card { position: relative; overflow: hidden; }
.category-card::after {
  content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 0%, rgba(245,197,24,0.1) 100%); opacity: 0; transition: opacity 0.3s ease;
}
/* Button Shine Effect */
@keyframes shine-sweep {
  0% { left: -100%; }
  20% { left: 100%; }
  100% { left: 100%; }
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg);
  animation: shine-sweep 3s infinite;
  pointer-events: none;
}

/* Shiny Text Gradient */
@keyframes shine-text {
  to { background-position: 200% center; }
}
.highlight {
  background: linear-gradient(to right, #f5c518, #ffdf00, #f59e0b, #f5c518);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine-text 4s linear infinite;
}
