/* ── Reset & Variables ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── New design system ── */
  --bg-page:        #fbfaff;
  --bg-section:     #f3f1fb;
  --bg-surface:     #ffffff;
  --text-primary:   #17172a;
  --text-secondary: #4f5266;
  --text-muted:     #8f91a3;
  --border-soft:    #e6e1f3;
  --border-lighter: #eeeaf7;
  --purple:         #7b5ce1;
  --purple-hover:   #6f4fd6;
  --purple-soft:    #f0ebff;
  --purple-border:  #d7c8ff;
  --success-bg:     #dff8e8;
  --success-text:   #15803d;
  --warning:        #f7a81b;
  --radius-sm:      10px;
  --radius-md:      14px;
  --radius-lg:      20px;
  --radius-xl:      24px;
  --shadow-soft:    0 20px 60px rgba(44,35,80,.10);
  --shadow-card:    0 12px 35px rgba(44,35,80,.08);

  /* ── Legacy aliases — keeps existing 2200+ lines of CSS working ── */
  --primary:        var(--purple);
  --primary-dark:   var(--purple-hover);
  --primary-soft:   var(--purple-soft);
  --primary-border: var(--purple-border);
  --secondary:      #14b8a6;
  --bg:             var(--bg-page);
  --bg-soft:        var(--bg-section);
  --surface:        var(--bg-surface);
  --text:           var(--text-primary);
  --text-body:      var(--text-secondary);
  --muted:          var(--text-muted);
  --helper:         var(--text-muted);
  --border:         var(--border-soft);
  --border-light:   var(--border-lighter);
  --success:        var(--success-text);
  --danger:         #ef4444;
  --nav-dark:       #141326;
  --radius:         16px;
  --shadow:         var(--shadow-card);
  --shadow-md:      var(--shadow-soft);
  --nav-h:          60px;
}

body {
  font-family: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.2;
  color: var(--text-primary);
}

.accent-italic {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  color: var(--purple);
  font-weight: 400;
}

.hidden { display: none !important; }

.btn-primary {
  width: 100%; padding: 14px; border: none; border-radius: var(--radius-sm);
  background: var(--purple);
  color: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
  font-family: 'Manrope', 'Inter', sans-serif;
  transition: background .15s, transform .15s, box-shadow .15s;
}
.btn-primary:hover { background: var(--purple-hover); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(123,92,225,.30); }

.btn-secondary {
  padding: 10px 20px; border: 1.5px solid var(--border-soft); border-radius: var(--radius-sm);
  background: var(--bg-surface); color: var(--text-primary); font-size: 14px; font-weight: 600; cursor: pointer;
  font-family: 'Manrope', 'Inter', sans-serif;
  transition: border-color .15s;
}
.btn-secondary:hover { border-color: var(--purple); color: var(--purple); }

.btn-ghost { padding: 10px 20px; border: none; background: transparent; color: var(--muted); font-size: 14px; cursor: pointer; }
.btn-premium { padding: 10px 20px; border: none; border-radius: 10px; background: #f6c90e; color: #17172B; font-size: 14px; font-weight: 700; cursor: pointer; }
.error-msg { color: var(--danger); font-size: 13px; margin-top: 8px; min-height: 18px; }

/* ── Navbar ─────────────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  background: var(--surface); border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; z-index: 100; box-shadow: 0 1px 8px rgba(20,19,38,.04);
}
.nav-brand {
  font-size: 16px; font-weight: 700; color: var(--text); cursor: pointer;
  user-select: none; transition: opacity .15s; letter-spacing: -0.3px;
}
.nav-brand span { color: var(--primary); }
.nav-brand:hover { opacity: .75; }
.nav-links { display: flex; gap: 4px; align-items: center; height: var(--nav-h); }
.nav-btn {
  padding: 7px 14px; height: auto; border: none; background: transparent;
  border-bottom: none; font-size: 13px; font-weight: 500; color: var(--muted);
  cursor: pointer; transition: color .15s, background .15s; border-radius: 8px;
  font-family: inherit;
}
.nav-btn:hover { color: var(--text); background: var(--bg-soft); }
.nav-btn.active {
  background: var(--nav-dark); color: #fff; border-bottom: none;
  font-weight: 600; border-radius: 8px;
}
.logout-btn { color: var(--danger); margin-left: 8px; }
.logout-btn:hover { color: var(--danger); background: #fee2e2; }
.logout-btn.active { background: transparent; color: var(--danger); }
.logout-btn.active:hover { background: #fee2e2; }

/* ── Pages ───────────────────────────────────────────────────────────── */
.page { display: none; min-height: 100vh; }
.page.active { display: block; animation: pageFadeIn .35s ease; }
@keyframes pageFadeIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
#page-discover, #page-swipe, #page-matches, #page-chat, #page-parent, #page-profile-view, #page-hotels {
  padding-top: calc(var(--nav-h) + 16px);
}

/* ── Landing (new design) ────────────────────────────────────────────── */
#page-landing { display: none; background: #fff; }
#page-landing.active { display: block; }

/* Shared */
.ln-container { max-width: 1160px; margin: 0 auto; padding: 0 48px; }
.ln-section { padding: 96px 0; }
.ln-bg-white { background: #fff; }
.ln-bg-soft { background: var(--bg-soft); }
.ln-bg-dark { background: #141326; }
.ln-section-label { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--primary); margin-bottom: 16px; }
.ln-label-warm { color: #d97706; }
.ln-em { font-family: 'Playfair Display', Georgia, serif; font-style: italic; color: var(--primary); font-weight: 400; }
.ln-em-warm { font-family: 'Playfair Display', Georgia, serif; font-style: italic; color: #d97706; font-weight: 400; }
.ln-h2 { font-size: 40px; font-weight: 800; letter-spacing: -1px; color: var(--text); line-height: 1.15; margin-bottom: 20px; }
.ln-h2-wide { font-size: 40px; font-weight: 800; letter-spacing: -1px; color: var(--text); line-height: 1.2; margin-bottom: 48px; max-width: 680px; }
.ln-h2-sm { font-size: 32px; font-weight: 800; letter-spacing: -0.5px; color: var(--text); line-height: 1.2; margin-bottom: 0; }
.ln-h2-light { color: #fff; }

/* Buttons */
.ln-btn-primary { padding: 11px 22px; border: none; border-radius: 9px; background: var(--primary); color: #fff; font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer; transition: background .15s, transform .15s; }
.ln-btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.ln-btn-lg { padding: 14px 28px; font-size: 15px; border-radius: 10px; }
.ln-btn-text { padding: 10px 16px; border: none; background: transparent; font-size: 14px; font-weight: 500; color: var(--text-body); font-family: inherit; cursor: pointer; }
.ln-btn-text:hover { color: var(--primary); }
.ln-btn-outline { padding: 13px 22px; border: 1.5px solid var(--border); border-radius: 10px; background: #fff; font-size: 15px; font-weight: 600; color: var(--text-body); font-family: inherit; cursor: pointer; transition: border-color .15s; }
.ln-btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.ln-btn-outline-sm { padding: 9px 18px; border: 1.5px solid var(--border); border-radius: 8px; background: #fff; font-size: 14px; font-weight: 600; color: var(--text-body); font-family: inherit; cursor: pointer; white-space: nowrap; transition: border-color .15s; }
.ln-btn-outline-sm:hover { border-color: var(--primary); color: var(--primary); }

/* Nav */
.ln-nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-light); }
.ln-nav-inner { height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ln-logo { font-size: 17px; font-weight: 700; color: var(--text); letter-spacing: -0.3px; white-space: nowrap; cursor: default; }
.ln-logo span { color: var(--primary); }
.ln-logo small { font-size: 10px; font-weight: 500; color: var(--helper); letter-spacing: 1px; margin-left: 6px; vertical-align: middle; }
.ln-nav-links { display: flex; gap: 4px; }
.ln-nav-link { padding: 6px 12px; font-size: 14px; font-weight: 500; color: var(--text-body); text-decoration: none; border-radius: 7px; transition: background .12s, color .12s; }
.ln-nav-link:hover { background: var(--bg-soft); color: var(--text); }
.ln-nav-actions { display: flex; gap: 8px; align-items: center; }

/* Hero */
.ln-hero { background: #fff; padding: 80px 0 72px; }
.ln-hero-inner { display: flex; align-items: center; gap: 72px; }
.ln-hero-left { flex: 1; max-width: 520px; }
.ln-badge-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 600; padding: 5px 14px; border-radius: 20px; margin-bottom: 28px; border: 1px solid var(--primary-border); }
.ln-h1 { font-size: 62px; font-weight: 900; line-height: 1.05; letter-spacing: -2.5px; color: var(--text); margin-bottom: 24px; }
.ln-hero-sub { font-size: 16px; color: var(--text-body); line-height: 1.7; margin-bottom: 36px; max-width: 440px; }
.ln-hero-note { font-size: 14px; color: var(--muted); line-height: 1.6; margin: -22px 0 32px; max-width: 440px; }
.ln-hero-btns { display: flex; gap: 12px; margin-bottom: 48px; }
.ln-stats { display: flex; align-items: center; gap: 28px; }
.ln-stat { display: flex; flex-direction: column; }
.ln-stat strong { font-size: 22px; font-weight: 900; color: var(--text); letter-spacing: -0.5px; }
.ln-stat span { font-size: 10px; font-weight: 700; color: var(--helper); letter-spacing: 1px; text-transform: uppercase; margin-top: 2px; }
.ln-stat-div { width: 1px; height: 32px; background: var(--border); }

/* Hero visual */
.ln-hero-right { flex: 0 0 480px; }
.ln-hero-visual { position: relative; padding: 48px 24px 48px 0; }
.ln-float-card { position: absolute; z-index: 10; background: #fff; border-radius: 14px; padding: 12px 16px; display: flex; align-items: center; gap: 10px; box-shadow: 0 8px 32px rgba(0,0,0,.12); min-width: 220px; }
.ln-float-top { top: 12px; left: -24px; }
.ln-float-bot { bottom: 12px; right: -8px; }
.ln-fc-av { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: #fff; flex-shrink: 0; }
.ln-fc-body { flex: 1; }
.ln-fc-body strong { font-size: 13px; font-weight: 700; display: block; color: var(--text); }
.ln-fc-body span { font-size: 11px; color: var(--muted); }
.ln-type-badge { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 20px; flex-shrink: 0; }
.ln-badge-local { background: #dcfce7; color: #166534; }
.ln-badge-visitor { background: #fef3c7; color: #92400e; }
.ln-hero-img-card { position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px rgba(15,23,42,.18); }
.ln-hero-img { width: 100%; height: 340px; object-fit: cover; display: block; }
.ln-compat-pill { position: absolute; top: 20px; right: -12px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 20px; box-shadow: 0 4px 16px rgba(124,92,230,.4); }
.ln-img-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px 20px 16px; background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 100%); }
.ln-overlay-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: rgba(255,255,255,.6); text-transform: uppercase; margin-bottom: 2px; }
.ln-overlay-city { font-size: 22px; font-weight: 800; color: #fff; font-style: italic; font-family: 'Playfair Display', serif; }
.ln-overlay-trust { font-size: 12px; color: rgba(255,255,255,.7); margin-top: 6px; }

/* Trust bar */
.ln-trust-bar { background: #fff; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); padding: 20px 0; }
.ln-trust-inner { display: flex; align-items: center; gap: 40px; overflow: hidden; }
.ln-trust-label { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--helper); white-space: nowrap; }
.ln-trust-logos { display: flex; gap: 40px; align-items: center; }
.ln-trust-logos span { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }

/* Problem */
.ln-prob-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.ln-prob-card { background: #fff; border-radius: 16px; padding: 28px 24px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.ln-prob-num { font-size: 11px; font-weight: 700; color: var(--primary); letter-spacing: 1px; margin-bottom: 16px; }
.ln-prob-card h3 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 10px; line-height: 1.35; }
.ln-prob-card p { font-size: 13.5px; color: var(--text-body); line-height: 1.6; }
.ln-prob-rule { border: none; border-top: 1px solid var(--border-light); margin: 20px 0; }
.ln-prob-stat { display: flex; flex-direction: column; gap: 2px; }
.ln-prob-stat strong { font-size: 24px; font-weight: 900; color: var(--text); letter-spacing: -0.5px; }
.ln-prob-stat span { font-size: 12px; color: var(--helper); }

/* Solution */
.ln-sol-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; align-items: start; }
.ln-sol-sub { font-size: 15px; color: var(--text-body); line-height: 1.7; margin-top: 16px; }
.ln-sol-right { display: flex; flex-direction: column; gap: 0; }
.ln-sol-item { display: flex; gap: 20px; align-items: flex-start; padding: 24px 0; border-bottom: 1px solid var(--border-light); }
.ln-sol-item:first-child { padding-top: 0; }
.ln-sol-item:last-child { border-bottom: none; }
.ln-sol-img { width: 100px; height: 72px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.ln-sol-body { flex: 1; }
.ln-sol-num { font-size: 11px; font-weight: 700; color: var(--primary); letter-spacing: 1px; margin-bottom: 6px; }
.ln-sol-body h4 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px; line-height: 1.4; }
.ln-sol-body p { font-size: 13.5px; color: var(--text-body); line-height: 1.6; margin: 0; }

/* How it works */
.ln-steps-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; margin-top: 48px; }
.ln-step-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 20px 16px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); }
.ln-step-n { font-size: 11px; font-weight: 700; color: var(--primary); letter-spacing: 1px; }
.ln-step-card strong { font-size: 13px; font-weight: 700; color: var(--text); }
.ln-step-card span { font-size: 12px; color: var(--helper); }

/* Parent mode */
.ln-parent-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.ln-parent-sub { font-size: 15px; color: var(--text-body); line-height: 1.7; margin: 16px 0 28px; }
.ln-check-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.ln-check-list li { font-size: 14px; color: var(--text-body); padding-left: 24px; position: relative; }
.ln-check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.ln-parent-visual { display: flex; flex-direction: column; gap: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 16px 48px rgba(15,23,42,.14); }
.ln-parent-img-wrap { position: relative; }
.ln-parent-img { width: 100%; height: 240px; object-fit: cover; display: block; }
.ln-live-chip { position: absolute; top: 14px; left: 14px; background: rgba(0,0,0,.72); color: #fff; font-size: 11px; font-weight: 600; padding: 5px 12px; border-radius: 20px; }
.ln-helper-card { background: #fff; padding: 20px; display: flex; gap: 12px; align-items: flex-start; }
.ln-helper-av { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-border), var(--primary)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; flex-shrink: 0; }
.ln-helper-body { flex: 1; }
.ln-helper-body strong { font-size: 14px; font-weight: 700; color: var(--text); display: block; }
.ln-helper-body span { font-size: 12px; color: var(--muted); }
.ln-helper-quote { font-size: 13px; color: var(--text-body); line-height: 1.5; margin: 8px 0 6px; font-style: italic; }
.ln-helper-loc { font-size: 11px; color: var(--helper); }
.ln-verified-badge { font-size: 11px; font-weight: 700; color: #166534; background: #dcfce7; padding: 4px 10px; border-radius: 20px; white-space: nowrap; flex-shrink: 0; margin-top: 2px; }

/* Stays */
.ln-stays-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; }
.ln-hotels-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.ln-hotel-card { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s; }
.ln-hotel-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.ln-hotel-img { width: 100%; height: 200px; object-fit: cover; display: block; }
.ln-hotel-body { padding: 16px; }
.ln-hotel-city { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--helper); margin-bottom: 4px; }
.ln-hotel-name { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.ln-hotel-foot { display: flex; align-items: center; justify-content: space-between; }
.ln-hotel-price { font-size: 15px; font-weight: 700; color: var(--text); }
.ln-hotel-price small { font-size: 12px; font-weight: 400; color: var(--helper); }
.ln-hotel-rating { font-size: 13px; color: var(--muted); }

/* Pricing */
.ln-pricing-sub { font-size: 15px; color: var(--text-body); margin-bottom: 40px; }
.ln-profile-quality-note {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 720px;
  margin: -18px 0 28px;
  padding: 16px 18px;
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  border-radius: 14px;
}
.ln-profile-quality-note strong { color: var(--text); font-size: 15px; }
.ln-profile-quality-note span { color: var(--text-body); font-size: 13.5px; line-height: 1.6; }
.ln-beta-panel { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.ln-beta-panel div { display: flex; flex-direction: column; gap: 8px; padding: 4px; }
.ln-beta-panel strong { color: var(--text); font-size: 15px; }
.ln-beta-panel span { color: var(--text-body); font-size: 13.5px; line-height: 1.55; }
.ln-pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; align-items: start; }
.ln-price-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  position: relative;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background-color .25s ease;
}
.ln-price-card:hover,
.ln-price-card:focus-within {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 24px 60px rgba(124, 88, 255, .22);
  border-color: var(--primary);
  z-index: 5;
}
.ln-price-card:hover .ln-price-btn,
.ln-price-card:focus-within .ln-price-btn {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.ln-price-featured {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 8px 40px rgba(124,92,230,.12);
  transform: scale(1.02);
}
.ln-price-featured:hover,
.ln-price-featured:focus-within {
  transform: translateY(-14px) scale(1.06);
}
.ln-price-popular { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--nav-dark); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 16px; border-radius: 20px; white-space: nowrap; }
.ln-price-tier { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.ln-price-val { font-size: 42px; font-weight: 900; letter-spacing: -1.5px; color: var(--text); line-height: 1; }
.ln-price-val span { font-size: 14px; font-weight: 500; color: var(--helper); letter-spacing: 0; }
.ln-price-desc { font-size: 13px; color: var(--text-body); margin: 12px 0 20px; line-height: 1.5; border-top: 1px solid var(--border-light); padding-top: 16px; }
.ln-price-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.ln-price-list li { font-size: 14px; color: var(--text-body); padding-left: 20px; position: relative; }
.ln-price-list li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.ln-price-btn { width: 100%; padding: 12px; border-radius: 10px; font-size: 14px; font-weight: 700; font-family: inherit; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease; }
.ln-price-outline { border: 1.5px solid var(--border); background: #fff; color: var(--text-body); }
.ln-price-outline:hover { border-color: var(--primary); color: var(--primary); }
.ln-price-solid { border: none; background: var(--primary); color: #fff; }
.ln-price-solid:hover { background: var(--primary-dark); }
.ln-price-card:hover .ln-price-outline,
.ln-price-card:focus-within .ln-price-outline,
.ln-price-card:hover .ln-price-outline:hover,
.ln-price-card:focus-within .ln-price-outline:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Stories */
.ln-testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 48px; }
.ln-testi-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 28px; }
.ln-usecase-grid { grid-template-columns: repeat(4,1fr); }
.ln-usecase-grid .ln-testi-card {
  background: #24233a;
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 16px 36px rgba(0,0,0,.18);
}
.ln-usecase-grid .ln-testi-badge { font-size: 11px; font-weight: 800; letter-spacing: .8px; color: #fff; text-transform: uppercase; margin-bottom: 14px; }
.ln-usecase-grid .ln-testi-card p { font-family: inherit; font-style: normal; color: rgba(255,255,255,.86); margin-bottom: 0; }
.ln-testi-stars { color: #fbbf24; font-size: 14px; margin-bottom: 14px; letter-spacing: 2px; }
.ln-testi-card p { font-size: 14.5px; color: rgba(255,255,255,.85); line-height: 1.7; margin-bottom: 20px; font-style: italic; font-family: 'Playfair Display', Georgia, serif; }
.ln-testi-author { display: flex; align-items: center; gap: 12px; }
.ln-testi-av { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: #fff; flex-shrink: 0; }
.ln-testi-author strong { font-size: 13px; font-weight: 700; color: #fff; display: block; }
.ln-testi-author span { font-size: 11px; color: rgba(255,255,255,.45); }

/* CTA */
.ln-cta-wrap { background: var(--bg-soft); padding: 96px 0; }
.ln-founder-note { max-width: 760px; }
.ln-founder-note p { max-width: 620px; color: var(--text-body); font-size: 15px; line-height: 1.7; margin-top: 14px; }
.ln-cta-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.ln-cta-h2 { font-size: 46px; font-weight: 900; letter-spacing: -1.5px; color: var(--text); line-height: 1.1; }
.ln-cta-sub { font-size: 16px; color: var(--text-body); max-width: 480px; line-height: 1.6; }

/* Footer */
.ln-footer { background: var(--nav-dark); }
.ln-footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 60px; padding-top: 56px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.07); }
.ln-footer-brand { max-width: 240px; }
.ln-footer-logo { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.ln-footer-logo span { color: var(--primary-border); }
.ln-footer-brand p { font-size: 13px; color: rgba(255,255,255,.4); line-height: 1.6; }
.ln-footer-cols { display: flex; gap: 56px; }
.ln-footer-col { display: flex; flex-direction: column; gap: 10px; }
.ln-footer-col strong { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.ln-footer-col a { font-size: 13px; color: rgba(255,255,255,.38); text-decoration: none; transition: color .12s; }
.ln-footer-col a:hover { color: rgba(255,255,255,.85); }
.ln-footer-bottom { padding: 20px 0; }
.ln-footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; }
.ln-footer-bottom span { font-size: 12px; color: rgba(255,255,255,.22); }

/* Responsive */
@media (max-width: 1024px) {
  .ln-h1 { font-size: 50px; }
  .ln-hero-right { flex: 0 0 420px; }
  .ln-sol-layout { grid-template-columns: 1fr; gap: 40px; }
  .ln-parent-layout { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 768px) {
  .ln-container { padding: 0 24px; }
  .ln-section { padding: 64px 0; }
  .ln-nav-links { display: none; }
  .ln-hero-inner { flex-direction: column; gap: 40px; }
  .ln-hero-right { display: none; }
  .ln-h1 { font-size: 40px; letter-spacing: -1.5px; }
  .ln-h2 { font-size: 28px; }
  .ln-h2-wide { font-size: 26px; }
  .ln-prob-grid, .ln-pricing-grid, .ln-testi-grid, .ln-hotels-grid, .ln-beta-panel, .ln-usecase-grid { grid-template-columns: 1fr; }
  .ln-steps-grid { grid-template-columns: repeat(2,1fr); }
  .ln-footer-top { flex-direction: column; gap: 40px; }
  .ln-footer-cols { gap: 32px; }
  .ln-cta-h2 { font-size: 32px; }
  .ln-trust-logos { gap: 24px; }
  .ln-stays-header { flex-direction: column; align-items: flex-start; gap: 16px; }
}



/* ── Auth ────────────────────────────────────────────────────────────── */
#page-auth { display: none; }
#page-auth.active { display: flex; min-height: 100vh; }
.at-layout { display: flex; width: 100%; min-height: 100vh; }

.at-left {
  flex: 0 0 460px; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  padding: 48px 56px; overflow-y: auto;
}
.at-left-inner { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 20px; }

.at-logo { font-size: 17px; font-weight: 700; color: var(--text); letter-spacing: -0.3px; }
.at-logo span { color: var(--primary); }

.at-live-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: #f0fdf4; border: 1px solid #bbf7d0;
  padding: 5px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 600; color: #15803d; width: fit-content;
}
.at-live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34,197,94,.3);
  animation: livePulse 1.6s ease-in-out infinite;
}
@keyframes livePulse { 0%,100% { box-shadow: 0 0 0 2px rgba(34,197,94,.3); } 50% { box-shadow: 0 0 0 5px rgba(34,197,94,.1); } }

.at-h1 { font-size: 32px; font-weight: 900; line-height: 1.15; letter-spacing: -1px; color: var(--text); }
.at-em { font-family: 'Playfair Display', Georgia, serif; font-style: italic; color: var(--primary); font-weight: 400; }
.at-desc { font-size: 14px; color: var(--text-body); line-height: 1.65; margin-top: -4px; }

.at-btn-create {
  width: 100%; padding: 13px 20px; border: none; border-radius: 10px;
  background: var(--primary); color: #fff; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all .2s; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.at-btn-create:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(124,92,230,.28); }

.at-social-row { display: flex; gap: 10px; }
.at-social-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border: 1.5px solid var(--border); border-radius: 9px;
  background: #fff; font-size: 14px; font-weight: 500; color: var(--text-body); cursor: pointer; transition: border-color .15s;
}
.at-social-btn:hover { border-color: var(--primary); }

.at-divider { display: flex; align-items: center; gap: 12px; color: var(--helper); font-size: 13px; }
.at-divider::before, .at-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.at-form { display: flex; flex-direction: column; gap: 14px; }
.at-field { display: flex; flex-direction: column; gap: 5px; }
.at-field label { font-size: 13px; font-weight: 600; color: var(--text-body); }
.at-field input, .at-field select, .at-field textarea {
  padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 9px;
  font-size: 15px; outline: none; transition: border .15s; width: 100%;
  box-sizing: border-box; background: #fff; font-family: inherit; color: var(--text);
}
.at-field input:focus, .at-field select:focus, .at-field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,92,230,.08); }
.at-pw-wrap { position: relative; }
.at-pw-wrap input { padding-right: 44px; }
.at-pw-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--helper); padding: 2px;
  display: flex; align-items: center; transition: color .15s;
}
.at-pw-toggle:hover { color: var(--primary); }
.pw-toggle { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--primary); cursor: pointer; font-weight: 600; user-select: none; background: none; border: none; }

.at-error { color: var(--danger); font-size: 12px; min-height: 16px; }
.at-btn-signin {
  width: 100%; padding: 13px; border: none; border-radius: 10px;
  background: var(--primary); color: #fff; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all .2s;
}
.at-btn-signin:hover { background: var(--primary-dark); transform: translateY(-1px); }

.at-legal { font-size: 12px; color: var(--helper); line-height: 1.5; text-align: center; }
.at-legal a { color: var(--primary); text-decoration: none; }
.at-foot-row { display: flex; align-items: center; justify-content: space-between; }
.at-back-link { background: none; border: none; font-size: 13px; color: var(--helper); cursor: pointer; padding: 0; }
.at-back-link:hover { color: var(--text-body); }
.at-link-btn { background: none; border: none; color: var(--primary); font-size: 13px; font-weight: 600; cursor: pointer; padding: 0; }
.at-link-btn:hover { text-decoration: underline; }
.at-copyright { font-size: 12px; color: var(--border); }

/* Auth right panel */
.at-right {
  flex: 1; position: relative; overflow: hidden;
  min-height: 100vh; display: flex;
}
.at-right-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.at-right-overlay {
  position: relative; z-index: 1; width: 100%;
  background: linear-gradient(to bottom, rgba(20,19,38,.35) 0%, rgba(20,19,38,.7) 55%, rgba(15,12,32,.93) 100%);
  display: flex; flex-direction: column; justify-content: space-between; padding: 32px;
}
.at-right-pills { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.at-rpill {
  background: rgba(255,255,255,.12); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2); border-radius: 20px;
  padding: 5px 14px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.85);
}
.at-right-bottom { padding-top: 32px; }
.at-story-label { font-size: 11px; font-weight: 700; letter-spacing: 2px; color: rgba(255,255,255,.45); margin-bottom: 12px; text-transform: uppercase; }
.at-story-quote { font-size: 26px; font-weight: 700; color: #fff; line-height: 1.35; font-style: italic; margin-bottom: 20px; font-family: 'Playfair Display', Georgia, serif; }
.at-story-author { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.at-story-av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.3); }
.at-story-info { flex: 1; }
.at-story-info strong { display: block; font-size: 14px; font-weight: 700; color: #fff; }
.at-story-info span { font-size: 12px; color: rgba(255,255,255,.5); }
.at-story-stars { color: #fbbf24; font-size: 13px; letter-spacing: 1px; }
.at-social-proof { display: flex; align-items: center; gap: 12px; }
.at-sp-avs { display: flex; }
.at-sp-avs img { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); margin-left: -6px; object-fit: cover; }
.at-sp-avs img:first-child { margin-left: 0; }
.at-sp-text strong { display: block; font-size: 13px; font-weight: 700; color: #fff; }
.at-sp-text span { font-size: 12px; color: rgba(255,255,255,.45); }

@media (max-width: 860px) {
  .at-left { flex: 1; padding: 32px 24px; }
  .at-right { display: none; }
}

/* ── Signup Page ─────────────────────────────────────────────────────── */
#page-signup { display: none; background: var(--bg); }
#page-signup.active { display: block; min-height: 100vh; }
.su-page { min-height: 100vh; display: flex; flex-direction: column; }
.su-topbar {
  background: #fff; border-bottom: 1px solid var(--border-light);
  padding: 0 40px; height: 60px; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 10;
}
.su-step-group { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.su-step-label { font-size: 12px; font-weight: 600; color: var(--muted); }
.su-step-dots { display: flex; gap: 6px; }
.su-sdot { width: 8px; height: 8px; border-radius: 50%; }
.su-sdot-active { background: var(--primary); }
.su-sdot-done { background: var(--primary); opacity: .4; }
.su-sdot-off { background: var(--border); }
.su-body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.su-card { background: #fff; border-radius: 20px; padding: 48px; max-width: 480px; width: 100%; box-shadow: var(--shadow-md); border: 1px solid var(--border-light); }
.su-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 2.5px; color: var(--primary); text-transform: uppercase; margin-bottom: 12px; }
.su-h1 { font-size: 30px; font-weight: 900; line-height: 1.15; letter-spacing: -1px; color: var(--text); margin-bottom: 8px; }
.su-sub { font-size: 14px; color: var(--text-body); margin-bottom: 28px; }
.su-form { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.su-terms-row { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; color: var(--text-body); }
.su-terms-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); flex-shrink: 0; }
.su-terms-row a { color: var(--primary); text-decoration: none; font-weight: 600; }
.su-error { color: var(--danger); font-size: 12px; min-height: 16px; }
.su-switch-link { font-size: 13px; color: var(--helper); text-align: center; margin-top: 14px; }
.su-type-cards { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.su-type-card {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 18px; border: 1.5px solid var(--border); border-radius: 14px;
  background: var(--bg); cursor: pointer; transition: all .2s; text-align: left; width: 100%;
}
.su-type-card:hover { border-color: var(--primary); background: var(--primary-soft); transform: translateY(-2px); }
.su-type-icon { font-size: 36px; flex-shrink: 0; }
.su-type-body { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.su-type-body strong { font-size: 16px; font-weight: 800; color: var(--text); }
.su-type-body span { font-size: 13px; color: var(--text-body); line-height: 1.4; }
.su-type-arr { font-size: 18px; color: var(--helper); transition: transform .2s, color .2s; flex-shrink: 0; }
.su-type-card:hover .su-type-arr { transform: translateX(4px); color: var(--primary); }

/* ── Onboarding / Profile Setup ───────────────────────────────────────── */
#page-setup { display: none; background: var(--bg); }
#page-setup.active { display: block; min-height: 100vh; padding-bottom: 80px; }

.ob-topbar {
  position: sticky; top: 0; z-index: 20;
  background: #fff; border-bottom: 1px solid var(--border-light);
}
.ob-topbar-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 40px; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.ob-step-group { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.ob-step-label { font-size: 12px; font-weight: 600; color: var(--muted); }
.ob-step-dots { display: flex; gap: 6px; }
.ob-sdot { width: 9px; height: 9px; border-radius: 50%; }
.ob-sdot-active { background: var(--primary); }
.ob-sdot-done { background: var(--primary); opacity: .5; }
.ob-sdot-off { background: var(--border); }
.ob-skip-btn {
  background: none; border: 1.5px solid var(--border); border-radius: 8px;
  padding: 6px 16px; font-size: 13px; color: var(--muted); cursor: pointer; transition: all .15s;
}
.ob-skip-btn:hover { color: var(--text-body); border-color: var(--muted); }

.ob-body { overflow-y: auto; }
.ob-container { max-width: 1100px; margin: 0 auto; padding: 40px 40px 40px; }
.ob-section-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--primary); margin-bottom: 10px; }
.ob-h1 { font-size: 36px; font-weight: 900; line-height: 1.1; letter-spacing: -1.5px; color: var(--text); margin-bottom: 10px; }
.ob-intro-desc { font-size: 15px; color: var(--text-body); line-height: 1.65; max-width: 560px; margin-bottom: 36px; }

/* 2-col grid */
.ob-grid { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }

/* Left photo col */
.ob-left-col { display: flex; flex-direction: column; align-items: center; gap: 14px; position: sticky; top: 80px; }
.ob-photo-wrap {
  width: 220px; height: 280px; border-radius: 16px;
  overflow: hidden; cursor: pointer; position: relative; background: var(--border);
  border: 2px solid var(--border); transition: border-color .15s;
}
.ob-photo-wrap:hover { border-color: var(--primary); }
.ob-photo-preview { width: 100%; height: 100%; object-fit: cover; }
.ob-photo-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #fde8d8 0%, #f4a57a 40%, #d97559 100%); flex-direction: column; gap: 6px; }
.ob-photo-initials { font-size: 48px; font-weight: 900; color: rgba(255,255,255,.9); letter-spacing: -2px; }
.ob-photo-replace {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.65); backdrop-filter: blur(4px);
  color: #fff; font-size: 12px; font-weight: 600; padding: 6px 14px;
  border-radius: 20px; display: flex; align-items: center; gap: 5px; white-space: nowrap;
}
.ob-photo-hint { font-size: 12px; color: var(--helper); text-align: center; }
.ob-bio-tip {
  background: var(--primary-soft); border: 1px solid var(--primary-border); border-radius: 12px;
  padding: 14px 16px; display: flex; gap: 10px; align-items: flex-start; width: 100%;
}
.ob-tip-star { color: var(--primary); font-size: 14px; flex-shrink: 0; margin-top: 1px; }
.ob-bio-tip strong { display: block; font-size: 13px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.ob-bio-tip p { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 0; }

/* Right form col */
.ob-right-col { display: flex; flex-direction: column; gap: 24px; }
.ob-field { display: flex; flex-direction: column; gap: 7px; }
.ob-field label { font-size: 13px; font-weight: 700; color: var(--text-body); }
.ob-req { color: var(--danger); font-weight: 700; margin-left: 2px; font-size: 12px; line-height: 1; }
.ob-field input, .ob-field select, .ob-field textarea {
  padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 14px; outline: none; transition: border .15s, box-shadow .15s;
  width: 100%; box-sizing: border-box; background: #fff; font-family: inherit; color: var(--text);
}
.ob-field input:focus, .ob-field select:focus, .ob-field textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,92,230,.08);
}
.ob-field textarea { resize: vertical; min-height: 100px; }
.ob-field-hint { font-size: 12px; color: var(--helper); margin-top: -2px; }
.ob-field-row { display: grid; gap: 12px; }
.ob-name-row { grid-template-columns: 1fr 1fr; }
.ob-date-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* DOB row */
.ob-dob-row { display: flex; align-items: center; gap: 10px; }
.ob-dob-wrap { position: relative; flex: 1; }
.ob-dob-wrap input { width: 100%; }
.ob-age-pill {
  background: var(--primary-soft); border: 1.5px solid var(--primary-border); border-radius: 20px;
  padding: 8px 14px; font-size: 13px; font-weight: 700; color: var(--primary);
  white-space: nowrap; display: flex; align-items: center; gap: 5px;
}

/* Type selection */
.ob-type-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ob-type-card {
  display: flex; flex-direction: column; gap: 6px; padding: 16px 14px;
  border: 1.5px solid var(--border); border-radius: 12px; background: var(--bg);
  cursor: pointer; transition: all .2s; text-align: left;
}
.ob-type-card:hover { border-color: var(--primary); background: var(--primary-soft); }
.ob-type-active { border-color: var(--primary) !important; background: var(--primary-soft) !important; }
.ob-type-icon { font-size: 22px; margin-bottom: 2px; }
.ob-type-card strong { font-size: 14px; font-weight: 700; color: var(--text); display: block; }
.ob-type-card span { font-size: 12px; color: var(--text-body); line-height: 1.4; display: block; }

/* Section row (label + action) */
.ob-section-row { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-bottom: 2px; }
.ob-section-row label { font-size: 13px; font-weight: 700; color: var(--text-body); margin: 0; }
.ob-section-sub { font-size: 12px; color: var(--helper); }
.ob-section-action { margin-left: auto; font-size: 12px; color: var(--helper); }
.ob-insta-boost { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--primary); background: var(--primary-soft); padding: 2px 8px; border-radius: 10px; }
.ob-examples-link { margin-left: auto; font-size: 12px; color: var(--primary); text-decoration: none; font-weight: 600; }
.ob-count-badge { margin-left: auto; font-size: 12px; color: var(--helper); }

/* Music */
.ob-music-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ob-music-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 14px 10px; border-radius: 12px; border: 1.5px solid var(--border);
  cursor: pointer; transition: all .2s; text-align: center; background: #fff;
}
.ob-music-btn:hover { border-color: var(--muted); transform: translateY(-1px); }
.ob-music-btn.connected {
  border-color: var(--primary);
  box-shadow: 0 10px 28px rgba(124, 92, 230, .14);
}
.ob-music-btn div { display: flex; flex-direction: column; gap: 2px; }
.ob-music-btn span { font-size: 13px; font-weight: 600; color: var(--text-body); }
.ob-music-btn small { font-size: 11px; color: var(--helper); }
.ob-music-spotify { background: #1DB954; border-color: #1DB954; }
.ob-music-spotify span { color: #fff; }
.ob-music-spotify small { color: rgba(255,255,255,.75); }
.ob-music-spotify:hover { background: #1aa34a; border-color: #1aa34a; }
.ob-music-apple { background: #fff; }
.ob-music-apple svg { color: #fc3c44; }
.ob-music-yt svg { color: #ff0000; }
.ob-display-toggle {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1.5px solid var(--border); border-radius: 12px;
  padding: 12px 14px; margin-top: 10px; cursor: pointer;
}
.ob-display-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.ob-toggle-ui {
  width: 42px; height: 24px; border-radius: 999px;
  background: var(--border); position: relative; flex-shrink: 0;
  transition: background .2s ease;
}
.ob-toggle-ui::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .16);
  transition: transform .2s ease;
}
.ob-display-toggle input:checked + .ob-toggle-ui { background: var(--primary); }
.ob-display-toggle input:checked + .ob-toggle-ui::after { transform: translateX(18px); }
.ob-display-toggle strong { display: block; font-size: 13px; color: var(--text); }
.ob-display-toggle small { display: block; margin-top: 2px; font-size: 12px; color: var(--helper); line-height: 1.35; }
.ob-track-chip {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg); border: 1.5px solid var(--border); border-radius: 10px;
  padding: 10px 14px; margin-top: 8px;
}
.ob-track-icon { width: 32px; height: 32px; background: #1DB954; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; flex-shrink: 0; }
.ob-track-body { flex: 1; }
.ob-track-body span { display: block; font-size: 13px; font-weight: 600; color: var(--text); }
.ob-track-body small { font-size: 12px; color: var(--helper); }
.ob-track-remove { background: none; border: none; cursor: pointer; font-size: 18px; color: var(--helper); padding: 0 2px; }

/* Instagram chip */
.ob-insta-chip {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg); border: 1.5px solid var(--border); border-radius: 10px; padding: 12px 14px;
}
.ob-insta-icon { font-size: 22px; flex-shrink: 0; }
.ob-insta-body { flex: 1; }
.ob-insta-body strong { display: block; font-size: 13px; font-weight: 700; color: var(--text); }
.ob-insta-body span { font-size: 12px; color: var(--helper); }
.ob-insta-connect-btn {
  background: none; border: 1.5px solid var(--border); border-radius: 8px;
  padding: 6px 14px; font-size: 13px; font-weight: 600; color: var(--text-body); cursor: pointer; white-space: nowrap; transition: border-color .15s;
}
.ob-insta-connect-btn:hover { border-color: var(--primary); color: var(--primary); }

/* Conversation starter */
.ob-convo-wrap {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--primary); border-radius: 10px;
  padding: 10px 14px; background: var(--primary-soft);
}
.ob-convo-q { font-size: 22px; color: var(--primary); font-family: Georgia, serif; line-height: 1; flex-shrink: 0; }
.ob-convo-input { flex: 1; border: none; outline: none; font-size: 14px; font-style: italic; color: var(--text-body); background: transparent; font-family: inherit; }
.ob-convo-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ob-convo-chip {
  background: #fff; border: 1px solid var(--border); border-radius: 20px;
  padding: 5px 12px; font-size: 12px; color: var(--text-body); cursor: pointer; transition: all .15s;
}
.ob-convo-chip:hover { border-color: var(--primary); color: var(--primary); }

/* Tag pickers in onboarding */
.ob-tag-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  min-height: 54px;
  align-content: flex-start;
}
.ob-tag-picker .tp-tag {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  color: var(--text-body);
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  line-height: 1;
  user-select: none;
}
.ob-tag-picker .tp-tag:hover { border-color: var(--primary); color: var(--primary); }
.ob-tag-picker .tp-tag.selected { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); font-weight: 600; }

/* Bottom bar */
.ob-bottom-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  background: #fff; border-top: 1px solid var(--border-light);
  box-shadow: 0 -2px 16px rgba(20,19,38,.06);
}
.ob-bottom-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 40px; height: 68px;
  display: flex; align-items: center; justify-content: space-between;
}
.ob-completion-text { font-size: 14px; color: var(--text-body); }
.ob-pct { color: var(--primary); font-weight: 800; }
.ob-bottom-actions { display: flex; gap: 12px; align-items: center; }
.ob-save-draft {
  padding: 9px 20px; border: 1.5px solid var(--border); border-radius: 9px;
  background: #fff; color: var(--text-body); font-size: 14px; font-weight: 600; cursor: pointer; transition: all .15s;
}
.ob-save-draft:hover { border-color: var(--muted); }
.ob-continue-btn {
  padding: 9px 22px; border: none; border-radius: 9px;
  background: var(--primary); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; transition: all .2s;
}
.ob-continue-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }

@media (max-width: 900px) {
  .ob-grid { grid-template-columns: 1fr; }
  .ob-left-col { position: static; flex-direction: row; align-items: flex-start; gap: 20px; }
  .ob-photo-wrap { width: 120px; height: 150px; }
}
@media (max-width: 600px) {
  .ob-container { padding: 24px 20px 24px; }
  .ob-name-row { grid-template-columns: 1fr; }
  .ob-music-btns { grid-template-columns: 1fr; }
  .ob-type-row { grid-template-columns: 1fr; }
  .ob-topbar-inner { padding: 0 20px; }
  .ob-bottom-inner { padding: 0 20px; }
  /* Revert to column so ob-bio-tip (width:100%) doesn't overflow the flex row */
  .ob-left-col { flex-direction: column; align-items: center; gap: 14px; }
  .ob-photo-wrap { width: 160px; height: 200px; }
}

/* ── Discover / Swipe ─────────────────────────────────────────────────── */
.disc-wrap { max-width: 480px; margin: 0 auto; padding: 24px 16px 80px; }
.disc-greeting-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.disc-greeting { font-size: 26px; font-weight: 900; letter-spacing: -0.5px; }
.disc-subtitle { font-size: 14px; color: var(--muted); margin-top: 2px; }
.disc-swipe-counter { font-size: 13px; font-weight: 700; color: var(--muted); background: #fff; padding: 6px 14px; border-radius: 20px; border: 1.5px solid var(--border); }
.tag { background: var(--primary-soft); color: var(--primary); padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; border: 1px solid var(--primary-border); }

/* Discover topbar */
#swipeCity { font-weight: 700; }
.disc-topbar-right { display: flex; align-items: center; gap: 12px; }
.disc-filter-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; background: var(--primary); color: #fff; border: none; border-radius: 20px; font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer; transition: background .15s, transform .1s; }
.disc-filter-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.disc-mobile-filter-btn { display: inline-flex; align-items: center; gap: 5px; padding: 8px 16px; background: var(--primary); color: #fff; border: none; border-radius: 20px; font-size: 13px; font-weight: 700; font-family: inherit; cursor: pointer; transition: background .15s, transform .1s; box-shadow: 0 2px 8px rgba(123,92,225,.35); }
.disc-mobile-filter-btn:active { transform: scale(.96); }
.disc-mobile-filter-btn.active { background: #fff; color: var(--primary); box-shadow: 0 2px 8px rgba(123,92,225,.18); outline: 2px solid var(--primary); outline-offset: -2px; }
.disc-filter-empty-btn { margin-top: 16px; padding: 10px 22px; background: var(--primary); color: #fff; border: none; border-radius: 20px; font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer; transition: background .15s; }
.disc-filter-empty-btn:hover { background: var(--primary-dark); }

/* Filter panel */
/* Filter panel */
.filter-panel { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.filter-panel.hidden { display: none; }
.filter-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); backdrop-filter: blur(4px); }
.filter-box { position: relative; background: #fff; border-radius: 24px; width: 100%; max-width: 500px; padding: 28px 28px 28px; box-shadow: 0 24px 80px rgba(0,0,0,.22); max-height: 90vh; overflow-y: auto; }
.filter-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; gap: 12px; }
.filter-title { font-size: 22px; font-weight: 800; color: var(--text); line-height: 1.2; margin: 0 0 4px; }
.filter-subtitle { font-size: 13px; color: var(--muted); margin: 0; }
.filter-close { background: var(--bg-soft); border: none; width: 32px; height: 32px; border-radius: 50%; font-size: 16px; cursor: pointer; color: var(--muted); flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: background .12s; margin-top: 2px; }
.filter-close:hover { background: var(--border); color: var(--text); }
.filter-section { margin-bottom: 24px; }
.filter-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 12px; }
/* Mode cards */
.filter-mode-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fmode-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px 12px; border-radius: 16px; border: 2px solid var(--border); background: #fff; font-family: inherit; cursor: pointer; transition: all .15s; text-align: center; }
.fmode-card .fmc-icon { font-size: 24px; margin-bottom: 2px; }
.fmode-card strong { font-size: 13px; font-weight: 700; color: var(--text); display: block; }
.fmode-card span { font-size: 11px; color: var(--muted); display: block; }
.fmode-card:hover { border-color: var(--primary); background: #faf5ff; }
.fmode-card.active { border-color: var(--primary); background: var(--primary); }
.fmode-card.active strong, .fmode-card.active span { color: #fff; }
/* City search */
.filter-city-search-wrap { display: flex; align-items: center; gap: 10px; border: 2px solid var(--border); border-radius: 14px; padding: 10px 14px; margin-bottom: 14px; transition: border-color .15s; }
.filter-city-search-wrap:focus-within { border-color: var(--primary); }
.fcs-icon { font-size: 15px; flex-shrink: 0; }
.filter-city-search { border: none; outline: none; font-size: 14px; font-family: inherit; color: var(--text); flex: 1; background: transparent; }
.filter-city-search::placeholder { color: var(--muted); }
.filter-city-pop-label { font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.filter-cities { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-city-opt { padding: 7px 13px; border-radius: 20px; border: 2px solid var(--border); background: #fff; font-size: 13px; font-family: inherit; cursor: pointer; color: var(--text); transition: all .12s; white-space: nowrap; }
.filter-city-opt:hover { border-color: var(--primary); color: var(--primary); }
.filter-city-opt.active { border-color: var(--primary); background: var(--primary); color: #fff; font-weight: 700; }
/* Age range */
.filter-age-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.filter-age-display { font-size: 15px; font-weight: 800; color: var(--primary); }
.filter-range-wrap { position: relative; height: 44px; display: flex; align-items: center; margin: 0 4px; }
.filter-range-track { position: absolute; width: 100%; height: 5px; border-radius: 5px; pointer-events: none; z-index: 1; }
.filter-range { -webkit-appearance: none; appearance: none; position: absolute; width: 100%; height: 5px; background: transparent; pointer-events: none; z-index: 2; outline: none; }
.filter-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); cursor: pointer; pointer-events: all; border: 3px solid #fff; box-shadow: 0 2px 10px rgba(124,92,230,.4); transition: transform .1s; }
.filter-range::-webkit-slider-thumb:hover { transform: scale(1.15); }
.filter-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--primary); cursor: pointer; pointer-events: all; border: 3px solid #fff; box-shadow: 0 2px 10px rgba(124,92,230,.4); }
.filter-range::-webkit-slider-runnable-track, .filter-range::-moz-range-track { background: transparent; }
/* Actions */
.filter-actions { display: flex; gap: 12px; margin-top: 4px; }
.filter-reset { flex: 1; padding: 13px; border: 2px solid var(--border); border-radius: 14px; background: #fff; font-size: 15px; font-weight: 600; font-family: inherit; cursor: pointer; color: var(--muted); transition: all .15s; }
.filter-reset:hover { border-color: var(--danger); color: var(--danger); }
.filter-apply { flex: 2; padding: 13px; border: none; border-radius: 14px; background: var(--primary); color: #fff; font-size: 15px; font-weight: 700; font-family: inherit; cursor: pointer; transition: background .15s; }
.filter-apply:hover { background: var(--primary-dark); }

/* Card stack */
.swipe-stage { position: relative; height: 520px; margin-bottom: 20px; }
.card-stack { position: relative; width: 100%; height: 100%; }
.profile-card { position: absolute; inset: 0; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,.14); cursor: grab; user-select: none; }
.profile-card:active { cursor: grabbing; }
.profile-card.behind { transform: scale(0.95) translateY(14px); z-index: 1; transition: transform .3s ease; }
.profile-card.front { z-index: 2; }
.profile-card.swiping-right { transform: translateX(160%) rotate(20deg) !important; transition: transform .4s ease; }
.profile-card.swiping-left  { transform: translateX(-160%) rotate(-20deg) !important; transition: transform .4s ease; }

/* Card content */
.card-photo-wrap { position: relative; height: 340px; overflow: hidden; }
.card-photo { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.card-photo-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary-soft), var(--primary-border)); }
.card-photo-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,.72) 0%, transparent 100%); padding: 28px 18px 14px; }
.card-name-over { color: #fff; font-size: 22px; font-weight: 800; }
.card-city-over { color: rgba(255,255,255,.8); font-size: 13px; margin-top: 3px; }
.like-indicator { position: absolute; top: 22px; left: 18px; background: var(--success); color: #fff; font-size: 16px; font-weight: 900; padding: 6px 14px; border-radius: 8px; border: 3px solid #fff; opacity: 0; transform: rotate(-15deg); z-index: 10; letter-spacing: 1px; pointer-events: none; }
.nope-indicator { position: absolute; top: 22px; right: 18px; background: var(--danger); color: #fff; font-size: 16px; font-weight: 900; padding: 6px 14px; border-radius: 8px; border: 3px solid #fff; opacity: 0; transform: rotate(15deg); z-index: 10; letter-spacing: 1px; pointer-events: none; }
.recommended-badge { position: absolute; top: 14px; right: 56px; background: #f6c90e; color: #1a1a2e; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; z-index: 5; }
.card-body { padding: 14px 18px; }
.card-avail { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.avail-dates { color: var(--primary); }
.avail-anytime { color: var(--success); }
.card-looking { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.card-langs  { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.card-bio { font-size: 14px; line-height: 1.5; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.card-rating { font-size: 12px; color: var(--muted); margin-top: 8px; }

/* Like / Dislike buttons */
.swipe-actions { display: flex; justify-content: center; align-items: center; gap: 32px; margin-bottom: 16px; }
.sa-skip { width: 60px; height: 60px; border-radius: 50%; border: 2.5px solid var(--danger); background: #fff; color: var(--danger); font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(239,68,68,.15); transition: all .15s; font-family: inherit; }
.sa-skip:hover { background: var(--danger); color: #fff; transform: scale(1.05); }
.sa-like { width: 70px; height: 70px; border-radius: 50%; border: none; background: var(--success); color: #fff; font-size: 26px; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(16,185,129,.3); transition: all .15s; font-family: inherit; }
.sa-like:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(16,185,129,.4); }

/* Empty state */
.disc-empty { text-align: center; padding: 60px 20px; }
.disc-empty-icon { font-size: 56px; margin-bottom: 14px; }
.disc-empty-title { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.disc-empty-sub { font-size: 14px; color: var(--muted); }

/* Premium banner */
.disc-premium-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: linear-gradient(135deg,#fffbe6,#fff3cd); border: 2px solid #f6c90e; border-radius: 14px; padding: 14px 20px; margin-top: 8px; }
.disc-unlock-btn { padding: 9px 20px; border: none; background: #f6c90e; color: #1a1a2e; border-radius: 8px; font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; }

/* ── Parent Mode ──────────────────────────────────────────────────────── */
.pm-hero { margin-bottom: 28px; }
.pm-hero h2 { font-size: 26px; font-weight: 900; }
.pm-hero p { font-size: 15px; color: var(--muted); margin-top: 4px; }
.pm-choice-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 32px; }
.pm-choice-card { display: flex; align-items: center; gap: 16px; padding: 24px 20px; border: 2px solid var(--border); border-radius: 18px; background: var(--bg); cursor: pointer; text-align: left; transition: all .2s; }
.pm-choice-card:hover { border-color: var(--primary); background: var(--primary-soft); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(124,92,230,.1); }
.pmcc-icon { font-size: 36px; flex-shrink: 0; }
.pmcc-body { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.pmcc-body strong { font-size: 16px; font-weight: 800; color: var(--text); }
.pmcc-body span { font-size: 13px; color: var(--muted); line-height: 1.5; }
.pmcc-arr { font-size: 20px; color: var(--muted); transition: transform .2s, color .2s; }
.pm-choice-card:hover .pmcc-arr { transform: translateX(4px); color: var(--primary); }
.pm-tab-area { margin-bottom: 20px; }
.pm-mytrips-toggle { padding: 9px 20px; border: 2px solid var(--border); border-radius: 20px; background: transparent; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; transition: all .15s; }
.pm-mytrips-toggle:hover { border-color: var(--primary); color: var(--primary); }

/* Shared small utility */
.card-avail { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 20px; display: inline-flex; align-items: center; gap: 6px; width: fit-content; }
.avail-anytime { background: #e8f5e9; color: #2e7d32; }
.avail-dates { background: #fff3e0; color: #e65100; }
.card-rating { font-size: 13px; color: var(--muted); }
.card-rating span { color: #f6c90e; }
.premium-banner { background: linear-gradient(135deg, #fffbe6, #fff3cd); border: 2px solid #f6c90e; border-radius: 16px; padding: 14px 20px; text-align: center; margin-top: 16px; }
.premium-banner p { font-size: 14px; margin-bottom: 10px; font-weight: 600; }

/* ── Matches ─────────────────────────────────────────────────────────── */
.mx-wrap { max-width: 760px; margin: 0 auto; padding: 40px 24px 80px; }
.mx-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.mx-title { font-size: 28px; font-weight: 800; margin: 0; }
.mode-tabs { display: flex; gap: 8px; }
.mode-tab { padding: 9px 20px; border: 2px solid var(--border); border-radius: 20px; background: transparent; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--muted); transition: all .15s; }
.mode-tab.active { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.match-item { display: flex; align-items: center; gap: 16px; padding: 20px 24px; background: #fff; border: 1.5px solid var(--border); border-radius: 16px; margin-bottom: 12px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.match-item:hover { border-color: var(--primary); box-shadow: 0 4px 20px rgba(124,92,230,.08); }
.mi-left { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; }
.match-avatar { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-soft), var(--primary-border)); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; overflow: hidden; }
.match-avatar img { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; }
.match-info { flex: 1; min-width: 0; }
.match-name { font-weight: 700; font-size: 17px; margin-bottom: 3px; }
.match-preview { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match-time { font-size: 12px; color: var(--helper); margin-top: 4px; }
.mi-chat-btn { flex-shrink: 0; padding: 10px 22px; background: var(--primary); color: #fff; border: none; border-radius: 22px; font-weight: 700; font-size: 14px; cursor: pointer; transition: opacity .15s; white-space: nowrap; }
.mi-chat-btn:hover { opacity: .85; }
.mi-chat-btn.new { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
@media (max-width: 580px) {
  .mx-wrap { padding: 20px 16px 80px; }
  .mx-topbar { flex-direction: column; align-items: flex-start; }
  .match-item { flex-wrap: wrap; }
  .mi-chat-btn { width: 100%; text-align: center; margin-top: 8px; }
}

/* ── Chat ────────────────────────────────────────────────────────────── */
.chat-layout { display: flex; flex-direction: column; height: 100vh; max-width: 860px; margin: 0 auto; }
.chat-header { display: flex; align-items: center; gap: 12px; padding: 14px 24px; background: #fff; border-bottom: 1.5px solid var(--border); flex-shrink: 0; }
.chat-back-btn { background: none; border: 1.5px solid var(--primary); color: var(--primary); font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 20px; cursor: pointer; white-space: nowrap; transition: background .15s; }
.chat-back-btn:hover { background: var(--primary-soft); }
.chat-user { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.chat-avatar-wrap { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: #eee; }
.chat-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
#chatName { font-weight: 700; font-size: 16px; }
.chat-hdr-btns { display: flex; gap: 8px; flex-shrink: 0; }
.chat-hdr-btn { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--border); background: #fff; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: border-color .15s, background .15s; }
.chat-hdr-btn:hover { border-color: var(--primary); }
.chat-hdr-panic { border-color: #ff4444; }
.chat-hdr-panic:hover { background: #fff0f0; }
.chat-messages { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 12px; background: var(--bg-soft); }
.msg-bubble { max-width: 62%; padding: 12px 16px; border-radius: 18px; font-size: 15px; line-height: 1.5; word-wrap: break-word; }
.msg-bubble.mine { background: var(--primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg-bubble.theirs { background: #fff; color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; box-shadow: 0 1px 6px rgba(0,0,0,.08); }
.msg-time { font-size: 11px; opacity: .6; margin-top: 4px; display: block; }
.chat-foot { background: #fff; border-top: 1.5px solid var(--border); padding: 16px 24px 12px; flex-shrink: 0; }
.chat-input-row { display: flex; gap: 10px; }
.chat-input-row input { flex: 1; padding: 12px 18px; border: 2px solid var(--border); border-radius: 24px; outline: none; font-size: 15px; transition: border .15s; background: var(--bg-soft); font-family: inherit; }
.chat-input-row input:focus { border-color: var(--primary); background: #fff; }
.send-btn { padding: 12px 24px; background: var(--primary); color: #fff; border: none; border-radius: 24px; font-weight: 700; cursor: pointer; font-size: 14px; transition: opacity .15s; white-space: nowrap; }
.send-btn:hover { opacity: .85; }
.chat-hint { font-size: 12px; color: var(--helper); margin: 10px 0 0; text-align: center; }

/* ── Shared list container (parent mode, hotels) ─────────────────────── */
.list-container { max-width: 680px; margin: 0 auto; padding: 24px 20px 80px; }
.list-container h2 { font-size: 22px; margin-bottom: 16px; }

/* ── Parent Mode ─────────────────────────────────────────────────────── */
.parent-tabs { display: flex; border: 2px solid var(--border); border-radius: 14px; overflow: hidden; margin-bottom: 20px; }
.ptab { flex: 1; padding: 10px; border: none; background: transparent; font-weight: 600; font-size: 13px; cursor: pointer; transition: all .15s; color: var(--muted); }
.ptab.active { background: var(--primary); color: #fff; }
.filter-row { display: flex; gap: 10px; margin-bottom: 16px; align-items: center; }
.filter-row select { flex: 1; padding: 10px 12px; border: 2px solid var(--border); border-radius: 12px; font-size: 14px; outline: none; }
.trip-card { background: var(--surface); border-radius: 16px; padding: 16px; margin-bottom: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.trip-title { font-weight: 700; font-size: 16px; }
.trip-meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
.trip-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.trip-tag { background: #e8f5e9; color: #2e7d32; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.helper-card { background: var(--surface); border-radius: 14px; padding: 14px; margin-bottom: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.05); display: flex; align-items: center; gap: 14px; }
.helper-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-soft), var(--primary-border)); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.helper-info { flex: 1; }
.helper-name { font-weight: 700; }
.helper-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.helper-rating { font-size: 13px; margin-top: 4px; }
.helper-rating span { color: #f6c90e; }
.accept-btn { padding: 8px 16px; background: var(--success); color: #fff; border: none; border-radius: 10px; font-weight: 700; cursor: pointer; font-size: 13px; }

/* ── Match Toast ─────────────────────────────────────────────────────── */
.match-toast { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; z-index: 200; }
.toast-inner { background: var(--surface); border-radius: 28px; padding: 36px 32px; text-align: center; max-width: 340px; width: 90%; animation: popIn .35s cubic-bezier(.34,1.56,.64,1); }
.toast-hearts { font-size: 40px; margin-bottom: 12px; color: var(--primary); }
.toast-inner h3 { font-size: 28px; font-weight: 900; margin-bottom: 8px; }
.toast-inner p { color: var(--muted); margin-bottom: 20px; font-size: 16px; }
.toast-inner .btn-primary { margin-bottom: 10px; }
@keyframes popIn { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ── Profile Dashboard ───────────────────────────────────────────────── */
.pvd-page-wrap { max-width: 640px; margin: 0 auto; padding: 0 0 100px; }
.pvd-loading { text-align: center; padding: 60px 20px; color: var(--muted); font-size: 15px; }
.pvd-wrap { background: var(--surface); min-height: 100%; }

/* Profile skeleton shimmer */
@keyframes pvd-shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}
.pvd-skel {
  background: linear-gradient(90deg, var(--border) 25%, #ebebeb 50%, var(--border) 75%);
  background-size: 1200px 100%;
  animation: pvd-shimmer 1.5s infinite linear;
  border-radius: 8px;
}
.pvd-skel-cover  { height: 260px; border-radius: 0; display: block; }
.pvd-skel-line   { height: 14px; width: 100%; border-radius: 4px; display: block; }
.pvd-skel-btn    { height: 38px; width: 100%; border-radius: 22px; display: block; margin-top: 4px; }
.pvd-skel-stat   { border-radius: 12px; min-height: 62px; display: block; }
.pvd-skel-chip   { height: 30px; width: 70px; border-radius: 20px; display: inline-block; }

/* Profile load error / timeout state */
.pvd-load-error { text-align: center; padding: 60px 24px; }
.pvd-load-error p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0 0 20px; }
.pvd-retry-btn { padding: 11px 28px; background: var(--primary); color: #fff; border: none; border-radius: 22px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; }

/* Cover */
.pvd-cover { height: 260px; overflow: hidden; position: relative; }
.pvd-cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pvd-cover-gradient { width: 100%; height: 100%; background: linear-gradient(135deg, #fde8d8 0%, #f4a57a 50%, #c96f3e 100%); }
.pvd-cover-upload {
  position: absolute; bottom: 12px; right: 14px;
  background: rgba(0,0,0,.45); color: #fff; border-radius: 20px;
  padding: 6px 13px; font-size: 12px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; gap: 5px;
  backdrop-filter: blur(4px); transition: background .15s; user-select: none;
}
.pvd-cover-upload:hover { background: rgba(0,0,0,.65); }

/* Two-column body */
.pvd-body { display: grid; grid-template-columns: 190px 1fr; align-items: start; }

/* Left column */
.pvd-left { padding: 0 16px 32px; }
.pvd-photo-wrap {
  width: 150px; height: 170px; margin: -64px auto 14px;
  border-radius: 14px; border: 3px solid #fff;
  overflow: hidden; box-shadow: 0 8px 28px rgba(0,0,0,.18);
  position: relative; background: var(--bg);
}
.pvd-avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pvd-avatar-placeholder { width: 100%; height: 100%; border-radius: 11px; }
.pvd-photo-upload-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.38);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .15s; color: #fff; font-size: 11px; font-weight: 700; gap: 4px;
}
.pvd-photo-wrap:hover .pvd-photo-upload-overlay { opacity: 1; }
.pvd-left-name { text-align: center; font-size: 16px; font-weight: 800; margin: 0 0 2px; }
.pvd-left-meta { text-align: center; font-size: 12px; color: var(--muted); margin: 0 0 12px; }
.pvd-edit-btn {
  width: 100%; padding: 9px 0; border: 1.5px solid var(--border);
  background: #fff; color: var(--text); border-radius: 10px;
  font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: border-color .15s, color .15s;
}
.pvd-edit-btn:hover { border-color: var(--primary); color: var(--primary); }
.pvd-status-card {
  margin-top: 12px; background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 9px;
}
.pvd-status-row { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--text); }
.pvd-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; flex-shrink: 0; }
.pvd-status-badge { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); font-weight: 600; }
.pvd-id-badge { display: inline-block; padding: 3px 9px; background: #d1fae5; color: #065f46; border-radius: 20px; font-size: 11px; font-weight: 700; }

/* Right column */
.pvd-right { padding: 20px 20px 32px 20px; border-left: 1px solid var(--border); min-width: 0; }

/* Stats */
.pvd-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 22px; }
.pvd-stat { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 12px 6px; display: flex; flex-direction: column; align-items: center; }
.pvd-stat-val { font-size: 22px; font-weight: 800; color: var(--text); line-height: 1; }
.pvd-stat-lbl { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-top: 4px; text-align: center; }

/* Sections */
.pvd-section { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.pvd-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.pvd-section-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin-bottom: 10px; }
.pvd-bio { font-size: 15px; line-height: 1.75; color: var(--text); font-style: italic; margin: 0; }
.pvd-convo { font-size: 14px; font-style: italic; color: var(--muted); background: var(--bg); border-radius: 12px; padding: 10px 14px; margin-top: 8px; }
.pvd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pvd-chip { padding: 6px 14px; background: var(--primary-soft); color: var(--primary); border-radius: 20px; font-size: 13px; font-weight: 600; }
.pvd-connected-grid { display: grid; gap: 10px; }
.pvd-connected-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg); border: 1.5px solid var(--border); border-radius: 14px;
  padding: 12px 14px;
}
.pvd-connected-row > div:not(.pvd-connection-actions) { flex: 1; }
.pvd-connection-actions { display: flex; gap: 6px; margin-left: auto; }
.pvd-connection-actions button {
  border: 1px solid var(--border); background: #fff; color: var(--muted);
  border-radius: 8px; padding: 5px 8px; font: inherit; font-size: 11px;
  font-weight: 700; cursor: pointer;
}
.pvd-connection-actions button:hover { border-color: var(--primary); color: var(--primary); }
.pvd-connected-row strong { display: block; font-size: 13px; color: var(--text); }
.pvd-connected-row span { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.pvd-connected-icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primary); flex-shrink: 0;
}
.pvd-connect-actions {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px; margin-top: 12px;
}
.pvd-connect-actions button {
  border: 1.5px solid var(--border); background: #fff; color: var(--text);
  border-radius: 10px; padding: 9px 10px; font: inherit; font-size: 12px;
  font-weight: 700; cursor: pointer; transition: border-color .15s, color .15s, transform .15s;
}
.pvd-connect-actions button:hover {
  border-color: var(--primary); color: var(--primary); transform: translateY(-1px);
}
.pvd-music-toggle {
  display: flex; align-items: center; gap: 8px; margin-top: 12px;
  font-size: 12px; color: var(--muted); cursor: pointer;
}
.pvd-music-toggle input { accent-color: var(--primary); }
.pvd-plan-card {
  background: #fff7ed; border: 1px solid #fed7aa;
  border-radius: 16px; padding: 14px;
}
.pvd-plan-card h3 { font-size: 18px; margin: 0 0 12px; line-height: 1.25; }
.pvd-plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.pvd-plan-grid span {
  display: block; background: rgba(255,255,255,.75); border: 1px solid rgba(251,146,60,.25);
  border-radius: 10px; padding: 8px; font-size: 11px; color: var(--muted);
}
.pvd-plan-grid strong { display: block; margin-top: 2px; color: var(--text); font-size: 12px; }
.pvd-plan-actions {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px;
}
.pvd-plan-actions button {
  border: 1px solid var(--primary-border); background: #fff; color: var(--primary);
  border-radius: 999px; padding: 8px 12px; font: inherit; font-size: 12px; font-weight: 700;
  cursor: pointer;
}
.pvd-plan-actions button:hover { background: var(--primary-soft); }
.pvd-preferences-card { background: #fff; border-color: var(--border); }
.pvd-mood-chips { margin-top: 12px; }
.pvd-empty { font-size: 14px; color: var(--muted); font-style: italic; margin: 0; }

.meetup-modal {
  position: fixed; inset: 0; z-index: 5000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.meetup-modal-backdrop {
  position: absolute; inset: 0; background: rgba(15, 23, 42, .48);
  backdrop-filter: blur(5px);
}
.meetup-modal-box {
  position: relative; width: min(560px, 100%); max-height: 88vh; overflow: auto;
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .24);
}
.meetup-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--border-light);
}
.meetup-modal-header h3 { margin: 0; font-size: 18px; }
.meetup-modal-header button {
  border: none; background: none; font: inherit; cursor: pointer; color: var(--muted);
}
.meetup-modal-body {
  display: grid; gap: 14px; padding: 18px 20px;
}
.meetup-field {
  display: grid; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 700;
}
.meetup-field input,
.meetup-field select {
  width: 100%; border: 1px solid var(--border); border-radius: 12px;
  padding: 11px 12px; font: inherit; color: var(--text); background: #fff;
}
.meetup-field-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.meetup-time-fields {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
}
.meetup-check {
  display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-body);
}
.meetup-check input { accent-color: var(--primary); }
.meetup-chip-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.meetup-chip {
  border: 1px solid var(--border); border-radius: 999px; background: #fff;
  color: var(--text-body); padding: 8px 11px; font: inherit; font-size: 12px; cursor: pointer;
}
.meetup-chip.selected {
  color: var(--primary); background: var(--primary-soft); border-color: var(--primary);
}
.meetup-modal-actions {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 16px 20px; border-top: 1px solid var(--border-light);
}
.meetup-cancel,
.meetup-save {
  border-radius: 12px; padding: 10px 14px; font: inherit; font-weight: 800; cursor: pointer;
}
.meetup-cancel { background: #fff; color: var(--text-body); border: 1px solid var(--border); }
.meetup-save { background: var(--primary); color: #fff; border: 1px solid var(--primary); }
@media (max-width: 640px) {
  .meetup-time-fields { grid-template-columns: 1fr; }
}

/* Reviews */
.pvd-review-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.pvd-review-item:last-child { border-bottom: none; padding-bottom: 0; }
.pvd-review-stars { font-size: 14px; margin-bottom: 4px; }
.pvd-review-text { font-size: 14px; line-height: 1.6; font-style: italic; color: var(--text); margin-bottom: 4px; }
.pvd-review-author { font-size: 12px; color: var(--muted); font-weight: 600; }

/* Footer actions */
.pvd-footer-actions { display: flex; gap: 10px; padding: 24px 20px 0; border-top: 1.5px solid var(--border); margin-top: 20px; }
.pvd-btn-share { padding: 11px 22px; border: 2px solid var(--border); color: var(--text); background: transparent; border-radius: 22px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; transition: border-color .15s; }
.pvd-btn-share:hover { border-color: var(--text); }
.pvd-btn-logout { padding: 11px 22px; border: none; color: var(--danger); background: #fee2e2; border-radius: 22px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; margin-left: auto; transition: background .15s; }
.pvd-btn-logout:hover { background: #fecaca; }

@media (max-width: 580px) {
  .pvd-stat-val { font-size: 16px; }
  .pvd-stat-lbl { font-size: 10px; }
  .pvd-footer-actions { flex-direction: column; }
  .pvd-btn-logout { margin-left: 0; }
}

/* ── Profile Edit Modal ──────────────────────────────────────────────── */
.pem-overlay { position: fixed; inset: 0; z-index: 500; display: flex; align-items: flex-end; justify-content: center; }
.pem-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.pem-box { position: relative; z-index: 1; background: var(--surface); border-radius: 24px 24px 0 0; width: 100%; max-width: 640px; max-height: 90vh; overflow-y: auto; box-shadow: 0 -8px 40px rgba(0,0,0,.2); animation: slideUp .3s cubic-bezier(.34,1.56,.64,1); }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.pem-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 16px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.pem-title { font-size: 18px; font-weight: 800; margin: 0; }
.pem-close { border: none; background: var(--bg); color: var(--muted); width: 32px; height: 32px; border-radius: 50%; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-family: inherit; }
.pem-body { padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.pem-photo-row { display: flex; align-items: center; gap: 16px; }
.pem-avatar-preview { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--bg); flex-shrink: 0; border: 2px solid var(--border); }
.pem-avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pem-avatar-initials { width: 100%; height: 100%; }
.pem-photo-info { display: flex; flex-direction: column; gap: 4px; }
.pem-change-photo-btn { padding: 8px 16px; border: 2px solid var(--primary); color: var(--primary); background: transparent; border-radius: 18px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; width: fit-content; }
.pem-photo-note { font-size: 12px; color: var(--muted); }
.pem-field { display: flex; flex-direction: column; gap: 6px; }
.pem-row-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pem-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.pem-input { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 12px; font-size: 14px; font-family: inherit; background: var(--bg); color: var(--text); box-sizing: border-box; transition: border-color .15s; }
.pem-input:focus { outline: none; border-color: var(--primary); }
.pem-textarea { resize: vertical; min-height: 80px; }
.pem-quality-note { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 0; }
.pem-toggle-row { display: flex; gap: 12px; padding-top: 6px; }
.pem-toggle-opt { display: flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.pem-tag-picker { margin-top: 2px; }
.pem-error { color: var(--danger); font-size: 13px; margin: 0; min-height: 18px; }
.pem-save-btn { width: 100%; padding: 14px; background: var(--primary); color: #fff; border: none; border-radius: 14px; font-size: 15px; font-weight: 800; cursor: pointer; font-family: inherit; transition: opacity .15s; }
.pem-save-btn:hover { opacity: .9; }
.pem-save-btn:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 480px) { .pem-row-2col { grid-template-columns: 1fr; } }

/* legacy review classes kept for backward compat */
.review-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.review-item:last-child { border-bottom: none; }
.review-stars { color: #f6c90e; font-size: 14px; }
.review-text { font-size: 14px; margin-top: 4px; }
.review-author { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ── Parent Mode Choice Modal ────────────────────────────────────────── */
.pm-modal { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; }
.pm-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.pm-box { position: relative; z-index: 1; background: var(--surface); border-radius: 24px; padding: 32px 28px; max-width: 420px; width: 90%; box-shadow: 0 16px 60px rgba(0,0,0,.2); animation: popIn .3s cubic-bezier(.34,1.56,.64,1); text-align: center; }
.pm-box h3 { font-size: 22px; font-weight: 900; margin-bottom: 6px; }
.pm-subtitle { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.pm-choices { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; text-align: left; }
.pm-choice { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px; border: 2px solid transparent; background: var(--bg); cursor: pointer; transition: transform .2s, box-shadow .2s; }
.pm-choice-need { border-color: var(--primary); }
.pm-choice-want { border-color: var(--secondary); }
.pm-choice-need:hover { background: var(--primary-soft); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(124,92,230,.2); }
.pm-choice-want:hover { background: var(--primary-soft); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(20,184,166,.2); }
.pm-icon { font-size: 38px; flex-shrink: 0; }
.pm-choice-text strong { display: block; font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.pm-choice-text span { font-size: 13px; color: var(--muted); }

/* ── Helper Profile Setup ────────────────────────────────────────────── */
.helper-setup-intro { text-align: center; padding: 20px 0 18px; }
.helper-setup-icon { font-size: 52px; margin-bottom: 10px; }
.helper-setup-intro h3 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.helper-setup-intro p { font-size: 14px; color: var(--muted); line-height: 1.5; }
.checkbox-group-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.helper-profile-banner { display: flex; align-items: flex-start; justify-content: space-between; background: var(--primary-soft); border-radius: 16px; padding: 16px 18px; margin-bottom: 20px; gap: 12px; border: 1px solid var(--primary-border); }
.hp-city { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.helpers-found-title { font-size: 17px; font-weight: 800; margin-bottom: 14px; }

/* ── Profile Page Tabs ───────────────────────────────────────────────── */
.profile-page-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.profile-page-tab { padding: 9px 20px; border: 2px solid var(--border); border-radius: 20px; background: transparent; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--muted); transition: all .15s; }
.profile-page-tab.active { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

/* ── Hotels Grid ─────────────────────────────────────────────────────── */
.hotels-shell { max-width: 1180px; margin: 0 auto; padding: 28px 16px 56px; }
.hotels-hero { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 24px; align-items: stretch; margin-bottom: 22px; }
.hotels-kicker { font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--primary); margin-bottom: 8px; }
.hotels-hero h2 { margin: 0; font-size: 38px; line-height: 1.04; letter-spacing: 0; color: var(--text); }
.hotels-hero h2::after { content: "hotels."; font-family: Georgia, serif; font-style: italic; color: var(--primary); font-weight: 400; margin-left: 8px; }
.hotels-hero p { margin: 10px 0 0; max-width: 620px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.hotel-notify-card { background: #111021; color: #fff; border-radius: 20px; padding: 20px; box-shadow: 0 22px 46px rgba(17,16,33,.16); }
.hotel-notify-label { display: inline-block; color: #f59e0b; font-size: 10px; font-weight: 900; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px; }
.hotel-notify-card strong { display: block; font-size: 18px; line-height: 1.25; }
.hotel-notify-card p { color: rgba(255,255,255,.72); font-size: 13px; margin: 8px 0 14px; }
.hotel-notify-card small { display: block; color: rgba(255,255,255,.62); margin-top: 10px; line-height: 1.4; }
.hotel-notify-actions { display: flex; gap: 8px; }
.hotel-notify-actions button { flex: 1; border: 1px solid #e4defa; background: #fff; color: var(--text); border-radius: 12px; padding: 10px 14px; font-weight: 800; cursor: pointer; transition: transform .15s, border-color .15s, background .15s; }
.hotel-notify-card .hotel-notify-actions button:first-child,
.hotel-panel-notify .hotel-notify-actions button:first-child { background: var(--primary); border-color: var(--primary); color: #fff; }
.hotel-notify-actions button:hover { transform: translateY(-1px); border-color: var(--primary); }
.hotels-toolbar { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.hotel-filter-row { display: flex; gap: 10px; align-items: center; margin-bottom: 0; min-width: 380px; }
.hotel-filter-row select { flex: 1; padding: 11px 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; outline: none; background: var(--surface); }
.hotel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hotel-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; box-shadow: 0 14px 40px rgba(17,16,33,.08); cursor: pointer; transition: transform .2s, box-shadow .2s, border-color .2s; }
.hotel-card:hover { transform: translateY(-4px); border-color: #c9bdfc; box-shadow: 0 20px 54px rgba(124,88,255,.15); }
.hotel-card-header { height: 190px; background: #f4f0ff; overflow: hidden; }
.hotel-card-header img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.hotel-card:hover .hotel-card-header img { transform: scale(1.04); }
.hotel-card-body { padding: 14px 16px 16px; }
.hotel-card-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; margin-bottom: 8px; }
.hotel-card-name { font-weight: 800; font-size: 16px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hotel-card-tags { display: flex; gap: 6px; flex-wrap: wrap; min-height: 26px; margin-top: 10px; }
.hotel-card-tags span { background: #f4f0ff; color: #6750d9; border-radius: 999px; padding: 5px 9px; font-size: 11px; font-weight: 700; }
.hotel-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.hotel-card-price { font-size: 16px; font-weight: 900; color: var(--text); line-height: 1.2; }
.hotel-per-night { font-size: 11px; font-weight: 500; color: var(--muted); }
.hotel-view-btn { border: 1px solid var(--border); background: #fff; color: var(--text); border-radius: 8px; padding: 8px 12px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.hotel-view-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ── Hotel Modal ─────────────────────────────────────────────────────── */
.hotel-modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 26px; }
.hotel-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); cursor: pointer; }
.hotel-modal-box { position: relative; z-index: 1; background: var(--surface); width: min(1080px, 94vw); max-height: 88vh; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; animation: slideUp .32s cubic-bezier(0.16,1,0.3,1); box-shadow: 0 30px 80px rgba(0,0,0,.28); }
.hm-sticky-close { position: absolute; top: 12px; right: 12px; z-index: 20; width: 44px; height: 44px; border-radius: 50%; background: rgba(0,0,0,.45); backdrop-filter: blur(6px); border: none; color: #fff; font-size: 18px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.hm-sticky-close:hover { background: rgba(0,0,0,.65); }
.hotel-modal-scroll { overflow-y: auto; flex: 1; }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.hotel-modal-header { padding: 24px 20px 22px; color: #fff; position: relative; }
.hotel-modal-close { position: absolute; top: 14px; right: 14px; background: rgba(255,255,255,.25); border: none; color: #fff; width: 32px; height: 32px; border-radius: 50%; font-size: 15px; cursor: pointer; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.hotel-modal-close:hover { background: rgba(255,255,255,.4); }
.hotel-modal-stars { font-size: 16px; letter-spacing: 3px; opacity: .9; }
.hotel-modal-name { font-size: 24px; font-weight: 900; margin-top: 6px; line-height: 1.2; }
.hotel-modal-addr { font-size: 13px; opacity: .8; margin-top: 4px; }
.hotel-modal-price { font-size: 32px; font-weight: 900; margin-top: 14px; line-height: 1; }
.hotel-modal-price span { font-size: 14px; opacity: .75; font-weight: 400; }
.hotel-modal-body { padding: 20px; }
.hotel-detail-layout { padding: 28px 48px 42px; }
.hotel-back-btn { border: none; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; margin-bottom: 18px; padding: 0; }
.hotel-back-btn:hover { color: var(--primary); }
.hotel-gallery { display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px; margin-bottom: 28px; }
.hotel-gallery img { width: 100%; object-fit: cover; display: block; border-radius: 8px; background: #f4f0ff; }
.hotel-gallery-main { height: 330px; }
.hotel-gallery-side { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.hotel-gallery-side img { height: 160px; }
.hotel-detail-grid { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 38px; align-items: start; }
.hotel-detail-kicker { font-size: 11px; font-weight: 900; letter-spacing: 1.7px; text-transform: uppercase; color: var(--primary); margin-bottom: 8px; }
.hotel-detail-demo { display: inline-block; margin-left: 8px; color: #15803d; background: #dcfce7; border-radius: 999px; padding: 3px 8px; letter-spacing: .2px; }
.hotel-detail-copy h3 { font-size: 32px; line-height: 1.08; margin: 0 0 10px; color: var(--text); }
.hotel-detail-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.hotel-demo-note { margin-top: 22px; border: 1px solid #fed7aa; background: #fff7ed; color: #9a3412; border-radius: 12px; padding: 12px 14px; font-size: 13px; font-weight: 700; line-height: 1.45; }
.hotel-booking-panel { position: sticky; top: 0; border: 1px solid var(--border); border-radius: 12px; background: #fff; padding: 22px; box-shadow: 0 18px 46px rgba(17,16,33,.1); }
.hotel-panel-price { font-size: 28px; font-weight: 900; color: var(--text); margin-bottom: 6px; }
.hotel-panel-price span { color: var(--muted); font-size: 12px; font-weight: 500; }
.hotel-panel-badge { display: inline-block; background: #dcfce7; color: #15803d; border-radius: 999px; padding: 5px 10px; font-size: 11px; font-weight: 800; margin-bottom: 18px; }
.hotel-panel-notify { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 14px; }
.hotel-panel-notify strong { display: block; font-size: 13px; margin-bottom: 10px; }
.hotel-modal-rating-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; background: var(--bg); padding: 14px 18px; border-radius: 16px; }
.hotel-big-rating { font-size: 48px; font-weight: 900; color: var(--primary); line-height: 1; }
.hotel-modal-stars-sm { color: #f6c90e; font-size: 18px; }
.hotel-modal-desc { font-size: 14px; line-height: 1.7; color: var(--text); margin-bottom: 20px; }
.hotel-section-title { font-size: 15px; font-weight: 700; margin: 20px 0 10px; color: var(--text); }
.amenity-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.amenity-badge { padding: 5px 13px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.hotel-reviews-list { display: flex; flex-direction: column; gap: 10px; }
.hotel-review-item { padding: 12px 14px; background: var(--bg); border-radius: 14px; }
.hotel-review-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.hotel-review-stars { color: #f6c90e; font-size: 14px; }
.hotel-review-author { font-size: 12px; color: var(--muted); font-weight: 600; }
.hotel-review-text { font-size: 14px; color: var(--text); line-height: 1.5; }
.star-picker { display: flex; gap: 6px; font-size: 32px; color: var(--border); cursor: pointer; margin-bottom: 2px; }
.star-pick { transition: color .1s, transform .1s; }
.star-pick:hover { transform: scale(1.15); }
.star-pick.active, .star-pick.selected { color: #f6c90e; }

/* ── Recommended badge & locked profiles row ─────────────────────── */
.recommended-badge {
  position: absolute; top: 14px; left: 14px; z-index: 10;
  background: linear-gradient(135deg, #f6c90e, #ff9500);
  color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 12px; border-radius: 20px;
  box-shadow: 0 2px 8px rgba(246,201,14,.4);
}
.locked-profiles-row {
  margin: 0 16px 10px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  height: 68px;
  background: var(--surface);
  border: 2px solid var(--border);
  cursor: pointer;
}
.locked-avatars-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  filter: blur(5px);
  height: 100%;
}
.locked-avatar-thumb { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.locked-overlay {
  position: absolute; inset: 0;
  background: rgba(255,255,255,.82);
  display: flex; align-items: center; justify-content: center;
  gap: 8px; font-size: 13px; font-weight: 600; color: var(--primary);
}
.btn-premium-sm {
  padding: 5px 12px; font-size: 12px; font-weight: 700; border-radius: 20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; border: none; cursor: pointer; white-space: nowrap;
}

/* ── Matches premium lock ────────────────────────────────────────── */
.matches-premium-lock {
  position: relative; margin-top: 8px; border-radius: 18px;
  overflow: hidden; border: 2px dashed var(--border);
}
.matches-lock-ghosts {
  display: flex; flex-direction: column; gap: 1px;
  filter: blur(4px); pointer-events: none;
}
.match-ghost-item {
  height: 72px; background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}
@keyframes shimmer { 0%{background-position:100% 0} 100%{background-position:-100% 0} }
.matches-lock-overlay {
  position: absolute; inset: 0;
  background: rgba(255,255,255,.88);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 20px; text-align: center;
}
.lock-icon-lg { font-size: 32px; margin-bottom: 6px; }

/* ── Hotel booking form ──────────────────────────────────────────── */
.hotel-booking-form {
  background: #f8faff; border-radius: 16px;
  padding: 16px; margin-bottom: 4px; border: 2px solid #e8eeff;
}
.booking-date-row { display: flex; gap: 12px; margin-bottom: 12px; }
.booking-date-field { flex: 1; }
.booking-label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .5px; }
.booking-date-input {
  width: 100%; padding: 10px 12px; border: 2px solid var(--border); border-radius: 10px;
  font-size: 14px; outline: none; background: #fff; box-sizing: border-box;
  transition: border .15s;
}
.booking-date-input:focus { border-color: var(--primary); }
.booking-price-display {
  background: linear-gradient(135deg, #667eea22, #764ba222);
  border: 2px solid #667eea44;
  color: #4c3d9c; font-weight: 700; font-size: 15px;
  padding: 10px 14px; border-radius: 12px; margin-bottom: 12px; text-align: center;
}
.booking-card-input {
  width: 100%; padding: 10px 14px; border: 2px solid var(--border); border-radius: 10px;
  font-size: 14px; outline: none; background: #fff; box-sizing: border-box;
  margin-bottom: 12px; transition: border .15s;
}
.booking-card-input:focus { border-color: var(--primary); }
.btn-book {
  width: 100%; padding: 14px; font-size: 16px; font-weight: 700;
  background: linear-gradient(135deg, #11998e, #38ef7d);
  color: #fff; border: none; border-radius: 14px; cursor: pointer;
  box-shadow: 0 4px 15px rgba(17,153,142,.35); transition: transform .15s, box-shadow .15s;
}
.btn-book:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(17,153,142,.45); }
.hotel-page-sub { font-size: 14px; color: var(--muted); margin: -10px 0 14px; line-height: 1.55; }
.stay-category-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 16px; }
.stay-category-tab { border: 1px solid var(--border); background: #fff; color: var(--text); border-radius: 8px; padding: 10px 14px; font-size: 14px; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; }
.stay-category-tab span { color: var(--primary); background: #f4f0ff; border-radius: 999px; padding: 3px 7px; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .5px; }
.stay-category-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.stay-category-tab.active span { background: rgba(255,255,255,.18); color: #fff; }
.community-stays-panel { display: flex; flex-direction: column; gap: 16px; }
.cs-explainer-card, .cs-card, .cs-form { background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 14px 40px rgba(17,16,33,.07); }
.cs-explainer-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px; background: linear-gradient(135deg, #ffffff, #f7f4ff); }
.cs-pill-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.cs-pill, .cs-card-label { display: inline-flex; align-items: center; width: max-content; color: #6750d9; background: #f4f0ff; border-radius: 999px; padding: 5px 9px; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .6px; }
.cs-explainer-card h3, .cs-card h3, .cs-form h3 { margin: 0 0 8px; color: var(--text); }
.cs-explainer-card p, .cs-card p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 14px; }
.cs-interest-btn { width: auto; white-space: nowrap; flex-shrink: 0; }
.cs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cs-card { padding: 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.cs-card .btn-primary { width: auto; margin-top: auto; }
.cs-form { padding: 20px; }
.cs-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cs-form label { display: flex; flex-direction: column; gap: 6px; color: var(--text); font-size: 13px; font-weight: 800; }
.cs-form label span { color: var(--muted); font-weight: 600; }
.cs-form input[type="text"], .cs-form select, .cs-form textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); font: inherit; font-weight: 500; padding: 11px 12px; outline: none; }
.cs-form input[type="text"]:focus, .cs-form select:focus, .cs-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,88,255,.12); }
.cs-wide { grid-column: 1 / -1; }
.cs-confirm { flex-direction: row !important; align-items: flex-start; gap: 10px !important; margin: 14px 0 10px; color: var(--text) !important; line-height: 1.45; }
.cs-confirm input { margin-top: 2px; flex-shrink: 0; }
.cs-safety-note { border: 1px solid #fed7aa; background: #fff7ed; color: #9a3412; border-radius: 8px; padding: 11px 12px; font-size: 13px; font-weight: 700; line-height: 1.45; }
.cs-submit-btn { width: auto; margin-top: 12px; }
.hotel-city-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.hotel-chip { padding: 6px 14px; border-radius: 20px; border: 2px solid var(--border); background: var(--surface); font-size: 13px; font-weight: 600; cursor: pointer; color: var(--text); transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.hotel-chip:hover { border-color: var(--primary); color: var(--primary); }
.hotel-chip-active { background: var(--primary) !important; border-color: var(--primary) !important; color: #fff !important; }
.hotel-demo-badge { position: absolute; bottom: 8px; left: 8px; background: rgba(0,0,0,.52); color: #fff; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 8px; letter-spacing: .3px; pointer-events: none; }
.hotel-modal-demo-badge { display: inline-block; background: rgba(0,0,0,.28); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 10px; margin-top: 10px; }
.hotel-date-error { color: var(--danger); font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.hotel-booking-note { font-size: 12px; color: var(--muted); text-align: center; margin: 8px 0 0; line-height: 1.4; }
/* ── Hotel availability modal (coming soon) ── */
.hotel-avail-modal { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; padding: 20px; }
.hotel-avail-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.hotel-avail-box { position: relative; z-index: 1; background: var(--surface); border-radius: 24px; padding: 36px 28px; max-width: 380px; width: 100%; text-align: center; animation: popIn .3s ease; }
.hotel-avail-icon { font-size: 48px; margin-bottom: 14px; }
.hotel-avail-title { font-size: 20px; font-weight: 900; margin-bottom: 8px; }
.hotel-avail-sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; line-height: 1.5; }
@media (max-width: 960px) {
  .hotels-hero, .hotels-toolbar, .hotel-detail-grid, .hotel-gallery { grid-template-columns: 1fr; }
  .hotels-toolbar { display: grid; }
  .hotel-filter-row { min-width: 0; width: 100%; }
  .hotel-grid { grid-template-columns: repeat(2, 1fr); }
  .hotel-detail-layout { padding: 22px; }
  .hotel-booking-panel { position: static; }
}
@media (max-width: 640px) {
  .hotels-shell { padding: 20px 12px 42px; }
  .hotels-hero h2 { font-size: 30px; }
  .stay-category-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .stay-category-tab { flex: 0 0 auto; }
  .cs-explainer-card, .cs-grid, .cs-form-grid { grid-template-columns: 1fr; }
  .cs-explainer-card { display: grid; padding: 16px; }
  .cs-interest-btn, .cs-card .btn-primary, .cs-submit-btn { width: 100%; }
  .hotel-grid { grid-template-columns: 1fr; }
  .hotel-card-header { height: 210px; }
  .hotel-modal { padding: 0; align-items: stretch; }
  .hotel-modal-box { width: 100%; max-height: 100vh; border-radius: 0; }
  .hotel-gallery-side { grid-template-columns: 1fr 1fr; }
  .hotel-gallery-main { height: 240px; }
  .hotel-gallery-side img { height: 110px; }
  .booking-date-row { flex-direction: column; }
}
/* ── Landing page demo stay cards ── */
.ln-hotel-img-wrap { position: relative; overflow: hidden; }
.ln-demo-badge { position: absolute; bottom: 8px; left: 8px; background: rgba(0,0,0,.52); color: #fff; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 8px; }
.ln-sample-img { height: 140px; display: flex; align-items: center; justify-content: center; }
.ln-hotel-initials-lg { font-size: 40px; font-weight: 900; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.25); }

/* ── Toast notifications ─────────────────────────────────────────── */
.app-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: #fff; border-radius: 16px;
  padding: 14px 18px; display: flex; align-items: center; gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18); z-index: 500; max-width: 340px; width: 90%;
  animation: popIn .3s ease;
}
.booking-toast { border-left: 4px solid #11998e; }
.toast-icon { font-size: 28px; flex-shrink: 0; }
.app-toast strong { display: block; font-size: 14px; margin-bottom: 2px; }
.app-toast p { margin: 0; font-size: 13px; color: var(--muted); }
.toast-close { margin-left: auto; background: none; border: none; color: var(--muted); font-size: 18px; cursor: pointer; padding: 0 4px; }

/* ── Rating modal ────────────────────────────────────────────────── */
.rating-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  z-index: 500; display: flex; align-items: center; justify-content: center; padding: 20px;
}
.rating-modal-box {
  background: #fff; border-radius: 24px; padding: 32px 28px;
  max-width: 380px; width: 100%; text-align: center;
  animation: popIn .25s ease;
}
.rating-modal-icon { font-size: 48px; margin-bottom: 12px; }
.rating-modal-title { margin: 0 0 6px; font-size: 20px; }
.rating-modal-sub { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.rating-stars { justify-content: center; margin-bottom: 4px; }
.rating-modal-textarea {
  width: 100%; margin-top: 16px; padding: 12px 14px;
  border: 2px solid var(--border); border-radius: 12px;
  font-size: 14px; font-family: inherit; resize: vertical; outline: none;
  box-sizing: border-box; transition: border .15s;
}
.rating-modal-textarea:focus { border-color: var(--primary); }
.btn-rate {
  padding: 8px 16px; font-size: 13px; font-weight: 700; border-radius: 20px;
  background: linear-gradient(135deg, #f6c90e, #ff9500);
  color: #fff; border: none; cursor: pointer;
}

@media (max-width: 480px) {
  .nav-links { gap: 0; }
  .nav-btn { padding: 0 8px; font-size: 11px; }
  .nav-brand { font-size: 16px; }
  .card-stack { height: 460px; }
  .hotel-grid { grid-template-columns: 1fr; }
}

/* On small phones, hide secondary nav items so the bar doesn't overflow.
   Parent and Hotels are accessible within the app — Log out is on the Profile page. */
@media (max-width: 420px) {
  .nav-btn[data-page="parent"],
  .nav-btn[data-page="hotels"],
  .logout-btn { display: none; }
  .nav-btn { padding: 0 6px; font-size: 10px; }
  .nav-brand { font-size: 14px; }
}

/* ── Profile page — mobile single-column collapse ──────────────────── */
@media (max-width: 600px) {
  .pvd-page-wrap { padding: 0 0 80px; }
  .pvd-cover { height: 180px; }
  .pvd-skel-cover { height: 180px; }
  .pvd-body { grid-template-columns: 1fr; }
  .pvd-left {
    padding: 0 20px 16px;
    display: flex; flex-direction: column; align-items: center;
  }
  .pvd-photo-wrap { margin: -52px auto 12px; }
  .pvd-left-name { text-align: center; }
  .pvd-left-meta { text-align: center; }
  .pvd-edit-btn { max-width: 220px; }
  .pvd-status-card { width: 100%; }
  .pvd-right {
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 16px;
  }
  .pvd-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════════════════════════════
   DISCOVER PAGE — 3-column redesign
   ═══════════════════════════════════════════════════════════════════════ */

/* Page override for discover */
#page-discover, #page-swipe { background: var(--bg); }
#page-matches { background: var(--bg); }

/* 3-column grid */
.disc-layout {
  display: grid;
  grid-template-columns: 260px 1fr 280px;
  gap: 20px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 24px 120px;
  align-items: start;
}

/* ── Left Filter Sidebar ────────────────────────────────────────────── */
/* Override old fixed positioning */
#filterPanel.disc-filter-col {
  position: static !important;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  padding: 20px;
  display: flex !important;
  flex-direction: column;
  gap: 0;
  box-shadow: var(--shadow);
}

.df-section { margin-bottom: 20px; }
.df-lbl {
  font-size: 10px; font-weight: 700; letter-spacing: .9px;
  color: var(--helper); text-transform: uppercase; margin-bottom: 10px;
}
.df-city-row {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border: 1px solid var(--border);
  border-radius: 9px; cursor: pointer; font-size: 14px; font-weight: 600;
  background: var(--bg); transition: border-color .15s; color: var(--text);
}
.df-city-row:hover { border-color: var(--primary); }
.df-chevron { margin-left: auto; color: var(--helper); font-size: 12px; }
.df-city-search {
  width: 100%; padding: 7px 10px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 13px; font-family: inherit;
  margin-top: 8px; outline: none; display: none; background: #fff; color: var(--text);
}
.df-city-search.open { display: block; }
.df-city-search:focus { border-color: var(--primary); }
.df-cities { display: none; flex-direction: column; gap: 2px; margin-top: 6px; max-height: 140px; overflow-y: auto; }
.df-cities.open { display: flex; }
.filter-city-opt {
  text-align: left; padding: 7px 10px; border-radius: 8px;
  border: none; background: transparent; font-size: 13px; font-family: inherit;
  cursor: pointer; color: var(--text); transition: background .12s;
}
.filter-city-opt:hover { background: var(--primary-soft); }
.filter-city-opt.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }

/* Mode list */
.df-mode-list { display: flex; flex-direction: column; gap: 4px; }
.df-mode-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-radius: 9px; border: 1px solid transparent; background: transparent;
  font-size: 13px; font-weight: 500; font-family: inherit; cursor: pointer;
  color: var(--text-body); transition: all .15s; text-align: left;
}
.df-mode-icon { font-size: 15px; }
.df-mode-item:hover { background: var(--primary-soft); border-color: var(--primary-border); }
.df-mode-item.fmode-card.active { background: var(--nav-dark) !important; border-color: var(--nav-dark) !important; color: #fff !important; font-weight: 600; }

/* Age range */
.df-age-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.filter-age-display { font-size: 13px; font-weight: 700; color: var(--primary); }

/* Tags in filter sidebar */
.df-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.df-tag {
  padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 500;
  border: 1px solid var(--border); color: var(--text-body); background: #fff;
  cursor: pointer; transition: all .15s; user-select: none;
}
.df-tag:hover { border-color: var(--primary); color: var(--primary); }
.df-tag.selected { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); font-weight: 600; }

/* Reset button */
.df-reset-btn {
  width: 100%; padding: 10px; border: 1px solid var(--border);
  border-radius: 9px; background: #fff; font-size: 13px; font-weight: 600;
  font-family: inherit; cursor: pointer; color: var(--text-body);
  transition: border-color .15s, background .15s; margin-top: 4px;
}
.df-reset-btn:hover { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }

/* ── Center Column ──────────────────────────────────────────────────── */
.disc-main { display: flex; flex-direction: column; gap: 16px; }

.disc-header {
  display: flex; justify-content: space-between; align-items: flex-start;
}
.disc-greeting { font-size: 30px; font-weight: 900; letter-spacing: -1px; color: var(--text); }
.disc-subtitle { font-size: 13px; color: var(--text-body); margin-top: 3px; }
.disc-swipe-counter {
  font-size: 12px; font-weight: 600; color: var(--muted);
  background: #fff; padding: 5px 12px; border-radius: 20px;
  border: 1px solid var(--border-light); white-space: nowrap;
}

/* Card + Detail row */
.disc-center-row {
  display: flex; background: #fff; border-radius: 16px;
  overflow: hidden; border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  height: 460px;
}

/* Photo card column */
.disc-card-col {
  position: relative; width: 210px; flex-shrink: 0;
  overflow: hidden; height: 100%;
}

/* Profile card — flex column: rich profile body + swipe overlays */
.disc-card-col .profile-card {
  position: absolute; inset: 0; cursor: grab; user-select: none;
  background: #fff; border-radius: 0; box-shadow: none;
  display: flex; flex-direction: column;
  touch-action: pan-y; will-change: transform;
}
.disc-card-col .profile-card:active { cursor: grabbing; }
/* Photo area fills remaining space */
.disc-card-col .card-photo-wrap {
  flex: 1; position: relative; overflow: hidden; min-height: 0;
}
.card-photo-wrap { position: absolute; inset: 0; overflow: hidden; }
.card-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-photo-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(160deg, #fde8d8 0%, #f4a57a 40%, #d97559 100%);
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 70px;
}

/* Match pill footer */
.card-match-footer {
  flex-shrink: 0; min-height: 64px; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 0 10px; border-top: 1px solid var(--border-light);
}
.card-match-pill {
  width: 100%; display: flex; align-items: center; justify-content: center;
  gap: 5px; background: var(--primary-soft); border: 1px solid var(--primary-border);
  border-radius: 20px; padding: 7px 12px; cursor: pointer;
  transition: all .15s; font-family: inherit;
}
.card-match-pill:hover { background: var(--primary); color: #fff; transform: translateY(-1px); }
.cmp-pct { font-size: 15px; font-weight: 900; color: var(--primary); }
.cmp-label { font-size: 11px; font-weight: 700; color: var(--primary); }
.cmp-why { font-size: 11px; color: var(--muted); }
.card-match-pill:hover .cmp-pct,
.card-match-pill:hover .cmp-label,
.card-match-pill:hover .cmp-why { color: #fff; }
.card-plan-mini {
  font-size: 10px; color: var(--muted); font-weight: 700;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Gradient overlay at bottom of photo */
.card-photo-wrap::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 55%;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 100%);
  pointer-events: none;
}

/* Top badges */
.card-badges-top {
  position: absolute; top: 10px; left: 8px; right: 8px;
  display: flex; gap: 5px; align-items: center; z-index: 2; flex-wrap: wrap;
}
.card-badge-verified {
  background: #10b981; color: #fff; font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 20px; letter-spacing: .3px;
}
.card-badge-rating {
  background: rgba(0,0,0,.45); backdrop-filter: blur(6px);
  color: #fff; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 20px;
}
.card-badge-active {
  background: rgba(0,0,0,.45); backdrop-filter: blur(6px);
  color: #fff; font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 20px;
}

/* Name/trip overlay at bottom */
.card-info-overlay {
  position: absolute; bottom: 12px; left: 0; right: 0; padding: 0 12px;
  z-index: 2; pointer-events: none;
}
.card-name-age { font-size: 18px; font-weight: 800; color: #fff; line-height: 1.2; }
.card-trip { font-size: 11px; color: rgba(255,255,255,.85); margin-top: 2px; font-weight: 500; }

/* Match score badge */
.card-match-score {
  position: absolute; bottom: 10px; left: 10px; right: 10px; z-index: 2;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-radius: 10px; padding: 6px 10px; display: flex; align-items: center; gap: 6px;
}
.cms-pct { font-size: 18px; font-weight: 900; color: var(--primary); line-height: 1; }
.cms-lbl { font-size: 10px; font-weight: 700; color: var(--text); line-height: 1.3; }
.cms-sub { font-size: 9px; color: var(--muted); line-height: 1.3; margin-left: auto; text-align: right; }

/* Swipe indicators */
.like-indicator, .nope-indicator {
  position: absolute; top: 20px; font-size: 22px; font-weight: 900;
  padding: 5px 14px; border-radius: 8px; opacity: 0; pointer-events: none;
  border: 3px solid; z-index: 10;
}
.like-indicator { right: 10px; color: #10b981; border-color: #10b981; transform: rotate(12deg); }
.nope-indicator { left: 10px; color: #ef4444; border-color: #ef4444; transform: rotate(-12deg); }
.swiping-right { transform: translateX(120%) rotate(20deg) !important; }
.swiping-left  { transform: translateX(-120%) rotate(-20deg) !important; }
.front { z-index: 2; }
.behind { z-index: 1; transform: scale(.97) translateY(6px); }

/* Rich profile card body (Discover redesign) */
.dc-card-scroll {
  flex: 1; min-height: 0; overflow-y: auto;
  display: flex; flex-direction: column; padding-bottom: 18px;
}
.dc-banner {
  position: relative; height: 100px; flex-shrink: 0;
  background: linear-gradient(160deg, #fde8d8 0%, #f4a57a 45%, #d97559 100%);
}
.dc-avatar {
  position: absolute; left: 50%; bottom: -54px; transform: translateX(-50%);
  width: 118px; height: 118px; border-radius: 50%;
  border: 4px solid #fff; overflow: hidden; background: var(--bg-soft);
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
.dc-avatar-lightbox { cursor: zoom-in; }
.dc-avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dc-avatar-fallback { width: 100%; height: 100%; }
.dc-online-dot {
  position: absolute; right: 9px; bottom: 9px; width: 16px; height: 16px;
  border-radius: 50%; background: #22c55e; border: 3px solid #fff; z-index: 3;
}
.dc-identity { margin-top: 64px; padding: 0 18px; text-align: center; }
.dc-name { font-size: 20px; font-weight: 800; color: var(--text); line-height: 1.2; }
.dc-loc { font-size: 13px; color: var(--muted); margin-top: 4px; font-weight: 500; }
.dc-loc-pin { font-size: 12px; }
.dc-stats {
  display: flex; justify-content: center; margin: 16px 16px 0; padding: 12px 0;
  border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light);
}
.dc-stat {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 0 6px; text-align: center; min-width: 0;
}
.dc-stat + .dc-stat { border-left: 1px solid var(--border-light); }
.dc-stat-ico { font-size: 16px; line-height: 1; }
.dc-stat-val { font-size: 12px; font-weight: 700; color: var(--text); white-space: nowrap; }
.dc-bio {
  margin: 14px 18px 0; font-size: 13px; line-height: 1.6;
  color: var(--text-body); text-align: left;
}
.dc-attrs {
  margin: 14px 18px 0; padding-top: 14px;
  border-top: 1px solid var(--border-light);
  display: flex; flex-direction: column; gap: 11px;
}
.dc-attr { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-body); }
.dc-attr-ico { font-size: 15px; width: 20px; text-align: center; flex-shrink: 0; }
.dc-attr-txt strong { color: var(--text); font-weight: 700; }
.dc-member {
  margin: 14px 18px 0; padding-top: 14px;
  border-top: 1px solid var(--border-light);
  font-size: 12px; color: var(--muted); font-weight: 600;
  display: flex; align-items: center; gap: 6px;
}
.dc-member-ico { font-size: 13px; }
.disc-card-col .card-match-pill { margin: 16px 18px 0; width: auto; }

/* Detail panel column */
.disc-detail-col {
  flex: 1; overflow-y: hidden; height: 100%;
  border-left: 1px solid var(--border-light); position: relative; background: #fff;
  display: flex; flex-direction: column;
}
.dp-scroll { flex: 1; overflow-y: auto; min-height: 0; }

/* Hero photo at the top of the detail panel */
.dp-hero-wrap {
  position: relative; width: 100%; height: 200px; overflow: hidden; cursor: pointer;
  flex-shrink: 0;
}
.dp-hero-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.dp-hero-avatar { width: 100%; height: 100%; }
.dp-hero-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 100%);
  padding: 14px 16px 12px;
}
.dp-hero-name { font-size: 17px; font-weight: 800; color: #fff; line-height: 1.2; }
.dp-hero-sub { font-size: 12px; color: rgba(255,255,255,.85); margin-top: 2px; }

.dp-scroll { padding: 18px 20px 24px; display: flex; flex-direction: column; gap: 18px; }

/* Availability badge */
.dp-avail {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--muted);
  background: var(--bg-soft); border: 1.5px solid var(--border);
  padding: 4px 10px; border-radius: 20px;
}

/* Why you'd match box */
.dp-why-match {
  background: var(--primary-soft); border-radius: 12px; padding: 14px 16px;
  border: 1px solid var(--primary-border);
}
.dp-meetup-preview {
  background: #fff; border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 16px;
  box-shadow: 0 10px 28px rgba(17, 24, 39, .04);
}
.dp-meetup-preview h3 {
  font-size: 17px; line-height: 1.25; color: var(--text);
  margin: 4px 0 4px;
}
.dp-meetup-preview p {
  font-size: 13px; color: var(--text-body); margin: 0 0 10px;
}
.dp-meetup-link {
  border: none; background: none; color: var(--primary);
  font: inherit; font-size: 13px; font-weight: 700;
  padding: 0; cursor: pointer;
}
.dp-meetup-link:hover { text-decoration: underline; }
.dp-meetup-details { display: block; }
.dp-plan-block {
  background: #fff7ed; border: 1px solid #fed7aa;
  border-radius: 14px; padding: 14px 16px;
}
.dp-plan-block h3 {
  font-size: 17px; line-height: 1.25; color: var(--text);
  margin: 4px 0 12px;
}
.dp-plan-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
}
.dp-plan-grid div {
  background: rgba(255,255,255,.72); border: 1px solid rgba(251,146,60,.25);
  border-radius: 10px; padding: 8px;
}
.dp-plan-grid span { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); font-weight: 800; margin-bottom: 2px; }
.dp-plan-grid strong { display: block; font-size: 12px; line-height: 1.25; color: var(--text); }
.dp-plan-flex,
.fpm-plan-note {
  margin: 10px 0 0; color: var(--text-body); font-size: 12px; line-height: 1.45;
}
.dp-plan-flex span { color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .6px; font-size: 9px; }
.dp-meetup-actions {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px;
}
.dp-meetup-actions button {
  border: 1px solid var(--primary-border); border-radius: 999px;
  background: #fff; color: var(--primary); padding: 8px 12px;
  font: inherit; font-size: 12px; font-weight: 800; cursor: pointer;
}
.dp-meetup-actions button:last-child {
  background: var(--primary); border-color: var(--primary); color: #fff;
}
.dp-section-label {
  font-size: 10px; font-weight: 700; letter-spacing: .8px;
  color: var(--helper); text-transform: uppercase; margin-bottom: 8px;
}
.dp-why-title {
  font-size: 13px; font-weight: 700; color: var(--primary); margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.dp-match-list {
  list-style: none; display: flex; flex-direction: column; gap: 5px;
}
.dp-match-list li {
  font-size: 12px; color: var(--text-body); display: flex; align-items: center; gap: 6px;
}
.dp-match-list li::before { content: '✓'; color: var(--primary); font-weight: 700; font-size: 11px; }

/* Generic detail section */
.dp-section { display: flex; flex-direction: column; gap: 6px; }
.dp-section-title {
  font-size: 10px; font-weight: 700; letter-spacing: .8px;
  color: var(--helper); text-transform: uppercase;
}
.dp-text { font-size: 13px; color: var(--text-body); line-height: 1.6; font-style: italic; }
.dp-text-plain { font-size: 13px; color: var(--text-body); line-height: 1.6; }

/* Language / Interest tags */
.dp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.dp-tag {
  font-size: 12px; font-weight: 500; padding: 4px 12px; border-radius: 20px;
  border: 1px solid var(--border); color: var(--text-body); background: #fff;
}
.dp-tag-lang { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

/* Connected row (Spotify) */
.dp-connected-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--primary-soft); border-radius: 10px; padding: 10px 12px;
  border: 1px solid var(--primary-border);
}
.dp-connected-item.dp-place {
  background: var(--bg); border: 1px solid var(--border-light); color: var(--text);
}
.dp-connected-item.dp-instagram {
  background: linear-gradient(135deg, var(--primary-soft), #fce7f3);
}
.dp-connected-icon { font-size: 16px; flex-shrink: 0; }
.dp-connected-label { font-size: 9px; font-weight: 700; letter-spacing: .6px; color: var(--primary); opacity: .75; text-transform: uppercase; }
.dp-connected-value { font-size: 12px; font-weight: 600; color: var(--primary); }

/* View full profile / scroll hint */
.dp-full-profile {
  font-size: 13px; font-weight: 600; color: var(--primary);
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: inherit; display: inline-block; margin-top: 4px;
}
.dp-full-profile:hover { text-decoration: underline; }
.dp-scroll-hint {
  font-size: 10px; color: var(--helper); text-align: center;
  letter-spacing: .5px; text-transform: uppercase; margin-top: 8px;
}

/* Empty state */
.disc-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; padding: 60px 32px; text-align: center; }
.disc-empty-icon { font-size: 48px; margin-bottom: 12px; }
.disc-empty-title { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.disc-empty-sub { font-size: 13px; color: var(--muted); margin-bottom: 16px; }

/* ── Action Buttons ─────────────────────────────────────────────────── */
.disc-actions {
  display: flex; justify-content: center; gap: 28px; padding: 8px 0;
}
.da-item { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.da-item span { font-size: 11px; color: var(--muted); font-weight: 500; }
.da-btn {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; cursor: pointer; border: none; font-family: inherit;
  transition: transform .15s, box-shadow .15s;
}
.da-btn:hover { transform: scale(1.1); }
.da-pass { background: #fff; color: #ef4444; border: 2px solid #fecaca; box-shadow: 0 4px 16px rgba(239,68,68,.15); }
.da-pass:hover { background: #fef2f2; box-shadow: 0 6px 20px rgba(239,68,68,.25); }
.da-undo { background: #fff; color: #f59e0b; border: 2px solid #fde68a; box-shadow: 0 4px 16px rgba(245,158,11,.12); }
.da-undo:hover { background: #fffbeb; }
.da-boost { background: #fff; color: var(--primary); border: 2px solid var(--primary-border); box-shadow: 0 4px 16px rgba(124,92,230,.12); }
.da-boost:hover { background: var(--primary-soft); }
.da-match {
  width: 60px; height: 60px; font-size: 24px;
  background: var(--primary); color: #fff; border: none;
  box-shadow: 0 6px 24px rgba(124,92,230,.35);
}
.da-save { background: #fff; color: var(--primary); border: 2px solid var(--primary-border); box-shadow: 0 4px 16px rgba(124,92,230,.12); }
.da-match:hover { background: var(--primary-dark); box-shadow: 0 8px 28px rgba(124,92,230,.45); }

/* ── Right Sidebar ──────────────────────────────────────────────────── */
.disc-sidebar { display: flex; flex-direction: column; gap: 14px; }

/* Premium card */
.ds-premium {
  background: var(--nav-dark); border-radius: 16px; padding: 20px;
  color: #fff;
}
.ds-premium-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 1px; color: #f59e0b; margin-bottom: 8px; }
.ds-premium-title { font-size: 16px; font-weight: 800; line-height: 1.3; margin-bottom: 8px; }
.ds-highlight { color: #f59e0b; }
.ds-premium-sub { font-size: 12px; color: rgba(255,255,255,.65); line-height: 1.5; margin-bottom: 14px; }
.ds-plans-btn {
  width: 100%; padding: 11px; background: #f59e0b; color: var(--nav-dark);
  border: none; border-radius: 10px; font-size: 14px; font-weight: 800;
  cursor: pointer; font-family: inherit; transition: opacity .15s;
}
.ds-plans-btn:hover { opacity: .9; }

/* Generic sidebar card */
.ds-card {
  background: #fff; border-radius: 14px; padding: 16px;
  border: 1.5px solid var(--border);
}
.ds-card-title {
  font-size: 10px; font-weight: 700; letter-spacing: .8px;
  color: var(--muted); text-transform: uppercase; margin-bottom: 12px;
}
.ds-sparks-text { font-size: 12px; color: var(--muted); line-height: 1.5; margin-bottom: 10px; }
.ds-sparks-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ds-sparks-tags span {
  font-size: 11px; font-weight: 700; color: var(--primary);
  background: var(--primary-soft); border: 1px solid var(--primary-border);
  border-radius: 999px; padding: 4px 8px;
}

/* Recently passed */
.ds-passed-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}
.ds-passed-item:last-child { border-bottom: none; padding-bottom: 0; }
.ds-passed-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff;
}
.ds-passed-info { flex: 1; min-width: 0; }
.ds-passed-info strong { display: block; font-size: 13px; font-weight: 700; color: var(--text); }
.ds-passed-info span,
.ds-passed-info small { display: block; font-size: 11px; color: var(--muted); }
.ds-saved-item {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}
.ds-saved-item:last-child { border-bottom: none; padding-bottom: 0; }
.ds-saved-actions { display: flex; gap: 10px; margin-top: 6px; }
.ds-saved-actions button {
  border: none; background: none; color: var(--primary); font: inherit; font-size: 12px;
  font-weight: 700; padding: 0; cursor: pointer;
}
.ds-saved-actions button:hover { text-decoration: underline; }
.ds-undo-btn {
  font-size: 12px; font-weight: 600; color: var(--primary);
  background: none; border: none; cursor: pointer; padding: 0; font-family: inherit;
  white-space: nowrap;
}
.ds-undo-btn:hover { text-decoration: underline; }

/* Safety */
.ds-safety-text { font-size: 12px; color: var(--muted); line-height: 1.6; margin-bottom: 8px; }
.ds-safety-link { font-size: 12px; font-weight: 600; color: var(--primary); text-decoration: none; }
.ds-safety-link:hover { text-decoration: underline; }

/* Recently passed avatar with photo support */
.ds-passed-avatar { overflow: hidden; }
.ds-passed-empty { font-size: 12px; color: var(--muted); text-align: center; padding: 10px 0; margin: 0; font-style: italic; }

/* ── Deck loading overlay ─────────────────────────────────────────── */
.disc-center-row { position: relative; }
.deck-loading {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; background: rgba(255,255,255,.92);
  z-index: 20; border-radius: 16px; gap: 12px;
}
.deck-loading.hidden { display: none; }
.deck-spinner {
  width: 34px; height: 34px; border: 3px solid var(--border);
  border-top-color: var(--primary); border-radius: 50%;
  animation: discSpin .75s linear infinite;
}
@keyframes discSpin { to { transform: rotate(360deg); } }
.deck-loading p { font-size: 13px; color: var(--muted); font-weight: 500; margin: 0; }

/* ── Discover toast (non-blocking) ────────────────────────────────── */
.discover-toast {
  position: fixed; bottom: 88px; left: 50%; transform: translateX(-50%) translateY(8px);
  background: rgba(20,20,20,.88); color: #fff;
  padding: 9px 20px; border-radius: 22px;
  font-size: 13px; font-weight: 500; font-family: inherit;
  opacity: 0; transition: opacity .22s, transform .22s;
  z-index: 9999; pointer-events: none; white-space: nowrap;
  backdrop-filter: blur(6px);
}
.discover-toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Filter summary label ──────────────────────────────────────────── */
.df-filter-summary {
  font-size: 11px; font-weight: 600; color: var(--primary);
  background: var(--primary-soft); border: 1px solid var(--primary-border);
  border-radius: 8px; padding: 6px 10px; margin-bottom: 10px;
  display: none; line-height: 1.4;
}

/* ── Premium Coming-Soon Modal ─────────────────────────────────────── */
.pcs-modal { position: fixed; inset: 0; z-index: 700; display: flex; align-items: center; justify-content: center; }
.pcs-modal.hidden { display: none; }
.pcs-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.pcs-box {
  position: relative; z-index: 1; background: #fff; border-radius: 24px;
  padding: 36px 28px 28px; max-width: 360px; width: 90%; text-align: center;
  box-shadow: 0 20px 70px rgba(0,0,0,.22); animation: popIn .3s cubic-bezier(.34,1.56,.64,1);
}
.pcs-close {
  position: absolute; top: 14px; right: 14px; background: var(--bg);
  border: none; width: 30px; height: 30px; border-radius: 50%;
  font-size: 14px; cursor: pointer; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-family: inherit;
}
.pcs-icon { font-size: 44px; margin-bottom: 10px; }
.pcs-box h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.pcs-box p { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.pcs-features {
  text-align: left; list-style: none; display: flex; flex-direction: column;
  gap: 8px; margin-bottom: 20px; padding: 0;
}
.pcs-features li {
  font-size: 13px; color: var(--text); display: flex; align-items: center; gap: 8px;
}
.pcs-features li::before { content: '✓'; color: var(--primary); font-weight: 700; font-size: 12px; }
.pcs-ok-btn {
  width: 100%; padding: 13px; background: var(--primary); color: #fff;
  border: none; border-radius: 14px; font-size: 15px; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: opacity .15s;
}
.pcs-ok-btn:hover { opacity: .88; }

/* ═══════════════════════════════════════════════════════════════════════
   MATCHES + CHAT — combined 2-column redesign
   ═══════════════════════════════════════════════════════════════════════ */

#page-matches { background: var(--bg); }
#page-parent { overflow-x: hidden; }

.mx-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  height: calc(100vh - var(--nav-h));
  height: calc(100dvh - var(--nav-h));
  overflow: hidden;
}

/* Left match list */
.mx-list-col {
  background: #fff;
  border-right: 1.5px solid var(--border);
  display: flex; flex-direction: column; overflow: hidden;
}
.mx-list-header { padding: 20px 18px 14px; border-bottom: 1.5px solid var(--border); flex-shrink: 0; }
.mx-list-title-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.mx-list-title { font-size: 22px; font-weight: 800; color: var(--text); margin: 0; }
.mx-active-badge {
  font-size: 11px; font-weight: 700; background: var(--primary-soft); color: var(--primary);
  padding: 3px 9px; border-radius: 20px;
}
.mx-mode-tabs { display: flex; gap: 4px; background: var(--bg-soft); border-radius: 10px; padding: 3px; }
.mode-tab {
  flex: 1; padding: 6px 12px; border: none; background: transparent;
  border-radius: 8px; font-size: 12px; font-weight: 600; font-family: inherit;
  cursor: pointer; color: var(--muted); transition: all .15s;
}
.mode-tab.active { background: #fff; color: var(--primary); box-shadow: 0 1px 4px rgba(0,0,0,.08); }

/* Match list items */
.matches-list { flex: 1; overflow-y: auto; }
.match-item {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  cursor: pointer; border-bottom: 1px solid var(--border-light); transition: background .12s;
}
.match-item:hover { background: var(--bg-soft); }
.match-item.active { background: var(--primary-soft); border-left: 3px solid var(--primary); }
.match-avatar {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary-border), var(--primary));
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: #fff; overflow: hidden;
}
.match-avatar img { width: 100%; height: 100%; object-fit: cover; }
.match-info { flex: 1; min-width: 0; }
.match-name { font-size: 14px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match-preview { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.match-time { font-size: 11px; color: var(--helper); }
.match-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.mi-time { font-size: 11px; color: var(--helper); white-space: nowrap; }
.mi-badge {
  background: var(--primary); color: #fff; font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 20px;
}
/* old .mi-chat-btn hidden */
.mi-chat-btn { display: none; }

/* Premium lock */
.matches-premium-lock { padding: 20px 18px; }
.matches-lock-ghosts { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.match-ghost-item { height: 60px; background: linear-gradient(90deg, var(--bg-soft) 25%, var(--border) 50%, var(--bg-soft) 75%); border-radius: 12px; }
.matches-lock-overlay { text-align: center; }
.lock-icon-lg { font-size: 28px; margin-bottom: 8px; }
.btn-premium { padding: 10px 20px; background: var(--primary); color: #fff; border: none; border-radius: 20px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; }

/* Right chat column */
.mx-chat-col {
  display: flex; flex-direction: column; background: var(--bg-soft); overflow: hidden;
}
.mx-chat-empty {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 10px; color: var(--muted);
}
.mx-chat-empty-icon { font-size: 40px; }
.mx-chat-empty p { font-size: 14px; }

.mx-chat-active { display: flex; flex-direction: column; height: 100%; }

/* Chat header */
.mx-chat-hdr {
  display: flex; align-items: center; gap: 10px; padding: 14px 20px;
  background: #fff; border-bottom: 1.5px solid var(--border); flex-shrink: 0;
}
.mx-back-btn {
  background: none; border: none; font-size: 18px; cursor: pointer; color: var(--muted);
  padding: 0 4px; display: none; /* hidden on desktop, show on mobile */
}
.mx-chat-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  background: linear-gradient(135deg, var(--primary-border), var(--primary));
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: #fff;
}
.mx-chat-hdr-info { flex: 1; min-width: 0; }
.mx-chat-name-row { display: flex; align-items: center; gap: 6px; }
.mx-chat-name-text { font-size: 15px; font-weight: 700; color: var(--text); }
.mx-chat-meta { font-size: 12px; color: var(--muted); display: block; margin-top: 1px; }
.mx-ab-header-context {
  display: grid;
  gap: 2px;
  max-width: 520px;
  margin-top: 6px;
  padding: 9px 11px;
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  background: #f7f8ff;
}
.mx-ab-header-title {
  font-size: 11px;
  font-weight: 850;
  color: #312e81;
}
.mx-ab-header-main {
  font-size: 13px;
  font-weight: 800;
  color: #111827;
}
.mx-ab-header-people {
  font-size: 11px;
  color: #64748b;
}
.mx-view-profile-btn {
  background: #fff; border: 1px solid #c7d2fe; border-radius: 999px;
  padding: 7px 10px; margin-top: 7px;
  font-size: 11px; font-weight: 800; color: var(--primary, #7c3aed);
  cursor: pointer; font-family: inherit; line-height: 1;
}
.mx-view-profile-btn:hover { background: #f5f3ff; }
.mx-profile-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mx-safety-link-btn { color: #64748b; border-color: #e2e8f0; }
.mx-safety-link-danger { color: #b91c1c; border-color: #fecaca; }
.mx-safety-link-btn:hover { background: #f8fafc; }
.mx-safety-link-danger:hover { background: #fef2f2; border-color: #fca5a5; }
.mx-chat-hdr-actions { display: flex; gap: 6px; }
.mx-icon-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--border);
  background: #fff; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .12s;
}
.mx-icon-btn:hover { background: var(--primary-soft); border-color: var(--primary); }
.mx-icon-btn:disabled { opacity: .45; cursor: not-allowed; }
.mx-panic-btn:hover { background: #fef2f2; border-color: #ef4444; }

/* Messages */
.mx-messages {
  flex: 1; overflow-y: auto; padding: 20px 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.msg-bubble {
  max-width: 60%; padding: 11px 15px; border-radius: 18px;
  font-size: 14px; line-height: 1.5; word-wrap: break-word;
}
.msg-bubble.mine {
  background: var(--primary); color: #fff;
  align-self: flex-end; border-bottom-right-radius: 4px;
}
.msg-bubble.theirs {
  background: #fff; color: var(--text);
  align-self: flex-start; border-bottom-left-radius: 4px;
  box-shadow: 0 1px 6px rgba(0,0,0,.07);
}
.msg-time { font-size: 10px; opacity: .6; display: block; margin-top: 4px; }

/* System / safety messages — compact centered notice, not a chat bubble */
.msg-system-notice {
  align-self: center; max-width: 82%; text-align: center;
  background: rgba(123,92,225,.07); border: 1px solid rgba(123,92,225,.14);
  border-radius: 10px; padding: 7px 12px; display: flex; flex-direction: column; gap: 2px;
}
.msg-system-text { font-size: 11px; color: var(--text-muted); line-height: 1.5; display: block; }

/* Input row */
.mx-input-row {
  display: flex; align-items: center; gap: 10px; padding: 14px 20px;
  background: #fff; border-top: 1.5px solid var(--border); flex-shrink: 0;
}
.mx-input-plus {
  width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--border);
  background: #fff; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--muted); transition: all .12s; flex-shrink: 0;
}
.mx-input-plus:hover { border-color: var(--primary); color: var(--primary); }
.mx-input-field {
  flex: 1; padding: 10px 16px; border: 1.5px solid var(--border);
  border-radius: 24px; font-size: 14px; font-family: inherit; outline: none;
  background: var(--bg-soft); transition: border-color .15s;
}
.mx-input-field:focus { border-color: var(--primary); background: #fff; }
.mx-chat-blocked-notice {
  margin: 0 16px 10px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  color: #64748b;
  font-size: 13px;
  line-height: 1.4;
}
.mx-input-row.safety-disabled { background: #f8fafc; }
.mx-input-row.safety-disabled .mx-input-field {
  background: #eef2f7; color: #64748b; border-color: #e2e8f0;
}
.mx-input-row.safety-disabled .mx-send-btn,
.mx-input-row.safety-disabled .mx-input-plus {
  opacity: .45; cursor: not-allowed;
}

/* Safety report/block modals */
.safety-modal {
  position: fixed; inset: 0; z-index: 900;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.safety-modal.hidden { display: none; }
.safety-modal-backdrop {
  position: absolute; inset: 0; background: rgba(15,23,42,.54);
}
.safety-modal-box {
  position: relative; width: min(420px, 100%);
  background: #fff; border-radius: 14px; padding: 22px;
  box-shadow: 0 24px 80px rgba(15,23,42,.28);
}
.safety-modal-box h3 {
  margin: 0 0 6px; font-size: 20px; color: var(--text);
}
.safety-modal-sub {
  margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.55;
}
.safety-field { display: grid; gap: 6px; margin-bottom: 12px; }
.safety-field span {
  font-size: 12px; font-weight: 800; color: #475569;
}
.safety-field select,
.safety-field textarea {
  width: 100%; box-sizing: border-box;
  border: 1.5px solid var(--border); border-radius: 10px;
  padding: 10px 12px; font: inherit; font-size: 14px;
  background: #fff; outline: none;
}
.safety-field select:focus,
.safety-field textarea:focus { border-color: var(--primary); }
.safety-field textarea { resize: vertical; min-height: 92px; }
.safety-modal-error {
  min-height: 18px; margin: 2px 0 12px; color: #b91c1c;
  font-size: 13px; line-height: 1.45;
}
.safety-modal-actions {
  display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap;
}
.safety-secondary-btn,
.safety-primary-btn,
.safety-danger-btn,
.safety-inline-btn {
  border-radius: 8px; padding: 9px 13px; font: inherit;
  font-size: 13px; font-weight: 800; cursor: pointer;
}
.safety-secondary-btn {
  border: 1px solid var(--border); background: #fff; color: var(--text);
}
.safety-primary-btn {
  border: 1px solid var(--primary); background: var(--primary); color: #fff;
}
.safety-danger-btn {
  border: 1px solid #dc2626; background: #dc2626; color: #fff;
}
.safety-secondary-btn:disabled,
.safety-primary-btn:disabled,
.safety-danger-btn:disabled,
.safety-inline-btn:disabled { opacity: .62; cursor: wait; }
.safety-action-row {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px;
  padding-top: 14px; border-top: 1px solid var(--border);
}
.safety-inline-btn {
  border: 1px solid #e2e8f0; background: #fff; color: #475569;
}
.safety-inline-btn.safety-inline-danger {
  color: #b91c1c; border-color: #fecaca;
}
.fpm-safety-btn {
  background: #fff; color: #64748b; border: 1px solid #e2e8f0;
}
.fpm-safety-danger {
  color: #b91c1c; border-color: #fecaca;
}
.mx-send-btn {
  width: 40px; height: 40px; border-radius: 50%; background: var(--primary);
  color: #fff; border: none; font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background .15s, transform .1s;
}
.mx-send-btn:hover { background: var(--primary-dark); transform: scale(1.05); }

/* ═══════════════════════════════════════════════════════════════════════
   MATCH MODAL — dark purple fullscreen
   ═══════════════════════════════════════════════════════════════════════ */

.match-modal {
  position: fixed; inset: 0; z-index: 300;
  background: radial-gradient(ellipse at center, #2d1465 0%, #1a0a3c 60%, #0f0621 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.mm-inner {
  text-align: center; max-width: 440px; width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.mm-eyebrow {
  font-size: 11px; font-weight: 800; letter-spacing: 2px;
  color: #f59e0b; text-transform: uppercase;
}
.mm-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 52px; font-weight: 700; font-style: italic;
  color: #fff; line-height: 1.1; letter-spacing: -1px;
}
.mm-sub { font-size: 14px; color: rgba(255,255,255,.65); line-height: 1.6; max-width: 320px; }

/* Two photos */
.mm-photos { display: flex; gap: 12px; align-items: flex-end; margin: 8px 0; }
.mm-photo {
  width: 120px; height: 150px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(135deg, #2d1c5e, var(--primary));
  border: 3px solid rgba(255,255,255,.15);
}
.mm-photo-you { transform: rotate(-4deg); }
.mm-photo-them { transform: rotate(4deg); }

/* Score chip */
.mm-score {
  background: rgba(255,255,255,.1); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15); border-radius: 24px;
  padding: 7px 18px; font-size: 13px; font-weight: 600; color: #fff;
}

/* Buttons */
.mm-send-btn {
  width: 100%; padding: 14px; background: #fff; color: var(--nav-dark);
  border: none; border-radius: 14px; font-size: 15px; font-weight: 700;
  cursor: pointer; font-family: inherit; display: flex; align-items: center;
  justify-content: center; gap: 8px; transition: opacity .15s;
}
.mm-send-btn:hover { opacity: .92; }
.mm-keep-btn {
  background: none; border: none; color: rgba(255,255,255,.55);
  font-size: 14px; cursor: pointer; font-family: inherit; padding: 4px;
  transition: color .15s;
}
.mm-keep-btn:hover { color: rgba(255,255,255,.9); }

/* ─── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .disc-layout { grid-template-columns: 240px 1fr 0; }
  .disc-sidebar { display: none; }
}
@media (max-width: 768px) {
  #page-discover { overflow-x: hidden; }
  .disc-layout {
    grid-template-columns: 1fr;
    padding: 16px 16px calc(132px + env(safe-area-inset-bottom));
    gap: 14px;
  }
  /* Hide filter sidebar on mobile; toggled in by JS via mobile-open */
  #filterPanel.disc-filter-col { display: none !important; }
  #filterPanel.disc-filter-col.mobile-open { display: flex !important; }
  /* disc-center-row: auto height on mobile so the empty state isn't padded into */
  /* a 460px white block. Card column keeps an explicit height for swipe layout. */
  .disc-center-row {
    flex-direction: column;
    height: auto;
    min-height: 0;
    overflow: visible;
  }
  .disc-card-col,
  .disc-detail-col,
  .disc-center-row {
    min-width: 0;
  }
  .disc-card-col { width: 100%; height: 300px; min-height: 300px; }
  /* Compact empty state — no huge top whitespace */
  .disc-empty { padding: 28px 20px 24px; min-height: 0; }
  .disc-empty-icon { font-size: 40px; margin-bottom: 10px; }
  .disc-detail-col {
    max-height: none;
    overflow: visible;
    border-left: none;
    border-top: 1px solid var(--border-light);
  }
  .disc-detail-col .dp-hero-wrap { display: none; }
  .disc-detail-col .dp-scroll {
    overflow: visible;
    padding: 14px 16px 18px;
  }
  .disc-detail-col .dp-plan-grid { grid-template-columns: 1fr; }
  .disc-actions {
    position: sticky;
    bottom: calc(76px + env(safe-area-inset-bottom));
    z-index: 40;
    width: min(100%, 360px);
    margin: 4px auto 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border-radius: 24px;
    background: linear-gradient(to top, rgba(250,249,255,.98), rgba(250,249,255,.78));
    backdrop-filter: blur(10px);
  }
  /* ── Chat page: pin below nav; height shrinks with keyboard via --vvh ── */
  #page-matches {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    height: calc(var(--vvh, 100dvh) - var(--nav-h));
    min-height: 0;
    overflow: hidden;
    padding-top: 0;
  }
  /* Layout fills panel; position:relative lets chat-col use absolute inset */
  #page-matches .mx-layout {
    height: 100%;
    position: relative;
  }

  .mx-layout { grid-template-columns: 1fr; }
  /* Default: list fills layout, chat column hidden */
  .mx-list-col { display: flex; }
  .mx-chat-col { display: none; }
  /* When chat opens: hide list; chat column fills the full panel via absolute */
  .mx-layout.chat-open .mx-list-col { display: none; }
  .mx-layout.chat-open .mx-chat-col {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .mx-back-btn { display: flex !important; }
  /* Chat active shell expands via flex-1 — avoids height:100% grid-chain bug */
  .mx-chat-active { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  /* Messages scroll; composer is always visible at bottom */
  .mx-messages { flex: 1 1 0; min-height: 0; overflow-y: auto; }
  .mx-input-row {
    flex-shrink: 0;
    padding-bottom: max(env(safe-area-inset-bottom, 0px), 12px);
  }
  .msg-system-text { font-size: 10px; }
}

/* ── Polish overrides (post-fixes) ──────────────────────────────────── */

/* City dropdown clickable */
.df-city-row { cursor: pointer; }
#filterCityLabel { cursor: pointer; }

/* Greeting font */
.disc-greeting em, .disc-greeting span { font-style: normal; }

/* Card name/age text size */
.card-name-age { font-size: 20px; font-weight: 800; }
.card-trip { font-size: 12px; color: rgba(255,255,255,.82); }

/* Match score pill – tighter */
.card-match-score { gap: 5px; }
.cms-pct { font-size: 16px; }

/* Detail scroll padding */
.dp-scroll { padding: 16px 18px 20px; gap: 14px; }

/* Why match box – match Figma */
.dp-why-match { background: var(--primary-soft); border-radius: 10px; padding: 12px 14px; }
.dp-why-title { font-size: 12px; font-weight: 700; color: var(--primary); margin-bottom: 6px; display: flex; align-items: center; gap: 5px; }
.dp-match-list li { font-size: 12px; color: var(--text-body); }

/* Section titles */
.dp-section-title { font-size: 10px; font-weight: 700; letter-spacing: .9px; color: var(--helper); text-transform: uppercase; margin-bottom: 5px; }

/* Bio italic quote */
.dp-text { font-size: 13px; color: var(--text-body); line-height: 1.55; font-style: italic; }

/* Availability pill */
.dp-avail { font-size: 11px; font-weight: 600; color: var(--muted); background: var(--bg-soft); border: 1.5px solid var(--border); padding: 4px 10px; border-radius: 20px; display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; }

/* Filter sidebar tags – slightly smaller */
.df-tag { font-size: 12px; padding: 5px 11px; }

/* Age display */
.filter-age-display { font-size: 12px; font-weight: 700; color: var(--primary); }

/* Action label text */
.da-item span { font-size: 11px; color: var(--helper); letter-spacing: .2px; }

/* Right sidebar title rows */
.ds-card-title { font-size: 10px; font-weight: 700; letter-spacing: 1px; color: var(--helper); text-transform: uppercase; margin-bottom: 10px; }

/* Matches list scroll */
.matches-list { overflow-y: auto; }

/* Chat messages container scroll */
.mx-messages { scroll-behavior: smooth; }

/* Mode tabs in matches sidebar */
.mx-mode-tabs { background: var(--bg-soft); border-radius: 10px; padding: 3px; display: flex; gap: 4px; }
.mode-tab { border-radius: 8px; }

/* ═══════════════════════════════════════════════════════════════════════
   MATCH REASON MODAL
   ═══════════════════════════════════════════════════════════════════════ */
.mrm {
  position: fixed; inset: 0; z-index: 3000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.mrm.hidden { display: none; }
.mrm-backdrop {
  position: absolute; inset: 0; background: rgba(10,5,30,.55); backdrop-filter: blur(6px);
}
.mrm-box {
  position: relative; background: #fff; border-radius: 24px;
  padding: 28px 24px 24px; max-width: 380px; width: 100%;
  box-shadow: 0 24px 80px rgba(0,0,0,.22);
}
.mrm-close-btn {
  position: absolute; top: 16px; right: 16px;
  width: 30px; height: 30px; border-radius: 50%; border: none;
  background: var(--bg-soft); color: var(--muted); font-size: 13px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .12s;
}
.mrm-close-btn:hover { background: var(--border); }
.mrm-score-ring {
  display: flex; flex-direction: column; align-items: center; gap: 3px; margin-bottom: 14px;
}
.mrm-pct {
  font-size: 58px; font-weight: 900; color: var(--primary);
  letter-spacing: -3px; line-height: 1;
}
.mrm-lbl { font-size: 12px; color: var(--muted); font-weight: 500; }
.mrm-title {
  font-size: 16px; font-weight: 700; color: var(--text);
  text-align: center; margin-bottom: 20px; line-height: 1.4;
}
.mrm-reasons { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.mrm-reason {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-soft); border-radius: 12px; padding: 10px 14px;
}
.mrm-reason-icon { font-size: 18px; flex-shrink: 0; line-height: 1; }
.mrm-reason-text { flex: 1; font-size: 13px; font-weight: 600; color: var(--text-body); }
.mrm-reason-pts {
  font-size: 11px; font-weight: 700; color: var(--primary);
  background: var(--primary-soft); padding: 2px 8px; border-radius: 20px; white-space: nowrap;
}
.mrm-action-btn {
  width: 100%; padding: 13px; border: none; border-radius: 12px;
  background: var(--primary); color: #fff; font-size: 15px; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: all .2s; margin-bottom: 8px;
}
.mrm-action-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.mrm-secondary-btn {
  width: 100%; padding: 11px; border: 1.5px solid var(--border); border-radius: 12px;
  background: #fff; color: var(--text-body); font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: border-color .12s;
}
.mrm-secondary-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ═══════════════════════════════════════════════════════════════════════
   FULL PROFILE DRAWER
   ═══════════════════════════════════════════════════════════════════════ */
.fpm {
  position: fixed; inset: 0; z-index: 2500;
  display: flex; align-items: stretch; justify-content: flex-end;
}
.fpm.hidden { display: none; }
.fpm-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,.4); backdrop-filter: blur(4px);
}
.fpm-panel {
  position: relative; background: #fff; width: 440px; max-width: 100vw;
  height: 100%; overflow-y: auto; display: flex; flex-direction: column;
  box-shadow: -16px 0 56px rgba(0,0,0,.18); animation: fpmSlideIn .28s ease;
}
@keyframes fpmSlideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.fpm-header {
  position: sticky; top: 0; background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid #f0eeff;
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  z-index: 10;
}
.fpm-close {
  background: none; border: none; font-size: 20px; cursor: pointer;
  color: var(--muted); padding: 2px 6px; border-radius: 8px; transition: background .12s;
}
.fpm-close:hover { background: var(--bg-soft); }
#fpmHeaderName { flex: 1; font-size: 14px; font-weight: 700; color: var(--text); }
.fpm-hdr-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.fpm-hdr-pass {
  padding: 7px 14px; border: 1.5px solid #fecaca; border-radius: 20px;
  background: #fff; color: #ef4444; font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: all .12s;
}
.fpm-hdr-pass:hover { background: #fef2f2; }
.fpm-hdr-like {
  padding: 7px 16px; border: none; border-radius: 20px;
  background: var(--primary); color: #fff; font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: all .12s;
}
.fpm-hdr-like:hover { background: var(--primary-dark); }

/* Photo */
.fpm-photo-wrap { position: relative; height: 340px; flex-shrink: 0; }
.fpm-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.fpm-photo-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(160deg, #fde8d8 0%, #f4a57a 40%, #d97559 100%);
  display: flex; align-items: center; justify-content: center; font-size: 80px;
}
.fpm-photo-gradient {
  position: absolute; bottom: 0; left: 0; right: 0; height: 55%;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 100%);
  pointer-events: none;
}
.fpm-photo-info { position: absolute; bottom: 16px; left: 20px; right: 20px; }
.fpm-photo-name { font-size: 28px; font-weight: 900; color: #fff; letter-spacing: -0.5px; line-height: 1.2; }
.fpm-photo-meta { font-size: 13px; color: rgba(255,255,255,.8); margin-top: 3px; }

/* Info section */
.fpm-info-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 14px 20px 0; margin-bottom: 4px;
}
.fpm-badge {
  font-size: 11px; font-weight: 700; padding: 4px 10px;
  border-radius: 20px; display: inline-flex; align-items: center; gap: 4px;
}
.fpm-badge-verified { background: #dcfce7; color: #166534; }
.fpm-badge-rating { background: #fef3c7; color: #92400e; }
.fpm-badge-avail { background: var(--primary-soft); color: var(--primary); border: 1px solid var(--primary-border); }

/* Sections */
.fpm-section { padding: 16px 20px; border-bottom: 1px solid var(--border-light); }
.fpm-section-title {
  font-size: 10px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.fpm-section-text { font-size: 14px; color: var(--text-body); line-height: 1.7; font-style: italic; }
.fpm-section-text-plain { font-size: 14px; color: var(--text-body); line-height: 1.65; }
.fpm-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.fpm-tag { font-size: 13px; font-weight: 500; padding: 5px 14px; border-radius: 20px; border: 1.5px solid var(--border); color: var(--text-body); }
.fpm-tag-lang { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

/* Why match box */
.fpm-why-box { background: var(--primary-soft); border-radius: 14px; padding: 14px 16px; border: 1px solid var(--primary-border); }
.fpm-why-title { font-size: 13px; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.fpm-why-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.fpm-why-list li { font-size: 13px; color: var(--text-body); padding-left: 18px; position: relative; }
.fpm-why-list li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

/* Music block */
.fpm-music-block {
  display: flex; align-items: center; gap: 12px;
  background: #1db954; border-radius: 12px; padding: 12px 14px; color: #fff;
}
.fpm-music-icon { font-size: 22px; flex-shrink: 0; }
.fpm-music-info { flex: 1; }
.fpm-music-label { font-size: 9px; font-weight: 700; letter-spacing: .8px; opacity: .75; text-transform: uppercase; margin-bottom: 2px; }
.fpm-music-track { font-size: 13px; font-weight: 700; }

/* Convo starter */
.fpm-convo-box {
  background: var(--primary-soft); border: 2px solid var(--primary-border);
  border-radius: 12px; padding: 14px 16px;
}
.fpm-convo-q { font-size: 26px; color: var(--primary); font-family: Georgia, serif; float: left; margin-right: 8px; line-height: 1; }
.fpm-convo-text { font-size: 14px; font-style: italic; color: var(--text-body); line-height: 1.6; overflow: hidden; }

/* Sticky action bar */
.fpm-action-bar {
  position: sticky; bottom: 0; background: rgba(255,255,255,.97);
  border-top: 1px solid #f0eeff; padding: 12px 16px;
  display: flex; gap: 10px; flex-shrink: 0;
}
.fpm-pass-btn {
  flex: 1; padding: 13px; border: 2px solid #fecaca; border-radius: 12px;
  background: #fff; color: #ef4444; font-size: 15px; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: background .12s;
}
.fpm-pass-btn:hover { background: #fef2f2; }
.fpm-like-btn {
  flex: 2; padding: 13px; border: none; border-radius: 12px;
  background: var(--primary); color: #fff; font-size: 15px; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: all .2s;
}
.fpm-like-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* Profile photo lightbox */
.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.photo-lightbox.hidden { display: none; }
.photo-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 5, 30, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.photo-lightbox-frame {
  position: relative;
  z-index: 1;
  width: min(94vw, 880px);
  height: min(88vh, 820px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-lightbox-img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  box-shadow: 0 24px 80px rgba(0,0,0,.34);
}
.photo-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  background: rgba(255,255,255,.96);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.24);
}
.photo-lightbox-close:hover { background: #fff; }

/* Full profile — hero block */
.fpm-hero { position: relative; height: 300px; flex-shrink: 0; }
.fpm-hero-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.fpm-hero-avatar {
  width: 100%; height: 100%;
  background: linear-gradient(160deg, #fde8d8 0%, #f4a57a 40%, #d97559 100%);
  display: flex; align-items: center; justify-content: center; font-size: 80px;
}
.fpm-hero-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 100%);
  padding: 40px 20px 16px;
}
.fpm-hero-name { font-size: 26px; font-weight: 900; color: #fff; letter-spacing: -0.5px; line-height: 1.2; }
.fpm-hero-sub { font-size: 13px; color: rgba(255,255,255,.8); margin-top: 3px; }
.fpm-avail { font-size: 12px; color: rgba(255,255,255,.75); margin-top: 5px; }

/* Full profile — match score bar */
.fpm-match-score-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 20px; background: var(--primary-soft); border-bottom: 1px solid var(--primary-border);
}
.fpm-score-pct { font-size: 22px; font-weight: 900; color: var(--primary); }
.fpm-score-label { font-size: 12px; font-weight: 600; color: var(--primary); opacity: .75; }

/* Full profile — body text */
.fpm-text { font-size: 14px; color: var(--text-body); line-height: 1.7; font-style: italic; }
.fpm-text-plain { font-size: 14px; color: var(--text-body); line-height: 1.65; }

/* Full profile — reasons list */
.fpm-reasons { display: flex; flex-direction: column; gap: 8px; }
.fpm-plan-card {
  background: #fff7ed; border: 1px solid #fed7aa;
  border-radius: 14px; padding: 14px;
}
.fpm-plan-card h3 { font-size: 17px; margin: 0 0 10px; }
.fpm-plan-grid { display: grid; gap: 8px; }
.fpm-plan-grid span {
  display: block; background: rgba(255,255,255,.75);
  border: 1px solid rgba(251,146,60,.25); border-radius: 10px;
  padding: 8px; font-size: 12px; color: var(--muted);
}
.fpm-plan-grid strong { display: block; color: var(--text); margin-top: 2px; }

/* Full profile — music row (new layout) */
.fpm-music-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--primary-soft); border-radius: 12px; padding: 12px 14px;
  border: 1px solid var(--primary-border);
}
.fpm-music-track { font-size: 13px; font-weight: 700; color: var(--text); }
.fpm-music-artist { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* Full profile — conversation starter */
.fpm-starter-section { background: var(--primary-soft); }
.fpm-starter-text {
  font-size: 15px; font-style: italic; color: var(--text-body); line-height: 1.7;
  border-left: 3px solid var(--primary); padding-left: 14px; margin: 0;
}

/* Full profile — instagram row */
.fpm-insta-row {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--primary-soft), #fce7f3);
  border-radius: 12px; padding: 12px 14px;
  border: 1px solid var(--primary-border);
}
.fpm-insta-icon { font-size: 20px; }
.fpm-insta-text { font-size: 13px; font-weight: 600; color: var(--text-body); }

/* Match reason row (used in both modal + full profile) */
.mrm-reason-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-soft); border-radius: 10px; padding: 10px 14px;
}

/* ═══════════════════════════════════════════════════════════════════════
   INFO PAGES — About, Privacy, Terms, Safety, Trust, etc.
   ═══════════════════════════════════════════════════════════════════════ */

.ip-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
  position: sticky; top: 0; z-index: 100;
}
.ip-nav-inner {
  max-width: 820px; margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.ip-back-btn {
  font-size: 13px; font-weight: 600; color: var(--primary);
  background: none; border: none; cursor: pointer;
  font-family: inherit; padding: 6px 14px;
  border: 1.5px solid var(--primary-border); border-radius: 20px;
  transition: background .12s;
}
.ip-back-btn:hover { background: var(--primary-soft); }
.ip-body {
  min-height: calc(100vh - 57px);
  background: var(--bg); padding: 52px 24px 100px;
}
.ip-container { max-width: 720px; margin: 0 auto; }
.ip-h1 {
  font-size: 44px; font-weight: 900; color: var(--text);
  letter-spacing: -1.5px; margin-bottom: 14px; line-height: 1.1;
}
.ip-lead {
  font-size: 17px; color: var(--text-body); line-height: 1.75;
  margin-bottom: 40px;
  padding-left: 16px; border-left: 3px solid var(--primary);
}
.ip-section { margin-top: 44px; }
.ip-section h2 {
  font-size: 16px; font-weight: 800; color: var(--text);
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 2px solid var(--border-light);
}
.ip-section p {
  font-size: 15px; color: var(--text-body); line-height: 1.8;
  margin-bottom: 12px;
}
.ip-section a { color: var(--primary); text-decoration: none; }
.ip-section a:hover { text-decoration: underline; }
.ip-section ul {
  padding-left: 20px; color: var(--text-body);
  font-size: 15px; line-height: 2.1; margin-bottom: 12px;
}
.ip-team-card {
  background: var(--surface); border: 1px solid var(--border-light);
  border-radius: 16px; padding: 20px 22px; margin-bottom: 12px;
}
.ip-team-name { font-size: 17px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.ip-team-role { font-size: 12px; font-weight: 700; color: var(--primary); letter-spacing: .5px; text-transform: uppercase; margin-bottom: 10px; }
.ip-team-detail { font-size: 14px; color: var(--text-body); line-height: 1.7; }
.ip-team-detail a { color: var(--primary); text-decoration: none; }
.ip-team-detail a:hover { text-decoration: underline; }
.ip-todo-note {
  background: #fffbeb; border: 1px solid #fde68a;
  border-radius: 10px; padding: 10px 14px;
  font-size: 13px; color: #92400e; margin: 8px 0;
}

/* ══════════════════════════════════════════════════════════════════════
   AirportBuddy / Parent Mode  —  ab-* namespace
   ══════════════════════════════════════════════════════════════════════ */

/* ── Page wrapper ── */
.ab-page-wrap {
  max-width: 1140px; margin: 0 auto; padding: 32px 24px 80px;
  overflow-x: hidden;
}

/* ── Hero row ── */
.ab-hero {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 24px; margin-bottom: 32px;
}
.ab-hero-left { max-width: 600px; }
.ab-eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px;
}
.ab-headline {
  font-size: 28px; font-weight: 750; letter-spacing: -0.04em;
  line-height: 1.25; color: var(--text-primary); margin-bottom: 10px;
}
.ab-subline {
  font-size: 14px; color: var(--text-secondary); line-height: 1.7; max-width: 520px;
}
.ab-flow-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ab-flow-step {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 11px; border: 1px solid var(--border-soft);
  border-radius: 999px; background: #fff; color: var(--text-secondary);
  font-size: 12px; font-weight: 700;
}
.ab-flow-step span {
  width: 20px; height: 20px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--purple); color: #fff; font-size: 11px;
}
.ab-tab-offer .ab-flow-strip,
.ab-tab-mytrips .ab-flow-strip {
  display: none;
}
.ab-hero-tabs {
  display: flex; gap: 8px; align-items: center; flex-shrink: 0; flex-wrap: wrap;
  padding-top: 4px;
}

/* ── Hero tab buttons ── */
.ab-htab {
  padding: 9px 18px; border-radius: 22px; font-size: 13px; font-weight: 600;
  cursor: pointer; border: 1.5px solid var(--border-soft);
  background: var(--bg-surface); color: var(--text-secondary);
  font-family: inherit; transition: all .15s; white-space: nowrap;
}
.ab-htab:hover:not(.active) { border-color: var(--purple); color: var(--purple); }
.ab-htab.active {
  background: var(--text-primary); color: #fff; border-color: var(--text-primary);
}
.ab-htab-outlined { border-color: var(--purple); color: var(--purple); background: transparent; }
.ab-htab-outlined.active { background: var(--text-primary); border-color: var(--text-primary); color: #fff; }

/* ── Main two-column layout ── */
.ab-main {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 34%); gap: 22px; align-items: start;
}
.ab-sidebar-col { position: sticky; top: 82px; }

/* ── Form card ── */
.ab-card {
  background: var(--bg-surface); border: 1px solid var(--border-soft);
  border-radius: 18px; padding: 28px; box-shadow: 0 14px 38px rgba(15,23,42,.07);
}
.ab-card-hdr { margin-bottom: 24px; }
.ab-card-title { font-size: 20px; font-weight: 800; color: var(--text-primary); margin-bottom: 6px; }
.ab-card-sub { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.ab-title-mobile { display: none; }

/* ── Form layout ── */
.ab-form-row { display: flex; gap: 14px; }
.ab-form-row .ab-field { flex: 1; min-width: 0; }
.ab-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.ab-field:last-child { margin-bottom: 0; }
.ab-field-sm { max-width: 110px !important; flex: 0 0 110px !important; }
.ab-field label {
  font-size: 13px; font-weight: 600; color: var(--text-secondary); display: block;
}
.ab-field input,
.ab-field select,
.ab-field textarea {
  padding: 11px 14px; border: 1.5px solid var(--border-soft); border-radius: 10px;
  font-size: 14px; font-family: inherit; color: var(--text-primary);
  background: var(--bg-surface); outline: none; transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.ab-field input:focus,
.ab-field select:focus,
.ab-field textarea:focus {
  border-color: var(--purple); box-shadow: 0 0 0 3px rgba(123,92,225,.09);
}
.ab-field textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
.ab-counter { align-self: flex-end; font-size: 11px; color: var(--text-muted); }
.ab-err {
  font-size: 12px; color: var(--danger); min-height: 16px; margin-top: -2px;
}
.ab-field-hint {
  font-size: 12px; color: var(--text-muted); margin: 3px 0 0; line-height: 1.45;
}
.ab-field-hint.ab-hint-warn {
  color: #b45309;
}

/* ── Airport autocomplete ── */
.ab-autocomplete-wrap { position: relative; }
.ab-suggestions {
  position: absolute; top: calc(100% - 4px); left: 0; right: 0; z-index: 200;
  background: var(--bg-surface); border: 1.5px solid var(--border-soft);
  border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,.13);
  max-height: 220px; overflow-y: auto;
}
.ab-suggestion-item {
  padding: 10px 14px; cursor: pointer; border-bottom: 1px solid var(--border-lighter);
  font-size: 13px; line-height: 1.4;
}
.ab-suggestion-item:last-child { border-bottom: none; }
.ab-suggestion-item:hover { background: var(--bg-page); }
.ab-suggestion-code { font-weight: 700; color: var(--purple); font-size: 13px; }
.ab-suggestion-city { font-weight: 600; color: var(--text-primary); }
.ab-suggestion-name { color: var(--text-muted); font-size: 12px; }
.ab-airport-row .ab-field { min-width: 0; }
.ab-unknown-airport {
  font-size: 12px; color: var(--warning, #b45309); margin-top: 2px;
}

/* ── Chips ── */
.ab-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ab-chip {
  padding: 7px 14px; border-radius: 20px; font-size: 13px; font-weight: 500;
  border: 1.5px solid var(--border-soft); background: var(--bg-surface);
  color: var(--text-secondary); cursor: pointer; font-family: inherit;
  transition: all .12s; user-select: none;
}
.ab-chip:hover { border-color: var(--purple); color: var(--purple); }
.ab-chip.active {
  background: var(--purple); border-color: var(--purple);
  color: #fff; font-weight: 700;
  box-shadow: 0 6px 16px rgba(123,92,225,.18);
}

/* ── Searchable language multi-select ── */
.ab-language-select {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ab-language-control { position: relative; }
.ab-language-search {
  width: 100%;
  min-height: 44px;
  border: 1.5px solid var(--border-soft);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text-primary);
  background: var(--bg-surface);
  font: inherit;
}
.ab-language-search:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(123,92,225,.12);
}
.ab-language-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 220;
  max-height: 260px;
  overflow-y: auto;
  padding: 8px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-soft);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(31, 28, 48, .14);
}
.ab-language-group-label {
  padding: 8px 8px 5px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.ab-language-option {
  width: 100%;
  min-height: 44px;
  margin: 2px 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.ab-language-option.active {
  background: var(--purple-soft);
  color: var(--purple);
  box-shadow: none;
}
.ab-language-check {
  width: 18px;
  color: var(--purple);
  font-weight: 800;
}
.ab-language-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 30px;
}
.ab-language-selected-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--purple);
  color: var(--purple);
  background: var(--purple-soft);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  max-width: 100%;
}
.ab-language-selected-chip span {
  font-size: 15px;
  line-height: 1;
}
.ab-language-empty,
.ab-language-empty-option {
  color: var(--text-muted);
  font-size: 13px;
  padding: 6px 2px;
}
.ab-language-state { display: none !important; }

/* ── Help type chips ── */
.ab-help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ab-help-group-label {
  grid-column: 1 / -1; font-size: 11px; font-weight: 800;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em;
  margin-top: 8px;
}
.ab-help-chip {
  padding: 9px 14px; border-radius: 10px; font-size: 13px; font-weight: 500;
  border: 1.5px solid var(--border-soft); background: var(--bg-surface);
  color: var(--text-secondary); cursor: pointer; font-family: inherit;
  text-align: left; transition: all .12s; user-select: none; display: flex; align-items: center; gap: 6px;
}
.ab-help-chip:hover { border-color: var(--purple); color: var(--purple); }
.ab-help-chip.active {
  background: var(--purple); border-color: var(--purple);
  color: #fff; font-weight: 700;
  box-shadow: 0 6px 16px rgba(123,92,225,.18);
}

/* ── Verify list (offer form) ── */
.ab-verify-list { display: flex; flex-direction: column; gap: 10px; }
.ab-verify-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: var(--bg-page); border-radius: 10px;
  border: 1px solid var(--border-lighter);
}
.ab-vcheck { font-size: 14px; font-weight: 700; width: 20px; text-align: center; flex-shrink: 0; }
.ab-vcheck-done { color: var(--success-text); }
.ab-vcheck-pending { color: var(--text-muted); }
.ab-verify-label { flex: 1; font-size: 13px; font-weight: 500; color: var(--text-primary); }
.ab-verify-badge {
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px;
  background: var(--success-bg); color: var(--success-text);
}
.ab-verify-badge.ab-verify-pending {
  background: #f3f4f6; color: var(--text-muted);
}

/* ── Safety note ── */
.ab-safety-note {
  display: flex; gap: 10px; align-items: flex-start;
  background: #fffdf5; border: 1px solid #fde68a;
  border-radius: 10px; padding: 12px 14px; margin: 18px 0;
}
.ab-safety-note p { font-size: 12px; color: #78600a; line-height: 1.55; }

/* ── Matching tip ── */
.ab-match-tip {
  font-size: 12px; color: var(--text-muted); line-height: 1.5;
  background: var(--bg-surface); border: 1px solid var(--border-lighter);
  border-radius: 8px; padding: 9px 12px; margin: 6px 0 14px;
}
.ab-match-info { background: #f8fbff; border-color: #bfdbfe; color: #334155; }

/* ── Structured form cards ── */
.ab-step-card {
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: #fff;
  padding: 24px;
  margin: 0 0 20px;
  box-shadow: 0 12px 30px rgba(15,23,42,.055);
}
.ab-step-hdr { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.ab-step-num {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--purple-soft); color: var(--purple);
  border: 1px solid var(--purple-border);
  font-size: 13px; font-weight: 800; flex-shrink: 0;
}
.ab-step-hdr h3 { margin: 0 0 3px; color: var(--text-primary); font-size: 16px; font-weight: 800; }
.ab-step-hdr p { margin: 0; color: var(--text-muted); font-size: 12.5px; line-height: 1.45; }
.ab-step-body > .ab-form-section-label { display: none; }
.ab-inline-add {
  border: 0; background: transparent; color: var(--purple);
  font-weight: 800; font-size: 13px; padding: 0; margin: -4px 0 14px;
  cursor: pointer; font-family: inherit;
}

/* ── Form section label (offer form sections) ── */
.ab-form-section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-muted); margin: 20px 0 8px;
}
.ab-form-section-label:first-child { margin-top: 0; }

/* ── 3-column form row ── */
.ab-form-row-3 { display: flex; gap: 14px; }
.ab-form-row-3 .ab-field { flex: 1; min-width: 0; }

/* ── Safety field/label in offer form ── */
.ab-safety-field { margin-top: 4px; }
.ab-safety-label {
  display: flex; gap: 10px; align-items: flex-start;
  cursor: pointer; font-weight: 400; line-height: 1.55;
}
.ab-safety-checkbox {
  margin-top: 3px; flex-shrink: 0;
  accent-color: var(--primary); width: 16px; height: 16px; cursor: pointer;
}
.ab-safety-field .ab-safety-note {
  font-size: 12px; color: var(--text-muted); margin: 8px 0 0;
  background: none; border: none; border-radius: 0; padding: 0;
  display: block;
}

/* ── Form action row ── */
.ab-form-actions {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-top: 20px; padding-top: 20px;
  border-top: 1px solid var(--border-lighter);
}

/* ── Buttons ── */
.ab-btn-primary {
  padding: 11px 22px; border-radius: 10px; font-size: 14px; font-weight: 600;
  background: var(--purple); color: #fff; border: none; cursor: pointer;
  font-family: inherit; transition: background .15s, transform .12s, box-shadow .15s;
  white-space: nowrap;
}
.ab-btn-primary:hover { background: var(--purple-hover); transform: translateY(-1px); box-shadow: 0 5px 18px rgba(123,92,225,.28); }
.ab-btn-secondary {
  padding: 11px 22px; border-radius: 10px; font-size: 14px; font-weight: 600;
  background: var(--bg-surface); color: var(--text-primary);
  border: 1.5px solid var(--border-soft); cursor: pointer; font-family: inherit;
  transition: border-color .15s;
}
.ab-btn-secondary:hover { border-color: var(--purple); color: var(--purple); }
.ab-btn-ghost {
  padding: 11px 22px; border-radius: 10px; font-size: 14px; font-weight: 600;
  background: transparent; color: var(--text-secondary);
  border: 1.5px solid var(--border-soft); cursor: pointer; font-family: inherit;
  transition: border-color .15s, color .15s;
}
.ab-btn-ghost:hover { border-color: var(--purple); color: var(--purple); }
.ab-btn-sm-primary {
  padding: 7px 16px; border-radius: 8px; font-size: 13px; font-weight: 600;
  background: var(--purple); color: #fff; border: none; cursor: pointer;
  font-family: inherit; transition: background .15s;
}
.ab-btn-sm-primary:hover { background: var(--purple-hover); }
.ab-btn-sm-outline {
  padding: 7px 16px; border-radius: 8px; font-size: 13px; font-weight: 600;
  background: transparent; color: var(--purple);
  border: 1.5px solid var(--purple); cursor: pointer; font-family: inherit;
  transition: background .15s;
}
.ab-btn-sm-outline:hover { background: var(--purple-soft); }
.ab-btn-sm-danger {
  padding: 7px 16px; border-radius: 8px; font-size: 13px; font-weight: 600;
  background: #fff; color: #b91c1c;
  border: 1.5px solid #fecaca; cursor: pointer; font-family: inherit;
  transition: background .15s;
}
.ab-btn-sm-danger:hover { background: #fff1f2; }
.ab-full-btn { width: 100%; text-align: center; }

/* ── Request card (My Trips — requester view) ── */
.ab-req-card { flex-direction: column; align-items: stretch; gap: 10px; }
.ab-req-card .ab-trip-main { min-width: 0; }
.ab-req-card .ab-trip-side { align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: center; }
.ab-req-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ab-trip-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

@media (min-width: 600px) {
  .ab-req-card { flex-direction: row; align-items: flex-start; }
  .ab-req-card .ab-trip-side { flex-direction: column; align-items: flex-end; flex-shrink: 0; min-width: 160px; }
  .ab-req-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .ab-req-actions button { width: 100%; text-align: center; }
}

@media (max-width: 599px) {
  .ab-req-actions { width: 100%; }
  .ab-req-actions button { flex: 1 1 calc(50% - 6px); min-width: 0; text-align: center; }
  .ab-req-actions .ab-btn-sm-danger { flex: 1 1 100%; }
}

/* ── My Trips ── */
.ab-mytabs {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-bottom: 20px;
  border: 0; border-radius: 0; overflow: visible;
}
.ab-mytab {
  padding: 9px; font-size: 12px; font-weight: 700;
  background: #fff; border: 1.5px solid var(--border-soft); border-radius: 10px; cursor: pointer; font-family: inherit;
  color: var(--text-muted); transition: all .12s;
}
.ab-mytab.active { background: var(--purple); color: #fff; }
.ab-mytab-panel { display: flex; flex-direction: column; gap: 10px; }
.ab-section-divider {
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-muted); padding: 6px 2px 2px; margin-top: 4px;
  border-bottom: 1px solid var(--border-soft);
}
.ab-trip-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border: 1px solid var(--border-soft); border-radius: 12px;
  background: var(--bg-page);
  min-width: 0;
}
.ab-control-card { background: #fff; }
.ab-trip-main { flex: 1; min-width: 0; }
.ab-trip-name { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 3px; }
.ab-trip-route { font-size: 12px; color: var(--text-muted); }
.ab-trip-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ab-status-looking {
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px;
  background: #fef3c7; color: #92400e;
}
.ab-status-available {
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px;
  background: var(--success-bg); color: var(--success-text);
}

/* ── Helper trip card (richer layout) ── */
.ab-htc { align-items: flex-start; }
.ab-htc .ab-trip-main { display: flex; flex-direction: column; gap: 3px; }
.ab-htc-route { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.ab-htc-meta { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.ab-htc-subtle { font-size: 11px; color: var(--text-muted); opacity: 0.75; }
.ab-htc-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 12px; color: var(--text-secondary); margin-top: 2px; min-width: 0; }
.ab-htc-chip-label { font-weight: 600; color: var(--text-muted); margin-right: 4px; }
.ab-htc-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.ab-htc-message {
  font-style: italic;
  color: var(--text-secondary) !important;
  background: #faf8ff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  margin-top: 6px;
  line-height: 1.5;
}
.ab-incoming-identity-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}
.ab-request-match-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.ab-request-match-section-head {
  padding: 0 2px;
}
.ab-request-match-section-head h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 800;
}
.ab-request-match-section-head p {
  margin: 3px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}
.ab-request-match-card {
  align-items: flex-start;
}
.ab-empty-state-compact {
  padding: 18px 14px;
}
.ab-profile-inline-btn {
  min-height: 30px;
  padding: 5px 10px;
  font-size: 11px;
}
.ab-profile-error-text {
  margin: 0 0 10px;
  color: #b45309;
  font-size: 13px;
  line-height: 1.5;
}
.ab-status-withdrawn {
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px;
  background: #f3f4f6; color: #6b7280;
}
.ab-status-declined {
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px;
  background: #fee2e2; color: #991b1b;
}
.ab-htc-edit-btn { min-width: 80px; }

/* ── Sidebar ── */
.ab-sidebar-wrap { display: flex; flex-direction: column; gap: 14px; }
.ab-sidebar-label {
  font-size: 9.5px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-muted);
}

/* Best match card */
.ab-best-card {
  background: var(--bg-surface); border: 1px solid var(--border-soft);
  border-radius: 16px; padding: 18px; box-shadow: var(--shadow-card);
}
.ab-best-top {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.ab-best-avatar {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--border-lighter); flex-shrink: 0;
}
.ab-best-info { flex: 1; }
.ab-best-name { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.ab-best-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.ab-id-badge {
  font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 6px;
  background: var(--success-bg); color: var(--success-text); white-space: nowrap;
}
.ab-best-rating { font-size: 12px; color: var(--text-secondary); margin-bottom: 10px; }
.ab-best-langs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ab-lchip {
  display: inline-flex; align-items: center; max-width: 100%;
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 14px;
  background: var(--purple-soft); color: var(--purple);
  border: 1px solid var(--purple-border);
  line-height: 1.2; white-space: nowrap;
}
.ab-mytrips-hdr {
  margin-bottom: 16px;
}
.ab-mytrip-card {
  align-items: stretch;
  padding: 16px;
}
.ab-mytrip-card .ab-trip-side {
  min-width: 172px;
  justify-content: flex-start;
}
.ab-card-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.ab-card-topline > div {
  min-width: 0;
}
.ab-card-topline [class^="ab-status-"],
.ab-card-topline [class*=" ab-status-"] {
  flex: 0 0 auto;
}
.ab-card-date {
  margin-top: 2px;
}
.ab-card-details {
  display: grid;
  gap: 5px;
  margin-top: 9px;
}
.ab-card-detail-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
}
.ab-card-detail-row > span {
  color: var(--text-muted);
  font-weight: 700;
}
.ab-card-detail-row > strong {
  min-width: 0;
  color: var(--text-secondary);
  font-weight: 650;
}
.ab-card-detail-chips > strong {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.ab-card-status-row {
  display: none;
}
.ab-best-quote {
  font-size: 12.5px; color: var(--text-secondary); line-height: 1.6;
  font-style: italic; margin-bottom: 14px;
  padding: 10px 12px; background: var(--bg-page); border-radius: 8px;
  border-left: 2px solid var(--purple-border);
}
.ab-connect-btn {
  width: 100%; padding: 11px; border-radius: 10px; font-size: 14px; font-weight: 600;
  background: var(--purple); color: #fff; border: none; cursor: pointer;
  font-family: inherit; transition: background .15s;
}
.ab-connect-btn:hover { background: var(--purple-hover); }

/* Locked card */
.ab-locked-card {
  background: var(--bg-surface); border: 1px solid var(--border-lighter);
  border-radius: 14px; padding: 16px; text-align: center;
  box-shadow: 0 4px 16px rgba(44,35,80,.05);
}
.ab-lock-icon { font-size: 22px; margin-bottom: 6px; }
.ab-lock-text { font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 10px; }
.ab-unlock-btn {
  width: 100%; padding: 9px; border-radius: 8px; font-size: 13px; font-weight: 600;
  background: var(--purple); color: #fff; border: none; cursor: pointer;
  font-family: inherit; transition: background .15s;
}
.ab-unlock-btn:hover { background: var(--purple-hover); }

/* Why card (offer sidebar) */
.ab-why-card {
  background: var(--bg-surface); border: 1px solid var(--border-soft);
  border-radius: 16px; padding: 18px; box-shadow: var(--shadow-card);
}
.ab-why-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; }
.ab-why-item + .ab-why-item { border-top: 1px solid var(--border-lighter); }
.ab-why-icon { font-size: 20px; flex-shrink: 0; padding-top: 2px; }
.ab-why-title { font-size: 13px; font-weight: 700; color: var(--text-primary); margin-bottom: 3px; }
.ab-why-text { font-size: 12.5px; color: var(--text-secondary); line-height: 1.55; }

/* Preview card (offer sidebar) */
.ab-preview-card {
  background: var(--purple-soft); border: 1px solid var(--purple-border);
  border-radius: 14px; padding: 16px; text-align: center;
}
.ab-preview-text { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 10px; }
.ab-preview-btn {
  width: 100%; padding: 9px; border-radius: 8px; font-size: 13px; font-weight: 600;
  background: var(--purple); color: #fff; border: none; cursor: pointer;
  font-family: inherit; transition: background .15s;
}
.ab-preview-btn:hover { background: var(--purple-hover); }

/* ── Trust section ── */
.ab-trust {
  margin-top: 56px; padding-top: 48px;
  border-top: 1px solid var(--border-lighter);
}
.ab-trust-hdr { text-align: center; margin-bottom: 36px; }
.ab-trust-hdr h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.ab-trust-hdr p { font-size: 14px; color: var(--text-secondary); max-width: 520px; margin: 0 auto; line-height: 1.65; }
.ab-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ab-trust-card {
  background: var(--bg-surface); border: 1px solid var(--border-lighter);
  border-radius: 14px; padding: 20px 18px;
  box-shadow: 0 4px 16px rgba(44,35,80,.05);
}
.ab-trust-icon { font-size: 24px; margin-bottom: 10px; }
.ab-trust-card h3 { font-size: 13px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.ab-trust-card p { font-size: 12.5px; color: var(--text-secondary); line-height: 1.6; }

/* ── Modals ── */
.ab-modal {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center;
}
.ab-modal-backdrop {
  position: absolute; inset: 0; background: rgba(23,23,42,.55);
  backdrop-filter: blur(2px);
}
.ab-modal-box {
  position: relative; z-index: 1;
  background: var(--bg-surface); border-radius: 18px;
  padding: 28px; max-width: 500px; width: calc(100% - 32px);
  box-shadow: 0 24px 80px rgba(23,23,42,.2); max-height: 90vh; overflow-y: auto;
  animation: abPopIn .25s cubic-bezier(.34,1.4,.64,1);
}
.ab-modal-wide { max-width: 680px; }
@keyframes abPopIn {
  from { opacity: 0; transform: scale(.95) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.ab-modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg-page); border: 1px solid var(--border-soft);
  font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: background .12s;
}
.ab-modal-close:hover { background: var(--border-soft); }
.ab-modal-title { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.ab-modal-sub { font-size: 13px; color: var(--text-secondary); margin-bottom: 18px; }

/* Flight summary pills in modal */
.ab-flight-pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ab-fpill {
  font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 20px;
  background: var(--purple-soft); color: var(--purple); border: 1px solid var(--purple-border);
}

/* Sort row */
.ab-sort-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.ab-sort-chip {
  padding: 6px 14px; border-radius: 16px; font-size: 12px; font-weight: 600;
  border: 1.5px solid var(--border-soft); background: transparent;
  color: var(--text-secondary); cursor: pointer; font-family: inherit; transition: all .12s;
}
.ab-sort-chip:hover, .ab-sort-chip.active {
  background: var(--purple); color: #fff; border-color: var(--purple);
}

/* Helpers list in modal */
.ab-helpers-list { display: flex; flex-direction: column; gap: 16px; }
.ab-hcard {
  padding: 18px; border: 1px solid var(--border-soft); border-radius: 14px;
  background: var(--bg-page); transition: border-color .15s;
}
.ab-hcard:hover { border-color: var(--purple-border); }
.ab-hcard-top { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.ab-hcard-avatar {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--border-lighter); flex-shrink: 0;
}
.ab-hcard-initials {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  background: var(--ic, #f0ebff); color: var(--it, #7b5ce1);
  font-size: 15px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.ab-hcard-info { flex: 1; }
.ab-hcard-name { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.ab-hcard-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.ab-hcard-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.ab-hcard-langs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ab-hcard-help { font-size: 12.5px; color: var(--text-secondary); margin-bottom: 6px; }
.ab-hcard-stats { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.ab-hcard-actions { display: flex; gap: 8px; justify-content: flex-end; }
.ab-match-group-title {
  margin: 6px 0 -6px; font-size: 11px; font-weight: 800;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em;
}
.ab-match-reasons {
  background: #f8fbff; border: 1px solid #dbeafe; border-radius: 10px;
  padding: 10px 12px; margin: 10px 0; font-size: 12px; color: #334155;
}
.ab-match-reasons ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 3px; }

/* Match score pills */
.ab-match-pill {
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 8px;
  background: var(--success-bg); color: var(--success-text); margin-left: 4px;
}
.ab-match-89 { background: #e0f2fe; color: #075985; }
.ab-match-87 { background: var(--purple-soft); color: var(--purple); }
.ab-match-82 { background: #fef3c7; color: #92400e; }

/* Verification badges */
.ab-badge-flight {
  font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 6px;
  background: var(--purple-soft); color: var(--purple); border: 1px solid var(--purple-border);
}
.ab-badge-id {
  font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 6px;
  background: var(--success-bg); color: var(--success-text);
}
.ab-badge-phone {
  font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 6px;
  background: #e0f2fe; color: #075985;
}

/* Request modal */
.ab-req-summary {
  background: var(--bg-page); border: 1px solid var(--border-lighter);
  border-radius: 10px; padding: 14px 16px; margin-bottom: 16px;
}
.ab-req-row {
  display: flex; gap: 12px; font-size: 13px; padding: 5px 0;
}
.ab-req-row + .ab-req-row { border-top: 1px solid var(--border-lighter); }
.ab-req-lbl { font-weight: 600; color: var(--text-muted); width: 100px; flex-shrink: 0; }

/* Safety checklist */
.ab-safety-checklist {
  background: #fffdf5; border: 1px solid #fde68a;
  border-radius: 10px; padding: 12px 14px; margin: 14px 0;
}
.ab-sc-title { font-size: 12px; font-weight: 700; color: #78600a; margin-bottom: 8px; }
.ab-sc-list {
  padding-left: 16px; margin: 0; list-style: disc;
}
.ab-sc-list li { font-size: 12px; color: #78600a; line-height: 1.8; }

/* Modal actions */
.ab-modal-actions {
  display: flex; gap: 10px; justify-content: flex-end;
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--border-lighter);
}

/* Success state */
.ab-success-wrap { text-align: center; padding: 8px 0 4px; }
.ab-success-icon { font-size: 40px; margin-bottom: 14px; }
.ab-success-sub {
  font-size: 14px; color: var(--text-secondary); line-height: 1.65;
  max-width: 380px; margin: 0 auto 4px;
}

/* Helper profile modal */
.ab-profile-hdr {
  display: flex; gap: 14px; align-items: center; margin-bottom: 20px; padding-top: 4px;
}
.ab-profile-avatar {
  width: 68px; height: 68px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--border-soft); flex-shrink: 0;
}
.ab-profile-initials {
  width: 68px; height: 68px; border-radius: 50%; flex-shrink: 0;
  background: var(--ic, #f0ebff); color: var(--it, #7b5ce1);
  font-size: 20px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.ab-profile-name { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 3px; }
.ab-profile-meta { font-size: 13px; color: var(--text-muted); }
.ab-profile-body { display: flex; flex-direction: column; gap: 0; }
.ab-profile-section {
  padding: 12px 0; border-bottom: 1px solid var(--border-lighter);
}
.ab-profile-lbl { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.ab-profile-text { font-size: 13px; color: var(--text-secondary); line-height: 1.65; }

/* ── Checkmark on active help chips ── */
.ab-help-chip.active::after {
  content: ' ✓'; font-size: 11px; font-weight: 700; opacity: .85;
}

/* ── Verify item interactive ── */
.ab-verify-togglable { cursor: pointer; transition: background .12s, border-color .12s; }
.ab-verify-togglable:hover { background: var(--purple-soft); border-color: var(--purple-border); }
.ab-verify-togglable:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }

/* ── Toast ── */
.ab-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(12px);
  background: var(--text-primary); color: #fff;
  padding: 10px 20px; border-radius: 22px;
  font-size: 13px; font-weight: 600; font-family: inherit;
  white-space: nowrap; z-index: 9999;
  opacity: 0; pointer-events: none;
  transition: opacity .22s, transform .22s;
  box-shadow: 0 8px 28px rgba(23,23,42,.22);
}
.ab-toast.ab-toast-show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }

/* ── Payment note in helpers modal ── */
.ab-payment-note {
  background: #fffdf5; border: 1px solid #fde68a;
  border-radius: 8px; padding: 9px 14px; font-size: 12px;
  font-weight: 600; color: #78600a; margin-bottom: 14px;
}

/* ── Mobile sticky CTA ── */
.ab-mobile-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--bg-surface); padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border-soft); box-shadow: 0 -4px 20px rgba(44,35,80,.08);
}
.ab-mobile-wizard-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  max-width: 720px; margin: 0 auto;
}
.ab-mobile-nav-actions { display: flex; gap: 10px; flex: 1; justify-content: flex-end; }
.ab-mobile-cta .ab-btn-primary,
.ab-mobile-cta .ab-btn-ghost {
  min-height: 44px;
}
.ab-mobile-cta .ab-btn-primary { min-width: 144px; }
.ab-mobile-cta .ab-btn-primary:disabled,
.ab-mobile-cta .ab-btn-ghost:disabled {
  opacity: .48; cursor: not-allowed; transform: none; box-shadow: none;
}

/* ── Mobile AirportBuddy request wizard ── */
.ab-mobile-progress { display: none; }
.ab-mobile-step-hidden { display: none !important; }
.ab-mobile-review-summary {
  display: none;
  background: #f8fbff;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 16px;
}
.ab-review-title {
  font-size: 13px; font-weight: 900; color: var(--text-primary); margin-bottom: 10px;
}
.ab-review-grid { display: grid; gap: 8px; }
.ab-review-grid div {
  display: grid; gap: 2px; padding: 9px 10px;
  background: #fff; border: 1px solid var(--border-lighter); border-radius: 10px;
}
.ab-review-grid span {
  font-size: 10px; font-weight: 800; color: var(--text-muted);
  letter-spacing: .08em; text-transform: uppercase;
}
.ab-review-grid strong {
  font-size: 13px; color: var(--text-primary); line-height: 1.35;
}
.ab-mobile-safety-copy {
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  background: #fffdf5;
  border: 1px solid #fde68a;
  color: #78600a;
  font-size: 12px;
  line-height: 1.45;
}

/* ── Pre-search how-it-works sidebar ── */
.ab-how-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 4px 16px;
}
.ab-live-summary { margin-top: 14px; }
.ab-summary-card {
  display: grid; gap: 8px;
  background: #fff; border: 1px solid var(--border-soft);
  border-radius: 16px; padding: 16px;
  box-shadow: var(--shadow-card);
  color: var(--text-secondary); font-size: 12.5px; line-height: 1.45;
}
.ab-summary-hint {
  margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--border-lighter);
  color: #075985; font-weight: 700;
}
.ab-how-step {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid var(--border-soft);
}
.ab-how-step:last-child { border-bottom: none; }
.ab-how-num {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--purple); color: #fff;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ab-how-body { flex: 1; }
.ab-how-title { font-size: 13px; font-weight: 700; color: var(--text-primary); margin-bottom: 3px; }
.ab-how-text  { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* ── Form error state ── */
.ab-form-error {
  background: #fef2f2; border: 1px solid #fca5a5;
  border-radius: var(--radius-sm); color: #b91c1c;
  font-size: 13px; font-weight: 500;
  padding: 10px 14px; margin-top: 10px;
}

/* ── Optional field label suffix ── */
.ab-optional { font-size: 11px; color: var(--text-muted); font-weight: 400; margin-left: 4px; }

/* ── Offer help trust note ── */
.ab-offer-trust-note {
  display: flex; gap: 8px; align-items: flex-start;
  background: #f5f3ff; border: 1px solid #ddd6fe;
  border-radius: var(--radius-sm); padding: 10px 12px; margin-top: 14px;
  font-size: 12px; color: #5b21b6; line-height: 1.5;
}
.ab-offer-trust-note span { flex-shrink: 0; }

/* ── Status card (offer sidebar) ── */
.ab-status-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 16px;
}
.ab-status-flight {
  font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 10px;
}
.ab-status-badge-pending {
  display: inline-block; background: #fffbeb; border: 1px solid #fde68a;
  color: #92400e; font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 20px; margin-bottom: 14px;
}
.ab-status-badge-active {
  display: inline-block; background: #f0fdf4; border: 1px solid #86efac;
  color: #166534; font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 20px; margin-bottom: 14px;
}
.ab-status-note {
  font-size: 12px; color: var(--text-muted); line-height: 1.5; margin: 10px 0 14px;
}
.ab-family-req-count {
  font-size: 13px; font-weight: 600; color: var(--text-primary); line-height: 1.4;
}

/* ── Mini verification list (sidebar) ── */
.ab-mini-verify-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.ab-mini-verify-row {
  display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-primary);
}
.ab-mini-check { width: 18px; height: 18px; border-radius: 50%; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ab-mini-done  { background: #dcfce7; color: #166534; }
.ab-mini-pend  { background: #f1f5f9; color: #94a3b8; }
.ab-mini-label { flex: 1; }
.ab-mini-badge { font-size: 11px; font-weight: 600; color: #166534; }
.ab-mini-badge-pend { color: #b45309; }

/* ── Mock/dev button ── */
.ab-mock-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: #fffbeb; border: 1px dashed #fbbf24;
  color: #92400e; font-size: 12px; font-weight: 600;
  padding: 8px 14px; border-radius: var(--radius-sm);
  cursor: pointer; font-family: inherit;
}
.ab-mock-btn:hover { background: #fef3c7; }
.ab-mock-btn.ab-full-btn { width: 100%; }

/* ── Trip status badges ── */
.ab-status-draft      { background:#f1f5f9; color:#475569; border:1px solid #cbd5e1; font-size:11px; font-weight:700; padding:3px 9px; border-radius:20px; }
.ab-status-matched    { background:#ede9fe; color:#5b21b6; border:1px solid #c4b5fd; font-size:11px; font-weight:700; padding:3px 9px; border-radius:20px; }
.ab-status-sent       { background:#eff6ff; color:#1d4ed8; border:1px solid #bfdbfe; font-size:11px; font-weight:700; padding:3px 9px; border-radius:20px; }
.ab-status-confirmed  { background:#f0fdf4; color:#166534; border:1px solid #86efac; font-size:11px; font-weight:700; padding:3px 9px; border-radius:20px; }
.ab-status-pending    { background:#fffbeb; color:#92400e; border:1px solid #fde68a; font-size:11px; font-weight:700; padding:3px 9px; border-radius:20px; }
.ab-status-received   { background:#eff6ff; color:#1d4ed8; border:1px solid #bfdbfe; font-size:11px; font-weight:700; padding:3px 9px; border-radius:20px; }
.ab-status-helping    { background:#f0fdf4; color:#166534; border:1px solid #86efac; font-size:11px; font-weight:700; padding:3px 9px; border-radius:20px; }

/* ── Empty state ── */
.ab-empty-state {
  text-align: center; padding: 36px 20px;
}
.ab-empty-icon { font-size: 32px; margin-bottom: 12px; }
.ab-empty-text { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.ab-empty-sub  { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ── AirportBuddy chat context ── */
.airportbuddy-chat-context,
.ab-chat-context-card {
  position: sticky;
  top: 0;
  z-index: 2;
  width: min(820px, calc(100% - 24px));
  margin: 4px auto 16px;
  padding: 16px 18px;
  border: 1px solid #c7d2fe;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8f7ff 0%, #eef6ff 100%);
  color: var(--text-primary);
  box-shadow: 0 12px 32px rgba(79, 70, 229, 0.12);
}
.airportbuddy-context-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.airportbuddy-context-title {
  font-size: 13px;
  font-weight: 850;
  color: #312e81;
}
.airportbuddy-context-badge,
.ab-list-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #a5b4fc;
  background: #eef2ff;
  color: #4f46e5;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  padding: 5px 8px;
  white-space: nowrap;
}
.airportbuddy-context-route,
.ab-chat-context-route {
  font-size: 18px;
  font-weight: 850;
  color: #111827;
  line-height: 1.25;
  margin-bottom: 4px;
}
.airportbuddy-context-meta,
.airportbuddy-context-fallback,
.airportbuddy-context-people {
  font-size: 13px;
  color: #596070;
  line-height: 1.45;
}
.airportbuddy-context-people {
  margin-top: 4px;
  font-weight: 800;
  color: #334155;
}
.airportbuddy-context-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin-top: 13px;
}
.airportbuddy-context-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  font-size: 12px;
  line-height: 1.45;
}
.airportbuddy-context-row span {
  color: #6b7280;
  font-weight: 700;
}
.airportbuddy-context-row strong {
  min-width: 0;
  color: #1f2937;
  font-weight: 750;
}
.airportbuddy-context-row-chips strong {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.airportbuddy-context-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #dbeafe;
  background: #eff6ff;
  color: #1e40af;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  padding: 6px 9px;
}
.airportbuddy-context-chip-more {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #475569;
}
.airportbuddy-context-safety,
.ab-chat-context-safety {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(129, 140, 248, 0.45);
  font-size: 12px;
  line-height: 1.55;
  color: #475569;
}
.airportbuddy-context-safety span {
  display: block;
  margin-top: 2px;
}
.ab-list-badge {
  border-color: #ddd6fe;
  background: #f5f3ff;
  color: var(--primary);
}

/* ── AirportBuddy profile drawer ── */
.ab-profile-drawer {
  position: fixed;
  inset: 0;
  z-index: 650;
  background: rgba(17, 24, 39, 0.48);
  display: flex;
  justify-content: flex-end;
}
.ab-profile-drawer-panel {
  width: min(480px, 100%);
  height: 100%;
  background: #fff;
  box-shadow: -20px 0 60px rgba(15, 23, 42, 0.22);
  overflow: auto;
}
.ab-profile-cover {
  height: 118px;
  position: relative;
}
.ab-profile-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  cursor: pointer;
}
.ab-profile-body {
  padding: 0 22px 30px;
}
.ab-profile-avatar-wrap {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 4px solid #fff;
  margin-top: -44px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
  overflow: hidden;
  background: #f1edff;
}
.ab-profile-name {
  margin: 12px 0 3px;
  font-size: 22px;
  font-weight: 850;
  color: #111827;
}
.ab-profile-role {
  color: #64748b;
  font-size: 13px;
  line-height: 1.4;
}
.ab-profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 18px;
}
.ab-profile-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #ddd6fe;
  background: #f5f3ff;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  padding: 6px 9px;
}
.ab-profile-badge-ok {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}
.ab-profile-section-card {
  border: 1px solid #e6e0ff;
  border-radius: 14px;
  padding: 15px;
  margin: 0 0 14px;
  background: #fff;
}
.ab-profile-why {
  background: linear-gradient(180deg, #f8f7ff 0%, #eef6ff 100%);
  border-color: #c7d2fe;
}
.ab-profile-why h3,
.ab-profile-section-title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 850;
  color: #312e81;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ab-profile-why p,
.ab-profile-mini-section p {
  margin: 0;
  color: #374151;
  font-size: 13px;
  line-height: 1.55;
}
.ab-profile-help-context {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}
.ab-profile-help-context > span {
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ab-profile-reason-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
  color: #374151;
  font-size: 12px;
  line-height: 1.45;
}
.ab-profile-reason-list li::before {
  content: "✓ ";
  color: #15803d;
  font-weight: 900;
}
.ab-profile-warning-list {
  display: grid;
  gap: 6px;
}
.ab-profile-warning {
  border: 1px solid #fde68a;
  border-radius: 10px;
  background: #fffbeb;
  color: #92400e;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
  padding: 8px 10px;
}
.ab-profile-link-btn {
  margin-top: 12px;
  border: 1px solid #c7d2fe;
  background: #fff;
  color: var(--primary);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.ab-drawer-context-grid {
  display: grid;
  gap: 9px;
}
.ab-drawer-context-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 9px;
  font-size: 12px;
  line-height: 1.45;
}
.ab-drawer-context-row span {
  color: #64748b;
  font-weight: 700;
}
.ab-drawer-context-row strong {
  color: #1f2937;
  font-weight: 800;
}
.ab-drawer-context-row-chips strong {
  font-weight: 700;
}
.ab-profile-trust-list,
.ab-drawer-chip-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.ab-profile-trust-list span,
.ab-drawer-chip {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid #dbeafe;
  background: #eff6ff;
  color: #1e40af;
  font-size: 12px;
  font-weight: 750;
  padding: 6px 9px;
}
.ab-drawer-chip-more {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #475569;
}
.ab-drawer-empty {
  color: #94a3b8;
  font-size: 12px;
}
.ab-profile-mini-section {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}
.ab-profile-mini-section:first-of-type {
  margin-top: 0;
}
.ab-profile-mini-section strong {
  font-size: 12px;
  color: #374151;
}
.ab-profile-loading .ab-profile-cover {
  background: linear-gradient(135deg, #ede9fe, #e0f2fe);
}
.ab-profile-skeleton {
  display: block;
  border-radius: 999px;
  background: linear-gradient(90deg, #eef2f7 0%, #f8fafc 42%, #eef2f7 80%);
  background-size: 220% 100%;
  animation: abSkeletonPulse 1.15s ease-in-out infinite;
}
.ab-profile-skeleton-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.ab-profile-skeleton-name {
  width: 62%;
  height: 24px;
  margin: 14px 0 8px;
}
.ab-profile-skeleton-role {
  width: 46%;
  height: 14px;
  margin-bottom: 16px;
}
.ab-profile-skeleton-line {
  width: 100%;
  height: 12px;
  margin: 9px 0;
}
.ab-profile-loading-text {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 16px;
}
@keyframes abSkeletonPulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .ab-main { grid-template-columns: 1fr; }
  .ab-sidebar-col { position: static; }
  .ab-trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .mx-chat-hdr {
    align-items: flex-start;
  }
  .mx-profile-actions {
    max-width: 100%;
  }
  .mx-view-profile-btn {
    padding: 7px 9px;
  }
  .mx-ab-header-context {
    max-width: 100%;
    padding: 8px 10px;
  }
  .mx-chat-hdr-actions {
    display: none;
  }
  .ab-profile-drawer {
    justify-content: stretch;
  }
  .ab-profile-drawer-panel {
    width: 100%;
  }
  .ab-profile-cover {
    height: 96px;
  }
  .ab-profile-close {
    top: 10px;
    right: 10px;
  }
  .ab-profile-body {
    padding: 0 16px 22px;
  }
  .ab-profile-avatar-wrap {
    width: 70px;
    height: 70px;
    margin-top: -35px;
  }
  .ab-profile-name {
    margin-top: 9px;
    font-size: 20px;
  }
  .ab-profile-badges {
    margin: 10px 0 12px;
  }
  .ab-profile-loading .ab-profile-name {
    font-size: 18px;
  }
  .ab-profile-section-card {
    padding: 13px;
    margin-bottom: 11px;
    border-radius: 13px;
  }
  .ab-profile-why p,
  .ab-profile-mini-section p {
    font-size: 12px;
    line-height: 1.45;
  }
  .ab-profile-section-title,
  .ab-profile-why h3 {
    margin-bottom: 8px;
    font-size: 11px;
  }
  .ab-drawer-context-row {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 7px;
    font-size: 11px;
  }
  .ab-profile-trust-list span,
  .ab-drawer-chip {
    font-size: 11px;
    padding: 5px 8px;
  }
  .airportbuddy-chat-context,
  .ab-chat-context-card {
    position: static;
    width: calc(100% - 8px);
    margin: 0 auto 12px;
    padding: 12px;
    border-radius: 14px;
  }
  .airportbuddy-context-header { margin-bottom: 7px; }
  .airportbuddy-context-title { font-size: 12px; }
  .airportbuddy-context-route,
  .ab-chat-context-route { font-size: 16px; }
  .airportbuddy-context-grid {
    grid-template-columns: 1fr;
    gap: 7px;
    margin-top: 10px;
  }
  .airportbuddy-context-row {
    grid-template-columns: 78px minmax(0, 1fr);
    font-size: 11px;
  }
  .airportbuddy-context-safety,
  .ab-chat-context-safety {
    font-size: 11px;
    margin-top: 10px;
    padding-top: 10px;
  }
  .ab-page-wrap { padding: 18px 14px 118px; max-width: 100%; }
  .ab-hero { flex-direction: column; gap: 12px; margin-bottom: 14px; }
  .ab-hero-left { max-width: 100%; }
  .ab-headline { font-size: 22px; line-height: 1.2; letter-spacing: 0; margin-bottom: 6px; }
  .ab-subline { font-size: 13px; line-height: 1.55; }
  .ab-flow-strip { display: none; }
  .ab-flow-step { font-size: 11px; padding: 7px 9px; }
  .ab-hero-tabs {
    width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px;
    scrollbar-width: none;
  }
  .ab-hero-tabs::-webkit-scrollbar { display: none; }
  .ab-htab { flex: 0 0 auto; min-height: 44px; font-size: 12px; padding: 9px 14px; }
  .ab-card { padding: 14px; border-radius: 16px; }
  .ab-card-hdr { margin-bottom: 14px; }
  .ab-card-title { font-size: 18px; }
  .ab-title-desktop { display: none; }
  .ab-title-mobile { display: inline; }
  #ab-panel-mytrips .ab-card-sub {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #ab-panel-post .ab-card-hdr { margin-bottom: 14px; }
  #ab-panel-post .ab-card-sub { display: none; }
  #abPostForm > p:first-child { display: none; }
  .ab-mobile-progress {
    display: block;
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 14px;
    box-shadow: 0 10px 24px rgba(15,23,42,.06);
  }
  .ab-mobile-progress.hidden { display: none !important; }
  .ab-mobile-progress-top {
    display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
    margin-bottom: 9px;
  }
  .ab-mobile-progress-top span {
    font-size: 11px; font-weight: 800; color: var(--purple);
    text-transform: uppercase; letter-spacing: .08em;
  }
  .ab-mobile-progress-top strong {
    font-size: 14px; color: var(--text-primary); text-align: right;
  }
  .ab-mobile-progress-track {
    height: 7px; border-radius: 999px; background: #eef2f7; overflow: hidden;
  }
  .ab-mobile-progress-track span {
    display: block; height: 100%; border-radius: inherit;
    background: linear-gradient(90deg, var(--purple), #0891b2);
    transition: width .18s ease;
  }
  #ab-panel-post .ab-step-card {
    display: block;
    padding: 18px 16px;
    border-radius: 16px;
    margin-bottom: 12px;
    box-shadow: 0 12px 28px rgba(15,23,42,.07);
  }
  #ab-panel-post .ab-step-card.ab-mobile-step-hidden { display: none !important; }
  #ab-panel-post .ab-mobile-field-hidden { display: none !important; }
  #ab-panel-post .ab-step-hdr { display: none; }
  #ab-panel-post .ab-step-num { width: 28px; height: 28px; }
  #ab-panel-post .ab-step-hdr h3 { font-size: 16px; }
  #ab-panel-post .ab-step-hdr p { font-size: 12px; }
  .ab-form-row, .ab-form-row-3 { flex-direction: column; gap: 0; }
  .ab-field { margin-bottom: 14px; }
  .ab-field input,
  .ab-field select,
  .ab-field textarea,
  .ab-chip,
  .ab-help-chip { min-height: 44px; }
  .ab-field-sm { max-width: 100% !important; flex: unset !important; }
  .ab-help-grid { grid-template-columns: 1fr; }
  .ab-mobile-review-summary { display: block; }
  #ab-panel-post .ab-form-actions { display: none; }
  .ab-mobile-cta { display: block; }
  .ab-mobile-wizard-actions { align-items: stretch; }
  .ab-mobile-nav-actions { justify-content: flex-end; }
  .ab-mobile-wizard-actions > .ab-btn-ghost { flex: 0 0 auto; padding-inline: 12px; }
  .ab-mobile-nav-actions .ab-btn-ghost { flex: 0 0 82px; padding-inline: 10px; }
  .ab-mobile-nav-actions .ab-btn-primary { flex: 1 1 auto; padding-inline: 14px; }
  .ab-sidebar-col { display: none; }
  .ab-mytabs {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    padding: 0 1px 6px;
    margin: 0 -2px 12px;
    scrollbar-width: none;
  }
  .ab-mytabs::-webkit-scrollbar { display: none; }
  .ab-mytab {
    flex: 0 0 auto;
    min-height: 34px;
    min-width: auto;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 12px;
  }
  .ab-trip-card { flex-direction: column; align-items: flex-start; width: 100%; }
  .ab-trip-side { align-items: stretch; flex-direction: column; flex-wrap: nowrap; width: 100%; }
  .ab-mytrip-card {
    padding: 13px;
    gap: 10px;
  }
  .ab-mytrip-card .ab-trip-main,
  .ab-mytrip-card .ab-trip-side {
    width: 100%;
    min-width: 0;
  }
  .ab-card-topline .ab-htc-route {
    font-size: 15px;
  }
  .ab-card-detail-row {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 6px;
    font-size: 12px;
  }
  .ab-card-detail-row > strong {
    overflow-wrap: anywhere;
  }
  .ab-card-detail-chips > strong {
    display: block;
  }
  .ab-card-status-row {
    display: grid;
  }
  .ab-lchip {
    max-width: 100%;
    padding: 3px 8px;
    font-size: 11px;
  }
  .ab-req-actions,
  .ab-htc-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
  }
  .ab-req-actions button,
  .ab-htc-actions button {
    width: 100%;
    min-height: 40px;
    text-align: center;
  }
  .ab-modal {
    align-items: flex-end;
  }
  .ab-empty-state {
    padding: 22px 12px;
  }
  .ab-empty-icon {
    font-size: 24px;
    margin-bottom: 8px;
  }
  .ab-empty-text {
    font-size: 14px;
    margin-bottom: 4px;
  }
  .ab-empty-sub {
    font-size: 12px;
    line-height: 1.4;
  }
  .ab-modal-box {
    width: 100%;
    max-width: 100%;
    max-height: 88vh;
    border-radius: 18px 18px 0 0;
    padding: 20px 16px;
  }
  .ab-hcard-actions { flex-direction: column; }
  .ab-hcard-actions .ab-btn-sm-outline,
  .ab-hcard-actions .ab-btn-sm-primary,
  .ab-hcard-actions .ab-btn-sm-danger { width: 100%; text-align: center; min-height: 44px; }
  .ab-modal-actions { flex-direction: column-reverse; }
  .ab-modal-actions > * { width: 100%; text-align: center; min-height: 44px; }
  .ab-language-dropdown { max-height: 50vh; }
  .ab-language-selected-chip { min-height: 38px; }
}
@media (max-width: 640px) {
  .ab-page-wrap { padding: 20px 16px 100px; max-width: 100%; }
  .ab-hero { flex-direction: column; gap: 18px; }
  .ab-hero-tabs { width: 100%; }
  .ab-htab { font-size: 12px; padding: 8px 14px; }
  .ab-headline { font-size: 22px; }
  .ab-card { padding: 14px; }
  .ab-form-row { flex-direction: column; gap: 0; }
  .ab-form-row-3 { flex-direction: column; gap: 0; }
  .ab-field-sm { max-width: 100% !important; flex: unset !important; }
  .ab-help-grid { grid-template-columns: 1fr; }
  .ab-step-card { padding: 16px; border-radius: 16px; }
  .ab-mytabs {
    display: flex;
    overflow-x: auto;
    grid-template-columns: none;
  }
  .ab-form-actions { flex-direction: column-reverse; }
  .ab-form-actions .ab-btn-primary,
  .ab-form-actions .ab-btn-ghost { width: 100%; text-align: center; }
  .ab-trust-grid { grid-template-columns: 1fr; }
  .ab-trip-card { flex-direction: column; align-items: flex-start; width: 100%; }
  .ab-trip-side { align-items: stretch; flex-direction: column; flex-wrap: nowrap; width: 100%; }
  .ab-htc-actions { flex-direction: column; flex-wrap: nowrap; align-items: stretch; width: 100%; }
  .ab-mobile-cta { display: block; }
  .ab-modal-box { padding: 20px 16px; }
  .ab-hcard-actions { flex-direction: column; }
  .ab-hcard-actions .ab-btn-sm-outline,
  .ab-hcard-actions .ab-btn-sm-primary,
  .ab-hcard-actions .ab-btn-sm-danger { width: 100%; text-align: center; }
  .ab-modal-actions { flex-direction: column-reverse; }
  .ab-modal-actions > * { width: 100%; text-align: center; }
}

/* ═══════════════════════════════════════════════════════════════════════
   UI DESIGN ENHANCEMENTS — visual polish, depth, and modern feel
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Custom scrollbar ─────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d7c8ff; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--purple); }

/* ── Focus ring ───────────────────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; border-radius: 4px; }

/* ── Glassmorphism Navbar ─────────────────────────────────────────────── */
.navbar {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(24px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.6) !important;
  border-bottom: 1px solid rgba(230, 225, 243, 0.6) !important;
  box-shadow: 0 1px 0 rgba(123, 92, 225, 0.05), 0 2px 16px rgba(17, 13, 38, 0.05) !important;
}

.nav-brand {
  font-size: 17px !important;
  font-weight: 800 !important;
  letter-spacing: -0.5px !important;
}

/* Active nav pill */
.nav-btn.active {
  background: linear-gradient(135deg, #5b3fd6, #7b5ce1) !important;
  color: #fff !important;
  box-shadow: 0 2px 10px rgba(123, 92, 225, 0.3) !important;
  border-radius: 9px !important;
}

/* ── Enhanced button hover ────────────────────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, #7b5ce1, #9b7af0) !important;
  box-shadow: 0 2px 12px rgba(123, 92, 225, 0.2) !important;
  transition: all .2s ease !important;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #6f4fd6, #8b6ae0) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 22px rgba(123, 92, 225, 0.36) !important;
}

/* ── Landing Page — Hero enhancements ────────────────────────────────── */
.ln-hero {
  background: linear-gradient(160deg, #fefcff 0%, #f8f3ff 60%, #f0ebff 100%) !important;
  position: relative;
  overflow: hidden;
}

.ln-hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -80px;
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(123, 92, 225, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.ln-hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -60px;
  width: 400px; height: 400px;
  background: radial-gradient(ellipse, rgba(180, 150, 255, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Better landing headline */
.ln-h1 {
  font-size: 68px !important;
  letter-spacing: -3px !important;
  line-height: 1.02 !important;
}

/* Polished badge pill */
.ln-badge-pill {
  background: linear-gradient(135deg, rgba(123,92,225,.08), rgba(155,122,240,.12)) !important;
  border-color: rgba(123,92,225,.25) !important;
  font-size: 11px !important;
  letter-spacing: 0.3px !important;
}

/* Landing primary button */
.ln-btn-primary {
  background: linear-gradient(135deg, #7b5ce1, #9b7af0) !important;
  box-shadow: 0 4px 16px rgba(123,92,225,.28) !important;
  transition: all .2s ease !important;
}
.ln-btn-primary:hover {
  background: linear-gradient(135deg, #6f4fd6, #8b6ae0) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 28px rgba(123,92,225,.36) !important;
}

/* Trust bar - more refined */
.ln-trust-bar {
  background: linear-gradient(to right, #fefeff, #f8f5ff, #fefeff) !important;
  border-color: rgba(230,225,243,.5) !important;
}

.ln-trust-logos span {
  color: #7b5ce1 !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  letter-spacing: 0.2px !important;
  opacity: 0.7;
}

/* Problem cards */
.ln-prob-card {
  border-radius: 20px !important;
  box-shadow: 0 4px 24px rgba(44,35,80,.07), 0 1px 4px rgba(44,35,80,.04) !important;
  transition: transform .2s ease, box-shadow .2s ease !important;
}
.ln-prob-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 40px rgba(44,35,80,.12), 0 2px 8px rgba(44,35,80,.06) !important;
}
.ln-prob-num {
  font-size: 10px !important;
  background: var(--primary-soft);
  color: var(--primary) !important;
  display: inline-block;
  padding: 3px 8px;
  border-radius: 20px;
  border: 1px solid var(--primary-border);
}

/* Solution items */
.ln-sol-img {
  border-radius: 14px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,.1) !important;
}

/* Steps grid */
.ln-step-card {
  border-radius: 16px !important;
  transition: transform .2s ease, box-shadow .2s ease !important;
  border-color: rgba(230,225,243,.5) !important;
}
.ln-step-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 28px rgba(44,35,80,.10) !important;
  border-color: var(--primary-border) !important;
}

/* Hotel cards */
.ln-hotel-card {
  border-radius: 20px !important;
  overflow: hidden !important;
  border-color: rgba(230,225,243,.5) !important;
  transition: transform .22s ease, box-shadow .22s ease !important;
}
.ln-hotel-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 50px rgba(44,35,80,.15) !important;
}
.ln-hotel-img { transition: transform .4s ease !important; }
.ln-hotel-card:hover .ln-hotel-img { transform: scale(1.04) !important; }
.ln-hotel-img-wrap { overflow: hidden; }

/* Pricing cards */
.ln-price-card { border-radius: 20px !important; }

/* CTA section */
.ln-cta-wrap {
  background: linear-gradient(160deg, #f0ebff 0%, #faf7ff 50%, #f5f1ff 100%) !important;
  position: relative;
  overflow: hidden;
}
.ln-cta-wrap::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(123,92,225,.1) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Auth Page Enhancements ───────────────────────────────────────────── */
.at-left {
  background: linear-gradient(160deg, #fefcff 0%, #faf7ff 100%) !important;
}

.at-btn-create,
.at-btn-signin {
  background: linear-gradient(135deg, #7b5ce1, #9b7af0) !important;
  box-shadow: 0 4px 16px rgba(123,92,225,.25) !important;
  transition: all .2s ease !important;
}
.at-btn-create:hover,
.at-btn-signin:hover {
  background: linear-gradient(135deg, #6f4fd6, #8b6ae0) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 28px rgba(123,92,225,.36) !important;
}

.at-field input:focus,
.at-field select:focus,
.at-field textarea:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 4px rgba(123,92,225,.08) !important;
}

/* Live beta pill */
.at-live-pill {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7) !important;
}

/* ── Discovery Page Enhancements ─────────────────────────────────────── */

/* Filter sidebar */
#filterPanel.disc-filter-col {
  border-radius: 20px !important;
  border-color: rgba(230,225,243,.5) !important;
  box-shadow: 0 4px 24px rgba(44,35,80,.06) !important;
}

/* Profile card photo overlay — richer gradient */
.card-photo-wrap::after {
  background: linear-gradient(
    to top,
    rgba(10, 5, 30, 0.82) 0%,
    rgba(10, 5, 30, 0.35) 40%,
    transparent 100%
  ) !important;
}

/* Match score badge — glass pill */
.card-match-score {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.12) !important;
  border: 1px solid rgba(255,255,255,.8) !important;
}
.cms-pct {
  background: linear-gradient(135deg, #7b5ce1, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Card match pill */
.card-match-pill {
  background: linear-gradient(135deg, rgba(123,92,225,.07), rgba(155,122,240,.12)) !important;
  border-color: rgba(123,92,225,.2) !important;
  border-radius: 12px !important;
}
.card-match-pill:hover {
  background: linear-gradient(135deg, #7b5ce1, #9b7af0) !important;
  box-shadow: 0 4px 16px rgba(123,92,225,.3) !important;
}

/* Action buttons — bigger, more impact */
.da-btn {
  width: 56px !important;
  height: 56px !important;
  font-size: 22px !important;
  border-radius: 50% !important;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s ease !important;
}
.da-btn:hover {
  transform: scale(1.14) !important;
}
.da-match {
  width: 68px !important;
  height: 68px !important;
  font-size: 26px !important;
  background: linear-gradient(135deg, #7b5ce1, #9b7af0) !important;
  box-shadow: 0 8px 28px rgba(123,92,225,.4) !important;
}
.da-match:hover {
  background: linear-gradient(135deg, #6f4fd6, #8b6ae0) !important;
  box-shadow: 0 12px 36px rgba(123,92,225,.52) !important;
}
.da-pass {
  box-shadow: 0 4px 16px rgba(239,68,68,.18) !important;
}
.da-pass:hover {
  background: #fef2f2 !important;
  box-shadow: 0 8px 24px rgba(239,68,68,.28) !important;
}
.da-undo {
  box-shadow: 0 4px 16px rgba(245,158,11,.15) !important;
}

/* Disc center row */
.disc-center-row {
  border-radius: 20px !important;
  box-shadow: 0 4px 32px rgba(44,35,80,.09), 0 1px 4px rgba(44,35,80,.05) !important;
  border-color: rgba(230,225,243,.4) !important;
}

/* Right sidebar premium card */
.ds-premium {
  background: linear-gradient(160deg, #1a1340, #0f0c24) !important;
  border-radius: 20px !important;
  box-shadow: 0 8px 32px rgba(10,5,30,.25) !important;
}

.ds-plans-btn {
  background: linear-gradient(135deg, #f59e0b, #fbbf24) !important;
  box-shadow: 0 4px 16px rgba(245,158,11,.28) !important;
  transition: all .2s ease !important;
}
.ds-plans-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 24px rgba(245,158,11,.4) !important;
}

/* Sidebar card */
.ds-card {
  border-radius: 16px !important;
  border-color: rgba(230,225,243,.5) !important;
  box-shadow: 0 2px 12px rgba(44,35,80,.04) !important;
}

/* Safety link */
.ds-safety-link {
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  margin-top: 6px;
  transition: opacity .15s;
}
.ds-safety-link:hover { opacity: .75; }

/* ── Connections + Chat Enhancements ─────────────────────────────────── */
.mx-list-col {
  background: linear-gradient(180deg, #fff 0%, #fdfcff 100%) !important;
}

.match-item.active {
  background: linear-gradient(to right, rgba(123,92,225,.07), rgba(155,122,240,.04)) !important;
  border-left-color: var(--primary) !important;
}

.match-avatar {
  background: linear-gradient(135deg, var(--primary-border), var(--primary)) !important;
  box-shadow: 0 2px 10px rgba(123,92,225,.2) !important;
}

/* Chat bubble improvements */
.msg-bubble.mine {
  background: linear-gradient(135deg, #7b5ce1, #9b7af0) !important;
  box-shadow: 0 2px 10px rgba(123,92,225,.25) !important;
  border-radius: 18px 18px 4px 18px !important;
}
.msg-bubble.theirs {
  border-radius: 18px 18px 18px 4px !important;
  box-shadow: 0 1px 6px rgba(0,0,0,.07) !important;
}

/* Chat input */
.mx-chat-input-wrap input:focus,
.chat-input-row input:focus {
  border-color: var(--primary) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(123,92,225,.08) !important;
}
.send-btn,
.mx-send-btn {
  background: linear-gradient(135deg, #7b5ce1, #9b7af0) !important;
  box-shadow: 0 2px 10px rgba(123,92,225,.25) !important;
  transition: all .18s ease !important;
}
.send-btn:hover,
.mx-send-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(123,92,225,.38) !important;
}

/* Mode tabs */
.mode-tab.active {
  color: var(--primary) !important;
  background: #fff !important;
  box-shadow: 0 1px 6px rgba(44,35,80,.1) !important;
}

/* ── Match toast modal ────────────────────────────────────────────────── */
.toast-inner {
  border-radius: 28px !important;
  box-shadow: 0 32px 80px rgba(10,5,30,.25) !important;
}
.toast-hearts { color: transparent !important; background: linear-gradient(135deg, #7b5ce1, #ec4899); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ── Profile Dashboard Enhancements ──────────────────────────────────── */
.pvd-stats .pvd-stat {
  border-radius: 14px !important;
  transition: transform .18s ease, box-shadow .18s ease !important;
}
.pvd-stats .pvd-stat:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(44,35,80,.09) !important;
}

.pvd-chip {
  background: linear-gradient(135deg, rgba(123,92,225,.1), rgba(155,122,240,.15)) !important;
  border: 1px solid rgba(123,92,225,.2) !important;
  transition: all .15s ease !important;
}
.pvd-chip:hover {
  background: linear-gradient(135deg, rgba(123,92,225,.18), rgba(155,122,240,.24)) !important;
}

/* Edit button */
.pvd-edit-btn {
  border-radius: 12px !important;
  transition: all .18s ease !important;
}
.pvd-edit-btn:hover {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  background: var(--primary-soft) !important;
}

/* ── Onboarding Enhancements ──────────────────────────────────────────── */
.su-card {
  border-radius: 24px !important;
  box-shadow: 0 8px 48px rgba(44,35,80,.1) !important;
}

.su-type-card {
  border-radius: 16px !important;
  transition: all .2s cubic-bezier(.34,1.56,.64,1) !important;
}
.su-type-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 28px rgba(123,92,225,.14) !important;
}

.ob-continue-btn {
  background: linear-gradient(135deg, #7b5ce1, #9b7af0) !important;
  box-shadow: 0 4px 16px rgba(123,92,225,.25) !important;
  transition: all .2s ease !important;
}
.ob-continue-btn:hover {
  background: linear-gradient(135deg, #6f4fd6, #8b6ae0) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 28px rgba(123,92,225,.38) !important;
}

/* ── Interest / Tag chips ─────────────────────────────────────────────── */
.tag {
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px !important;
}

.ob-tag-picker .tp-tag.selected {
  background: linear-gradient(135deg, rgba(123,92,225,.1), rgba(155,122,240,.15)) !important;
}

/* ── Filter tags ──────────────────────────────────────────────────────── */
.df-tag.selected {
  background: linear-gradient(135deg, rgba(123,92,225,.1), rgba(155,122,240,.15)) !important;
}

/* ── Match reason modal ───────────────────────────────────────────────── */
.mrm-box {
  border-radius: 28px !important;
  box-shadow: 0 32px 80px rgba(10,5,30,.2) !important;
}
.mrm-pct {
  background: linear-gradient(135deg, #7b5ce1, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mrm-action-btn {
  background: linear-gradient(135deg, #7b5ce1, #9b7af0) !important;
  box-shadow: 0 4px 16px rgba(123,92,225,.28) !important;
}
.mrm-action-btn:hover {
  background: linear-gradient(135deg, #6f4fd6, #8b6ae0) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 28px rgba(123,92,225,.4) !important;
}

/* ── Full Profile Drawer ──────────────────────────────────────────────── */
.fpm-hdr-like {
  background: linear-gradient(135deg, #7b5ce1, #9b7af0) !important;
  box-shadow: 0 2px 10px rgba(123,92,225,.25) !important;
}
.fpm-hdr-like:hover {
  background: linear-gradient(135deg, #6f4fd6, #8b6ae0) !important;
}

/* ── Smooth page transitions ──────────────────────────────────────────── */
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.page.active { animation: pageFadeIn .3s cubic-bezier(.25,.46,.45,.94); }

/* ── Improved stat display in hero ──────────────────────────────────────*/
.ln-stat strong {
  background: linear-gradient(135deg, #17172a, #4a3d7a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Bottom swipe actions label text ─────────────────────────────────── */
.da-item {
  gap: 6px !important;
}
.da-item span {
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.4px !important;
  text-transform: uppercase !important;
}

/* ── Discover launch polish: scoped photo crop, mobile density, actions ─ */
#page-discover .disc-center-row {
  min-height: 620px;
}

#page-discover .disc-card-col {
  width: 320px;
  height: 620px;
}

#page-discover .disc-card-col .card-photo,
#page-discover .disc-detail-col .dp-hero-photo,
#fullProfileModal .fpm-hero-photo {
  object-fit: cover;
  object-position: center 42%;
}

#page-discover .disc-card-col .card-photo-wrap {
  background: #f4f0ff;
}

#page-discover .card-match-pill {
  min-height: 44px;
}

#page-discover .cmp-label {
  white-space: nowrap;
}

#page-discover .disc-detail-col .dp-scroll {
  gap: 16px;
}

#page-discover .safety-action-row {
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

@media (max-width: 1024px) {
  #page-discover .disc-center-row {
    min-height: 600px;
  }

  #page-discover .disc-card-col {
    width: 290px;
    height: 600px;
  }
}

@media (max-width: 768px) {
  #page-discover {
    overflow-x: hidden;
  }

  #page-discover .disc-layout {
    padding: 14px 14px calc(230px + env(safe-area-inset-bottom));
    gap: 12px;
  }

  #page-discover .disc-header {
    gap: 12px;
    margin-bottom: 0;
  }

  #page-discover .disc-greeting {
    font-size: 26px;
    line-height: 1.08;
    letter-spacing: 0;
  }

  #page-discover .disc-subtitle {
    font-size: 14px;
    line-height: 1.35;
  }

  #page-discover .disc-header-right {
    gap: 8px;
  }

  #page-discover .disc-swipe-counter,
  #page-discover .disc-mobile-filter-btn {
    min-height: 42px;
  }

  #page-discover .disc-center-row {
    min-height: 0;
    border-radius: 18px !important;
  }

  #page-discover .disc-card-col {
    width: 100%;
    height: clamp(330px, 46svh, 410px);
    min-height: 330px;
  }

  #page-discover .disc-card-col .profile-card {
    border-radius: 0;
  }

  #page-discover .disc-card-col .card-photo {
    object-position: center 42%;
  }

  #page-discover .card-name-age {
    font-size: 22px;
    line-height: 1.12;
  }

  #page-discover .card-trip {
    font-size: 13px;
  }

  #page-discover .card-match-footer {
    min-height: 56px;
    padding: 6px 20px 8px;
  }

  #page-discover .card-match-pill {
    min-height: 40px;
    padding: 6px 12px;
    border-radius: 16px !important;
  }

  #page-discover .cmp-pct {
    font-size: 17px;
  }

  #page-discover .cmp-label,
  #page-discover .cmp-why {
    font-size: 12px;
  }

  #page-discover .card-plan-mini {
    display: none;
  }

  #page-discover .disc-detail-col .dp-scroll {
    padding: 16px 18px 18px;
    gap: 14px;
  }

  #page-discover .dp-section {
    gap: 5px;
  }

  #page-discover .dp-why-match,
  #page-discover .dp-meetup-preview,
  #page-discover .dp-plan-block {
    padding: 12px 14px;
    border-radius: 14px;
  }

  #page-discover .dp-tags {
    gap: 7px;
  }

  #page-discover .dp-tag {
    padding: 5px 12px;
  }

  #page-discover .dp-full-profile {
    align-self: center;
    padding: 8px 0;
  }

  #page-discover .safety-action-row {
    gap: 10px;
    margin-top: 6px;
    padding-top: 18px;
  }

  #page-discover .safety-inline-btn {
    min-height: 44px;
    padding: 10px 16px;
  }

  #page-discover .disc-actions {
    bottom: max(96px, calc(72px + env(safe-area-inset-bottom)));
    width: min(calc(100% - 32px), 360px);
    margin-top: 10px;
    padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
    border: 1px solid rgba(230,225,243,.72);
    box-shadow: 0 14px 44px rgba(44,35,80,.16);
  }

  #page-discover .disc-actions .da-btn {
    width: 54px !important;
    height: 54px !important;
    font-size: 21px !important;
  }

  #page-discover .disc-actions .da-match {
    width: 66px !important;
    height: 66px !important;
    font-size: 25px !important;
  }
}

@media (max-width: 440px) {
  #page-discover .disc-layout {
    padding-inline: 12px;
  }

  #page-discover .disc-header {
    align-items: flex-start;
  }

  #page-discover .disc-greeting {
    font-size: 24px;
  }

  #page-discover .disc-header-right {
    flex-shrink: 0;
  }

  #page-discover .disc-swipe-counter {
    padding-inline: 12px;
  }

  #page-discover .disc-mobile-filter-btn {
    padding-inline: 14px;
  }

  #page-discover .disc-card-col {
    height: clamp(320px, 44svh, 390px);
    min-height: 320px;
  }

  #page-discover .card-match-footer {
    padding-inline: 14px;
  }

  #page-discover .cmp-why {
    font-size: 11px;
  }
}

@media (max-width: 768px) {
  #fullProfileModal .fpm-panel {
    height: 100%;
    overflow: hidden;
  }

  #fullProfileModal .fpm-header {
    flex-shrink: 0;
    padding: 12px 14px;
  }

  #fullProfileModal .fpm-hdr-actions {
    gap: 6px;
  }

  #fullProfileModal .fpm-hdr-pass,
  #fullProfileModal .fpm-hdr-like {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 12px;
  }

  #fullProfileModal .fpm-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  #fullProfileModal .fpm-hero {
    height: clamp(340px, 47svh, 440px);
  }

  #fullProfileModal .fpm-hero-photo {
    object-position: center 42%;
  }

  #fullProfileModal .fpm-hero-info {
    padding: 54px 18px 18px;
  }

  #fullProfileModal .fpm-hero-name {
    font-size: 28px;
    line-height: 1.12;
  }

  #fullProfileModal .fpm-match-score-bar {
    padding: 12px 18px;
  }

  #fullProfileModal .fpm-section {
    padding: 15px 18px;
  }
}

@media (max-width: 440px) {
  #fullProfileModal .fpm-header {
    align-items: flex-start;
    gap: 8px;
  }

  #fullProfileModal #fpmHeaderName {
    display: none;
  }

  #fullProfileModal .fpm-hdr-actions {
    flex: 1;
    justify-content: flex-end;
  }

  #fullProfileModal .fpm-hdr-pass,
  #fullProfileModal .fpm-hdr-like {
    padding-inline: 9px;
  }

  #fullProfileModal .fpm-hero {
    height: clamp(330px, 46svh, 420px);
  }

  .photo-lightbox {
    padding: 16px;
  }

  .photo-lightbox-frame {
    width: 100%;
    height: min(82vh, 720px);
  }

  .photo-lightbox-img {
    border-radius: 12px;
  }

  .photo-lightbox-close {
    top: 8px;
    right: 8px;
  }
}

/* ── Email verification banner ────────────────────────────────────────── */
.vb-banner {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  z-index: 490;
  background: #f5f0ff;
  border-bottom: 1.5px solid #c4b2f7;
  padding: 10px 16px;
}
.vb-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.vb-icon { font-size: 16px; flex-shrink: 0; }
.vb-text { font-size: 13px; color: #3d2a80; line-height: 1.4; flex: 1; min-width: 160px; }
.vb-resend {
  background: #7b5ce1;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.15s;
}
.vb-resend:hover { background: #6f4fd6; }
.vb-resend:disabled { opacity: 0.6; cursor: not-allowed; }
.vb-close {
  background: none;
  border: none;
  font-size: 18px;
  color: #8f6be5;
  cursor: pointer;
  padding: 2px 6px;
  flex-shrink: 0;
  line-height: 1;
}
.vb-close:hover { color: #3d2a80; }

/* Startup overlay: hides app skeleton until /auth/me resolves */
.app-loading > .page,
.app-loading > [id$="-page"] {
  visibility: hidden;
}
.app-loading::after {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--bg, #0f0f0f);
  z-index: 9999;
}
