/* ============================================================
   landing.css — Complete stylesheet for DateAll redesign
   Palette: Gold #C49A2A / #E8C060, Rose #C94060, White #FFF, Cream #F9F5EE
   Fonts: Playfair Display (headings) + Inter (body) via Google Fonts
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  --gold: #C49A2A;
  --gold-light: #E8C060;
  --gold-dark: #9A7520;
  --gold-bg: #FBF6E9;
  --rose: #C94060;
  --rose-light: #E86080;
  --cream: #F9F5EE;
  --cream-dark: #F0E8D8;
  --dark: #1A0A05;
  --dark-soft: #3A2010;
  --text: #4A3020;
  --text-light: #7A6050;
  --border: #E8D8C0;
  --white: #FFFFFF;
  --shadow: 0 4px 24px rgba(26,10,5,0.10);
  --shadow-lg: 0 8px 48px rgba(26,10,5,0.18);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.2s ease;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Typography helpers ────────────────────────────────────── */
.serif { font-family: 'Playfair Display', serif; }
h1,h2,h3 { font-family: 'Playfair Display', serif; }

/* ── Buttons ──────────────────────────────────────────────── */
.gold-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--dark);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(196,154,42,0.35);
  white-space: nowrap;
}
.gold-btn:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  box-shadow: 0 4px 20px rgba(196,154,42,0.5);
  transform: translateY(-1px);
}
.gold-btn.large { padding: 16px 40px; font-size: 1.1rem; }
.gold-btn.outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
  box-shadow: none;
}
.gold-btn.outline:hover { background: var(--gold-bg); }

.rose-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--rose);
  color: #fff;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}
.rose-btn:hover { background: var(--rose-light); transform: translateY(-1px); }

/* ── Toast ────────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 30px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--dark);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  pointer-events: all;
  animation: toastIn 0.3s ease;
}
.toast.success { background: #2e7d32; }
.toast.error   { background: #c62828; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   LANDING PAGE
   ============================================================ */

#landing-page { display: block; }

/* ── LP Header ────────────────────────────────────────────── */
.lp-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lp-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.5px;
}
.lp-logo span { color: var(--rose); }
.lp-nav { display: flex; align-items: center; gap: 32px; }
.lp-nav a {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.lp-nav a:hover { color: var(--gold); }
.lp-header-actions { display: flex; align-items: center; gap: 12px; }
.lp-header-actions .ghost-btn {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  padding: 8px 18px;
  border-radius: 50px;
  transition: var(--transition);
}
.lp-header-actions .ghost-btn:hover { color: var(--gold); background: var(--gold-bg); }

/* ── LP Hero ──────────────────────────────────────────────── */
.lp-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #3A1020 50%, #2A0818 100%);
  color: #fff;
  padding: 80px 40px 70px;
  display: flex;
  align-items: center;
  gap: 60px;
  min-height: 600px;
  position: relative;
  overflow: hidden;
}
.lp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 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='%23C49A2A' fill-opacity='0.04'%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");
}
.lp-hero-content {
  flex: 1;
  max-width: 540px;
  position: relative;
  z-index: 2;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(196,154,42,0.2);
  border: 1px solid rgba(196,154,42,0.4);
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 24px;
}
.lp-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.18;
  color: #fff;
  margin-bottom: 20px;
}
.lp-hero h1 em { font-style: italic; color: var(--gold-light); }
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-role-row {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.hero-role-pill {
  flex: 1;
  padding: 12px 16px;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.hero-role-pill:hover { border-color: var(--gold-light); color: #fff; background: rgba(196,154,42,0.15); }
.hero-role-pill.active {
  border-color: var(--gold);
  background: rgba(196,154,42,0.25);
  color: var(--gold-light);
  font-weight: 600;
}
.hero-email-row {
  display: flex;
  gap: 10px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  padding: 6px 6px 6px 20px;
  align-items: center;
}
.hero-email-row input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.95rem;
}
.hero-email-row input::placeholder { color: rgba(255,255,255,0.5); }
.hero-mosaic {
  flex: 1;
  max-width: 480px;
  position: relative;
  z-index: 2;
}
.mosaic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.mosaic-cell {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: rgba(255,255,255,0.08);
  position: relative;
}
.mosaic-cell img { width: 100%; height: 100%; object-fit: cover; }
.mosaic-cell .mc-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  padding: 20px 8px 8px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
}
.mosaic-cell:nth-child(2) { transform: translateY(16px); }

/* ── LP Stats Bar ─────────────────────────────────────────── */
.lp-stats {
  background: var(--gold-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 40px;
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
}
.stat-label { font-size: 0.85rem; color: var(--text-light); font-weight: 500; }

/* ── LP Sections ──────────────────────────────────────────── */
.lp-section {
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.lp-section.full-width { max-width: none; }
.section-tag {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}
.section-sub {
  color: var(--text-light);
  font-size: 1rem;
  max-width: 560px;
  line-height: 1.7;
}

/* ── Members Grid (landing featured) ─────────────────────── */
.lp-members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.lpm-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.lpm-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.lpm-card-photo {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--cream-dark);
  position: relative;
}
.lpm-card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.lpm-card:hover .lpm-card-photo img { transform: scale(1.05); }
.lpm-card-badges {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.badge-v {
  background: rgba(196,154,42,0.9);
  color: var(--dark);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
}
.lpm-card-info {
  padding: 14px 16px;
}
.lpm-card-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}
.lpm-card-meta {
  font-size: 0.8rem;
  color: var(--text-light);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.lpm-card-meta span { display: flex; align-items: center; gap: 3px; }
.lp-members-cta { text-align: center; margin-top: 40px; }

/* ── How It Works ─────────────────────────────────────────── */
.lp-steps-bg { background: var(--cream); }
.lp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
}
.step-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.step-card:hover { transform: translateY(-4px); }
.step-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(196,154,42,0.3);
}
.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}
.step-title { font-size: 1.1rem; font-weight: 600; color: var(--dark); margin-bottom: 10px; }
.step-desc { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }

/* ── Features Grid ────────────────────────────────────────── */
.lp-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.feat-card {
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.feat-card:hover { border-color: var(--gold); box-shadow: 0 4px 20px rgba(196,154,42,0.12); }
.feat-icon { font-size: 2rem; margin-bottom: 16px; }
.feat-title { font-size: 1rem; font-weight: 600; color: var(--dark); margin-bottom: 8px; }
.feat-desc { font-size: 0.875rem; color: var(--text-light); line-height: 1.6; }

/* ── Testimonials ─────────────────────────────────────────── */
.lp-testimonials-bg { background: linear-gradient(135deg, var(--dark) 0%, #3A1020 100%); }
.lp-testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
.testi-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}
.testi-stars { color: var(--gold-light); font-size: 1rem; margin-bottom: 14px; letter-spacing: 2px; }
.testi-text { font-size: 0.95rem; color: rgba(255,255,255,0.85); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold-bg);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--gold-dark);
  overflow: hidden;
}
.testi-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testi-name { font-size: 0.9rem; font-weight: 600; color: #fff; }
.testi-role { font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.lp-section .section-title.light { color: #fff; }
.lp-section .section-sub.light { color: rgba(255,255,255,0.7); }

/* ── CTA Banner ───────────────────────────────────────────── */
.lp-cta-banner {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-light) 100%);
  padding: 80px 40px;
  text-align: center;
}
.lp-cta-banner h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); color: var(--dark); margin-bottom: 16px; }
.lp-cta-banner p { font-size: 1.05rem; color: var(--dark-soft); margin-bottom: 36px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--dark);
  color: var(--gold-light);
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 36px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}
.cta-btn-dark:hover { background: var(--dark-soft); transform: translateY(-2px); }

/* ── Footer ───────────────────────────────────────────────── */
.lp-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 40px 30px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .lp-logo { font-size: 1.4rem; margin-bottom: 16px; display: block; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; max-width: 240px; }
.footer-col h5 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 0.875rem; color: rgba(255,255,255,0.65); margin-bottom: 10px; transition: color var(--transition); }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ============================================================
   AUTH MODALS
   ============================================================ */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.auth-modal {
  background: var(--white);
  border-radius: 24px;
  width: 100%;
  max-width: 460px;
  padding: 40px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
  animation: slideUp 0.3s ease;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
}
.modal-close:hover { background: var(--cream-dark); color: var(--dark); }
.modal-logo { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--gold); margin-bottom: 8px; }
.modal-logo span { color: var(--rose); }
.modal-title { font-size: 1.35rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.modal-sub { font-size: 0.875rem; color: var(--text-light); margin-bottom: 28px; }

/* Role Selection */
.af-role-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.af-role-opt {
  padding: 16px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  background: var(--cream);
}
.af-role-opt:hover { border-color: var(--gold-light); background: var(--gold-bg); }
.af-role-opt.active { border-color: var(--gold); background: var(--gold-bg); }
.af-role-opt .role-icon { font-size: 1.6rem; margin-bottom: 6px; }
.af-role-opt .role-name { font-size: 0.85rem; font-weight: 700; color: var(--dark); display: block; }
.af-role-opt .role-sub { font-size: 0.75rem; color: var(--text-light); }

/* Form fields */
.af-field { margin-bottom: 16px; }
.af-field label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.af-field input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--cream);
  outline: none;
  transition: border-color var(--transition);
}
.af-field input:focus { border-color: var(--gold); background: #fff; }
.af-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.af-submit { width: 100%; margin-top: 8px; padding: 14px; font-size: 1rem; }
.af-switch { text-align: center; margin-top: 20px; font-size: 0.875rem; color: var(--text-light); }
.af-switch a { color: var(--gold); font-weight: 600; cursor: pointer; }
.af-switch a:hover { text-decoration: underline; }
.af-terms { font-size: 0.75rem; color: var(--text-light); text-align: center; margin-top: 14px; line-height: 1.6; }
.af-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-light);
  font-size: 0.8rem;
  margin: 20px 0;
}
.af-divider::before, .af-divider::after { content: ''; flex: 1; border-top: 1px solid var(--border); }

/* ============================================================
   ONBOARDING OVERLAYS
   ============================================================ */

.welcome-overlay, .tips-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.welcome-card {
  background: var(--white);
  border-radius: 28px;
  padding: 48px 40px;
  max-width: 520px;
  width: 100%;
  text-align: center;
  box-shadow: 0 32px 80px rgba(0,0,0,0.4);
}
.welcome-icon { font-size: 3rem; margin-bottom: 20px; }
.welcome-card h2 { font-size: 1.8rem; color: var(--dark); margin-bottom: 12px; }
.welcome-card p { color: var(--text-light); line-height: 1.7; margin-bottom: 28px; }
.welcome-perks { list-style: none; text-align: left; margin-bottom: 32px; display: flex; flex-direction: column; gap: 10px; }
.welcome-perks li { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; color: var(--text); padding: 10px 16px; background: var(--cream); border-radius: 10px; }
.welcome-perks li span:first-child { font-size: 1.2rem; }
.tips-card {
  background: var(--white);
  border-radius: 28px;
  padding: 40px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 32px 80px rgba(0,0,0,0.4);
}
.tips-card h3 { font-size: 1.4rem; color: var(--dark); margin-bottom: 20px; }
.tip-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.tip-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px; background: var(--cream); border-radius: var(--radius); }
.tip-icon { font-size: 1.3rem; flex-shrink: 0; }
.tip-text strong { display: block; font-size: 0.9rem; color: var(--dark); margin-bottom: 3px; }
.tip-text p { font-size: 0.82rem; color: var(--text-light); }

/* ============================================================
   APP SHELL
   ============================================================ */

#app-shell { display: none; flex-direction: column; height: 100vh; overflow: hidden; }
#app-shell.visible { display: flex; }

/* ── App Nav ──────────────────────────────────────────────── */
.app-nav {
  height: 64px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 32px;
  flex-shrink: 0;
  z-index: 100;
}
.app-nav-logo { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; color: var(--gold); }
.app-nav-logo span { color: var(--rose); }
.app-nav-links { display: flex; gap: 4px; flex: 1; }
.app-nav-link {
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
.app-nav-link:hover { background: var(--cream); color: var(--text); }
.app-nav-link.active { background: var(--gold-bg); color: var(--gold-dark); font-weight: 600; }
.app-nav-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.boost-nav-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--dark);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(196,154,42,0.3);
}
.boost-nav-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(196,154,42,0.45); }
.user-avatar-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold-bg);
  border: 2px solid var(--gold);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--gold-dark);
  font-size: 0.9rem;
}
.user-avatar-btn img { width: 100%; height: 100%; object-fit: cover; }
.user-avatar-btn:hover { border-color: var(--gold-light); }
.user-menu-wrap { position: relative; }
.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  overflow: hidden;
  display: none;
}
.user-dropdown.open { display: block; animation: fadeIn 0.15s ease; }
.user-dropdown .ud-header { padding: 16px; border-bottom: 1px solid var(--border); }
.user-dropdown .ud-header .ud-name { font-weight: 600; font-size: 0.95rem; color: var(--dark); }
.user-dropdown .ud-header .ud-email { font-size: 0.8rem; color: var(--text-light); }
.user-dropdown a, .user-dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 0.875rem;
  color: var(--text);
  width: 100%;
  transition: background var(--transition);
}
.user-dropdown a:hover, .user-dropdown button:hover { background: var(--cream); }
.user-dropdown .ud-logout { color: var(--rose); border-top: 1px solid var(--border); }

/* ── App Body ─────────────────────────────────────────────── */
.app-body {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.app-screen {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  display: none;
}
.app-screen.active { display: block; }

/* ── Browse Screen ────────────────────────────────────────── */
.browse-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  height: 100%;
  overflow: hidden;
}
.browse-sidebar {
  background: var(--cream);
  border-right: 1px solid var(--border);
  padding: 24px 20px;
  overflow-y: auto;
  height: 100%;
}
.browse-sidebar h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.filter-group { margin-bottom: 24px; }
.filter-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-light); margin-bottom: 10px; display: block; }
.filter-range { width: 100%; }
.filter-range-display { font-size: 0.875rem; color: var(--gold-dark); font-weight: 600; margin-bottom: 8px; }
.range-inputs { display: flex; gap: 8px; align-items: center; }
.range-inputs input[type="range"] { flex: 1; accent-color: var(--gold); }
.range-inputs span { font-size: 0.8rem; color: var(--text-light); }
.filter-toggle-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.filter-toggle-row label { font-size: 0.875rem; color: var(--text); }
.toggle-switch { position: relative; width: 42px; height: 24px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: var(--transition);
}
input:checked + .toggle-slider { background: var(--gold); }
input:checked + .toggle-slider::before { transform: translateX(18px); }
.filter-apply-row { display: flex; gap: 8px; margin-top: 28px; }
.filter-apply-row button { flex: 1; padding: 10px; border-radius: 50px; font-size: 0.875rem; font-weight: 600; cursor: pointer; transition: var(--transition); }
.filter-apply-btn { background: var(--gold); color: var(--dark); border: none; }
.filter-apply-btn:hover { background: var(--gold-light); }
.filter-reset-btn { background: none; border: 1.5px solid var(--border); color: var(--text-light); }
.filter-reset-btn:hover { border-color: var(--text-light); color: var(--text); }
.browse-main {
  overflow-y: auto;
  height: 100%;
  padding: 28px 32px;
}
.browse-main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.browse-main-header h2 { font-size: 1.2rem; font-weight: 700; color: var(--dark); }
.browse-count { font-size: 0.85rem; color: var(--text-light); }
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

/* Profile Card (browse grid) */
.profile-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--border);
}
.profile-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.pc-photo {
  aspect-ratio: 3/4;
  background: var(--cream-dark);
  overflow: hidden;
  position: relative;
}
.pc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.profile-card:hover .pc-photo img { transform: scale(1.06); }
.pc-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
  font-size: 3rem;
}
.pc-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pc-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 50px;
  backdrop-filter: blur(8px);
  letter-spacing: 0.5px;
}
.pc-badge.premium { background: rgba(196,154,42,0.9); color: var(--dark); }
.pc-badge.verified { background: rgba(46,125,50,0.9); color: #fff; }
.pc-online {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 10px;
  height: 10px;
  background: #4caf50;
  border-radius: 50%;
  border: 2px solid #fff;
}
.pc-info { padding: 14px 16px; }
.pc-name { font-size: 1rem; font-weight: 600; color: var(--dark); margin-bottom: 4px; }
.pc-meta { font-size: 0.8rem; color: var(--text-light); display: flex; gap: 10px; flex-wrap: wrap; }
.pc-actions {
  padding: 10px 16px 14px;
  display: flex;
  gap: 8px;
}
.pc-like-btn, .pc-pass-btn {
  flex: 1;
  padding: 8px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.pc-like-btn { background: var(--gold-bg); color: var(--gold-dark); }
.pc-like-btn:hover { background: var(--gold); color: var(--dark); }
.pc-pass-btn { background: var(--cream); color: var(--text-light); }
.pc-pass-btn:hover { background: var(--cream-dark); color: var(--text); }

/* ── Profile Detail Modal ─────────────────────────────────── */
.profile-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
.profile-modal {
  background: var(--white);
  border-radius: 24px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.45);
  animation: slideUp 0.3s ease;
}
.pmd-photo-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  background: var(--cream-dark);
}
.pmd-photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.pmd-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
}
.pmd-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: var(--transition);
}
.pmd-close:hover { background: #fff; }
.pmd-body { padding: 24px 28px 32px; }
.pmd-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.pmd-name-age { font-size: 1.5rem; font-weight: 700; color: var(--dark); }
.pmd-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 0.85rem; color: var(--text-light); margin-bottom: 16px; }
.pmd-meta span { display: flex; align-items: center; gap: 4px; }
.pmd-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.pmd-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.pmd-badge.premium { background: var(--gold-bg); color: var(--gold-dark); border: 1px solid var(--gold); }
.pmd-badge.verified { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.pmd-bio { font-size: 0.95rem; color: var(--text); line-height: 1.7; margin-bottom: 20px; }
.pmd-interests { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.pmd-interest {
  padding: 6px 14px;
  background: var(--cream);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  border: 1px solid var(--border);
}
.pmd-actions { display: flex; gap: 14px; }
.pmd-pass-btn {
  flex: 1;
  padding: 14px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid var(--border);
  color: var(--text-light);
  background: none;
  cursor: pointer;
  transition: var(--transition);
}
.pmd-pass-btn:hover { border-color: var(--rose); color: var(--rose); }
.pmd-like-btn {
  flex: 2;
  padding: 14px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--dark);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(196,154,42,0.35);
}
.pmd-like-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(196,154,42,0.5); }
.pmd-super-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6060E8, #9060C8);
  color: #fff;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(96,96,232,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pmd-super-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(96,96,232,0.5); }

/* ── Matches Screen ───────────────────────────────────────── */
.matches-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  height: 100%;
  overflow: hidden;
}
.conv-panel {
  border-right: 1px solid var(--border);
  overflow-y: auto;
  background: var(--white);
  height: 100%;
}
.conv-panel-header {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 5;
}
.conv-panel-header h3 { font-size: 1.1rem; font-weight: 700; color: var(--dark); }
#conv-list { padding: 8px 0; }
.conv-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  cursor: pointer;
  transition: background var(--transition);
  border-bottom: 1px solid var(--border);
}
.conv-item:hover { background: var(--cream); }
.conv-item.active { background: var(--gold-bg); }
.conv-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cream-dark);
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-dark);
}
.conv-avatar img { width: 100%; height: 100%; object-fit: cover; }
.conv-info { flex: 1; min-width: 0; }
.conv-name { font-size: 0.95rem; font-weight: 600; color: var(--dark); margin-bottom: 3px; }
.conv-preview { font-size: 0.8rem; color: var(--text-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-time { font-size: 0.75rem; color: var(--text-light); flex-shrink: 0; }
.conv-unread {
  width: 20px;
  height: 20px;
  background: var(--gold);
  color: var(--dark);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.conv-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-light);
}
.conv-empty-icon { font-size: 3rem; margin-bottom: 12px; }
.conv-empty p { font-size: 0.9rem; line-height: 1.6; }
.chat-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--cream);
}
.chat-panel-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.chat-partner-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--cream-dark);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--gold-dark);
}
.chat-partner-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-partner-info h4 { font-size: 0.95rem; font-weight: 700; color: var(--dark); }
.chat-partner-info p { font-size: 0.8rem; color: var(--text-light); }
#chat-msg-list {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.msg-bubble {
  max-width: 72%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.5;
  word-break: break-word;
}
.msg-bubble.mine {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--dark);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.msg-bubble.theirs {
  background: var(--white);
  color: var(--text);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.chat-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}
.chat-empty-icon { font-size: 3.5rem; margin-bottom: 16px; }
.chat-empty p { font-size: 0.9rem; }
.chat-input-bar {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 14px 20px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}
#chat-input {
  flex: 1;
  padding: 12px 18px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-size: 0.9rem;
  outline: none;
  background: var(--cream);
  transition: border-color var(--transition);
}
#chat-input:focus { border-color: var(--gold); background: #fff; }
#chat-send-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--dark);
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(196,154,42,0.3);
}
#chat-send-btn:hover { transform: scale(1.08); }

/* ── Profile Screen (edit) ────────────────────────────────── */
.profile-page { max-width: 860px; margin: 0 auto; padding: 32px 24px 48px; }
.profile-page-header { margin-bottom: 32px; }
.profile-page-header h2 { font-size: 1.5rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.profile-page-header p { color: var(--text-light); font-size: 0.9rem; }
.profile-cards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.profile-card-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.profile-card-block h3 { font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-light); margin-bottom: 20px; }
.pf-field { margin-bottom: 16px; }
.pf-field label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.pf-field input, .pf-field select, .pf-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--dark);
  background: var(--cream);
  outline: none;
  font-family: inherit;
  transition: border-color var(--transition);
}
.pf-field input:focus, .pf-field select:focus, .pf-field textarea:focus { border-color: var(--gold); background: #fff; }
.pf-field textarea { resize: vertical; min-height: 100px; }
.pf-save-btn { width: 100%; padding: 13px; margin-top: 8px; }
.photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.photo-slot {
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  border: 2px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  background: var(--cream);
  cursor: pointer;
  transition: var(--transition);
}
.photo-slot:hover { border-color: var(--gold-light); background: var(--gold-bg); }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.photo-slot .slot-add { font-size: 1.5rem; color: var(--border); }
.photo-slot .slot-del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(201,64,96,0.85);
  color: #fff;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.photo-slot .slot-del:hover { background: var(--rose); }
.boost-card, .referral-card, .verify-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}
.boost-card h3, .referral-card h3, .verify-card h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.boost-card p, .referral-card p, .verify-card p { font-size: 0.875rem; color: var(--text-light); line-height: 1.6; margin-bottom: 16px; }
.boost-card .boost-timer { font-size: 0.8rem; color: var(--gold-dark); font-weight: 600; margin-bottom: 12px; }
.referral-code-row { display: flex; gap: 10px; align-items: center; }
.referral-code-box {
  flex: 1;
  padding: 10px 16px;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold-dark);
  font-size: 0.95rem;
}
.copy-ref-btn {
  padding: 10px 16px;
  background: var(--gold-bg);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius);
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}
.copy-ref-btn:hover { background: var(--gold); color: var(--dark); }
.earn-card {
  background: linear-gradient(135deg, var(--gold-bg) 0%, var(--cream) 100%);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}
.earn-card h3 { font-size: 1rem; font-weight: 700; color: var(--gold-dark); margin-bottom: 8px; }
.earn-card p { font-size: 0.875rem; color: var(--text); line-height: 1.6; }
.verify-types { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.verify-opt {
  padding: 12px 10px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  font-size: 0.8rem;
  transition: var(--transition);
  color: var(--text);
  font-weight: 500;
}
.verify-opt:hover { border-color: var(--gold-light); }
.verify-opt.active { border-color: var(--gold); color: var(--gold-dark); background: var(--gold-bg); }
.verify-drop-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  color: var(--text-light);
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
  background: var(--cream);
}
.verify-drop-area:hover { border-color: var(--gold-light); background: var(--gold-bg); }
.verify-drop-area .drop-icon { font-size: 2rem; margin-bottom: 8px; display: block; }
.settings-section { margin-top: 32px; }
.settings-section h3 { font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-light); margin-bottom: 16px; }
.settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text);
}
.logout-btn {
  width: 100%;
  padding: 13px;
  margin-top: 24px;
  background: var(--rose);
  color: #fff;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.logout-btn:hover { background: var(--rose-light); }

/* ── Mobile Nav ───────────────────────────────────────────── */
.mobile-nav {
  display: none;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 8px 0 env(safe-area-inset-bottom, 8px);
  flex-shrink: 0;
}
.mobile-nav-inner { display: flex; justify-content: space-around; }
.mnav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 0.68rem;
  font-weight: 500;
  font-family: inherit;
}
.mnav-btn .mnav-icon { font-size: 1.3rem; }
.mnav-btn:hover { color: var(--gold); }
.mnav-btn.active { color: var(--gold); }

/* ── Loading / Empty States ───────────────────────────────── */
.browse-loading {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  color: var(--text-light);
}
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-bottom: 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.browse-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
  color: var(--text-light);
}
.browse-empty-icon { font-size: 3.5rem; margin-bottom: 16px; }
.browse-empty p { font-size: 0.9rem; }

/* ── Match Celebration ────────────────────────────────────── */
.match-celebration {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}
.match-card {
  background: linear-gradient(135deg, var(--dark) 0%, #4A1030 100%);
  border-radius: 28px;
  padding: 48px 40px;
  text-align: center;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}
.match-emoji { font-size: 4rem; margin-bottom: 16px; }
.match-card h2 { font-size: 2rem; color: var(--gold-light); margin-bottom: 10px; }
.match-avatars { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 24px 0; }
.match-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  overflow: hidden;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.match-avatar img { width: 100%; height: 100%; object-fit: cover; }
.match-heart { font-size: 2rem; }
.match-card p { color: rgba(255,255,255,0.75); font-size: 0.95rem; margin-bottom: 28px; }
.match-btns { display: flex; gap: 12px; flex-direction: column; }
.match-msg-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--dark);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.match-msg-btn:hover { transform: translateY(-2px); }
.match-keep-btn {
  width: 100%;
  padding: 12px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: var(--transition);
}
.match-keep-btn:hover { background: rgba(255,255,255,0.18); }

/* ── Notification dot ─────────────────────────────────────── */
.notif-dot {
  display: inline-flex;
  width: 8px;
  height: 8px;
  background: var(--rose);
  border-radius: 50%;
  margin-left: 4px;
}

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

@media (max-width: 1100px) {
  .browse-layout { grid-template-columns: 240px 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .lp-hero { flex-direction: column; padding: 60px 24px 50px; min-height: auto; }
  .hero-mosaic { max-width: 100%; order: -1; }
  .mosaic-grid { grid-template-columns: repeat(3, 1fr); max-width: 400px; margin: 0 auto; }
  .lp-steps { grid-template-columns: 1fr; }
  .lp-testimonials { grid-template-columns: 1fr; }
  .matches-layout { grid-template-columns: 260px 1fr; }
  .profile-cards-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .lp-header { padding: 0 20px; }
  .lp-nav { display: none; }
  .lp-section { padding: 50px 20px; }
  .lp-stats { gap: 32px; padding: 24px 20px; }
  .lp-members-grid { grid-template-columns: repeat(2, 1fr); }
  .profiles-grid { grid-template-columns: repeat(2, 1fr); }
  .browse-layout { grid-template-columns: 1fr; }
  .browse-sidebar { display: none; }
  .browse-main { padding: 16px; }
  .matches-layout { grid-template-columns: 1fr; }
  .conv-panel { display: none; }
  .conv-panel.mobile-open { display: flex; flex-direction: column; position: absolute; inset: 0; z-index: 10; }
  .app-nav .app-nav-links { display: none; }
  .app-nav .boost-nav-btn span { display: none; }
  .mobile-nav { display: flex; flex-direction: column; }
  .footer-top { grid-template-columns: 1fr; }
  .lp-cta-banner { padding: 50px 24px; }
}

@media (max-width: 480px) {
  .lp-members-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .profiles-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .auth-modal { padding: 28px 20px; }
  .mosaic-grid { grid-template-columns: repeat(2, 1fr); }
  .mosaic-cell:nth-child(3) { display: none; }
  .lp-hero h1 { font-size: 1.9rem; }
  .profile-page { padding: 20px 16px 40px; }
  .pmd-actions { flex-wrap: wrap; }
}

/* ── Utility ──────────────────────────────────────────────── */
.hidden { display: none !important; }
.gold { color: var(--gold); }
.rose { color: var(--rose); }
.text-center { text-align: center; }
.mt-auto { margin-top: auto; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-8 { gap: 8px; }

/* Scrollbar styling */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-light); }

/* ============================================================
   HTML-SPECIFIC CLASS MAP
   (index.html uses these names; mapped to design system above)
   ============================================================ */

/* ── Landing header ───────────────────────────────────────── */
.lp-header-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 1260px; margin: 0 auto; padding: 0 40px; height: 68px; }
.lp-logo-icon { color: var(--gold); margin-right: 4px; }
.lp-logo-text { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--gold); }
.lp-header-btns { display: flex; align-items: center; gap: 10px; }
.lp-btn-signin { font-size: 0.9rem; font-weight: 600; color: var(--text); padding: 8px 18px; border-radius: 50px; background: none; border: none; cursor: pointer; transition: var(--transition); }
.lp-btn-signin:hover { color: var(--gold); background: var(--gold-bg); }
.lp-btn-join { font-size: 0.9rem; font-weight: 700; color: var(--dark); padding: 9px 22px; border-radius: 50px; background: linear-gradient(135deg, var(--gold), var(--gold-light)); border: none; cursor: pointer; transition: var(--transition); box-shadow: 0 2px 12px rgba(196,154,42,.3); }
.lp-btn-join:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(196,154,42,.45); }
.lp-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08); }
.lp-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.lp-hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }
.lp-mobile-menu { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 16px 24px; flex-direction: column; gap: 12px; box-shadow: 0 8px 32px rgba(0,0,0,.1); z-index: 499; }
.lp-mobile-menu.open { display: flex; }
.lp-mobile-menu a { font-size: 0.95rem; font-weight: 500; color: var(--text); padding: 8px 0; border-bottom: 1px solid var(--border); }

/* ── LP Hero ──────────────────────────────────────────────── */
.lp-hero { background: linear-gradient(135deg, var(--dark) 0%, #3A1020 50%, #2A0818 100%); color: #fff; padding: 80px 40px 70px; display: flex; align-items: center; gap: 60px; min-height: 580px; position: relative; overflow: hidden; }
.lp-hero::before { content: ''; position: absolute; inset: 0; background: 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='%23C49A2A' fill-opacity='0.04'%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/svg%3E"); }
.lp-hero-left { flex: 1; max-width: 540px; position: relative; z-index: 2; }
.lp-hero-right { flex: 1; max-width: 480px; position: relative; z-index: 2; }
.lp-hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(196,154,42,.2); border: 1px solid rgba(196,154,42,.4); color: var(--gold-light); font-size: .78rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 6px 14px; border-radius: 50px; margin-bottom: 22px; }
.lp-hero-h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 700; line-height: 1.18; color: #fff; margin-bottom: 18px; }
.lp-gold-text { color: var(--gold-light); font-style: italic; }
.lp-hero-sub { font-size: 1.05rem; color: rgba(255,255,255,.75); margin-bottom: 32px; line-height: 1.7; }
.lp-hero-form { position: relative; z-index: 2; }
.lp-role-pills { display: flex; gap: 10px; margin-bottom: 18px; }
.lp-role-pill { flex: 1; padding: 11px 14px; border-radius: 10px; border: 2px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: rgba(255,255,255,.8); font-size: .875rem; font-weight: 500; cursor: pointer; transition: var(--transition); text-align: center; font-family: inherit; }
.lp-role-pill:hover { border-color: var(--gold-light); color: #fff; background: rgba(196,154,42,.15); }
.lp-role-pill.active { border-color: var(--gold); background: rgba(196,154,42,.25); color: var(--gold-light); font-weight: 700; }
.lp-hero-input-row { display: flex; gap: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 50px; padding: 5px 5px 5px 20px; align-items: center; margin-bottom: 14px; }
.lp-hero-email { flex: 1; background: none; border: none; outline: none; color: #fff; font-size: .95rem; min-width: 0; }
.lp-hero-email::placeholder { color: rgba(255,255,255,.5); }
.lp-hero-cta { padding: 11px 24px; background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--dark); font-weight: 700; font-size: .9rem; border-radius: 50px; border: none; cursor: pointer; white-space: nowrap; transition: var(--transition); font-family: inherit; }
.lp-hero-cta:hover { transform: scale(1.03); }
.lp-hero-perks { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: .8rem; color: rgba(255,255,255,.7); }
.lp-hero-perks span::before { content: ''; }

/* Hero mosaic cards */
.hero-mosaic { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 10px; height: 420px; }
.hm-card { border-radius: 14px; overflow: hidden; position: relative; cursor: pointer; background: rgba(255,255,255,.08); transition: transform .2s ease; }
.hm-card:hover { transform: scale(1.02); }
.hm-1 { grid-row: 1/3; }
.hm-ph { width: 100%; height: 100%; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; min-height: 120px; }
.hm-sil { font-size: 2.5rem; }
.hm-badge { position: absolute; top: 8px; left: 8px; background: rgba(196,154,42,.9); color: var(--dark); font-size: .65rem; font-weight: 700; padding: 3px 8px; border-radius: 50px; }
.hm-info { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,.7)); padding: 20px 10px 8px; }
.hm-name { display: block; font-size: .82rem; font-weight: 600; color: #fff; }
.hm-loc { display: block; font-size: .72rem; color: rgba(255,255,255,.75); }
.hero-online-pill { margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); border-radius: 50px; padding: 8px 16px; font-size: .83rem; color: rgba(255,255,255,.85); }

/* ── Stats bar ────────────────────────────────────────────── */
.lp-stats { background: var(--gold-bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 28px 40px; display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; }
.lp-stat { text-align: center; }
.lp-stat-n { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--gold); display: block; }
.lp-stat-l { font-size: .83rem; color: var(--text-light); font-weight: 500; }
.lp-stat-div { width: 1px; height: 40px; background: var(--border); }

/* ── LP Sections ──────────────────────────────────────────── */
.lp-section { padding: 72px 40px; }
.lp-section-alt { background: var(--cream); }
.lp-section-inner { max-width: 1180px; margin: 0 auto; }
.lp-section-tag { font-size: .75rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 10px; }
.lp-section-h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.6rem, 2.5vw, 2.4rem); font-weight: 700; color: var(--dark); margin-bottom: 14px; }
.lp-section-sub { color: var(--text-light); font-size: .97rem; max-width: 520px; line-height: 1.7; margin-bottom: 0; }

/* ── Members grid (landing) ───────────────────────────────── */
.lp-members-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; margin-top: 40px; }
.lpm-card { border-radius: var(--radius-lg); overflow: hidden; background: var(--cream); box-shadow: var(--shadow); cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.lpm-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.lpm-photo { aspect-ratio: 3/4; background-size: cover; background-position: center; position: relative; background-color: var(--cream-dark); display: flex; align-items: center; justify-content: center; }
.lpm-sil { font-size: 3.5rem; }
.lpm-overlay { position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(0,0,0,.65)); }
.lpm-verified { position: absolute; top: 8px; right: 8px; background: rgba(196,154,42,.9); color: var(--dark); font-size: .65rem; font-weight: 700; padding: 3px 8px; border-radius: 50px; }
.lpm-name-overlay { position: absolute; bottom: 8px; left: 0; right: 0; color: #fff; font-size: .85rem; font-weight: 600; text-align: center; }
.lpm-info { padding: 12px 14px; }
.lpm-loc { font-size: .78rem; color: var(--text-light); margin-bottom: 4px; }
.lpm-occ { font-size: .78rem; color: var(--text); font-weight: 500; }
.lpm-skeleton { aspect-ratio: 3/4; border-radius: var(--radius-lg); background: linear-gradient(90deg, var(--cream) 0%, var(--cream-dark) 50%, var(--cream) 100%); background-size: 200%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.lp-btn-view-more { padding: 12px 32px; border: 2px solid var(--gold); color: var(--gold); font-weight: 600; font-size: .9rem; border-radius: 50px; background: none; cursor: pointer; transition: var(--transition); font-family: inherit; }
.lp-btn-view-more:hover { background: var(--gold); color: var(--dark); }

/* ── How-it-works steps ───────────────────────────────────── */
.lp-steps { display: flex; align-items: flex-start; gap: 20px; margin-top: 40px; flex-wrap: wrap; }
.lp-step { flex: 1; min-width: 200px; text-align: center; padding: 36px 24px; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); transition: transform .2s ease; }
.lp-step:hover { transform: translateY(-4px); }
.lp-step-num { display: inline-block; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--dark); font-weight: 800; font-size: .95rem; line-height: 36px; text-align: center; margin-bottom: 14px; }
.lp-step-icon { font-size: 2.2rem; margin-bottom: 12px; }
.lp-step-title { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.lp-step-desc { font-size: .85rem; color: var(--text-light); line-height: 1.6; }
.lp-step-arrow { font-size: 1.5rem; color: var(--gold-light); padding-top: 60px; flex-shrink: 0; }

/* ── Features grid ────────────────────────────────────────── */
.lp-features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-top: 40px; }
.lp-feature { padding: 28px 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); transition: border-color .2s, box-shadow .2s; }
.lp-feature:hover { border-color: var(--gold); box-shadow: 0 4px 20px rgba(196,154,42,.1); }
.lp-feature-icon { font-size: 2rem; margin-bottom: 14px; }
.lp-feature-title { font-size: .97rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.lp-feature-desc { font-size: .85rem; color: var(--text-light); line-height: 1.6; }

/* ── Testimonials ─────────────────────────────────────────── */
.lp-testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.lp-testi { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 24px; transition: box-shadow .2s; }
.lp-testi:hover { box-shadow: var(--shadow); }
.lp-testi-stars { color: var(--gold); font-size: .95rem; letter-spacing: 2px; margin-bottom: 12px; }
.lp-testi-text { font-size: .9rem; color: var(--text); line-height: 1.7; margin-bottom: 18px; font-style: italic; }
.lp-testi-author { display: flex; align-items: center; gap: 12px; }
.lp-testi-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--gold-bg); border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.lp-testi-name { font-size: .9rem; font-weight: 700; color: var(--dark); }
.lp-testi-city { font-size: .78rem; color: var(--text-light); }

/* ── CTA banner ───────────────────────────────────────────── */
.lp-cta-banner { background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light)); padding: 80px 40px; }
.lp-cta-title { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 3vw, 2.8rem); color: var(--dark); margin-bottom: 14px; }
.lp-cta-sub { font-size: 1.05rem; color: var(--dark-soft); margin-bottom: 32px; max-width: 500px; line-height: 1.7; }
.lp-cta-big-btn { display: inline-flex; align-items: center; gap: 8px; padding: 16px 40px; background: var(--dark); color: var(--gold-light); font-weight: 700; font-size: 1rem; border-radius: 50px; border: none; cursor: pointer; transition: .2s; font-family: inherit; }
.lp-cta-big-btn:hover { background: var(--dark-soft); transform: translateY(-2px); }

/* ── Footer ───────────────────────────────────────────────── */
.lp-footer { background: var(--dark); color: rgba(255,255,255,.7); padding: 56px 40px 28px; }
.lp-footer-inner { max-width: 1180px; margin: 0 auto 40px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; }
.lp-footer-brand {}
.lp-footer-logo { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; color: var(--gold); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.lp-footer-logo span { color: var(--gold-light); }
.lp-footer-tagline { font-size: .82rem; color: rgba(255,255,255,.5); margin-bottom: 12px; }
.lp-footer-email a { color: rgba(255,255,255,.6); font-size: .83rem; transition: color .2s; }
.lp-footer-email a:hover { color: var(--gold-light); }
.lp-footer-col {}
.lp-footer-col-title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.4); margin-bottom: 14px; }
.lp-footer-col a { display: block; font-size: .83rem; color: rgba(255,255,255,.6); margin-bottom: 9px; transition: color .2s; }
.lp-footer-col a:hover { color: var(--gold-light); }
.lp-footer-bottom { max-width: 1180px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .78rem; color: rgba(255,255,255,.35); }

/* ── Auth modals ──────────────────────────────────────────── */
.auth-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; border-radius: 24px; width: calc(100% - 48px); max-width: 460px; padding: 40px; box-shadow: 0 24px 80px rgba(0,0,0,.4); z-index: 1001; max-height: 90vh; overflow-y: auto; animation: slideUp .3s ease; }
.auth-modal-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--cream); border: none; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text-light); transition: .2s; }
.auth-modal-close:hover { background: var(--cream-dark); }
.auth-modal-logo { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; color: var(--gold); margin-bottom: 6px; }
.auth-modal-logo span { color: var(--rose); }
.auth-modal-title { font-size: 1.3rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.auth-modal-sub { font-size: .85rem; color: var(--text-light); margin-bottom: 22px; }
.auth-modal-error { background: #fde8e8; border: 1px solid #f5c2c2; color: #c62828; font-size: .85rem; padding: 10px 14px; border-radius: var(--radius); margin-bottom: 14px; }
.auth-form {}
.af-field { margin-bottom: 14px; }
.af-label { display: block; font-size: .8rem; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.af-label-hint { font-weight: 400; color: var(--text-light); font-size: .75rem; }
.af-input { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: .93rem; color: var(--dark); background: var(--cream); outline: none; transition: border-color .2s; box-sizing: border-box; font-family: inherit; }
.af-input:focus { border-color: var(--gold); background: #fff; }
.af-input-wrap { position: relative; }
.af-input-wrap .af-input { padding-right: 44px; }
.af-eye { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; font-size: .9rem; color: var(--text-light); padding: 4px; }
.af-role-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.af-role-opt { padding: 14px 10px; border: 2px solid var(--border); border-radius: var(--radius); cursor: pointer; text-align: center; background: var(--cream); transition: .2s; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.af-role-opt input { display: none; }
.af-role-opt:hover { border-color: var(--gold-light); background: var(--gold-bg); }
.af-role-opt.active { border-color: var(--gold); background: var(--gold-bg); }
.af-role-emoji { font-size: 1.5rem; }
.af-role-label { font-size: .82rem; font-weight: 700; color: var(--dark); }
.af-role-badge { font-size: .68rem; font-weight: 700; background: var(--gold); color: var(--dark); padding: 2px 8px; border-radius: 50px; }
.af-role-hint { font-size: .8rem; color: var(--text-light); margin-bottom: 12px; background: var(--cream); padding: 8px 12px; border-radius: var(--radius); line-height: 1.5; }
.af-submit { width: 100%; padding: 13px; font-size: .97rem; margin-top: 6px; }
.af-legal { font-size: .73rem; color: var(--text-light); text-align: center; margin-top: 12px; line-height: 1.6; }
.af-legal a { color: var(--gold); }
.auth-modal-switch { text-align: center; margin-top: 18px; font-size: .85rem; color: var(--text-light); }
.auth-modal-switch button { background: none; border: none; color: var(--gold); font-weight: 700; cursor: pointer; font-size: .85rem; font-family: inherit; }

/* ── Welcome overlay ──────────────────────────────────────── */
.welcome-overlay, .tips-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.75); backdrop-filter: blur(8px); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.welcome-modal { background: #fff; border-radius: 28px; padding: 44px 36px; max-width: 500px; width: 100%; box-shadow: 0 32px 80px rgba(0,0,0,.4); }
.welcome-confetti { font-size: 3rem; text-align: center; margin-bottom: 16px; }
.welcome-title { font-family: 'Playfair Display', serif; font-size: 1.7rem; font-weight: 700; color: var(--dark); text-align: center; margin-bottom: 8px; }
.welcome-sub { font-size: .93rem; color: var(--text-light); text-align: center; margin-bottom: 24px; line-height: 1.6; }
.welcome-perks { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.welcome-perk { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--cream); border-radius: 12px; }
.wp-icon { font-size: 1.4rem; flex-shrink: 0; }
.wp-text { flex: 1; }
.wp-t { font-size: .9rem; font-weight: 700; color: var(--dark); }
.wp-s { font-size: .78rem; color: var(--text-light); }
.wp-badge { background: var(--gold); color: var(--dark); font-size: .65rem; font-weight: 800; padding: 3px 8px; border-radius: 50px; flex-shrink: 0; letter-spacing: .5px; }
.welcome-earn { font-size: .85rem; background: var(--gold-bg); border: 1px solid var(--gold); border-radius: 10px; padding: 10px 14px; color: var(--dark); margin-bottom: 22px; text-align: center; }
.welcome-cta-btn { width: 100%; padding: 14px; background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--dark); font-weight: 800; font-size: 1rem; border-radius: 50px; border: none; cursor: pointer; font-family: inherit; transition: .2s; }
.welcome-cta-btn:hover { transform: translateY(-2px); }
.tips-modal { background: #fff; border-radius: 28px; padding: 36px; max-width: 480px; width: 100%; box-shadow: 0 32px 80px rgba(0,0,0,.4); }
.tips-title { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.tips-sub { font-size: .85rem; color: var(--text-light); margin-bottom: 20px; }
.tips-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.tip-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px; background: var(--cream); border-radius: 10px; }
.tip-icon { font-size: 1.3rem; flex-shrink: 0; }
.tip-t { font-size: .88rem; font-weight: 700; color: var(--dark); margin-bottom: 2px; }
.tip-d { font-size: .78rem; color: var(--text-light); line-height: 1.5; }
.tips-done-btn { width: 100%; padding: 13px; background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--dark); font-weight: 800; font-size: .95rem; border-radius: 50px; border: none; cursor: pointer; font-family: inherit; transition: .2s; }

/* ── App nav ──────────────────────────────────────────────── */
#app-shell { display: none; flex-direction: column; height: 100vh; overflow: hidden; }
#app-shell:not(.hidden) { display: flex; }
.app-nav { background: rgba(255,255,255,.97); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); flex-shrink: 0; z-index: 100; }
.app-nav-inner { display: flex; align-items: center; height: 64px; padding: 0 24px; gap: 24px; max-width: 1600px; margin: 0 auto; width: 100%; }
.app-nav-logo { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; color: var(--gold); flex-shrink: 0; }
.app-nav-logo-icon { color: var(--gold-light); }
.app-nav-logo-text { margin-left: 4px; }
.app-nav-links { display: flex; gap: 4px; flex: 1; }
.app-nav-link { padding: 7px 16px; border-radius: 50px; font-size: .875rem; font-weight: 500; color: var(--text-light); cursor: pointer; transition: .2s; background: none; border: none; font-family: inherit; }
.app-nav-link:hover { background: var(--cream); color: var(--text); }
.app-nav-link.active { background: var(--gold-bg); color: var(--gold-dark); font-weight: 700; }
.app-nav-badge { display: inline-flex; width: 18px; height: 18px; background: var(--rose); color: #fff; border-radius: 50%; font-size: .65rem; font-weight: 800; align-items: center; justify-content: center; margin-left: 4px; vertical-align: middle; }
.app-nav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.app-nav-boost-btn { display: flex; align-items: center; gap: 6px; padding: 7px 16px; background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--dark); font-weight: 700; font-size: .82rem; border-radius: 50px; border: none; cursor: pointer; transition: .2s; box-shadow: 0 2px 10px rgba(196,154,42,.3); font-family: inherit; }
.app-nav-boost-btn:hover { transform: translateY(-1px); }
.app-nav-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--gold-bg); border: 2px solid var(--gold); overflow: hidden; cursor: pointer; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--gold-dark); font-size: .9rem; position: relative; }
.app-nav-user-menu { position: absolute; top: calc(100% + 10px); right: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 200px; padding: 12px; z-index: 200; animation: fadeIn .15s ease; }
.anm-name { font-weight: 700; font-size: .93rem; color: var(--dark); margin-bottom: 2px; }
.anm-role { font-size: .78rem; color: var(--text-light); margin-bottom: 10px; }
.anm-divider { border-top: 1px solid var(--border); margin-bottom: 8px; }
.app-nav-user-menu button { display: block; width: 100%; text-align: left; padding: 8px 10px; font-size: .85rem; color: var(--text); border: none; background: none; cursor: pointer; border-radius: 8px; transition: .15s; font-family: inherit; }
.app-nav-user-menu button:hover { background: var(--cream); }

/* ── App body & screens ───────────────────────────────────── */
.app-body { flex: 1; overflow: hidden; position: relative; }
.app-screen { position: absolute; inset: 0; overflow-y: auto; display: none; }
.app-screen.active { display: block; }

/* ── Browse sidebar ───────────────────────────────────────── */
.browse-layout { display: grid; grid-template-columns: 272px 1fr; height: 100%; overflow: hidden; }
.browse-sidebar { background: var(--cream); border-right: 1px solid var(--border); padding: 20px 18px; overflow-y: auto; height: 100%; }
.bs-title { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.bs-earn-card { background: linear-gradient(135deg, var(--gold-bg), var(--cream)); border: 1px solid var(--gold); border-radius: var(--radius); padding: 16px; margin-bottom: 20px; }
.bs-earn-title { font-size: .9rem; font-weight: 800; color: var(--gold-dark); margin-bottom: 4px; }
.bs-earn-sub { font-size: .78rem; color: var(--text-light); margin-bottom: 12px; line-height: 1.4; }
.bs-earn-tiers { display: flex; flex-direction: column; gap: 6px; }
.bs-earn-tier { display: flex; justify-content: space-between; font-size: .78rem; color: var(--text); padding: 6px 8px; background: rgba(196,154,42,.1); border-radius: 6px; }
.bs-earn-amt { font-weight: 700; color: var(--gold-dark); }
.bs-filter-group { margin-bottom: 20px; }
.bs-filter-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--text-light); margin-bottom: 8px; display: block; }
.bs-age-row { display: flex; gap: 8px; align-items: center; }
.bs-age-input { width: 70px; padding: 8px 10px; background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); font-size: .85rem; text-align: center; outline: none; color: var(--dark); font-family: inherit; }
.bs-age-input:focus { border-color: var(--gold); }
.bs-age-sep { color: var(--text-light); font-size: .85rem; }
.bs-location-input { width: 100%; padding: 9px 12px; background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); font-size: .85rem; outline: none; color: var(--dark); font-family: inherit; box-sizing: border-box; }
.bs-location-input:focus { border-color: var(--gold); }
.bs-toggle-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; cursor: pointer; }
.bs-toggle-label { font-size: .85rem; color: var(--text); }
.bs-toggle { width: 40px; height: 22px; border-radius: 11px; background: var(--border); position: relative; cursor: pointer; transition: .2s; flex-shrink: 0; }
.bs-toggle.on { background: var(--gold); }
.bs-toggle-knob { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .2s; }
.bs-toggle.on .bs-toggle-knob { left: 21px; }
.bs-apply-btn { width: 100%; padding: 10px; background: var(--gold); color: var(--dark); font-weight: 700; font-size: .88rem; border: none; border-radius: 50px; cursor: pointer; transition: .2s; font-family: inherit; margin-bottom: 8px; }
.bs-apply-btn:hover { background: var(--gold-light); }
.bs-reset-btn { width: 100%; padding: 9px; background: none; border: 1.5px solid var(--border); color: var(--text-light); font-size: .85rem; border-radius: 50px; cursor: pointer; transition: .2s; font-family: inherit; }
.bs-reset-btn:hover { border-color: var(--text-light); color: var(--text); }
.bs-referral-card { margin-top: 20px; background: var(--gold-bg); border: 1px solid var(--gold); border-radius: var(--radius); padding: 16px; }
.bsr-title { font-size: .88rem; font-weight: 800; color: var(--gold-dark); margin-bottom: 4px; }
.bsr-sub { font-size: .75rem; color: var(--text-light); margin-bottom: 10px; line-height: 1.4; }
.bsr-link-wrap { display: flex; gap: 6px; }
.bsr-link-input { flex: 1; padding: 8px 10px; background: var(--white); border: 1.5px solid var(--border); border-radius: 8px; font-size: .75rem; color: var(--dark); outline: none; min-width: 0; font-family: inherit; }
.bsr-copy { padding: 8px 12px; background: var(--gold); color: var(--dark); font-weight: 700; font-size: .75rem; border: none; border-radius: 8px; cursor: pointer; font-family: inherit; transition: .15s; }
.bsr-copy:hover { background: var(--gold-light); }

/* ── Browse main area ─────────────────────────────────────── */
.browse-main { overflow-y: auto; height: 100%; padding: 24px 28px; }
.browse-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.browse-count { font-size: .88rem; color: var(--text-light); font-weight: 500; }
.browse-filter-toggle { display: none; padding: 7px 16px; background: var(--cream); border: 1.5px solid var(--border); border-radius: 50px; font-size: .83rem; font-weight: 600; color: var(--text); cursor: pointer; font-family: inherit; transition: .2s; }
.browse-filter-toggle:hover { border-color: var(--gold); color: var(--gold-dark); }
.profiles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.browse-load-more { text-align: center; margin-top: 28px; }
.browse-load-more button { padding: 11px 28px; border: 1.5px solid var(--gold); color: var(--gold-dark); font-weight: 600; background: none; border-radius: 50px; cursor: pointer; transition: .2s; font-family: inherit; }
.browse-load-more button:hover { background: var(--gold); color: var(--dark); }
.spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--gold); border-radius: 50%; animation: spin .7s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Conv panel ───────────────────────────────────────────── */
.matches-layout { display: grid; grid-template-columns: 300px 1fr; height: 100%; overflow: hidden; }
.conv-panel { border-right: 1px solid var(--border); overflow-y: auto; background: #fff; height: 100%; display: flex; flex-direction: column; }
.conv-panel-header { padding: 18px 20px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.conv-panel-title { font-size: 1.05rem; font-weight: 700; color: var(--dark); }
.conv-search-wrap { padding: 10px 16px; border-bottom: 1px solid var(--border); }
.conv-search { width: 100%; padding: 8px 14px; background: var(--cream); border: 1.5px solid var(--border); border-radius: 50px; font-size: .85rem; outline: none; font-family: inherit; color: var(--dark); box-sizing: border-box; }
.conv-search:focus { border-color: var(--gold); }
#conv-list { flex: 1; overflow-y: auto; }
.conv-item { display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; border-bottom: 1px solid var(--border); transition: background .15s; }
.conv-item:hover { background: var(--cream); }
.conv-item.active { background: var(--gold-bg); }
.conv-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--gold-bg); border: 2px solid var(--border); overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--gold-dark); font-size: 1rem; }
.conv-avatar img { width: 100%; height: 100%; object-fit: cover; }
.conv-info { flex: 1; min-width: 0; }
.conv-name { font-size: .9rem; font-weight: 700; color: var(--dark); margin-bottom: 3px; }
.conv-preview { font-size: .78rem; color: var(--text-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-time { font-size: .72rem; color: var(--text-light); flex-shrink: 0; }
.conv-unread { width: 20px; height: 20px; background: var(--gold); color: var(--dark); border-radius: 50%; font-size: .65rem; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ── Chat panel ───────────────────────────────────────────── */
.chat-panel { display: flex; flex-direction: column; height: 100%; background: var(--cream); }
.chat-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-light); padding: 40px; text-align: center; }
.chat-active { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.chat-header { background: #fff; border-bottom: 1px solid var(--border); padding: 14px 20px; display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.chat-back-btn { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--text-light); padding: 4px; display: none; }
.chat-header-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--gold-bg); overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.chat-header-name { font-size: .95rem; font-weight: 700; color: var(--dark); }
.chat-header-status { font-size: .75rem; color: var(--text-light); }
#chat-msg-list { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.msg-bubble { max-width: 72%; padding: 11px 15px; border-radius: 18px; font-size: .9rem; line-height: 1.5; word-break: break-word; }
.msg-bubble.mine { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--dark); border-bottom-right-radius: 4px; align-self: flex-end; }
.msg-bubble.theirs { background: #fff; color: var(--text); border-bottom-left-radius: 4px; align-self: flex-start; box-shadow: 0 1px 6px rgba(0,0,0,.07); }
.typing-indicator { padding: 8px 18px; }
.typing-indicator span { display: inline-block; width: 7px; height: 7px; background: var(--text-light); border-radius: 50%; margin: 0 2px; animation: bounce .8s infinite; }
.typing-indicator span:nth-child(2) { animation-delay: .15s; }
.typing-indicator span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%,60%,100%{transform:translateY(0)}30%{transform:translateY(-6px)} }
.chat-input-area { background: #fff; border-top: 1px solid var(--border); padding: 12px 16px; display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.chat-input { flex: 1; padding: 10px 16px; border: 1.5px solid var(--border); border-radius: 50px; font-size: .9rem; outline: none; background: var(--cream); font-family: inherit; color: var(--dark); transition: border-color .2s; }
.chat-input:focus { border-color: var(--gold); background: #fff; }
.chat-send-btn { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--dark); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: .2s; box-shadow: 0 2px 10px rgba(196,154,42,.3); flex-shrink: 0; }
.chat-send-btn:hover { transform: scale(1.08); }
.mnav-badge { width: 16px; height: 16px; background: var(--rose); color: #fff; border-radius: 50%; font-size: .6rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; position: absolute; top: 2px; right: 2px; }

/* ── Profile screen ───────────────────────────────────────── */
.profile-page { max-width: 860px; margin: 0 auto; padding: 28px 24px 48px; }
.pp-hero { display: flex; align-items: center; gap: 24px; margin-bottom: 28px; padding: 24px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.pp-avatar-wrap { position: relative; flex-shrink: 0; }
.pp-avatar { width: 80px; height: 80px; border-radius: 50%; background: var(--gold-bg); border: 3px solid var(--gold); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; overflow: hidden; }
.pp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pp-avatar-edit { position: absolute; bottom: -2px; right: -2px; width: 26px; height: 26px; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .75rem; cursor: pointer; border: 2px solid #fff; }
.pp-hero-info { flex: 1; }
.pp-name { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: var(--dark); }
.pp-meta { font-size: .8rem; color: var(--text-light); margin-top: 4px; }
.pp-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.pp-credit-badge { display: flex; align-items: center; gap: 6px; background: var(--gold-bg); border: 1px solid var(--gold); border-radius: 50px; padding: 6px 14px; margin-left: auto; flex-shrink: 0; }
.pp-credit-icon { font-size: 1rem; }
.pp-credit-val { font-size: .85rem; font-weight: 700; color: var(--gold-dark); }
.pp-body { display: flex; flex-direction: column; gap: 20px; }
.pp-section { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.pp-section-title { font-size: .85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--text-light); margin-bottom: 18px; }
.pp-edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.pp-edit-field label { display: block; font-size: .78rem; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.pp-edit-wide { grid-column: 1 / -1; }
.pp-input { width: 100%; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: .88rem; color: var(--dark); background: var(--cream); outline: none; font-family: inherit; transition: border-color .2s; box-sizing: border-box; }
.pp-input:focus { border-color: var(--gold); background: #fff; }
textarea.pp-input { resize: vertical; min-height: 80px; }
.pp-save-btn { width: 100%; padding: 12px; background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--dark); font-weight: 700; font-size: .93rem; border-radius: 50px; border: none; cursor: pointer; font-family: inherit; transition: .2s; }
.pp-save-btn:hover { transform: translateY(-1px); }
.pp-boost-card { display: flex; align-items: center; gap: 14px; background: var(--gold-bg); border: 1px solid var(--gold); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.pp-boost-icon { font-size: 1.8rem; flex-shrink: 0; }
.pp-boost-info { flex: 1; }
.pp-boost-title { font-size: .9rem; font-weight: 700; color: var(--dark); margin-bottom: 2px; }
.pp-boost-sub { font-size: .78rem; color: var(--text-light); }
.pp-boost-btn { padding: 9px 18px; background: var(--gold); color: var(--dark); font-weight: 700; font-size: .83rem; border-radius: 50px; border: none; cursor: pointer; white-space: nowrap; font-family: inherit; transition: .2s; }
.pp-boost-btn:hover { background: var(--gold-light); }
.pp-earn-tiers { display: flex; flex-direction: column; gap: 8px; }
.pp-earn-tier { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--cream); border-radius: 10px; font-size: .85rem; color: var(--text); }
.pp-earn-amt { font-weight: 700; color: var(--gold-dark); }
.pp-ref-card { background: var(--gold-bg); border: 1px solid var(--gold); border-radius: var(--radius); padding: 16px; }
.pp-ref-title { font-size: .9rem; font-weight: 800; color: var(--gold-dark); margin-bottom: 4px; }
.pp-ref-sub { font-size: .78rem; color: var(--text-light); margin-bottom: 12px; line-height: 1.4; }
.pp-ref-link-row { display: flex; gap: 8px; }
.pp-ref-input { flex: 1; padding: 9px 12px; background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); font-size: .8rem; color: var(--dark); outline: none; min-width: 0; font-family: inherit; cursor: pointer; }
.pp-ref-copy { padding: 9px 16px; background: var(--gold); color: var(--dark); font-weight: 700; font-size: .82rem; border: none; border-radius: var(--radius); cursor: pointer; font-family: inherit; transition: .15s; }
.pp-ref-copy:hover { background: var(--gold-light); }
.pp-verify-card { background: var(--cream); border-radius: var(--radius); padding: 18px; }
.pp-verify-title { font-size: .9rem; font-weight: 800; color: var(--dark); margin-bottom: 4px; }
.pp-verify-sub { font-size: .8rem; color: var(--text-light); margin-bottom: 14px; line-height: 1.5; }
.pp-verify-opts { display: flex; gap: 10px; margin-bottom: 14px; }
.pp-verify-opt { flex: 1; padding: 12px 10px; border: 2px solid var(--border); border-radius: var(--radius); text-align: center; cursor: pointer; font-size: .82rem; font-weight: 500; transition: .2s; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 1.2rem; }
.pp-verify-opt span:last-child { font-size: .75rem; color: var(--text); }
.pp-verify-opt:hover { border-color: var(--gold-light); background: var(--gold-bg); }
.pp-verify-opt.selected { border-color: var(--gold); background: var(--gold-bg); }
.pp-verify-upload { display: flex; align-items: center; gap: 10px; padding: 18px; background: var(--white); border: 2px dashed var(--border); border-radius: var(--radius); cursor: pointer; color: var(--text-light); font-size: .85rem; transition: .2s; }
.pp-verify-upload:hover { border-color: var(--gold-light); background: var(--gold-bg); color: var(--gold-dark); }
.pp-verify-pending { margin-top: 10px; padding: 9px 14px; background: var(--gold-bg); border: 1px solid var(--gold); border-radius: var(--radius); font-size: .82rem; color: var(--gold-dark); font-weight: 600; }
.pp-settings-list { margin-bottom: 16px; }
.pp-setting-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: .88rem; color: var(--text); }
.pp-setting-row a { color: var(--gold); }
.pp-logout-btn { width: 100%; padding: 12px; background: var(--rose); color: #fff; font-weight: 700; font-size: .93rem; border-radius: 50px; border: none; cursor: pointer; font-family: inherit; transition: .2s; }
.pp-logout-btn:hover { background: var(--rose-light); }

/* ── Profile detail modal ─────────────────────────────────── */
.profile-modal-backdrop, #pmd-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.65); backdrop-filter: blur(6px); z-index: 800; animation: fadeIn .2s ease; }
.profile-modal, #profile-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; border-radius: 24px; width: calc(100% - 48px); max-width: 520px; max-height: 90vh; overflow-y: auto; box-shadow: 0 24px 80px rgba(0,0,0,.45); z-index: 801; animation: slideUp .3s ease; }
.pmd-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.9); border: none; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 5; transition: .2s; }
.pmd-close:hover { background: #fff; }
.pmd-photo-area { width: 100%; aspect-ratio: 4/3; background-size: cover; background-position: center; background-color: var(--cream-dark); border-radius: 24px 24px 0 0; position: relative; display: flex; align-items: center; justify-content: center; }
.pmd-body { padding: 20px 24px 28px; }
.pmd-name-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.pmd-name { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--dark); }
.pmd-age { font-size: 1.2rem; color: var(--text-light); }
.pmd-verified { font-size: .75rem; font-weight: 700; background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; padding: 3px 10px; border-radius: 50px; margin-left: auto; }
.pmd-location { font-size: .88rem; color: var(--text-light); margin-bottom: 4px; }
.pmd-occupation { font-size: .88rem; color: var(--text-light); margin-bottom: 14px; }
.pmd-bio { font-size: .93rem; color: var(--text); line-height: 1.7; margin-bottom: 16px; }
.pmd-interests { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.pmd-actions { display: flex; gap: 10px; align-items: center; }
.pmd-btn-nope { flex: 1; padding: 13px; border-radius: 50px; border: 2px solid var(--border); color: var(--text-light); background: none; cursor: pointer; font-weight: 700; font-size: .93rem; transition: .2s; font-family: inherit; }
.pmd-btn-nope:hover { border-color: var(--rose); color: var(--rose); }
.pmd-btn-like { flex: 2; padding: 13px; border-radius: 50px; background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--dark); border: none; cursor: pointer; font-weight: 800; font-size: .93rem; transition: .2s; font-family: inherit; box-shadow: 0 4px 16px rgba(196,154,42,.35); }
.pmd-btn-like:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(196,154,42,.5); }
.pmd-btn-super { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg,#6060E8,#9060C8); color: #fff; font-size: 1rem; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: .2s; box-shadow: 0 4px 16px rgba(96,96,232,.35); flex-shrink: 0; }
.pmd-btn-super:hover { transform: translateY(-2px); }

/* ── Mobile nav ───────────────────────────────────────────── */
.mobile-nav { display: none; background: rgba(255,255,255,.97); backdrop-filter: blur(12px); border-top: 1px solid var(--border); padding: 6px 0 env(safe-area-inset-bottom, 6px); flex-shrink: 0; }
.mobile-nav-inner { display: flex; justify-content: space-around; }
.mnav-btn { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 16px; border-radius: 10px; cursor: pointer; background: none; border: none; color: var(--text-light); font-size: .65rem; font-weight: 600; font-family: inherit; transition: .2s; position: relative; }
.mnav-btn:hover, .mnav-btn.active { color: var(--gold-dark); }

/* ── Responsive overrides ─────────────────────────────────── */
@media (max-width: 900px) {
  .lp-hero { flex-direction: column; padding: 56px 24px 48px; min-height: auto; gap: 40px; }
  .lp-hero-right { max-width: 100%; order: -1; }
  .hero-mosaic { height: 300px; }
  .lp-testimonials { grid-template-columns: 1fr; }
  .matches-layout { grid-template-columns: 260px 1fr; }
  .pp-edit-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .lp-header-inner { padding: 0 20px; }
  .lp-nav { display: none; }
  .lp-hamburger { display: flex; }
  .lp-header { position: relative; }
  .lp-section { padding: 48px 20px; }
  .lp-stats { gap: 24px; padding: 22px 20px; }
  .lp-stat-div { display: none; }
  .lp-members-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-steps { flex-direction: column; }
  .lp-step-arrow { display: none; }
  .lp-testimonials { grid-template-columns: 1fr; }
  .lp-footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .browse-layout { grid-template-columns: 1fr; }
  .browse-sidebar { display: none; position: fixed; top: 0; left: 0; width: 80%; height: 100%; z-index: 400; box-shadow: 4px 0 32px rgba(0,0,0,.2); }
  .browse-sidebar.open { display: block; }
  .browse-filter-toggle { display: block; }
  .browse-main { padding: 16px; }
  .matches-layout { grid-template-columns: 1fr; }
  .conv-panel { display: none; }
  .app-nav .app-nav-links { display: none; }
  .app-nav .app-nav-boost-btn { padding: 7px 12px; }
  .mobile-nav { display: flex; flex-direction: column; }
  .chat-back-btn { display: flex; }
  .profile-page { padding: 16px; }
  .pp-hero { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .lp-members-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .profiles-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .auth-modal { padding: 24px 18px; }
  .hero-mosaic { height: 240px; grid-template-columns: repeat(2, 1fr); }
  .hm-card:last-child { display: none; }
  .lp-footer-inner { grid-template-columns: 1fr; }
  .pp-verify-opts { flex-direction: column; }
  .pmd-actions { flex-wrap: wrap; }
}
