/* =====================
   InNest — Main CSS
   ===================== */

:root {
  --primary: #FF6B6B;
  --primary-dark: #E85555;
  --primary-light: #FFF0F0;
  --secondary: #10B981;
  --accent: #F59E0B;
  --coral: #FF6B6B;
  --dark: #0F172A;
  --dark-2: #1E293B;
  --text: #1E293B;
  --text-light: #64748B;
  --text-muted: #94A3B8;
  --bg: #F8FAFC;
  --bg-card: #ffffff;
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --nav-height: 70px;
  /* Safe area insets - fallback 0 */
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --header-height: 60px;
  --font-display: 'DM Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Premium gradient */
  --grad-premium: linear-gradient(135deg, #F59E0B, #D97706);
  --grad-primary: linear-gradient(135deg, #FF6B6B, #E85555);
  --grad-match: linear-gradient(135deg, #FF6B6B, #c084fc);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* ── Use dvh for mobile browser address bar awareness ── */
html {
  /* CSS variable updated by JS for older browsers */
  --real-vh: 1dvh;
}

html, body {
  height: 100%;
  font-family: var(--font-body);
  background: white;
  color: var(--text);
  overflow: hidden;
  /* Prevent bounce scroll on iOS */
  overscroll-behavior: none;
}

#app {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: white;
}

.hidden { display: none !important; }

/* =================== LOADING =================== */
.loading-screen {
  position: fixed;
  inset: 0;
  background: #0F172A;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  gap: 32px;
}

.loader-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
}

.logo-mark { display: flex; align-items: center; }
.logo-text {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
}

.loader-bar {
  width: 200px;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 99px;
  overflow: hidden;
}

.loader-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 99px;
  animation: loadFill 1.5s ease-in-out;
}

@keyframes loadFill {
  from { width: 0; }
  to { width: 100%; }
}

/* =================== AUTH CONTAINER =================== */
#auth-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.page {
  min-height: 100%;
}

/* =================== LANDING (Tinder grid style) =================== */

#auth-container { overflow-y: auto; }

#page-landing {
  background: #111;
  min-height: 100vh;
}

/* ══ HERO ══ */
.l-hero {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #111;
}

/* Hero background image */
.l-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.l-hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Phone grid background (legacy) */
.l-phones-grid {
  position: absolute;
  inset: -60px -40px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 16px;
  padding: 20px;
  transform: rotate(-8deg) scale(1.15);
  transform-origin: center center;
  z-index: 0;
}

.l-phone {
  border-radius: 28px;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.12);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  transition: transform 0.3s;
  aspect-ratio: 9/17;
}

.l-phone--tilt-r { transform: rotate(3deg); }
.l-phone--tilt-l { transform: rotate(-3deg); }

.l-phone-screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  position: relative;
}

.l-phone-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
}

.l-pname {
  color: white;
  font-weight: 700;
  font-size: clamp(11px, 1.2vw, 16px);
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.l-pcity {
  color: rgba(255,255,255,0.75);
  font-size: clamp(9px, 0.9vw, 13px);
}

.l-phone-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.l-px {
  width: clamp(22px, 2.5vw, 34px);
  height: clamp(22px, 2.5vw, 34px);
  background: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(9px, 1vw, 14px);
  color: #f43f5e;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.l-pheart {
  width: clamp(22px, 2.5vw, 34px);
  height: clamp(22px, 2.5vw, 34px);
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(9px, 1vw, 14px);
  color: white;
  box-shadow: 0 2px 8px rgba(59,130,246,0.4);
}

/* Dark gradient overlays for readability */
.l-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(15,23,42,0.7) 0%, rgba(15,23,42,0.4) 40%, rgba(15,23,42,0.5) 70%, rgba(15,23,42,0.85) 100%);
}

/* Nav */
.l-nav {
  position: relative;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  padding-top: max(20px, calc(env(safe-area-inset-top, 0px) + 12px));
}
.l-nav-center-links {
  display: none;
}
@media (min-width: 768px) {
  .l-nav-center-links {
    display: flex;
    gap: 32px;
    align-items: center;
  }
  .l-nav-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
  }
  .l-nav-link:hover { color: #fff; }
}

.l-nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
}

.l-nav-links { display: flex; gap: 10px; align-items: center; }

.l-nav-btn-ghost {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.5);
  color: white;
  padding: 9px 22px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.2s;
}
.l-nav-btn-ghost:hover { background: rgba(255,255,255,0.12); }

.l-nav-btn-solid {
  background: var(--primary);
  color: white;
  border: none;
  padding: 9px 22px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.2s;
}
.l-nav-btn-solid:hover { background: var(--primary-dark); transform: scale(1.02); }

/* Center text over cards */
.l-hero-content {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 24px 60px;
}

.l-hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 7vw, 64px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  color: white;
  margin-bottom: 16px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

.l-hero-title .hero-find {
  color: #d0d8e8;
  text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

.l-hero-title em {
  font-style: italic;
  color: #FF8A8A;
  -webkit-text-fill-color: #FF8A8A;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  text-shadow: 0 4px 24px rgba(255,107,107,0.4);
}

/* Hidden on desktop, shown on mobile */
.l-hero-mobile-sub { display: none; }
.l-hero-mobile-cta { display: none; }

.l-cta-main {
  background: var(--primary);
  color: white;
  border: none;
  padding: 17px 44px;
  border-radius: 99px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.25s;
  box-shadow: 0 6px 28px rgba(59,130,246,0.4);
}
.l-cta-main:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 12px 36px rgba(59,130,246,0.5); }
.l-cta-main--light { background: white; color: var(--dark); box-shadow: 0 6px 24px rgba(0,0,0,0.15); }
.l-cta-main--light:hover { box-shadow: 0 10px 32px rgba(0,0,0,0.2); }

.l-cta-sub {
  margin-top: 14px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* Hero subtitle */
.l-hero-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.6;
}

/* Hero search bar */
.l-hero-search {
  display: flex;
  background: white;
  border-radius: 99px;
  padding: 6px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.l-search-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  color: var(--text-muted);
}
.l-search-field input {
  border: none;
  outline: none;
  font-size: 16px;
  font-family: var(--font-body);
  color: var(--text);
  width: 100%;
  background: transparent;
}
.l-search-field input::placeholder { color: var(--text-muted); }
.l-search-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 99px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.2s;
  white-space: nowrap;
}
.l-search-btn:hover { background: var(--primary-dark); }

/* Hero trust badges */
.l-hero-trust {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.l-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}

/* ══ Cities Section ══ */
.l-cities {
  padding: 80px 24px;
  background: white;
}
.l-cities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}
.l-city-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}
.l-city-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.l-city-info {
  padding: 20px;
  width: 100%;
}
.l-city-info h3 {
  color: white;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 2px;
}
.l-city-info span {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
}
@media (min-width: 768px) {
  .l-cities-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}
@media (max-width: 480px) {
  .l-cities-grid {
    grid-template-columns: 1fr;
  }
  .l-city-card { aspect-ratio: 16/9; }
}

/* ══ Shared sections ══ */
.l-section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  color: var(--dark);
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.l-section-sub {
  text-align: center;
  color: var(--text-light);
  font-size: 16px;
  margin-bottom: 48px;
}

/* ══ How it works ══ */
.l-how { padding: 80px 24px; background: var(--bg); }

.l-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.l-step {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 32px 28px;
  background: white;
  border-radius: var(--radius-lg);
  position: relative;
  border: 1px solid var(--border-light);
  transition: box-shadow 0.3s;
}
.l-step:hover { box-shadow: var(--shadow); }
.l-step-num {
  position: absolute;
  top: -13px; left: 22px;
  background: var(--primary);
  color: white;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
}
.l-step-icon {
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  width: 52px; height: 52px;
  background: var(--primary-light);
  border-radius: 12px;
  justify-content: center;
}
.l-step h3 { font-size: 17px; font-weight: 700; color: var(--dark); margin-bottom: 5px; }
.l-step p  { font-size: 14px; color: var(--text-light); line-height: 1.6; }

/* ══ Features ══ */
.l-features { padding: 80px 24px; background: white; }

.l-feature-grid {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
}

.l-feature-text { max-width: 480px; }
.l-feature-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 14px;
  border-radius: 99px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 16px;
}
.l-feature-text h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 14px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.l-feature-text p { font-size: 15px; color: var(--text-light); line-height: 1.7; margin-bottom: 22px; }
.l-feature-cta { background: none; border: none; color: var(--primary); font-size: 15px; font-weight: 700; cursor: pointer; font-family: var(--font-body); }
.l-feature-visual { width: 100%; max-width: 440px; }

.l-map-preview {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg,#dbeafe 0%,#ede9fe 100%);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.l-map-dot { position: absolute; }
.l-map-dot--1 { left: 32%; top: 28%; }
.l-map-dot--2 { left: 55%; top: 50%; }
.l-map-dot--3 { left: 68%; top: 32%; }
.l-map-pulse {
  width: 16px; height: 16px;
  background: var(--primary);
  border-radius: 50%;
  position: relative;
}
.l-map-pulse::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.25;
  animation: mapPulse 2s ease-out infinite;
}
@keyframes mapPulse { 0% { transform: scale(1); opacity:.25; } 100% { transform: scale(2.5); opacity:0; } }
.l-map-label {
  position: absolute;
  left: 22px; top: -4px;
  background: white;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 12px; font-weight: 700;
  color: var(--dark);
  box-shadow: var(--shadow);
  white-space: nowrap;
}
.l-map-label span { font-weight: 400; color: var(--text-light); font-size: 11px; display: block; }

/* ══ Testimonials ══ */
.l-testimonials { padding: 80px 24px; background: var(--bg); }

.l-testimonial-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.l-testimonial {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--border-light);
  transition: box-shadow 0.3s;
}
.l-testimonial:hover { box-shadow: var(--shadow); }
.l-t-stars {
  display: flex;
  gap: 2px;
}
.l-t-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 18px; font-weight: 700;
  flex-shrink: 0;
}
.l-t-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.l-t-author strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.l-t-author span {
  font-size: 13px;
  color: var(--text-light);
}
.l-testimonial p { font-size: 15px; color: var(--text); line-height: 1.7; }

/* ══ Bottom CTA ══ */
.l-bottom-cta {
  padding: 80px 24px;
  background: linear-gradient(135deg, #1E3A5F 0%, #0F172A 100%);
}
.l-bcta-inner { max-width: 560px; margin: 0 auto; text-align: center; }
.l-bcta-inner h2 { font-family: var(--font-display); font-size: clamp(26px,4vw,42px); font-weight: 800; color: white; margin-bottom: 12px; letter-spacing: -0.5px; }
.l-bcta-inner p { color: rgba(255,255,255,0.6); font-size: 16px; margin-bottom: 32px; line-height: 1.6; }

/* ══ Footer ══ */
.l-footer {
  background: var(--dark);
  padding: 0;
}
.l-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 32px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.l-footer-brand .l-footer-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
}
.l-footer-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  max-width: 280px;
}
.l-footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.l-footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s;
}
.l-footer-col a:hover { color: rgba(255,255,255,0.9); }
.l-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 32px;
  text-align: center;
}
.l-footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}
@media (max-width: 768px) {
  .l-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 40px 24px 30px;
  }
  .l-footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 480px) {
  .l-footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ══ Desktop responsive ══ */
@media (min-width: 768px) {
  .l-phones-grid {
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 1fr);
  }
  .l-hero-title { font-size: clamp(52px, 8vw, 80px); }
  .l-steps { flex-direction: row; align-items: stretch; }
  .l-step { flex-direction: column; flex: 1; }
  .l-feature-grid { flex-direction: row; gap: 60px; }
  .l-feature-text { flex: 1; }
  .l-feature-visual { flex: 1; }
  .l-testimonial-grid { flex-direction: row; }
  .l-testimonial { flex: 1; }
}

/* ══ Mobile landing redesign ══ */
@media (max-width: 600px) {
  .l-hero { min-height: 100dvh; height: 100dvh; }
  .l-nav { padding: 12px 20px; padding-top: max(12px, calc(env(safe-area-inset-top, 0px) + 8px)); }
  .l-nav-logo { font-size: 20px; }
  .l-nav-links { gap: 6px; }
  .l-nav-btn-ghost { padding: 8px 16px; font-size: 13px; }
  .l-nav-btn-solid { display: none; }
  .l-hero-content { padding: 0 24px 80px; justify-content: flex-end; }
  .l-hero-title { font-size: 38px; text-align: left; letter-spacing: -1px; }
  .l-hero-mobile-sub {
    display: block;
    color: rgba(255,255,255,0.65);
    font-size: 15px;
    line-height: 1.5;
    margin-top: 12px;
    text-align: left;
  }
  .l-hero-mobile-cta {
    display: inline-block;
    margin-top: 20px;
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 99px;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
  }
  /* Simplify steps for mobile */
  .l-how { padding: 48px 20px; }
  .l-section-title { font-size: 22px; margin-bottom: 6px; }
  .l-section-sub { font-size: 14px; margin-bottom: 28px; }
  .l-steps { gap: 16px; }
  .l-step { padding: 20px 18px; gap: 14px; }
  .l-step-icon { width: 44px; height: 44px; }
  .l-step h3 { font-size: 15px; }
  .l-step p { font-size: 13px; }
  /* Compact features */
  .l-features { padding: 48px 20px; }
  .l-feature-text h2 { font-size: 20px; }
  .l-feature-text p { font-size: 14px; }
  .l-map-preview { aspect-ratio: 16/10; }
  /* Compact bottom CTA */
  .l-bottom-cta { padding: 48px 20px; }
  .l-bcta-inner h2 { font-size: 22px; }
  .l-bcta-inner p { font-size: 14px; margin-bottom: 24px; }
  /* Compact footer */
  .l-footer-inner { padding: 32px 20px 20px; grid-template-columns: 1fr; gap: 20px; }
  .l-footer-bottom { padding: 16px 20px; }
  .l-footer-col h4 { margin-bottom: 10px; }
}

/* =================== ZONE MAP PICKER =================== */
.zone-map-picker { display: flex; flex-direction: column; gap: 10px; }

.zmp-search-wrap { display: flex; gap: 8px; position: relative; }
.zmp-search-wrap input { flex: 1; }

.zmp-suggestions {
  position: absolute;
  top: 100%; left: 0; right: 48px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  z-index: 50;
  box-shadow: var(--shadow);
  margin-top: 4px;
  overflow: hidden;
}
.zmp-suggestion { padding: 10px 14px; font-size: 14px; cursor: pointer; }
.zmp-suggestion:hover { background: var(--bg); }

.zmp-popular { display: flex; flex-direction: column; gap: 8px; }
.zmp-popular-label { font-size: 11px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

.zmp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.zmp-chip {
  padding: 6px 14px;
  border: 1.5px solid var(--border);
  border-radius: 99px;
  background: white;
  font-size: 13px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.18s;
  color: var(--text);
}
.zmp-chip.selected { background: var(--primary); border-color: var(--primary); color: white; font-weight: 600; }
.zmp-chip:hover:not(.selected) { border-color: var(--primary); color: var(--primary); }

.zmp-map {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg,#dbeafe 0%,#ede9fe 100%);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  border: 1.5px solid var(--border);
  margin-top: 4px;
}
.zmp-map-inner { position: absolute; inset: 0; }
.zmp-map-label-city {
  position: absolute; top: 8px; left: 10px;
  font-size: 11px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px;
}
.zmp-dot {
  position: absolute;
  transform: translate(-50%,-50%);
  cursor: pointer;
  z-index: 2;
}
.zmp-dot-pulse {
  width: 14px; height: 14px;
  background: var(--primary);
  opacity: 0.45;
  border-radius: 50%;
  border: 2px solid white;
  transition: all 0.18s;
  box-shadow: 0 2px 8px rgba(59,130,246,0.25);
}
.zmp-dot.selected .zmp-dot-pulse { opacity: 1; width: 18px; height: 18px; }

.zmp-dot-label {
  position: absolute;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 10px; font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}
.zmp-dot:hover .zmp-dot-label,
.zmp-dot.selected .zmp-dot-label { opacity: 1; }


/* =================== AUTH PAGES =================== */
/* ══ Legal pages ══ */
.legal-page {
  min-height: 100vh;
  background: var(--bg);
  padding: 16px 20px 60px;
  padding-top: max(16px, calc(env(safe-area-inset-top, 0px) + 12px));
}
.legal-content {
  max-width: 700px;
  margin: 16px auto 0;
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow);
}
.legal-content h1 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
}
.legal-updated {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.legal-content h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin: 24px 0 8px;
}
.legal-content h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 16px 0 6px;
}
.legal-content p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 10px;
}
.legal-content ul {
  padding-left: 20px;
  margin-bottom: 12px;
}
.legal-content li {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 4px;
}

.auth-page, .register-page {
  min-height: 100vh;
  background: var(--bg);
  padding: 16px 20px 40px;
}

.auth-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  margin-top: 16px;
  box-shadow: var(--shadow);
}

.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.auth-card h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  color: var(--dark);
  margin-bottom: 6px;
}

.auth-sub {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 24px;
  font-size: 15px;
}

.auth-form { display: flex; flex-direction: column; gap: 16px; }

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

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.label-hint {
  font-weight: 400;
  color: var(--text-light);
  text-transform: none;
  letter-spacing: 0;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--text);
  background: white;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
}

.form-group textarea { resize: vertical; min-height: 80px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkbox-group {
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.checkbox-group label {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 500 !important;
  font-size: 15px !important;
  cursor: pointer;
}

.form-error {
  color: #e53e3e;
  font-size: 13px;
  padding: 10px 12px;
  background: #fff5f5;
  border-radius: 8px;
  border: 1px solid #fed7d7;
}

.btn-submit {
  background: var(--grad-primary);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 99px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.2s;
  width: 100%;
  margin-top: 8px;
}

.btn-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(59,130,246,0.35); }
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.auth-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-light);
}

.auth-switch a { color: var(--primary); text-decoration: none; font-weight: 600; }

/* Google button + divider */
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 20px;
  border: 1.5px solid var(--border);
  border-radius: 99px;
  background: #fff;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.google-btn:hover {
  background: #f8f9fa;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--text-muted);
  font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* =================== REGISTER MULTI-STEP =================== */
.register-page {
  max-width: 480px;
  margin: 0 auto;
}

.register-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 16px 0 24px;
}

.progress-dots { display: flex; gap: 8px; }

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.3s;
}

.dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

.dot.done { background: var(--secondary); }

.progress-label { font-size: 13px; color: var(--text-light); font-weight: 500; }

.register-step h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.step-sub {
  color: var(--text-light);
  margin-bottom: 24px;
  font-size: 15px;
}

.register-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Hobbies */
.hobbies-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hobby-btn {
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: 99px;
  background: white;
  font-size: 13px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text);
}

.hobby-btn.selected {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}

/* Toggle group */
.toggle-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.toggle-btn {
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: 99px;
  background: white;
  font-size: 14px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text);
}

.toggle-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  font-weight: 600;
}

/* Zone tags */
.zone-input-wrap {
  display: flex;
  gap: 8px;
}

.zone-input-wrap input { flex: 1; }

.btn-add {
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 20px;
  cursor: pointer;
  font-family: var(--font-body);
  flex-shrink: 0;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  min-height: 0;
}

.tag {
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 10px 4px 12px;
  border-radius: 99px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tag-remove {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
}

/* =================== BOTTOM NAV (mobile) =================== */
.bottom-nav {
  height: var(--nav-height);
  background: white;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  z-index: 100;
  flex-shrink: 0;
  order: 2;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 8px 4px;
  position: relative;
  transition: all 0.2s;
}

.nav-icon { font-size: 20px; transition: color 0.2s; color: var(--text-muted); display: flex; align-items: center; justify-content: center; }
.nav-icon svg { width: 20px; height: 20px; }
.nav-label { font-size: 11px; color: var(--text-muted); font-family: var(--font-body); font-weight: 500; transition: color 0.2s; }

.nav-item.active .nav-label { color: var(--primary); }
.nav-item.active .nav-icon { color: var(--primary); }

.nav-badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 18px);
  background: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* =================== MAIN APP =================== */
#main-app {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  padding-top: env(safe-area-inset-top, 0px);
}

/* Body wrapper: sidebar + content (row on desktop, column on mobile) */
.main-app-body {
  flex: 1;
  display: flex;
  flex-direction: column; /* mobile: nav bottom, content top */
  overflow: hidden;
  min-height: 0;
}

/* Content area — fills all space above the nav bar */
.app-content-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  order: 1;
}

/* Each tab fills the content area fully */
.tab-content {
  display: none;
  flex-direction: column;
  flex: 1;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  /* Ensure it starts at the top */
  scroll-behavior: smooth;
}

.tab-content.active {
  display: flex;
  flex: 1;
}

/* =================== HEADER =================== */
.app-header {
  height: var(--header-height);
  background: white;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.app-header h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
}

.header-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
}

/* =================== DISCOVER =================== */
#tab-discover {
  flex-direction: column;
  overflow: hidden;
  /* Do NOT allow this tab to scroll - inner pieces scroll */
  overflow-y: hidden;
}

/* discover-left = the swipe column, full width on mobile */
.discover-left {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  min-height: 0;
  /* Add top safe area for notch (only needed in standalone/fullscreen) */
}

/* discover-right = hidden on mobile, shown on desktop */
.discover-right {
  display: none;
}

/* Filters */
.filters-panel {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  flex-shrink: 0;
}

.filters-inner h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--dark);
}

.filter-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 10px 20px;
  border-radius: 99px;
  font-size: 14px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn-primary {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 99px;
  font-size: 14px;
  font-family: var(--font-body);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-primary:hover { background: var(--primary-dark); }

.filter-btn {
  background: var(--primary-light);
  color: var(--primary);
  border: none;
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 13px;
  font-family: var(--font-body);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.15s;
}
.filter-btn:hover {
  background: var(--primary);
  color: #fff;
}

/* Swipe counter */
.swipe-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  flex-shrink: 0;
  background: white;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text-light);
}

.swipe-pips { display: flex; gap: 5px; }

.pip {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.pip.used { background: var(--primary); }
.pip.unlimited { background: var(--secondary); }

.swipe-text { font-size: 12px; color: var(--text-light); font-weight: 500; }

/* Card stack */
.card-stack {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  position: relative;
  min-height: 0;
  overflow: hidden;
  /* Ensure it has a real height on all devices */
  contain: strict;
}

.profile-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  /* Sizing: fill available width but cap at 380px */
  width: calc(100% - 32px);
  max-width: 380px;
  /* Absolute so cards stack on top of each other */
  position: absolute;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  transition: box-shadow 0.2s;
  /* KEY: constrain total card height to viewport */
  max-height: calc(100% - 8px);
  display: flex;
  flex-direction: column;
}

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

.card-photo {
  width: 100%;
  /* Responsive height: tall on desktop, adapts on mobile */
  height: clamp(220px, 45vh, 380px);
  object-fit: cover;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  background-size: cover;
  background-position: center;
  position: relative;
  flex-shrink: 0;
}

.card-photo-dots {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 4px;
}

.photo-dot {
  height: 3px;
  flex: 1;
  max-width: 40px;
  background: rgba(255,255,255,0.5);
  border-radius: 99px;
  transition: background 0.2s;
}

.photo-dot.active { background: white; }

.card-like-badge,
.card-pass-badge {
  position: absolute;
  top: 24px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 800;
  opacity: 0;
  transform: rotate(-15deg);
  transition: opacity 0.1s;
  pointer-events: none;
  border: 3px solid;
}

.card-like-badge {
  left: 20px;
  color: #22c55e;
  border-color: #22c55e;
  background: rgba(34,197,94,0.1);
  transform: rotate(-15deg);
}

.card-pass-badge {
  right: 20px;
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(255,107,107,0.1);
  transform: rotate(15deg);
}

.card-info {
  padding: 16px 18px 20px;
}

.card-name-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.card-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
}

.card-age {
  font-size: 20px;
  color: var(--text-light);
  font-weight: 300;
}

.card-location {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-bio {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.card-tag {
  background: var(--bg);
  color: var(--text-light);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 99px;
  font-weight: 500;
}

.card-budget {
  font-size: 15px;
  font-weight: 700;
  color: var(--coral);
}

/* Room-style card layout */
.card-room-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.card-room-city {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 8px;
}
.card-room-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}
.card-room-price {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}
.card-room-price .price-amount {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

/* Nav search bar (desktop sidebar bottom) */
.nav-search-bar {
  display: none;
}
@media (min-width: 768px) {
  .nav-search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: auto 16px 20px;
    padding: 10px 14px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 14px;
    font-family: var(--font-body);
    cursor: pointer;
    transition: border-color 0.2s;
  }
  .nav-search-bar:hover {
    border-color: var(--primary);
  }
  .nav-premium-item {
    display: none;
  }
}

/* In-app language selector */
.nav-lang-selector {
  position: relative;
  padding: 8px 16px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
}
.nav-lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.nav-lang-btn:hover {
  border-color: var(--primary);
  background: var(--card);
}
.nav-lang-icon {
  flex-shrink: 0;
  opacity: 0.6;
}
.nav-lang-dropdown {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 16px;
  right: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  overflow: hidden;
}
.nav-lang-dropdown button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 9px 14px;
  border: none;
  background: none;
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s;
}
.nav-lang-dropdown button:hover {
  background: var(--bg);
}
/* On mobile: hide lang selector from bottom nav */
@media (max-width: 767px) {
  .nav-lang-selector { display: none; }
}

/* Action buttons */
.action-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 10px 20px;
  padding-bottom: max(12px, env(safe-area-inset-bottom, 12px));
  flex-shrink: 0;
  background: var(--bg);
}

.action-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.pass-btn {
  background: white;
  color: var(--text-light);
  font-size: 28px;
}

.pass-btn:hover { background: #fff5f5; color: var(--primary); transform: scale(1.08); }

.like-btn {
  background: var(--primary);
  color: white;
  font-size: 28px;
  width: 76px;
  height: 76px;
}

.like-btn:hover { transform: scale(1.08); box-shadow: 0 8px 24px rgba(59,130,246,0.4); }

/* Empty stack */
.empty-stack {
  text-align: center;
  padding: 40px 20px;
}

.empty-icon { margin-bottom: 16px; display: flex; justify-content: center; }
.empty-stack h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.empty-stack p { color: var(--text-light); margin-bottom: 20px; }

/* Paywall */
.paywall-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,26,46,0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}

.paywall-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  max-width: 340px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.paywall-icon { margin-bottom: 12px; display: flex; justify-content: center; }
.paywall-card h3 { font-family: var(--font-display); font-size: 22px; margin-bottom: 10px; }
.paywall-card p { color: var(--text-light); font-size: 15px; margin-bottom: 20px; line-height: 1.6; }

.premium-perks {
  list-style: none;
  text-align: left;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.premium-perks li { font-size: 14px; color: var(--text); }

.btn-premium {
  background: var(--grad-premium);
  color: var(--dark);
  border: none;
  padding: 14px 24px;
  border-radius: 99px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  width: 100%;
  margin-bottom: 10px;
  transition: all 0.2s;
}

.btn-premium:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,215,0,0.4); }

.btn-ghost-sm {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  font-family: var(--font-body);
  text-decoration: underline;
  padding: 8px;
}

/* Match popup */
.match-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.match-popup-inner {
  background: var(--dark);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  max-width: 360px;
  width: 100%;
  animation: matchPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes matchPop {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.match-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: white;
  margin-bottom: 8px;
}

.match-sub { color: rgba(255,255,255,0.7); font-size: 16px; margin-bottom: 28px; }
.match-popup .btn-ghost { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.3); }
.match-popup .btn-ghost:hover { color: #fff; border-color: #fff; }

.match-avatars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}

.match-avatar-me,
.match-avatar-them {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF6B6B, #c084fc);
  border: 3px solid white;
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

.match-heart { font-size: 36px; color: var(--primary); }

.match-actions { display: flex; flex-direction: column; gap: 10px; }

/* Discover right panel (desktop only) */
.discover-right-inner {
  text-align: center;
  max-width: 380px;
}

.right-panel-icon {
  margin-bottom: 20px;
}

.right-panel-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 28px;
}

.right-panel-tips {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.discover-tip {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}

.tip-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =================== MATCHES =================== */
/* =================== MATCHES =================== */
#tab-matches {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.matches-list {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.match-card {
  background: white;
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}

.match-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.match-card-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF6B6B, #c084fc);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}

.match-card-info { flex: 1; min-width: 0; }
.match-card-name { font-weight: 700; font-size: 16px; color: var(--dark); }
.match-card-preview {
  font-size: 13px;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.match-card-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.match-unread {
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* =================== CHAT =================== */
#tab-chat {
  /* Mobile: column (list OR room, full width) */
  flex-direction: column;
  overflow: hidden;
}

/* List of conversations */
#chat-list-view {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

#chat-list-view .conversations-list {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Hide list on mobile when chat room is open */
#chat-list-view.hidden-mobile {
  display: none;
}

/* Hide bottom nav when chat room is open on mobile */
@media (max-width: 1099px) {
  #chat-room-view.visible ~ .bottom-nav,
  body.chat-room-open .bottom-nav { display: none; }
  body.chat-room-open .message-input-bar {
    padding-bottom: max(10px, env(safe-area-inset-bottom, 10px));
  }
}

/* Chat room */
#chat-room-view {
  display: none;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

#chat-room-view.visible {
  display: flex;
}

/* Messages must scroll, not the whole room */
.messages-container {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

.conversations-list {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-header {
  height: var(--header-height);
  background: white;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 10;
  flex-shrink: 0;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.chat-partner-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF6B6B, #c084fc);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

.chat-partner-name { font-weight: 700; font-size: 15px; color: var(--dark); }
.chat-partner-city { font-size: 12px; color: var(--text-light); }

.messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.message {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.5;
  word-break: break-word;
}

.message.sent {
  background: var(--primary);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.message.received {
  background: white;
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.message-time {
  font-size: 11px;
  opacity: 0.6;
  margin-top: 4px;
  text-align: right;
}

.message.received .message-time { text-align: left; }

.typing-indicator {
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-light);
  font-style: italic;
  background: white;
  flex-shrink: 0;
}

.message-input-bar {
  display: flex;
  padding: 10px 12px;
  padding-bottom: max(10px, env(safe-area-inset-bottom, 10px));
  gap: 10px;
  background: white;
  border-top: 1px solid var(--border-light);
  flex-shrink: 0;
}

.message-input-bar input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 99px;
  font-size: 15px;
  font-family: var(--font-body);
  outline: none;
  background: var(--bg);
}

.message-input-bar input:focus { border-color: var(--primary); background: white; }

.send-btn {
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.send-btn:hover { background: var(--primary-dark); transform: scale(1.05); }

/* =================== PROFILE =================== */
/* Profile tab scrolls entirely */
#tab-profile {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.profile-view {
  padding: 16px;
  /* No overflow here - parent scrolls */
}

.profile-hero {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.profile-cover {
  height: 120px;
  background: linear-gradient(135deg, #5C2434, #FF6B6B);
  position: relative;
}

.profile-avatar-wrap {
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid white;
  background: linear-gradient(135deg, #FF6B6B, #c084fc);
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

.profile-body {
  padding: 48px 20px 20px;
  text-align: center;
}

.profile-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--dark);
}

.profile-tagline {
  color: var(--text-light);
  font-size: 15px;
  margin-top: 4px;
}

.profile-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.pstat { text-align: center; }
.pstat strong { display: block; font-size: 20px; font-weight: 700; color: var(--dark); }
.pstat span { font-size: 12px; color: var(--text-muted); }

.profile-section {
  background: white;
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.profile-section h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.profile-section p { font-size: 15px; color: var(--text); line-height: 1.6; }

.prof-field-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.prof-field-header h4 { margin-bottom: 0; }
.prof-edit-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 6px;
  transition: background 0.15s;
}
.prof-edit-btn:hover { background: var(--primary-light); }

.prof-editor { margin-top: 8px; }
.prof-input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.prof-input:focus { border-color: var(--primary); outline: none; }
textarea.prof-input { resize: vertical; min-height: 60px; }

.prof-toggle-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.prof-toggle {
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  border-radius: 99px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.15s;
}
.prof-toggle:hover { border-color: var(--primary); color: var(--primary); }
.prof-toggle.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }

.prof-range-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.prof-slider {
  flex: 1;
  accent-color: var(--primary);
  height: 6px;
}
.prof-range-val { font-weight: 700; font-size: 16px; color: var(--primary); }

.prof-editor-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.prof-save-btn {
  padding: 8px 20px;
  border: none;
  border-radius: 99px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: opacity 0.15s;
}
.prof-save-btn:hover { opacity: 0.9; }
.prof-cancel-btn {
  padding: 8px 20px;
  border: 1.5px solid var(--border);
  border-radius: 99px;
  background: none;
  color: var(--text-light);
  font-size: 14px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color 0.15s;
}
.prof-cancel-btn:hover { border-color: var(--text-muted); }

.profile-footer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 16px 24px;
}
.profile-lang-selector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
}
.profile-lang-selector label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.profile-lang-selector select {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--text);
  cursor: pointer;
}

.btn-premium-small {
  background: var(--grad-premium);
  color: var(--dark);
  border: none;
  padding: 13px 20px;
  border-radius: 99px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.2s;
}

.btn-logout {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-light);
  padding: 12px 20px;
  border-radius: 99px;
  font-size: 15px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-logout:hover { border-color: var(--primary); color: var(--primary); }

.btn-delete-account {
  background: transparent;
  border: 1.5px solid #FCA5A5;
  color: #DC2626;
  padding: 12px 20px;
  border-radius: 99px;
  font-size: 15px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-delete-account:hover { background: #FEF2F2; border-color: #DC2626; }

/* ═══════════════════════════════════════
   Complete Profile Page
   ═══════════════════════════════════════ */
#complete-profile {
  flex: 1;
  overflow-y: auto;
  background: var(--bg);
}
.complete-profile-page {
  max-width: 540px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}
.cp-header {
  text-align: center;
  margin-bottom: 8px;
}
.cp-header h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}
.cp-sub {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 24px;
}
.cp-progress {
  height: 4px;
  background: var(--border);
  border-radius: 99px;
  margin-bottom: 32px;
  overflow: hidden;
}
.cp-progress-bar {
  height: 100%;
  background: var(--primary);
  border-radius: 99px;
  transition: width 0.3s;
}
.cp-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
/* Photo upload */
.cp-photo-upload {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cp-photo-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--border-light);
  border: 2px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.cp-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cp-photo-btn {
  background: white;
  border: 1.5px solid var(--border);
  color: var(--primary);
  padding: 10px 20px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.2s;
}
.cp-photo-btn:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}
/* Sliders */
.cp-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cp-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 99px;
  outline: none;
}
.cp-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.cp-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.cp-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}
.cp-slider-value {
  font-weight: 700;
  color: var(--primary);
  font-size: 16px;
}
/* Toggle buttons */
.cp-toggle-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cp-toggle {
  padding: 10px 18px;
  border: 1.5px solid var(--border);
  border-radius: 99px;
  background: white;
  font-size: 14px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text);
}
.cp-toggle:hover { border-color: var(--primary); color: var(--primary); }
.cp-toggle.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  font-weight: 600;
}

.edit-profile-btn {
  background: var(--primary-light);
  color: var(--primary);
  border: none;
  padding: 7px 14px;
  border-radius: 99px;
  font-size: 13px;
  font-family: var(--font-body);
  cursor: pointer;
  font-weight: 600;
}

/* =================== PREMIUM PAGE =================== */
.premium-page {
  padding: 20px;
  max-width: 480px;
  margin: 0 auto;
}

.premium-hero {
  text-align: center;
  padding: 24px 0 20px;
}

.premium-star { margin-bottom: 12px; display: flex; justify-content: center; }
.premium-hero h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}

.premium-hero p { color: var(--text-light); font-size: 15px; line-height: 1.6; }

.premium-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.pf-item {
  background: white;
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.pf-icon { flex-shrink: 0; display: flex; align-items: center; }
.pf-item strong { display: block; font-size: 15px; font-weight: 700; color: var(--dark); }
.pf-item p { font-size: 13px; color: var(--text-light); margin-top: 2px; }

.premium-price-card {
  background: var(--dark);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  margin: 20px 0;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  color: white;
}

.price-amount span { font-size: 28px; }
.price-period { color: rgba(255,255,255,0.6); font-size: 14px; }

.btn-premium-large {
  background: var(--grad-premium);
  color: var(--dark);
  border: none;
  padding: 16px 32px;
  border-radius: 99px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  width: 100%;
  transition: all 0.2s;
}

.btn-premium-large:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,215,0,0.4); }

.premium-disclaimer { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 12px; }

/* =================== MISC =================== */
.back-btn {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
  margin-right: 4px;
  font-family: var(--font-body);
}

.loading-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 16px;
  color: var(--text-light);
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}

.empty-state-icon { font-size: 56px; margin-bottom: 16px; }
.empty-state h3 { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 8px; }

/* =================== RESPONSIVE — TABLET & DESKTOP =================== */

/* ── Tablet 768px+ ── */
@media (min-width: 768px) {

  /* ── Landing desktop ── */
  .l-hero { min-height: 100dvh; }
  .l-hero-content { padding: 60px 60px 100px; }
  .l-bg-card--1 { right: 80px; top: 10%; width: 200px; height: 280px; }
  .l-bg-card--2 { right: 200px; top: 20%; width: 170px; height: 240px; }
  .l-bg-card--3 { right: 120px; top: 40%; width: 150px; height: 210px; }

  .l-steps { flex-direction: row; align-items: stretch; }
  .l-step { flex-direction: column; flex: 1; }

  .l-feature-grid { flex-direction: row; gap: 60px; }
  .l-feature-text { flex: 1; }
  .l-feature-visual { flex: 1; max-width: 480px; }

  .l-testimonial-grid { flex-direction: row; }
  .l-testimonial { flex: 1; }

  /* Auth pages centered */
  .auth-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100dvh;
    padding: 40px 20px;
  }
  .auth-card { width: 100%; max-width: 480px; }

  .register-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100dvh;
    padding: 40px 20px;
  }
  .register-page > * { width: 100%; max-width: 480px; }

  /* Landing improvements */
  .landing-hero { padding: 60px 60px 30px; }
  .hero-ctas { flex-direction: row; justify-content: center; }
  .btn-hero-primary, .btn-hero-secondary { width: auto; min-width: 200px; }

  /* Main app: column (banner on top, then body row) */
  #main-app {
    flex-direction: column;
  }
  /* Body row: sidebar + content */
  .main-app-body {
    flex-direction: row;
    flex: 1;
    min-height: 0;
  }

  /* Sidebar */
  .bottom-nav {
    width: 230px;
    height: auto;
    flex: none;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    border-top: none;
    border-right: 1px solid var(--border);
    padding: 0;
    min-height: unset;
    flex-shrink: 0;
    order: 0;
    overflow-y: auto;
  }
  .bottom-nav::before {
    content: 'InNest';
    display: block;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
    color: var(--dark);
    padding: 20px 20px 16px;
    flex-shrink: 0;
    letter-spacing: -0.5px;
  }
  /* Section labels */
  .nav-section-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    padding: 16px 20px 6px;
  }
  .nav-section-label:first-of-type {
    padding-top: 8px;
  }
  .nav-item {
    flex-direction: row;
    justify-content: flex-start;
    padding: 10px 20px;
    gap: 12px;
    border-radius: 0;
    width: 100%;
    height: auto;
    margin: 0;
  }
  .nav-item:hover { background: var(--bg); }
  .nav-item.active {
    background: var(--primary-light);
    border-left: 3px solid var(--primary);
    padding-left: 17px;
  }
  .nav-icon { font-size: 18px; }
  .nav-icon svg { width: 18px; height: 18px; }
  .nav-label { font-size: 14px; font-weight: 500; color: var(--text); }
  .nav-item.active .nav-label { color: var(--primary); font-weight: 600; }
  .nav-item.active .nav-icon { color: var(--primary); }
  .nav-badge { position: static; margin-left: auto; }

  /* Content area */
  .app-content-area { flex: 1; min-width: 0; overflow: hidden; }

  /* Discover: two columns */
  #tab-discover { flex-direction: row; overflow: hidden; }
  .discover-left {
    width: 400px;
    flex-shrink: 0;
    border-right: 1px solid var(--border-light);
  }
  .discover-right {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    padding: 40px;
  }

  /* Profile wider */
  .profile-view { max-width: 700px; margin: 0 auto; width: 100%; }
  .premium-page { max-width: 600px; }

  /* Action buttons no safe area needed on desktop */
  .action-buttons { padding-bottom: 16px; }
}

/* ── Large desktop 1100px+ ── */
@media (min-width: 1100px) {
  .bottom-nav { width: 260px; }
  .bottom-nav::before { font-size: 20px; padding: 28px 24px 22px; }
  .nav-item { padding: 12px 24px; }
  .nav-item.active { padding-left: 21px; }
  .discover-left { width: 440px; }

  /* Chat split view */
  #tab-chat { flex-direction: row; overflow: hidden; }
  #chat-list-view {
    width: 320px;
    flex-shrink: 0;
    border-right: 1px solid var(--border);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }
  #chat-list-view.hidden-mobile { display: flex !important; }
  #chat-room-view {
    display: flex !important;
    flex: 1;
    flex-direction: column;
  }
  #chat-room-view:not(.visible) {
    align-items: center;
    justify-content: center;
    background: var(--bg);
  }
  #chat-room-view:not(.visible) > * { display: none; }
  #chat-room-view:not(.visible)::before {
    content: 'Selecciona una conversación';
    display: block;
    font-size: 15px;
    color: var(--text-muted);
    font-family: var(--font-body);
  }
  .chat-header .back-btn { display: none; }
  .message-input-bar { padding-bottom: 12px; }
}

/* ── Small screens ── */
@media (max-width: 360px) {
  .hero-title { font-size: 28px; }
  .action-btn { width: 56px; height: 56px; }
  .like-btn { width: 66px; height: 66px; }
}

/* ═══════════════════════════════════════
   Language Selector
   ═══════════════════════════════════════ */
.lang-selector {
  position: relative;
  display: inline-block;
}
.lang-btn {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lang-btn:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.35);
}
.lang-globe { flex-shrink: 0; opacity: 0.85; }
.lang-label { letter-spacing: 0.5px; }
.lang-chevron { flex-shrink: 0; opacity: 0.7; transition: transform 0.2s; }
.lang-selector:not(.hidden) .lang-chevron { transform: rotate(0deg); }
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.15);
  min-width: 170px;
  z-index: 100;
  overflow: hidden;
  padding: 4px;
  animation: langDropIn 0.15s ease-out;
}
@keyframes langDropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.lang-dropdown button {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border: none;
  background: none;
  font-size: 14px;
  font-family: var(--font-body);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s;
  border-radius: 8px;
  gap: 10px;
}
.lang-dropdown button:hover {
  background: rgba(255,255,255,0.15);
}
.lang-flag {
  width: 22px;
  height: 15px;
  vertical-align: middle;
  border-radius: 3px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════
   Verification Code Input
   ═══════════════════════════════════════ */
.code-input-group {
  display: flex;
  justify-content: center;
}
.code-input {
  font-size: 28px !important;
  font-weight: 700;
  letter-spacing: 10px;
  text-align: center;
  padding: 14px 20px !important;
  max-width: 220px;
  border: 2px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  font-family: var(--font-body);
}
.code-input:focus {
  border-color: var(--primary) !important;
  outline: none;
}
.verification-target {
  text-align: center;
  font-weight: 600;
  color: var(--primary);
  font-size: 15px;
  margin-bottom: 20px;
}
.resend-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-light);
}
.btn-link {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  padding: 0;
}
.btn-link:disabled {
  color: var(--text-muted);
  cursor: not-allowed;
}

/* ═══════════════════════════════════════
   Identity Verification Section
   ═══════════════════════════════════════ */
.verify-section {
  border: 2px solid var(--border);
  background: var(--bg);
}
.verify-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
}
.verify-done {
  background: #dcfce7;
  color: #166534;
}
.verify-pending-status {
  background: #fef3c7;
  color: #92400e;
}
.verify-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.verify-pose-instruction {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}
.verify-pose-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 50%;
}
.verify-pose-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  margin: 0;
}
.verify-upload-box {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  transition: border-color 0.2s;
}
.verify-upload-box:hover {
  border-color: var(--primary);
}
.verify-upload-label {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 4px;
}
.verify-upload-desc {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 12px;
}
.verify-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  padding: 10px 20px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.2s;
}
.verify-upload-btn:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}
.verify-preview {
  margin-bottom: 12px;
}
.verify-preview img {
  max-width: 200px;
  max-height: 150px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 2px solid var(--border);
}
.verify-submit-btn {
  margin-top: 4px;
}
.verify-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Verified badge on cards */
.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #22c55e;
  color: #fff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  margin-left: 4px;
  vertical-align: middle;
}

/* ═══════════════════════════════════════
   Phone Country Selector (Custom dropdown)
   ═══════════════════════════════════════ */
.phone-input-wrap {
  display: flex;
  gap: 8px;
}
.phone-country-custom {
  position: relative;
  flex-shrink: 0;
}
.phone-country-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  height: 100%;
  transition: border-color 0.2s;
}
.phone-country-btn:focus,
.phone-country-btn:hover {
  border-color: var(--primary);
}
.phone-country-btn .phone-flag {
  width: 22px;
  height: 15px;
  border-radius: 2px;
  flex-shrink: 0;
}
.phone-prefix {
  font-weight: 600;
  font-size: 14px;
}
.phone-chevron {
  opacity: 0.5;
  flex-shrink: 0;
}
.phone-country-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 60;
  max-height: 240px;
  overflow-y: auto;
  min-width: 150px;
}
.phone-country-dropdown button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  border: none;
  background: none;
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s;
}
.phone-country-dropdown button:hover {
  background: var(--bg);
}
.phone-country-dropdown .phone-flag {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  flex-shrink: 0;
}
.phone-input-wrap input[type="tel"] {
  flex: 1;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--text);
  background: white;
  outline: none;
}
.phone-input-wrap input[type="tel"]:focus {
  border-color: var(--primary);
}

/* ═══════════════════════════════════════
   Filters Modal
   ═══════════════════════════════════════ */
.filters-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.filters-modal-content {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.filters-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--border-light);
}
.filters-modal-header h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
}
.filters-close-btn {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-light);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.15s;
}
.filters-close-btn:hover { color: var(--dark); }
.filters-modal-body {
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.filters-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 600px) {
  .filters-row { grid-template-columns: 1fr; gap: 20px; }
}
.filter-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.filter-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 6px;
}
.filter-icon { font-size: 16px; }
.filter-input-styled {
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--text);
  background: #fff;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
}
.filter-input-styled:focus { border-color: var(--primary); }
.filter-select-wrap { position: relative; }
.filter-select-wrap::after {
  content: '›';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-size: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

/* Price range */
.filter-price-range {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}
.range-slider-wrap {
  position: relative;
  height: 36px;
  display: flex;
  align-items: center;
}
.range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: #e2e8f0;
  border-radius: 99px;
  outline: none;
  position: absolute;
  pointer-events: none;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: var(--coral);
  border-radius: 50%;
  cursor: pointer;
  pointer-events: all;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.range-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--coral);
  border-radius: 50%;
  cursor: pointer;
  pointer-events: all;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.range-min { z-index: 2; background: transparent; }
.range-max { z-index: 1; }

/* Filter pills (toggle buttons) */
.filter-toggle-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-pill {
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font-size: 13px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.15s;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 5px;
}
.filter-pill:hover { border-color: var(--primary); color: var(--primary); }
.filter-pill.active {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
}
.filter-pill-no.active {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
}
.pill-icon { font-size: 14px; }

/* Footer */
.filters-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px 24px;
  border-top: 1px solid var(--border-light);
}
.btn-filter-apply {
  background: var(--coral);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.15s;
}
.btn-filter-apply:hover { background: var(--primary-dark); }

/* ═══════════════════════════════════════
   Verification Alert Banner (Stripe-style)
   ═══════════════════════════════════════ */
.verify-banner {
  width: 100%;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  z-index: 110;
}
.verify-banner--red {
  background: #fef2f2;
  border-bottom: 1px solid #fecaca;
}
.verify-banner--yellow {
  background: #fefce8;
  border-bottom: 1px solid #fde68a;
}
.verify-banner-content {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.verify-banner--red .verify-banner-bold {
  color: #dc2626;
}
.verify-banner--red .verify-banner-text {
  color: #7f1d1d;
}
.verify-banner--red .verify-banner-link {
  color: #dc2626;
}
.verify-banner--yellow .verify-banner-bold {
  color: #a16207;
}
.verify-banner--yellow .verify-banner-text {
  color: #713f12;
}
.verify-banner--yellow .verify-banner-link {
  color: #a16207;
}
.verify-banner-bold {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.verify-banner-text {
  font-size: 13px;
}
.verify-banner-link {
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  white-space: nowrap;
  padding: 0;
  transition: opacity 0.15s;
}
.verify-banner-link:hover {
  opacity: 0.7;
  text-decoration: underline;
}

/* ═══════════════════════════════════════
   Sidebar Section Labels (desktop only)
   ═══════════════════════════════════════ */
.nav-section-label {
  display: none;
}

/* ═══════════════════════════════════════
   Profile Detail Modal
   ═══════════════════════════════════════ */
/* ── Profile Detail Page (product-style) ── */
.pdp {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--card-bg, #fff);
  overflow-y: auto;
  animation: pdpSlideIn 0.3s ease;
}
.pdp.hidden { display: none; }
@keyframes pdpSlideIn {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

.pdp-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--card-bg, #fff);
  border-bottom: 1px solid var(--border, #e2e8f0);
  padding: 12px 20px;
  padding-top: max(12px, calc(env(safe-area-inset-top, 0px) + 8px));
}
.pdp-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  padding: 4px 0;
}
.pdp-back:hover { opacity: 0.8; }

.pdp-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Gallery */
.pdp-gallery {
  position: sticky;
  top: 70px;
}
.pdp-main-photo {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg, #f1f5f9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  font-weight: 700;
  color: #fff;
}
.pdp-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.pdp-thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  flex-shrink: 0;
  border: 2px solid transparent;
  transition: border-color 0.15s;
}
.pdp-thumb:hover,
.pdp-thumb.active {
  border-color: var(--primary);
}

/* Info panel */
.pdp-info {
  min-width: 0;
}
.pdp-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pdp-name {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
}
.pdp-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #dcfce7;
  color: #16a34a;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 99px;
}
.pdp-location {
  font-size: 15px;
  color: var(--text-light);
  margin: 6px 0 0;
  display: flex;
  align-items: center;
  gap: 5px;
}
.pdp-location::before {
  content: '';
  display: inline-block;
  width: 14px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") no-repeat center;
}
.pdp-price {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  margin-top: 16px;
}
.pdp-price small {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-light);
}

/* Action buttons */
.pdp-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.pdp-btn-like {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  background: var(--primary);
  color: #fff;
  transition: transform 0.15s, box-shadow 0.15s;
}
.pdp-btn-like:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59,130,246,0.35);
}
.pdp-btn-pass {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid var(--border, #e2e8f0);
  background: var(--card-bg, #fff);
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-light);
  transition: background 0.15s;
}
.pdp-btn-pass:hover {
  background: var(--bg, #f8fafc);
}

.pdp-divider {
  border: none;
  border-top: 1px solid var(--border, #e2e8f0);
  margin: 24px 0;
}

/* Sections */
.pdp-section { margin-bottom: 28px; }
.pdp-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 14px;
}
.pdp-bio {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  margin: 0;
}

/* Traits grid (cleanliness, cooking, schedule, etc.) */
.pdp-traits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pdp-trait {
  background: var(--bg, #f8fafc);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.pdp-trait-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.pdp-trait-icon.blue  { background: #eff6ff; }
.pdp-trait-icon.green { background: #ecfdf5; }
.pdp-trait-icon.amber { background: #fffbeb; }
.pdp-trait-icon.rose  { background: #fff1f2; }
.pdp-trait-icon.violet{ background: #f5f3ff; }
.pdp-trait-icon.sky   { background: #f0f9ff; }
.pdp-trait-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.pdp-trait-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
/* Mini bar for numeric ratings */
.pdp-bar {
  display: flex;
  gap: 3px;
  margin-top: 4px;
}
.pdp-bar span {
  width: 16px;
  height: 5px;
  border-radius: 3px;
  background: var(--border, #e2e8f0);
}
.pdp-bar span.filled {
  background: var(--primary);
}

/* Tags */
.pdp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pdp-tag {
  background: var(--primary-light, #eff6ff);
  color: var(--primary);
  padding: 7px 16px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
}

/* Specs (room search details) */
.pdp-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  overflow: hidden;
}
.pdp-spec {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border, #e2e8f0);
}
.pdp-spec:nth-child(odd) {
  border-right: 1px solid var(--border, #e2e8f0);
}
.pdp-spec:nth-last-child(-n+2) {
  border-bottom: none;
}
.pdp-spec-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 4px;
}
.pdp-spec-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

/* Mobile: stack columns */
@media (max-width: 768px) {
  .pdp-content {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px 16px 100px;
  }
  .pdp-gallery {
    position: static;
  }
  .pdp-main-photo {
    aspect-ratio: 3/4;
    border-radius: 12px;
  }
  .pdp-name { font-size: 24px; }
  .pdp-price { font-size: 22px; }
  .pdp-traits { grid-template-columns: 1fr; }
  .pdp-specs { grid-template-columns: 1fr; }
  .pdp-spec { border-right: none !important; }
  .pdp-spec:last-child { border-bottom: none; }
}
