/* ==========================================================================
   ConnectSphere — Dark Glassmorphic Design
   Palette: Deep space dark + electric violet + teal accent + coral
   Inspired by modern video calling app UI
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Sora:wght@600;700;800&display=swap');

:root {
  /* Core Palette */
  --bg-base:       #080B14;
  --bg-layer:      #0E1220;
  --bg-card:       rgba(255,255,255,0.055);
  --bg-card-hover: rgba(255,255,255,0.09);
  --glass-border:  rgba(255,255,255,0.10);
  --glass-strong:  rgba(255,255,255,0.15);

  /* Accent Colors */
  --violet:        #7C5CFC;
  --violet-dark:   #5B3FD4;
  --violet-glow:   rgba(124,92,252,0.35);
  --teal:          #00D4C8;
  --teal-glow:     rgba(0,212,200,0.25);
  --coral:         #FF6B6B;
  --coral-glow:    rgba(255,107,107,0.25);
  --green:         #00E096;
  --amber:         #FFB800;

  /* Text */
  --text-primary:  #F0F2FF;
  --text-secondary:#A8AECB;
  --text-muted:    #5E6480;

  /* Gradients */
  --grad-violet:   linear-gradient(135deg, #7C5CFC, #5B3FD4);
  --grad-teal:     linear-gradient(135deg, #00D4C8, #0099CC);
  --grad-coral:    linear-gradient(135deg, #FF6B6B, #FF3D71);
  --grad-hero:     radial-gradient(ellipse at 20% 0%, rgba(124,92,252,0.3) 0%, transparent 60%),
                   radial-gradient(ellipse at 80% 0%, rgba(0,212,200,0.2) 0%, transparent 60%);

  /* Radii */
  --r-sm:  10px;
  --r-md:  16px;
  --r-lg:  22px;
  --r-xl:  30px;
  --r-2xl: 40px;

  --mobile-nav-h: 60px; /* base height of the fixed bottom nav, excluding safe-area inset */

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.06) inset;
  --shadow-glow: 0 8px 32px rgba(124,92,252,0.4);

  /* Type */
  --font-display: 'Sora', sans-serif;
  --font-body:    'Inter', sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 4px; }

/* ---- Background mesh ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(124,92,252,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 90% 10%,  rgba(0,212,200,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 50% 90%,  rgba(255,107,107,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.1; }
h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); }
h3 { font-size: 1.1rem; }
.text-muted { color: var(--text-muted); font-size: 0.875rem; }
.text-secondary { color: var(--text-secondary); }

/* ---- Glass card ---- */
.glass {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--r-lg);
}
.glass:hover { background: var(--bg-card-hover); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 0.65em 1.4em;
  border-radius: 999px; border: none;
  font-family: var(--font-body); font-weight: 600; font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-violet);
  color: #fff;
  box-shadow: 0 6px 20px var(--violet-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px var(--violet-glow); }
.btn-teal {
  background: var(--grad-teal);
  color: #fff;
  box-shadow: 0 6px 20px var(--teal-glow);
}
.btn-ghost {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: var(--bg-card-hover); border-color: var(--glass-strong); }
.btn-danger {
  background: var(--grad-coral);
  color: #fff;
  box-shadow: 0 6px 20px var(--coral-glow);
}
.btn-danger:hover { transform: translateY(-2px); }
.btn-lg { padding: 0.85em 2em; font-size: 1rem; }
.btn-sm { padding: 0.4em 1em; font-size: 0.8rem; }
.btn-block { width: 100%; }
.btn-icon {
  width: 40px; height: 40px; padding: 0;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-size: 1rem;
}

/* ---- Navbar ---- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8,11,20,0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}
.navbar-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo {
  font-family: var(--font-display); font-weight: 800; font-size: 1.25rem;
  color: var(--text-primary); letter-spacing: -0.03em;
  flex-shrink: 0;
}
.logo span {
  background: var(--grad-violet); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a:not(.btn) {
  color: var(--text-secondary); font-weight: 500; font-size: 0.875rem;
  padding: 7px 12px; border-radius: var(--r-sm);
  transition: all 0.15s;
}
.nav-links a:not(.btn):hover, .nav-links a.active { color: var(--text-primary); background: var(--bg-card); }

/* Nav badges */
.nav-badge-wrap { position: relative; }
.nav-badge {
  position: absolute; top: -4px; right: 4px;
  background: var(--coral); color: #fff;
  font-size: 0.6rem; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  border: 2px solid var(--bg-base);
}

/* Nav profile dropdown */
.nav-profile { position: relative; }
.nav-avatar {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover; cursor: pointer;
  border: 2px solid var(--violet); padding: 1px;
}
.nav-dropdown {
  display: none; position: absolute; right: 0; top: calc(100% + 10px);
  background: rgba(14,18,32,0.95); border: 1px solid var(--glass-border);
  border-radius: var(--r-md); box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  padding: 8px; min-width: 168px; backdrop-filter: blur(20px);
}
.nav-profile:hover .nav-dropdown, .nav-dropdown:hover { display: block; }
.nav-dropdown a {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: var(--r-sm);
  color: var(--text-secondary); font-weight: 500; font-size: 0.875rem;
  transition: all 0.15s;
}
.nav-dropdown a:hover { color: var(--text-primary); background: var(--bg-card); }

/* Mobile nav toggle */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text-primary); border-radius: 2px;
  transition: all 0.2s;
}

/* ---- Bottom mobile nav ---- */
.mobile-nav {
  display: none;
  /* Pinned to the viewport, independent of scroll position or page length. */
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  height: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom));
  background: rgba(14,18,32,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  padding: 0 max(4px, env(safe-area-inset-left)) env(safe-area-inset-bottom) max(4px, env(safe-area-inset-right));
  box-sizing: border-box;
}
.mobile-nav-inner {
  display: flex; align-items: stretch;
  height: var(--mobile-nav-h);
  max-width: 560px; margin: 0 auto;
}
.mobile-nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  flex: 1 1 0; min-width: 0; /* equal width columns that shrink together, never overflow */
  padding: 6px 4px;
  color: var(--text-muted);
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color 0.15s;
  position: relative;
}
.mobile-nav-item.active { color: var(--violet); }
.mobile-nav-item svg { width: 22px; height: 22px; flex-shrink: 0; }
.mobile-nav-label {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mobile-nav-dot {
  position: absolute; top: 2px; right: 18%;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--coral); border: 2px solid var(--bg-base);
  display: none;
}

/* ---- Hero / Landing ---- */
.hero {
  padding: 80px 20px 60px;
  text-align: center;
}
.hero-inner { max-width: 680px; margin: 0 auto; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-card); border: 1px solid var(--glass-border);
  border-radius: 999px; padding: 6px 14px;
  font-size: 0.78rem; font-weight: 600; color: var(--teal);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}
.hero h1 { margin-bottom: 20px; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--violet), var(--teal));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 1.05rem; color: var(--text-secondary); margin-bottom: 36px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-disclaimer { margin-top: 20px; font-size: 0.78rem; color: var(--text-muted); }

/* Avatar carousel row (mimics the reference screenshot) */
.hero-avatars {
  display: flex; justify-content: center; gap: -10px; margin-bottom: 36px;
}
.hero-avatars .avatar-ring {
  width: 50px; height: 50px; border-radius: 50%;
  border: 3px solid var(--bg-base);
  background: var(--bg-card);
  margin-left: -10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  overflow: hidden;
}
.hero-avatars .avatar-ring:first-child { margin-left: 0; }

/* ---- Section layouts ---- */
.section { max-width: 1160px; margin: 0 auto; padding: 60px 20px; }
.section-header { text-align: center; margin-bottom: 44px; }
.section-header p { color: var(--text-secondary); margin-top: 10px; font-size: 0.95rem; }

/* Steps / Safety grid */
.steps-grid, .safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}
.step-card, .safety-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: background 0.2s, transform 0.2s;
}
.step-card:hover, .safety-card:hover {
  background: var(--bg-card-hover); transform: translateY(-4px);
}
.step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--grad-violet);
  color: #fff; font-weight: 700; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px var(--violet-glow);
}
.step-card h3 { color: var(--text-primary); margin-bottom: 8px; }
.step-card p { color: var(--text-secondary); font-size: 0.875rem; }
.safety-icon { font-size: 2rem; margin-bottom: 12px; }
.safety-card h3 { color: var(--teal); margin-bottom: 8px; }
.safety-card p { color: var(--text-secondary); font-size: 0.875rem; }

/* Premium teaser banner */
.premium-teaser {
  background: var(--grad-violet);
  border-radius: var(--r-xl);
  padding: 50px 32px;
  text-align: center;
  position: relative; overflow: hidden;
  margin: 0 20px 60px;
  box-shadow: 0 20px 60px var(--violet-glow);
}
.premium-teaser::before {
  content: '';
  position: absolute; top: -40%; right: -10%;
  width: 350px; height: 350px; border-radius: 50%;
  background: rgba(0,212,200,0.2); pointer-events: none;
}
.premium-teaser h2, .premium-teaser p { color: #fff; }
.premium-teaser p { opacity: 0.85; margin: 12px 0 28px; font-size: 1rem; }
.premium-teaser .btn {
  background: rgba(255,255,255,0.95); color: var(--violet-dark);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* ---- Auth pages ---- */
.auth-page {
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100vh - 65px);
  padding: 40px 20px;
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  backdrop-filter: blur(30px);
  padding: clamp(28px, 5vw, 44px);
  width: 100%; max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.06) inset;
}
.auth-card h1 { margin-bottom: 6px; font-size: 1.7rem; }
.auth-sub { color: var(--text-secondary); font-size: 0.875rem; margin-bottom: 26px; }
.auth-alt { text-align: center; margin-top: 20px; font-size: 0.875rem; color: var(--text-secondary); }
.auth-alt a { color: var(--violet); font-weight: 600; }

/* Forms */
.form-group { margin-bottom: 18px; }
.form-group label, form > label {
  display: block; margin-bottom: 14px;
  font-size: 0.8rem; font-weight: 600;
  color: var(--text-secondary); letter-spacing: 0.04em; text-transform: uppercase;
}
form input[type=text], form input[type=email], form input[type=password],
form input[type=date], form select, form textarea {
  width: 100%; margin-top: 6px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
  font-family: var(--font-body); font-size: 0.9rem;
  transition: border-color 0.15s, background 0.15s;
}
form input:focus, form select:focus, form textarea:focus {
  border-color: var(--violet); background: rgba(124,92,252,0.06); outline: none;
}
form select option { background: #1a1d2e; color: var(--text-primary); }
.checkbox-label {
  display: flex; align-items: flex-start; gap: 10px;
  font-weight: 400; font-size: 0.82rem; color: var(--text-secondary);
  margin-bottom: 14px;
}
.checkbox-label input { margin-top: 2px; accent-color: var(--violet); }
.form-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

/* Alerts */
.alert {
  padding: 12px 16px; border-radius: var(--r-sm);
  margin-bottom: 18px; font-size: 0.875rem;
  display: flex; align-items: flex-start; gap: 8px;
}
.alert-error { background: rgba(255,107,107,0.12); border: 1px solid rgba(255,107,107,0.3); color: #FF8FA3; }
.alert-success { background: rgba(0,224,150,0.1); border: 1px solid rgba(0,224,150,0.3); color: #00E096; }

/* ---- Dashboard / Discover ---- */
.discover-page {
  max-width: 1160px; margin: 0 auto; padding: 24px 20px 100px;
  background: radial-gradient(ellipse 90% 50% at 15% 0%, rgba(0,212,200,0.30) 0%, transparent 60%),
              linear-gradient(160deg, #3F63E8 0%, #5B3FD4 65%, #2C2A6E 100%);
}

.discover-greeting { color: rgba(255,255,255,0.8); font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; }

/* Contacts row (like reference image top bubbles) */
.contacts-row {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 0 24px; overflow-x: auto;
  scrollbar-width: none;
}
.contacts-row::-webkit-scrollbar { display: none; }
.contact-bubble {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  flex-shrink: 0; cursor: pointer;
}
.contact-bubble-img {
  position: relative; width: 58px; height: 58px;
}
.contact-bubble-img img {
  width: 58px; height: 58px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(255,255,255,0.1);
  transition: border-color 0.2s;
}
.contact-bubble:hover .contact-bubble-img img { border-color: var(--violet); }
.contact-bubble-status {
  position: absolute; bottom: 2px; right: 2px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--text-muted); border: 2px solid var(--bg-base);
}
.contact-bubble-status.online { background: var(--green); }
.contact-bubble span {
  font-size: 0.68rem; color: var(--text-secondary); font-weight: 500;
  max-width: 60px; text-align: center; overflow: hidden;
  white-space: nowrap; text-overflow: ellipsis;
}

/* Search / filters bar */
.discover-header { margin-bottom: 18px; }
.discover-header h1 { font-size: 1.5rem; margin-bottom: 14px; }

/* Quick-filter chips (Holla-style tabs) */
.discover-chips { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.chip {
  padding: 8px 16px; border-radius: 999px; font-size: 0.8rem; font-weight: 600;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.25); color: rgba(255,255,255,0.85);
  cursor: pointer; transition: all 0.15s; font-family: var(--font-body);
}
.chip:hover { background: rgba(255,255,255,0.22); color: #fff; }
.chip.active { background: #fff; border-color: transparent; color: #3F3ADB; box-shadow: 0 4px 16px rgba(0,0,0,0.25); }

.discover-filters {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.discover-filters input, .discover-filters select {
  padding: 10px 14px;
  background: var(--bg-card); border: 1px solid var(--glass-border);
  border-radius: var(--r-sm); color: var(--text-primary);
  font-size: 0.875rem; font-family: var(--font-body);
}
.discover-filters input:focus, .discover-filters select:focus {
  border-color: var(--violet); outline: none;
}
.discover-filters select option { background: #1a1d2e; }
.premium-hint { font-size: 0.78rem; color: var(--teal); font-weight: 600; }

/* People grid — big, tappable, photo-forward cards (Holla-style) */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.people-empty { text-align: center; padding: 40px 0; color: var(--text-muted); }
.people-sentinel { height: 1px; }

.person-card-photo {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.person-card-photo:hover { transform: translateY(-5px) scale(1.015); box-shadow: 0 16px 44px rgba(0,0,0,0.45); }
.person-card-media { display: block; position: relative; width: 100%; height: 100%; }
.person-card-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.35s ease;
}
.person-card-photo:hover .person-card-media img { transform: scale(1.06); }
.person-card-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.55) 75%, rgba(0,0,0,0.85) 100%);
  pointer-events: none;
}
.person-card-badges {
  position: absolute; top: 10px; left: 10px; right: 10px;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.p-badge {
  font-size: 0.66rem; font-weight: 700; padding: 4px 9px; border-radius: 999px;
  backdrop-filter: blur(6px); color: #fff; letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 4px;
}
.p-badge-online { background: rgba(0,224,150,0.28); border: 1px solid rgba(0,224,150,0.5); }
.p-badge-online i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green); display: inline-block;
  box-shadow: 0 0 0 0 rgba(0,224,150,0.6); animation: pulseDot 1.6s infinite;
}
@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(0,224,150,0.55); }
  70%  { box-shadow: 0 0 0 6px rgba(0,224,150,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,224,150,0); }
}
.p-badge-new { background: rgba(255,107,107,0.28); border: 1px solid rgba(255,107,107,0.5); }

.person-card-info {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px;
  color: #fff;
}
.person-card-info h3 {
  font-size: 0.92rem; font-weight: 700; margin: 0 0 2px; display: flex; align-items: center; gap: 4px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.p-verified { color: var(--teal); font-size: 0.8rem; }
.person-card-info .text-muted { color: rgba(255,255,255,0.75); font-size: 0.72rem; margin-bottom: 2px; }
.person-card-info .person-interests {
  font-size: 0.68rem; color: rgba(255,255,255,0.65);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.person-card-actions {
  position: absolute; top: 10px; right: 10px;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0; transform: translateX(6px);
  transition: opacity 0.15s, transform 0.15s;
}
.person-card-photo:hover .person-card-actions,
.person-card-photo:focus-within .person-card-actions { opacity: 1; transform: translateX(0); }
.pc-action {
  width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(8,11,20,0.65); backdrop-filter: blur(6px); color: #fff; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, transform 0.15s;
}
.pc-action:hover { background: var(--grad-violet); transform: scale(1.08); }

/* Skeleton loading state — keeps the grid feeling instant */
.people-grid-skeleton { margin-top: 12px; }
.skeleton-card {
  aspect-ratio: 3 / 4; border-radius: var(--r-lg);
  background: linear-gradient(100deg, rgba(255,255,255,0.04) 30%, rgba(255,255,255,0.09) 50%, rgba(255,255,255,0.04) 70%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.3s infinite;
}
@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---- Status dots (generic) ---- */
.status-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--text-muted); vertical-align: middle; }
.status-dot.online { background: var(--green); }

/* ---- Profile page ---- */
.profile-page { max-width: 680px; margin: 0 auto; padding: 32px 20px 100px; }
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  backdrop-filter: blur(20px);
  padding: 36px; text-align: center;
  box-shadow: var(--shadow-card);
}
.profile-avatar-lg {
  width: 110px; height: 110px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid var(--violet);
  box-shadow: 0 0 0 6px rgba(124,92,252,0.15);
}
.badge-premium {
  background: var(--grad-coral); color: #fff;
  font-size: 0.62rem; font-weight: 700; padding: 3px 9px;
  border-radius: 999px; vertical-align: middle; text-transform: uppercase;
}
.profile-meta { color: var(--text-secondary); font-size: 0.875rem; margin-top: 4px; }
.profile-bio { margin: 18px 0 6px; color: var(--text-secondary); font-size: 0.9rem; }
.profile-interests { color: var(--teal); font-size: 0.875rem; margin-bottom: 20px; }
.profile-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.profile-edit-form { text-align: left; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--glass-border); }

/* ---- Requests page ---- */
.requests-page { max-width: 760px; margin: 0 auto; padding: 28px 20px 100px; }
.requests-page h1 { margin-bottom: 28px; }
.request-list { margin-bottom: 36px; }
.section-sub-title {
  font-size: 0.75rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.request-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  padding: 14px 16px; margin-bottom: 10px;
  transition: background 0.15s;
}
.request-row:hover { background: var(--bg-card-hover); }
.request-row img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.request-info { flex: 1; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.request-info strong { font-size: 0.9rem; color: var(--text-primary); }
.request-info .text-muted { font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.request-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ---- Messages page ---- */
.messages-page {
  display: grid;
  grid-template-columns: 300px 1fr;
  height: calc(100vh - 65px);
  overflow: hidden;
  max-width: 1160px; margin: 0 auto;
}
.conversations-list {
  border-right: 1px solid var(--glass-border);
  overflow-y: auto; padding: 20px 14px;
  background: rgba(8,11,20,0.5);
}
.conversations-list h2 { font-size: 1.1rem; margin-bottom: 16px; padding: 0 4px; }

/* Tabs for messages (like reference image) */
.msg-tabs {
  display: flex; gap: 4px; margin-bottom: 16px; padding: 4px;
  background: var(--bg-card); border-radius: 999px;
}
.msg-tab {
  flex: 1; padding: 7px; border-radius: 999px;
  text-align: center; font-size: 0.78rem; font-weight: 600; color: var(--text-muted);
  cursor: pointer; transition: all 0.15s;
}
.msg-tab.active { background: var(--grad-violet); color: #fff; }

.conversation-row {
  display: flex; gap: 12px; align-items: center;
  padding: 11px 10px; border-radius: var(--r-md);
  margin-bottom: 3px; transition: background 0.15s; cursor: pointer;
}
.conversation-row:hover { background: var(--bg-card); }
.conversation-row.active { background: rgba(124,92,252,0.15); border: 1px solid rgba(124,92,252,0.25); }
.conversation-row img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.conv-info { flex: 1; overflow: hidden; }
.conv-info strong { display: block; font-size: 0.875rem; color: var(--text-primary); margin-bottom: 2px; }
.conv-info .text-muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.78rem; }
.conv-time { font-size: 0.7rem; color: var(--text-muted); flex-shrink: 0; }

/* Chat panel */
.chat-panel { display: flex; flex-direction: column; overflow: hidden; background: var(--bg-base); }
.chat-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(8,11,20,0.6);
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}
.chat-header img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.chat-header-info { flex: 1; }
.chat-header-info strong { display: block; font-size: 0.9rem; color: var(--text-primary); }
.chat-header-info small { font-size: 0.75rem; color: var(--text-muted); }
.chat-header-actions { display: flex; gap: 8px; }
.chat-messages {
  flex: 1; overflow-y: auto; padding: 20px;
  display: flex; flex-direction: column; gap: 10px;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.06) transparent;
}
.chat-empty {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--text-muted); gap: 10px;
}
.chat-empty-icon { font-size: 3rem; opacity: 0.4; }
.msg-bubble {
  max-width: 68%; padding: 10px 14px;
  border-radius: 18px; font-size: 0.875rem; line-height: 1.5;
}
.msg-bubble.mine {
  align-self: flex-end;
  background: var(--grad-violet); color: #fff;
  border-bottom-right-radius: 4px;
}
.msg-bubble.theirs {
  align-self: flex-start;
  background: var(--bg-card); border: 1px solid var(--glass-border); color: var(--text-primary);
  border-bottom-left-radius: 4px;
}
.chat-input-form {
  display: flex; gap: 10px; padding: 14px 20px;
  border-top: 1px solid var(--glass-border);
  background: rgba(8,11,20,0.6);
  flex-shrink: 0;
}
.chat-input-form input {
  flex: 1; padding: 11px 16px; border-radius: 999px;
  background: var(--bg-card); border: 1px solid var(--glass-border);
  color: var(--text-primary); font-size: 0.875rem; font-family: var(--font-body);
}
.chat-input-form input:focus { border-color: var(--violet); outline: none; }
.chat-input-form button { flex-shrink: 0; }

/* ---- Onboarding / Welcome screen ---- */
.onboard-page {
  min-height: calc(100vh - 65px);
  display: flex; align-items: center; justify-content: center;
  padding: 32px 20px;
  background: radial-gradient(ellipse 90% 60% at 20% -10%, rgba(124,92,252,0.55) 0%, transparent 60%),
              radial-gradient(ellipse 70% 50% at 100% 110%, rgba(0,212,200,0.35) 0%, transparent 60%),
              linear-gradient(160deg, #3F63E8 0%, #5B3FD4 55%, #2C2A6E 100%);
}
.onboard-card {
  width: 100%; max-width: 380px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.onboard-art {
  position: relative; width: 100%; height: 190px; margin-bottom: 28px;
}
.onboard-photo {
  position: absolute; top: 10px;
  width: 128px; height: 158px; border-radius: var(--r-lg);
  background: rgba(255,255,255,0.14);
  border: 4px solid rgba(255,255,255,0.85);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 4.2rem;
}
.onboard-photo-a { left: 18%; transform: rotate(-8deg); background: linear-gradient(160deg,#FFB800,#FF6B6B); }
.onboard-photo-b { right: 18%; top: 28px; transform: rotate(7deg); background: linear-gradient(160deg,#00D4C8,#5B3FD4); }
.onboard-bubble {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  background: #fff; color: #1a1d2e; font-weight: 700; font-size: 0.8rem;
  padding: 8px 16px; border-radius: 999px; box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.onboard-copy h1 {
  color: #fff; font-size: 1.7rem; line-height: 1.2; margin-bottom: 12px;
}
.onboard-copy p {
  color: rgba(255,255,255,0.82); font-size: 0.92rem; line-height: 1.6; margin-bottom: 26px;
}
.onboard-google {
  width: 46px; height: 46px; border-radius: 50%; margin-bottom: 16px;
  background: #fff; color: #1a1d2e; font-family: var(--font-display); font-weight: 700;
  border: none; cursor: pointer; font-size: 1.1rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  transition: transform 0.15s;
}
.onboard-google:hover { transform: translateY(-2px); }
.onboard-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #fff; color: #3F3ADB; box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.onboard-cta:hover { background: #fff; color: #3F3ADB; transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0,0,0,0.3); }
.onboard-signin { margin-top: 16px; color: rgba(255,255,255,0.75); font-size: 0.85rem; }
.onboard-signin a { color: #fff; font-weight: 700; text-decoration: underline; }

@media (max-width: 400px) {
  .onboard-photo { width: 110px; height: 138px; font-size: 3.4rem; }
}


.call-page {
  background: #040608;
  min-height: calc(100vh - 65px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.call-container {
  position: relative; width: 100%;
  max-width: 980px; aspect-ratio: 16/9;
  background: #0A0B10;
  border-radius: var(--r-xl); overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.07);
}
#remoteVideo { width: 100%; height: 100%; object-fit: cover; }
#localVideo {
  position: absolute; bottom: 100px; right: 20px;
  width: min(24%, 150px); height: auto; aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--r-lg);
  border: 3px solid rgba(255,255,255,0.9);
  box-shadow: 0 10px 28px rgba(0,0,0,0.5);
}
.call-overlay-top {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 18px 22px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent);
  color: #fff;
}
.call-avatar-sm { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.call-name { font-weight: 600; font-size: 0.9rem; }
#callStatus { margin-left: auto; font-size: 0.78rem; color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.12); padding: 5px 12px; border-radius: 999px; }
.call-controls {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 14px; align-items: center;
}
.call-btn {
  width: 50px; height: 50px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.14); backdrop-filter: blur(10px); color: #fff; font-size: 1.1rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}
.call-btn:hover { background: rgba(255,255,255,0.26); transform: translateY(-3px); }
.call-btn.active { background: var(--grad-violet); box-shadow: 0 4px 14px var(--violet-glow); }
.call-btn-warn { background: rgba(255,184,0,0.22); }
.call-btn-warn:hover { background: rgba(255,184,0,0.38); }
.call-btn-danger {
  width: 58px; height: 58px;
  background: var(--grad-coral); box-shadow: 0 8px 22px var(--coral-glow);
}
.call-btn-danger:hover { transform: translateY(-3px) scale(1.05); }
.call-chat {
  position: absolute; top: 0; right: 0; bottom: 0; width: 280px;
  background: rgba(8,11,20,0.88); backdrop-filter: blur(16px);
  display: none; flex-direction: column;
  border-left: 1px solid rgba(255,255,255,0.08);
}
.call-chat.open { display: flex; }
.call-chat-messages { flex: 1; overflow-y: auto; padding: 16px; color: var(--text-primary); font-size: 0.82rem; }
.call-chat form { padding: 10px; border-top: 1px solid rgba(255,255,255,0.08); }
.call-chat input {
  width: 100%; padding: 10px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-primary); font-family: var(--font-body);
}

/* ---- Settings & Premium pages ---- */
.settings-page, .premium-page { max-width: 760px; margin: 0 auto; padding: 32px 20px 100px; }
.settings-card {
  background: var(--bg-card); border: 1px solid var(--glass-border);
  border-radius: var(--r-lg); padding: 24px; margin-bottom: 16px;
}
.settings-card h2 { font-size: 1rem; margin-bottom: 16px; color: var(--text-primary); }
.danger-zone { border-color: rgba(255,107,107,0.3); }
.danger-zone h2 { color: var(--coral); }
.plans-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px; margin-top: 24px;
}
.plan-card {
  background: var(--bg-card); border: 1px solid var(--glass-border);
  border-radius: var(--r-lg); padding: 28px; text-align: center;
  transition: all 0.2s;
}
.plan-card:hover, .plan-card.featured {
  background: var(--bg-card-hover);
  border-color: rgba(124,92,252,0.5);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px var(--violet-glow);
}
.plan-price { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; margin: 14px 0; }
.plan-price span { font-size: 0.95rem; font-weight: 400; color: var(--text-muted); }
.plan-card ul { list-style: none; text-align: left; margin: 18px 0; display: flex; flex-direction: column; gap: 8px; }
.plan-card li { font-size: 0.875rem; color: var(--text-secondary); display: flex; align-items: center; gap: 8px; }
.plan-card li::before { content: "✓"; color: var(--green); font-weight: 700; flex-shrink: 0; }
.badge-save { background: var(--green); color: #08150f; font-size: 0.62rem; padding: 3px 8px; border-radius: 999px; font-weight: 700; }

/* ---- Legal pages ---- */
.legal-page { max-width: 760px; margin: 0 auto; padding: 44px 20px 80px; }
.legal-updated { color: var(--text-muted); font-size: 0.82rem; margin-bottom: 28px; }
.legal-page h2 { margin-top: 32px; font-size: 1.1rem; color: var(--teal); }
.legal-page p, .legal-page li { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; margin-bottom: 8px; }

/* ---- Modal ---- */
.modal {
  display: none; position: fixed; inset: 0;
  background: rgba(4,6,8,0.75); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; z-index: 200; padding: 20px;
}
.modal.open { display: flex; }
.modal-content {
  background: rgba(14,18,32,0.96);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl); padding: 30px;
  max-width: 420px; width: 100%;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.modal-content h3 { margin-bottom: 18px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }

/* ---- Toast ---- */
.toast-container {
  position: fixed; top: 76px; right: 16px;
  z-index: 500; display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  background: rgba(14,18,32,0.95);
  border-left: 3px solid var(--violet);
  border-radius: var(--r-sm);
  padding: 12px 16px; box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  font-size: 0.85rem; color: var(--text-primary);
  min-width: 220px; max-width: 320px;
  pointer-events: all;
  animation: toast-in 0.25s cubic-bezier(.34,1.56,.64,1);
}
.toast.error { border-left-color: var(--coral); }
.toast.success { border-left-color: var(--green); }
@keyframes toast-in {
  from { opacity: 0; transform: translateX(20px) scale(0.96); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

/* ---- Incoming Call Banner ---- */
.incoming-call-banner {
  position: fixed; top: 80px; left: 50%; transform: translateX(-50%);
  background: rgba(14,18,32,0.96); border: 1px solid rgba(124,92,252,0.4);
  border-radius: var(--r-2xl); padding: 14px 20px;
  display: flex; align-items: center; gap: 14px;
  z-index: 400; box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 4px rgba(124,92,252,0.15);
  backdrop-filter: blur(20px);
  animation: banner-in 0.4s cubic-bezier(.34,1.56,.64,1);
  max-width: 90vw;
}
@keyframes banner-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-20px) scale(0.92); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
.incoming-call-banner img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--violet); flex-shrink: 0; }
.incoming-call-info { flex: 1; min-width: 0; }
.incoming-call-info strong { display: block; font-size: 0.9rem; color: var(--text-primary); }
.incoming-call-info span { font-size: 0.78rem; color: var(--teal); font-weight: 600; }
.incoming-call-ring { animation: ring-pulse 0.8s ease-in-out infinite; }
@keyframes ring-pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(124,92,252,0.15); } 50% { box-shadow: 0 0 0 10px rgba(124,92,252,0.05); } }
.incoming-call-banner .btn-danger { padding: 8px 16px; font-size: 0.8rem; }
.incoming-call-banner .btn-primary { padding: 8px 16px; font-size: 0.8rem; }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--glass-border);
  padding: 40px 24px; text-align: center;
}
.footer-brand { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; }
.footer-brand span { background: var(--grad-violet); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.footer-links { display: flex; gap: 18px; justify-content: center; margin: 14px 0; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); font-size: 0.82rem; transition: color 0.15s; }
.footer-links a:hover { color: var(--text-secondary); }
.footer-note, .footer-copy { color: var(--text-muted); font-size: 0.75rem; margin: 4px 0; }

/* ---- Admin area (keep functional) ---- */
.admin-notice { background: rgba(255,184,0,0.1); border: 1px solid rgba(255,184,0,0.3); padding: 10px 16px; border-radius: var(--r-sm); color: var(--amber); font-size: 0.875rem; margin-bottom: 16px; }

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

/* Tablet */
@media (max-width: 900px) {
  .messages-page {
    grid-template-columns: 260px 1fr;
  }
}

/* Mobile */
@media (max-width: 720px) {
  /* Show mobile bottom nav, hide desktop nav links */
  .mobile-nav { display: block; }
  .nav-links a:not(.btn):not(.nav-profile *):not(.logo) { display: none; }
  .nav-links > a[href="dashboard.php"],
  .nav-links > a[href="requests.php"],
  .nav-links > a[href="messages.php"],
  .nav-links > a[href="premium.php"] { display: none; }

  /* Messages: stack layout */
  .messages-page { grid-template-columns: 1fr; height: auto; min-height: calc(100vh - 65px); }
  .chat-panel { height: calc(100vh - 65px - var(--mobile-nav-h) - env(safe-area-inset-bottom)); }
  .conversations-list { display: none; }
  .conversations-list.show { display: block; height: 100vh; }

  /* Call page mobile */
  .call-container { aspect-ratio: 9/16; max-width: 100%; }
  #localVideo { width: 100px; bottom: 100px; right: 12px; }
  .call-controls { gap: 6px; padding: 8px 14px; }
  .call-btn { width: 42px; height: 42px; }
  .call-btn-danger { width: 48px; height: 48px; }

  /* Person cards 2-col */
  .people-grid { grid-template-columns: repeat(2, 1fr); }

  /* Bottom padding so content never sits behind the fixed mobile nav */
  .discover-page, .requests-page, .profile-page, .settings-page, .premium-page,
  .legal-page {
    padding-bottom: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom) + 24px);
  }

  /* Auth */
  .auth-card { border-radius: var(--r-lg); }

  /* Hero */
  .hero { padding: 50px 20px 40px; }

  /* Steps 1-col */
  .steps-grid, .safety-grid { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr; }

  /* Premium banner */
  .premium-teaser { margin: 0 12px 40px; padding: 36px 22px; }

  /* Modal */
  .modal-content { padding: 22px 18px; }
}

@media (max-width: 400px) {
  .people-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .navbar-inner { padding: 10px 14px; }
  .mobile-nav-item { font-size: 0.56rem; padding: 6px 2px; }
  .mobile-nav-item svg { width: 20px; height: 20px; }
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ==========================================================================
   Swipe discovery (swipe.php)
   ========================================================================== */
.swipe-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  min-height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
}

/* ---- Preferences step ---- */
.swipe-pref { display: flex; align-items: center; justify-content: center; flex: 1; }
.swipe-pref-card {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 28px 22px;
  backdrop-filter: blur(20px);
}
.swipe-pref-card h1 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 6px; }
.swipe-pref-sub { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 20px; }
.swipe-pref-label {
  display: block; font-size: 0.85rem; color: var(--text-secondary);
  margin-bottom: 8px; font-weight: 500;
}
.swipe-pref-label input {
  width: 100%; margin-top: 6px; padding: 0.75em 1em;
  border-radius: var(--r-sm); border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.05); color: var(--text-primary); font-size: 0.95rem;
}
.swipe-pref-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.swipe-pref-chips .chip {
  background: rgba(255,255,255,0.06); border: 1px solid var(--glass-border); color: var(--text-secondary);
}

/* ---- Stage / topbar ---- */
.swipe-stage { display: flex; flex-direction: column; flex: 1; }
.swipe-topbar { display: flex; justify-content: center; margin-bottom: 14px; }
.swipe-edit-prefs {
  background: var(--bg-card); border: 1px solid var(--glass-border); color: var(--text-secondary);
  padding: 0.5em 1.1em; border-radius: 999px; font-size: 0.82rem; cursor: pointer;
}
.swipe-edit-prefs:hover { color: var(--text-primary); }

/* ---- Card deck ---- */
.swipe-deck {
  position: relative;
  flex: 1;
  min-height: 480px;
  margin-bottom: 20px;
}
.swipe-loading, .swipe-empty {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 14px;
  align-items: center; justify-content: center; color: var(--text-secondary); text-align: center;
}
.swipe-card {
  position: absolute; inset: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-layer);
  box-shadow: var(--shadow-card);
  touch-action: none;
  user-select: none;
  will-change: transform;
  transition: transform 0.25s ease;
}
.swipe-card.swipe-card-dragging { transition: none; cursor: grabbing; }
.swipe-card-top { cursor: grab; }
.swipe-card-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.swipe-card-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.15) 45%, transparent 65%);
}
.swipe-card-badges { position: absolute; top: 16px; left: 16px; display: flex; gap: 6px; }
.swipe-card-info {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 20px;
}
.swipe-card-info h2 { font-family: var(--font-display); font-size: 1.4rem; display: flex; align-items: center; gap: 8px; }
.swipe-card-bio { margin-top: 6px; font-size: 0.9rem; color: var(--text-secondary); }
.swipe-card-interests { margin-top: 4px; font-size: 0.85rem; color: var(--teal); }

.swipe-stamp {
  position: absolute; top: 28px; z-index: 20;
  font-family: var(--font-display); font-weight: 800; font-size: 1.6rem;
  padding: 6px 16px; border-radius: var(--r-sm);
  border: 3px solid; opacity: 0; pointer-events: none;
  text-transform: uppercase; letter-spacing: 1px;
}
.swipe-stamp-like { left: 24px; color: var(--green); border-color: var(--green); transform: rotate(-14deg); }
.swipe-stamp-nope { right: 24px; color: var(--coral); border-color: var(--coral); transform: rotate(14deg); }

/* ---- Action buttons ---- */
.swipe-actions { display: flex; justify-content: center; gap: 26px; }
.swipe-btn {
  width: 64px; height: 64px; border-radius: 50%; border: none; cursor: pointer;
  font-size: 1.5rem; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-card); transition: transform 0.15s ease;
}
.swipe-btn:hover { transform: translateY(-3px) scale(1.05); }
.swipe-btn-pass { background: var(--bg-card); color: var(--coral); border: 1px solid var(--glass-border); }
.swipe-btn-connect { background: var(--grad-teal); color: #04201c; }

/* ---- Match modal ---- */
.match-modal {
  position: fixed; inset: 0; background: rgba(4,6,14,0.82); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; z-index: 200; padding: 20px;
}
.match-modal-inner {
  background: var(--bg-layer); border: 1px solid var(--glass-border); border-radius: var(--r-lg);
  padding: 32px 26px; text-align: center; max-width: 360px; width: 100%; box-shadow: var(--shadow-glow);
}
.match-modal-inner h2 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 10px; }
.match-modal-inner p { color: var(--text-secondary); margin-bottom: 22px; }
.match-modal-actions { display: flex; gap: 10px; }
.match-modal-actions .btn { flex: 1; }

@media (max-width: 480px) {
  .swipe-page { padding: 16px 12px 32px; }
  .swipe-deck { min-height: 62vh; }
}
