/*
Theme Name: SparkLove
Theme URI: https://sparklove.app
Author: SparkLove Team
Description: The world's most beautiful dating experience. A PWA-ready WordPress theme built for modern connection.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: sparklove
Tags: dating, pwa, swipe, matching, responsive
*/

/* ============================================================
   DESIGN SYSTEM — SPARKLOVE
   Aesthetic: Luxury dark romance with electric coral accents
   Fonts: Canela Display + DM Sans
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&family=Playfair+Display:ital,wght@0,700;1,400;1,700&display=swap');

:root {
  /* Core palette */
  --bg-void:      #0a0812;
  --bg-deep:      #100e1a;
  --bg-card:      #16132a;
  --bg-elevated:  #1e1a35;
  --bg-glass:     rgba(22,19,42,0.7);

  /* Accent system */
  --spark:        #ff4d6d;
  --spark-light:  #ff758c;
  --spark-glow:   rgba(255,77,109,0.25);
  --gold:         #ffd166;
  --gold-glow:    rgba(255,209,102,0.2);
  --electric:     #c77dff;
  --electric-dim: rgba(199,125,255,0.15);

  /* Text */
  --text-primary:   #f0eaff;
  --text-secondary: #9d94c0;
  --text-muted:     #5c5480;
  --text-on-spark:  #fff;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Spatial */
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-card:  0 8px 40px rgba(0,0,0,0.5);
  --shadow-spark: 0 0 30px rgba(255,77,109,0.4);
  --shadow-gold:  0 0 20px rgba(255,209,102,0.3);

  /* Motion */
  --ease-snap:   cubic-bezier(0.34,1.56,0.64,1);
  --ease-smooth: cubic-bezier(0.4,0,0.2,1);
  --ease-out:    cubic-bezier(0,0,0.2,1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-void);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient background mesh */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 10%, rgba(199,125,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 80%, rgba(255,77,109,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 60% 40%, rgba(255,209,102,0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

body > * { position: relative; z-index: 1; }

img { max-width: 100%; display: block; }
a { color: var(--spark-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--spark); }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 500; font-family: var(--font-body); }

p { line-height: 1.7; color: var(--text-secondary); }
.text-muted { color: var(--text-muted); font-size: 0.875rem; }

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,8,18,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-style: italic;
  font-weight: 700;
  background: linear-gradient(135deg, var(--spark), var(--electric));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-actions { display: flex; align-items: center; gap: 12px; }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.9375rem;
  cursor: pointer;
  border: none;
  transition: all 0.25s var(--ease-smooth);
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.2s;
}
.btn:hover::after { background: rgba(255,255,255,0.07); }
.btn:active { transform: scale(0.97); }

.btn-spark {
  background: linear-gradient(135deg, #ff4d6d, #c77dff);
  color: #fff;
  box-shadow: var(--shadow-spark);
}
.btn-spark:hover { box-shadow: 0 0 40px rgba(255,77,109,0.5); }

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-primary);
}
.btn-outline:hover { border-color: var(--spark); color: var(--spark); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 16px;
}
.btn-ghost:hover { color: var(--text-primary); }

.btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  font-size: 1.25rem;
}

.btn-lg { padding: 16px 40px; font-size: 1.0625rem; }
.btn-sm { padding: 8px 18px; font-size: 0.8125rem; }

/* ============================================================
   CARDS
   ============================================================ */

.card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.card-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-input {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  color: var(--text-primary);
  font-size: 0.9375rem;
  transition: all 0.2s;
  width: 100%;
}

.form-input:focus {
  outline: none;
  border-color: var(--spark);
  background: rgba(255,77,109,0.05);
  box-shadow: 0 0 0 3px rgba(255,77,109,0.1);
}

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

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  position: relative;
  padding: 80px 20px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(10,8,18,0.95) 0%,
    rgba(10,8,18,0.7) 50%,
    rgba(10,8,18,0.4) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,77,109,0.1);
  border: 1px solid rgba(255,77,109,0.3);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--spark-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--spark), var(--electric));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.7;
  max-width: 480px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 64px;
}

.hero-stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Floating cards around hero */
.hero-float-cards {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 16px;
  pointer-events: none;
}

/* ============================================================
   PROFILE CARD (Swipe Deck)
   ============================================================ */

.swipe-deck {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  height: 560px;
}

.profile-card {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: grab;
  will-change: transform;
  box-shadow: var(--shadow-card);
  user-select: none;
  transition: box-shadow 0.3s;
}

.profile-card:active { cursor: grabbing; }

.profile-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.95) 0%,
    rgba(0,0,0,0.4) 40%,
    rgba(0,0,0,0) 65%
  );
}

.profile-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 24px 100px;
}

.profile-card-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.profile-card-age {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  margin-left: 8px;
}

.profile-card-location {
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  margin-top: 6px;
}

.profile-card-bio {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  margin-top: 10px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.profile-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.profile-tag {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.85);
}

/* Swipe stamps */
.stamp-like, .stamp-nope, .stamp-super {
  position: absolute;
  top: 40px;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  font-style: italic;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  border-width: 4px;
  border-style: solid;
  opacity: 0;
  transform: rotate(-15deg);
  pointer-events: none;
  transition: opacity 0.15s;
}

.stamp-like {
  left: 24px;
  color: #00e676;
  border-color: #00e676;
  transform: rotate(-15deg);
}

.stamp-nope {
  right: 24px;
  color: var(--spark);
  border-color: var(--spark);
  transform: rotate(15deg);
}

.stamp-super {
  left: 50%;
  transform: translateX(-50%) rotate(-5deg);
  color: var(--gold);
  border-color: var(--gold);
  font-size: 2rem;
  top: 20px;
}

/* Action buttons below the card */
.swipe-actions {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease-snap);
  box-shadow: var(--shadow-card);
  font-size: 1.25rem;
}

.action-btn:hover { transform: scale(1.12); }
.action-btn:active { transform: scale(0.95); }

.action-btn-pass {
  width: 56px; height: 56px;
  background: rgba(30,26,53,0.95);
  color: var(--spark);
  border: 1px solid rgba(255,77,109,0.3);
}
.action-btn-pass:hover { box-shadow: 0 0 20px rgba(255,77,109,0.3); }

.action-btn-super {
  width: 52px; height: 52px;
  background: rgba(30,26,53,0.95);
  color: var(--gold);
  border: 1px solid rgba(255,209,102,0.3);
}

.action-btn-like {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, #00e676, #00bcd4);
  color: #fff;
  box-shadow: 0 0 24px rgba(0,230,118,0.4);
}

.action-btn-boost {
  width: 52px; height: 52px;
  background: rgba(30,26,53,0.95);
  color: var(--electric);
  border: 1px solid rgba(199,125,255,0.3);
}

/* ============================================================
   MATCH MODAL
   ============================================================ */

.match-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.match-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.match-modal {
  background: var(--bg-card);
  border: 1px solid rgba(255,77,109,0.2);
  border-radius: var(--radius-xl);
  padding: 48px 32px 40px;
  max-width: 360px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-spark);
  transform: scale(0.8) translateY(40px);
  transition: transform 0.4s var(--ease-snap);
}

.match-modal-overlay.active .match-modal {
  transform: scale(1) translateY(0);
}

.match-modal-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-style: italic;
  background: linear-gradient(135deg, var(--spark), var(--electric));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.match-avatars {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: -20px;
  margin: 24px 0;
}

.match-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-card);
}

.match-avatar:first-child { transform: translateX(15px); }
.match-avatar:last-child  { transform: translateX(-15px); }

.match-heart {
  width: 40px;
  height: 40px;
  background: var(--spark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 1;
  animation: heartBeat 0.6s var(--ease-snap) 0.3s both;
}

@keyframes heartBeat {
  0% { transform: scale(0); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ============================================================
   CHAT
   ============================================================ */

.chat-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  height: calc(100vh - 64px);
}

.chat-sidebar {
  border-right: 1px solid rgba(255,255,255,0.05);
  overflow-y: auto;
  background: var(--bg-deep);
}

.chat-sidebar-header {
  padding: 24px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: sticky;
  top: 0;
  background: var(--bg-deep);
  z-index: 1;
}

.chat-list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.chat-list-item:hover, .chat-list-item.active {
  background: rgba(255,77,109,0.07);
}

.chat-avatar-wrap { position: relative; flex-shrink: 0; }

.chat-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.online-dot {
  position: absolute;
  bottom: 2px; right: 2px;
  width: 12px; height: 12px;
  background: #00e676;
  border-radius: 50%;
  border: 2px solid var(--bg-deep);
}

.chat-list-name {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.chat-list-preview {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-unread {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  background: var(--spark);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

.chat-main {
  display: flex;
  flex-direction: column;
  background: var(--bg-void);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: var(--bg-deep);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  display: flex;
  gap: 10px;
  max-width: 70%;
}

.chat-msg.mine {
  margin-left: auto;
  flex-direction: row-reverse;
}

.chat-bubble {
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid rgba(255,255,255,0.06);
}

.chat-msg.mine .chat-bubble {
  background: linear-gradient(135deg, #ff4d6d, #c77dff);
  border: none;
  color: #fff;
}

.chat-input-area {
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
  background: var(--bg-deep);
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.chat-input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  color: var(--text-primary);
  resize: none;
  max-height: 120px;
  line-height: 1.5;
  transition: border-color 0.2s;
}

.chat-input:focus {
  outline: none;
  border-color: rgba(255,77,109,0.4);
}

/* ============================================================
   PROFILE PAGE
   ============================================================ */

.profile-page { max-width: 480px; margin: 0 auto; padding: 24px 20px 100px; }

.profile-header {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 24px;
  aspect-ratio: 3/4;
}

.profile-header-img { width: 100%; height: 100%; object-fit: cover; }
.profile-header-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
}
.profile-header-info {
  position: absolute; bottom: 24px; left: 24px; right: 24px;
}

.profile-completion {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}

.progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 10px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--spark), var(--electric));
  border-radius: var(--radius-full);
  transition: width 0.6s var(--ease-smooth);
}

/* ============================================================
   PREMIUM / SUBSCRIPTION
   ============================================================ */

.premium-banner {
  background: linear-gradient(135deg, rgba(255,209,102,0.1), rgba(199,125,255,0.1));
  border: 1px solid rgba(255,209,102,0.25);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.premium-icon { font-size: 2rem; }
.premium-title { font-weight: 600; color: var(--gold); margin-bottom: 4px; }
.premium-desc { font-size: 0.8125rem; color: var(--text-muted); }

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
}

.plan-card:hover { border-color: rgba(255,77,109,0.4); transform: translateY(-2px); }
.plan-card.featured { border-color: var(--spark); box-shadow: var(--shadow-spark); }

.plan-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--spark);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.plan-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.plan-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 12px 0 4px;
}

.plan-period { font-size: 0.8125rem; color: var(--text-muted); }

/* ============================================================
   BOTTOM NAV (mobile)
   ============================================================ */

.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  background: rgba(10,8,18,0.92);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  padding: 0 8px;
  padding-bottom: env(safe-area-inset-bottom);
  height: 64px;
}

.nav-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.2s;
  position: relative;
  padding: 8px 0;
}

.nav-tab.active { color: var(--spark); }

.nav-tab-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.nav-badge {
  position: absolute;
  top: 6px; right: calc(50% - 18px);
  background: var(--spark);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg-void);
}

/* ============================================================
   DISCOVERY FILTERS
   ============================================================ */

.filters-panel {
  background: var(--bg-deep);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
}

.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.1);
  outline: none;
  margin: 12px 0;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--spark);
  cursor: pointer;
  box-shadow: var(--shadow-spark);
  border: 2px solid var(--bg-card);
  transition: transform 0.2s;
}

.range-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }

/* ============================================================
   NOTIFICATIONS
   ============================================================ */

.toast {
  position: fixed;
  top: 80px; right: 20px;
  z-index: 9999;
  background: var(--bg-elevated);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  max-width: 320px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--shadow-card);
  transform: translateX(120%);
  transition: transform 0.4s var(--ease-snap);
}

.toast.show { transform: translateX(0); }
.toast-icon { font-size: 1.5rem; flex-shrink: 0; }
.toast-title { font-weight: 500; font-size: 0.9375rem; margin-bottom: 2px; }
.toast-body { font-size: 0.8125rem; color: var(--text-muted); }

/* ============================================================
   SKELETON LOADERS
   ============================================================ */

.skeleton {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.04) 0%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0.04) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

@keyframes sparkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.95); }
}

.animate-fade-up   { animation: fadeInUp 0.6s var(--ease-out) both; }
.animate-fade      { animation: fadeIn 0.4s var(--ease-out) both; }
.animate-float     { animation: float 4s ease-in-out infinite; }
.animate-sparkle   { animation: sparkle 2s ease-in-out infinite; }

[data-delay="1"] { animation-delay: 0.1s; }
[data-delay="2"] { animation-delay: 0.2s; }
[data-delay="3"] { animation-delay: 0.3s; }
[data-delay="4"] { animation-delay: 0.4s; }
[data-delay="5"] { animation-delay: 0.5s; }
[data-delay="6"] { animation-delay: 0.6s; }

/* ============================================================
   UTILITIES
   ============================================================ */

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.p-4 { padding: 16px; }
.p-6 { padding: 24px; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.text-spark { color: var(--spark); }
.text-gold { color: var(--gold); }
.text-electric { color: var(--electric); }
.hidden { display: none !important; }

.divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 20px 0;
}

.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 500;
}
.badge-spark { background: rgba(255,77,109,0.15); color: var(--spark); border: 1px solid rgba(255,77,109,0.3); }
.badge-gold  { background: rgba(255,209,102,0.15); color: var(--gold); border: 1px solid rgba(255,209,102,0.3); }
.badge-electric { background: rgba(199,125,255,0.15); color: var(--electric); border: 1px solid rgba(199,125,255,0.3); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .hero-float-cards { display: none; }
  .chat-layout { grid-template-columns: 1fr; }
  .chat-sidebar { display: none; }
  .chat-sidebar.open { display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 200; }
  .plans-grid { grid-template-columns: 1fr; max-width: 280px; margin: 32px auto; }
  .hero { padding: 40px 20px 80px; min-height: calc(100vh - 64px); }
}

@media (min-width: 769px) {
  .bottom-nav { display: none; }
}

/* ============================================================
   SCROLLBAR
   ============================================================ */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ============================================================
   PRINT
   ============================================================ */
@media print { .bottom-nav, .site-header { display: none; } }
