@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #0a0a0f;
  --bg-2: #101017;
  --surface: #15151e;
  --surface-2: #1c1c28;
  --surface-3: #232331;
  --border: #2a2a3a;
  --border-strong: #3a3a4f;
  --text: #f2f3f7;
  --muted: #8e93a6;
  --blue: #2e8bf2;
  --blue-dim: rgba(46, 139, 242, 0.14);
  --pink: #f5386b;
  --pink-dim: rgba(245, 56, 107, 0.14);
  --gold: #f0b429;
  --danger: #ff4d6a;
  --success: #2ecc8f;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Nunito', 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main, header, footer, .page { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

h1, h2, h3 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.01em; }

.container { width: min(1180px, 92%); margin: 0 auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-dim);
  border: 1px solid rgba(46, 139, 242, 0.35);
  padding: 7px 14px;
  border-radius: 999px;
}

.text-pink { color: var(--pink); }
.text-blue { color: var(--blue); }

.icon { width: 22px; height: 22px; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.icon-sm { width: 17px; height: 17px; }
.icon-lg { width: 30px; height: 30px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  border-radius: 999px;
  padding: 14px 28px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s, opacity 0.18s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 12px 30px rgba(245, 56, 107, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); background: #ff4a7a; }

.btn-blue {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 30px rgba(46, 139, 242, 0.3);
}
.btn-blue:hover { transform: translateY(-2px); background: #4a9cf5; }

.btn-ghost {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-3); transform: translateY(-2px); }

.btn-sm { padding: 9px 18px; font-size: 0.88rem; }
.btn-block { width: 100%; }
.btn-danger { background: rgba(255, 77, 106, 0.14); border: 1px solid rgba(255, 77, 106, 0.5); color: var(--danger); }
.btn-danger:hover { background: rgba(255, 77, 106, 0.26); }

/* ---------- Right side notification / popup system ---------- */
.side-stack {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(380px, 92vw);
  pointer-events: none;
}
.side-card {
  pointer-events: auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--blue);
  border-radius: 14px;
  padding: 14px 44px 14px 16px;
  box-shadow: var(--shadow);
  position: relative;
  transform: translateX(120%);
  animation: sideIn 0.42s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
  cursor: pointer;
}
.side-card.tone-pink { border-left-color: var(--pink); }
.side-card.tone-gold { border-left-color: var(--gold); }
.side-card.tone-danger { border-left-color: var(--danger); }
.side-card.tone-success { border-left-color: var(--success); }
.side-card b { display: block; font-size: 0.94rem; font-family: var(--display); }
.side-card span { font-size: 0.86rem; color: var(--muted); }
.side-card .sc-close {
  position: absolute; top: 10px; right: 10px;
  background: none; border: none; color: var(--muted);
  cursor: pointer; font-size: 1rem; line-height: 1; padding: 4px;
}
.side-card .sc-close:hover { color: var(--text); }
.side-card .sc-bar {
  position: absolute; left: 0; bottom: 0; height: 3px;
  background: var(--blue);
  animation: sideBar linear forwards;
}
.side-card.tone-pink .sc-bar { background: var(--pink); }
.side-card.tone-gold .sc-bar { background: var(--gold); }
.side-card.tone-danger .sc-bar { background: var(--danger); }
.side-card.tone-success .sc-bar { background: var(--success); }
.side-card.out { animation: sideOut 0.32s ease forwards; }
@keyframes sideIn { to { transform: translateX(0); } }
@keyframes sideOut { to { transform: translateX(130%); opacity: 0; } }
@keyframes sideBar { from { width: 100%; } to { width: 0; } }

.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(4, 4, 8, 0.72);
  backdrop-filter: blur(6px);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(440px, 100vw);
  background: var(--bg-2);
  border-left: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  z-index: 1150;
  transform: translateX(105%);
  transition: transform 0.42s cubic-bezier(0.2, 0.9, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
  background: var(--bg-2);
  z-index: 2;
}
.drawer-head h3 { font-size: 1.2rem; }
.drawer-close {
  background: var(--surface-2); border: 1px solid var(--border);
  width: 36px; height: 36px; border-radius: 10px;
  cursor: pointer; font-size: 1rem; color: var(--muted);
}
.drawer-close:hover { color: var(--text); background: var(--surface-3); }
.drawer-body { padding: 24px 22px 32px; display: flex; flex-direction: column; gap: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: 0.01em;
}
.logo img { height: 38px; width: auto; }
.logo .logo-word { display: flex; }
.logo .lw1 { color: var(--blue); }
.logo .lw2 { color: var(--pink); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--muted);
  transition: 0.18s;
}
.nav a:hover, .nav a.active { color: var(--text); background: var(--surface-2); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.hamburger { display: none; background: none; border: 1px solid var(--border-strong); border-radius: 10px; padding: 8px 12px; cursor: pointer; font-size: 1.1rem; color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 90px 0 110px;
  overflow: hidden;
  background: var(--bg);
}
.hero::after {
  content: '';
  position: absolute;
  right: -180px; top: -180px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: var(--blue-dim);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 50px;
  align-items: center;
}
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); font-weight: 900; margin: 22px 0 18px; }
.hero p.lead { font-size: 1.1rem; color: var(--muted); max-width: 540px; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats .stat b { display: block; font-size: 1.5rem; font-family: var(--display); }
.hero-stats .stat span { font-size: 0.84rem; color: var(--muted); }

.hero-cards { position: relative; height: 520px; }
.float-card {
  position: absolute;
  width: 250px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: 16px;
  box-shadow: var(--shadow);
  animation: bob 6s ease-in-out infinite;
}
.float-card:nth-child(2) { animation-delay: -2s; }
.float-card:nth-child(3) { animation-delay: -4s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
.float-card .ph {
  height: 210px;
  border-radius: 16px;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  font-weight: 800;
  position: relative;
  overflow: hidden;
  background: var(--surface-3);
}
.float-card .ph::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 10, 0.55);
}
.float-card .meta { position: relative; z-index: 1; }
.float-card .meta small { display: block; color: #e9e9f2; font-weight: 500; opacity: 0.9; }
.float-card .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.tag {
  font-size: 0.72rem;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: #dfe1ec;
}

.float-badge {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 12px 16px;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  animation: bob 5s ease-in-out infinite;
  z-index: 3;
}

/* ---------- Sections ---------- */
section.block { padding: 90px 0; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 54px; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin: 16px 0 14px; }
.section-head p { color: var(--muted); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  padding: 30px 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: 0.25s;
  position: relative;
  overflow: hidden;
}
.feature::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--pink);
  opacity: 0;
  transition: 0.25s;
}
.feature:hover { transform: translateY(-6px); background: var(--surface-2); border-color: var(--border-strong); }
.feature:hover::before { opacity: 1; }
.feature .ficon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--blue-dim);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature:nth-child(even) .ficon { background: var(--pink-dim); color: var(--pink); }
.feature h3 { font-size: 1.25rem; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 0.94rem; }
.feature .lock { font-size: 0.78rem; color: var(--gold); margin-top: 14px; display: inline-block; font-weight: 700; }

.communities { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.community-chip {
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.95rem;
  transition: 0.2s;
  cursor: pointer;
}
.community-chip:hover { background: var(--blue-dim); border-color: rgba(46, 139, 242, 0.5); transform: translateY(-3px); }

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.step {
  text-align: center;
  padding: 26px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.step .num {
  width: 44px; height: 44px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.step:nth-child(even) .num { background: var(--pink); }
.step h4 { font-size: 0.98rem; margin-bottom: 6px; }
.step p { font-size: 0.82rem; color: var(--muted); }

.safety { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.safety .card { padding: 26px; }
.safety h4 { font-size: 1.05rem; margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }
.safety p { color: var(--muted); font-size: 0.9rem; }

.cta-band {
  border-radius: 28px;
  padding: 60px 40px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: var(--pink);
}
.cta-band h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 14px; }
.cta-band p { color: var(--muted); margin-bottom: 26px; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 50px 0 34px;
  margin-top: 40px;
  background: var(--bg-2);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 34px; margin-bottom: 34px; }
.footer-grid h5 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--pink); margin-bottom: 14px; }
.footer-grid a, .footer-grid p { display: block; color: var(--muted); font-size: 0.92rem; margin-bottom: 9px; transition: 0.15s; }
.footer-grid a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Auth pages ---------- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 0; }
.auth-card { width: min(620px, 94%); padding: 40px 38px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 26px; box-shadow: var(--shadow); }
.auth-card.wide { width: min(760px, 94%); }
.auth-card h1 { font-size: 1.9rem; margin-bottom: 8px; }
.auth-card .sub { color: var(--muted); font-size: 0.95rem; margin-bottom: 26px; }

.progress-steps { display: flex; gap: 8px; margin-bottom: 30px; }
.progress-steps .pstep { flex: 1; height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress-steps .pstep.done { background: var(--pink); }
.step-label { font-size: 0.8rem; color: var(--blue); text-transform: uppercase; letter-spacing: 0.14em; font-weight: 800; margin-bottom: 6px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 600; color: #d9cff2; }
.field input, .field select, .field textarea {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 13px 15px;
  outline: none;
  transition: 0.18s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(245, 56, 107, 0.18); }
.field .hint { font-size: 0.76rem; color: var(--muted); }
.field .err { font-size: 0.78rem; color: var(--danger); display: none; }
.field.invalid input, .field.invalid select { border-color: var(--danger); }
.field.invalid .err { display: block; }
.field select option { background: var(--bg-2); }

.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: 0.18s;
  font-weight: 600;
  font-size: 0.95rem;
}
.choice:hover { background: var(--surface-3); }
.choice.selected { background: var(--pink-dim); border-color: rgba(245, 56, 107, 0.6); }
.choice input { accent-color: var(--pink); width: 17px; height: 17px; }

.chip-picker { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-picker .chip {
  padding: 10px 17px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: 0.18s;
  user-select: none;
}
.chip-picker .chip:hover { background: var(--surface-3); }
.chip-picker .chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }

.wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; }
.age-note {
  font-size: 0.82rem;
  background: rgba(240, 180, 41, 0.08);
  border: 1px solid rgba(240, 180, 41, 0.35);
  color: var(--gold);
  padding: 12px 15px;
  border-radius: 12px;
  margin-top: 18px;
}
.success-ring {
  width: 92px; height: 92px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem;
  animation: pop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1);
}
@keyframes pop { from { transform: scale(0.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.center { text-align: center; }

/* ---------- App shell ---------- */
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.app-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.app-header .inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; }
.app-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.05rem;
  transition: 0.18s;
  color: var(--text);
}
.icon-btn:hover { background: var(--surface-3); }
.icon-btn .dot {
  position: absolute; top: -5px; right: -5px;
  background: var(--pink);
  color: #fff; font-size: 0.66rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 99px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.9rem;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--blue);
}
.avatar.alt { background: var(--pink); }
.avatar.lg { width: 64px; height: 64px; font-size: 1.3rem; }
.avatar.xl { width: 110px; height: 110px; font-size: 2rem; }

.app-body { display: flex; flex: 1; min-height: 0; }
.app-nav {
  width: 230px;
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  display: flex; flex-direction: column; gap: 6px;
  background: var(--bg-2);
  position: sticky; top: 68px;
  height: calc(100vh - 68px);
}
.app-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px;
  border-radius: 14px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
  transition: 0.18s;
}
.app-nav a:hover { background: var(--surface-2); color: var(--text); }
.app-nav a.active { background: var(--pink); color: #fff; }
.app-nav .nav-foot { margin-top: auto; font-size: 0.76rem; color: var(--muted); padding: 12px; line-height: 1.5; }

.app-main { flex: 1; padding: 30px clamp(16px, 3vw, 40px) 60px; min-width: 0; }
.view { display: none; animation: fadeIn 0.3s ease; }
.view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.view-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.view-head h2 { font-size: 1.7rem; }
.view-head p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Discover ---------- */
.discover-layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
.swipe-stage { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.deck { position: relative; width: min(400px, 100%); height: 560px; }
.profile-card {
  position: absolute; inset: 0;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 26px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, opacity 0.35s ease;
  will-change: transform;
}
.profile-card .photo {
  flex: 1;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  background: var(--surface-3);
}
.profile-card .photo::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(8, 8, 14, 0.72);
}
.profile-card .photo .big-initial {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display);
  font-size: 7rem;
  color: rgba(255, 255, 255, 0.12);
  font-weight: 900;
}
.profile-card .info { position: relative; z-index: 2; }
.profile-card .info h3 { font-size: 1.7rem; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile-card .info .line { color: #e4e4ee; font-size: 0.95rem; opacity: 0.9; }
.profile-card .info .looking { color: var(--pink); font-weight: 700; font-size: 0.92rem; margin-top: 6px; }
.profile-card .info .tags { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 14px; }
.verified-badge { font-size: 0.78rem; background: rgba(46, 204, 143, 0.16); color: var(--success); border: 1px solid rgba(46, 204, 143, 0.4); padding: 3px 10px; border-radius: 99px; font-weight: 700; }
.online-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px var(--success); display: inline-block; }

.swipe-actions { display: flex; gap: 20px; align-items: center; }
.swipe-btn {
  width: 66px; height: 66px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  transition: 0.2s;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  color: var(--text);
}
.swipe-btn:hover { transform: scale(1.12); }
.swipe-btn.pass:hover { background: rgba(255, 77, 106, 0.2); border-color: var(--danger); color: var(--danger); }
.swipe-btn.like { background: var(--pink); border: none; width: 76px; height: 76px; color: #fff; }
.swipe-btn.super:hover { background: var(--blue-dim); border-color: var(--blue); color: var(--blue); }

.filters-panel { padding: 24px; position: sticky; top: 92px; }
.filters-panel h4 { font-size: 1.02rem; margin-bottom: 18px; display: flex; justify-content: space-between; align-items: center; }
.filter-group { margin-bottom: 18px; }
.filter-group label { font-size: 0.82rem; font-weight: 600; color: var(--muted); display: flex; justify-content: space-between; margin-bottom: 8px; }
.filter-group label span { color: var(--pink); }
.filter-group input[type="range"] { width: 100%; accent-color: var(--pink); }
.filter-group select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 10px 12px;
}
.filter-group select option { background: var(--bg-2); }
.toggle-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px dashed var(--border); font-size: 0.9rem; }
.switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; inset: 0;
  background: var(--surface-3);
  border-radius: 99px;
  cursor: pointer;
  transition: 0.2s;
}
.switch .slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}
.switch input:checked + .slider { background: var(--pink); }
.switch input:checked + .slider::before { transform: translateX(20px); }

.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state .big { font-size: 3rem; margin-bottom: 12px; }

/* ---------- Chats ---------- */
.chats-layout { display: grid; grid-template-columns: 330px 1fr; gap: 0; border: 1px solid var(--border); border-radius: 22px; overflow: hidden; background: var(--bg-2); height: calc(100vh - 210px); min-height: 520px; }
.chat-list { border-right: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; }
.chat-list-head { padding: 18px; border-bottom: 1px solid var(--border); }
.chat-list-head h3 { font-size: 1.1rem; margin-bottom: 12px; }
.search-box {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  outline: none;
  font-size: 0.9rem;
}
.search-box:focus { border-color: var(--pink); }
.chat-list-scroll { overflow-y: auto; flex: 1; }
.chat-item {
  display: flex; gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.15s;
  align-items: center;
}
.chat-item:hover { background: var(--surface-2); }
.chat-item.active { background: var(--pink-dim); }
.chat-item .ci-main { flex: 1; min-width: 0; }
.chat-item .ci-top { display: flex; justify-content: space-between; gap: 8px; }
.chat-item .ci-top b { font-size: 0.94rem; font-weight: 700; }
.chat-item .ci-top time { font-size: 0.72rem; color: var(--muted); }
.chat-item .ci-msg { font-size: 0.84rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-item .unread {
  background: var(--pink);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 20px; height: 20px;
  border-radius: 99px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
}
.avatar-wrap { position: relative; flex-shrink: 0; }
.avatar-wrap .status {
  position: absolute; right: 0; bottom: 0;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--success);
  border: 2px solid var(--bg-2);
}
.avatar-wrap .status.off { background: #4b4b60; }

.chat-pane { display: flex; flex-direction: column; min-height: 0; }
.chat-pane-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: relative;
}
.chat-pane-head .who b { display: block; font-size: 0.98rem; }
.chat-pane-head .who small { color: var(--muted); font-size: 0.78rem; }
.chat-pane-head .who small.typing { color: var(--pink); }
.chat-tools { display: flex; gap: 8px; }
.chat-tools button {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 38px; height: 38px;
  cursor: pointer;
  font-size: 0.98rem;
  transition: 0.15s;
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
}
.chat-tools button:hover { background: var(--surface-3); }
.chat-tools button.danger:hover { background: rgba(255, 77, 106, 0.2); border-color: var(--danger); }

.messages { flex: 1; overflow-y: auto; padding: 22px 18px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 72%; display: flex; flex-direction: column; gap: 3px; }
.msg .bubble {
  padding: 11px 15px;
  border-radius: 18px;
  font-size: 0.93rem;
  line-height: 1.5;
  word-wrap: break-word;
}
.msg.them { align-self: flex-start; }
.msg.them .bubble { background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 6px; }
.msg.me { align-self: flex-end; align-items: flex-end; }
.msg.me .bubble { background: var(--pink); border-bottom-right-radius: 6px; }
.msg .stamp { font-size: 0.68rem; color: var(--muted); display: flex; gap: 6px; align-items: center; padding: 0 4px; }
.msg .stamp .read { color: var(--pink); }
.msg .bubble.image-bubble { padding: 6px; background: var(--surface-2); border: 1px solid var(--border); }
.mock-photo { width: 220px; height: 150px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800; color: rgba(255,255,255,.75); background: var(--surface-3); text-align:center; padding: 10px; }
.msg .bubble.voice-bubble { display: flex; align-items: center; gap: 10px; min-width: 210px; }
.voice-play { width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); border: none; cursor: pointer; font-size: 0.8rem; flex-shrink: 0; color: #fff; display:flex; align-items:center; justify-content:center; }
.wave { display: flex; align-items: center; gap: 3px; flex: 1; height: 26px; }
.wave i { width: 3px; background: rgba(255, 255, 255, 0.6); border-radius: 3px; animation: waveA 1.1s ease-in-out infinite; }
@keyframes waveA { 0%, 100% { height: 30%; } 50% { height: 95%; } }
.voice-dur { font-size: 0.76rem; opacity: 0.85; }
.day-sep { text-align: center; font-size: 0.72rem; color: var(--muted); margin: 8px 0; text-transform: uppercase; letter-spacing: 0.1em; }

.typing-row { display: none; align-self: flex-start; gap: 5px; padding: 12px 16px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 18px; border-bottom-left-radius: 6px; margin: 0 18px 8px; }
.typing-row.show { display: flex; }
.typing-row i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing-row i:nth-child(2) { animation-delay: 0.2s; }
.typing-row i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }

.chat-composer { border-top: 1px solid var(--border); padding: 13px 16px; display: flex; gap: 10px; align-items: center; background: var(--surface); position: relative; }
.chat-composer .cbtn {
  background: none; border: none; cursor: pointer;
  font-size: 1.15rem; width: 36px; height: 36px;
  border-radius: 10px;
  transition: 0.15s;
  flex-shrink: 0;
  color: var(--muted);
  display:flex; align-items:center; justify-content:center;
}
.chat-composer .cbtn:hover { background: var(--surface-3); color: var(--text); }
.chat-composer input[type="text"] {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 12px 18px;
  outline: none;
}
.chat-composer input[type="text"]:focus { border-color: var(--pink); }
.send-btn { background: var(--pink) !important; color: #fff !important; border: none !important; }
.emoji-tray {
  position: absolute;
  bottom: 64px; left: 16px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 12px;
  display: none;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
  box-shadow: var(--shadow);
  z-index: 20;
}
.emoji-tray.open { display: grid; }
.emoji-tray button { background: none; border: none; font-size: 1.3rem; cursor: pointer; padding: 4px; border-radius: 8px; }
.emoji-tray button:hover { background: var(--surface-3); }

.chat-menu {
  position: absolute;
  top: 58px; right: 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 8px;
  width: 190px;
  display: none;
  box-shadow: var(--shadow);
  z-index: 40;
}
.chat-menu.open { display: block; }
.chat-menu button {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  background: none; border: none;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  text-align: left;
  color: var(--text);
}
.chat-menu button:hover { background: var(--surface-3); }
.chat-menu button.danger { color: var(--danger); }

/* ---------- Call (drawer from right) ---------- */
.call-panel { position: fixed; inset: 0; z-index: 1160; display: none; }
.call-panel.open { display: block; }
.call-stage {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(640px, 100vw);
  background: var(--bg-2);
  border-left: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  animation: sideIn 0.42s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
  overflow-y: auto;
}
.call-video {
  flex: 1;
  min-height: 340px;
  background: var(--surface-3);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.call-video video.remote {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  background: #0e0e16;
}
.call-video .remote-fallback { text-align: center; z-index: 1; }
.call-video .remote-fallback .avatar { margin: 0 auto 14px; width: 120px; height: 120px; font-size: 2.4rem; box-shadow: 0 0 0 4px rgba(255,255,255,.12); }
.call-status { font-size: 1.05rem; color: #f0f0f8; font-weight: 700; }
.call-timer { color: var(--muted); font-size: 0.9rem; }
.pip {
  position: absolute;
  right: 16px; bottom: 16px;
  width: 150px; height: 104px;
  border-radius: 14px;
  background: var(--surface);
  border: 2px solid var(--border-strong);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 600;
  color: var(--muted);
  z-index: 3;
}
.pip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.call-info { padding: 20px 22px 6px; text-align: center; }
.call-controls { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; padding: 18px 22px 26px; }
.call-btn {
  width: 62px; height: 62px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  background: var(--surface-3);
  color: #fff;
  border: 1px solid var(--border-strong);
  transition: 0.18s;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.call-btn:hover { background: var(--border-strong); transform: scale(1.07); }
.call-btn.accept { background: var(--success); border: none; }
.call-btn.decline, .call-btn.end { background: var(--danger); border: none; }
.call-btn.off { background: rgba(255, 77, 106, 0.35); }
.call-label { font-size: 0.72rem; color: var(--muted); text-align: center; margin-top: -10px; }
.call-actions-row { display: flex; gap: 34px; justify-content: center; padding: 6px 0 22px; }

/* ---------- Live ---------- */
.live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.live-card {
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: 0.22s;
}
.live-card:hover { transform: translateY(-5px); border-color: rgba(245, 56, 107, 0.5); }
.live-thumb { height: 190px; position: relative; display: flex; align-items: center; justify-content: center; font-size: 3rem; font-weight: 900; color: rgba(255,255,255,.35); background: var(--surface-3); }
.live-thumb .live-pill {
  position: absolute; top: 12px; left: 12px;
  background: var(--danger);
  font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.1em;
  padding: 5px 11px;
  border-radius: 99px;
  display: flex; align-items: center; gap: 6px;
}
.live-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1s infinite; }
.live-thumb .viewers {
  position: absolute; top: 12px; right: 12px;
  background: rgba(0, 0, 0, 0.6);
  font-size: 0.74rem;
  padding: 5px 10px;
  border-radius: 99px;
}
.live-meta { padding: 15px 16px; display: flex; gap: 11px; align-items: center; }
.live-meta b { font-size: 0.95rem; display: block; }
.live-meta small { color: var(--muted); font-size: 0.8rem; }

.stream-layout { display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: start; }
.stream-video {
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  background: var(--surface-3);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-strong);
}
.stream-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.stream-video .host { text-align: center; z-index: 1; }
.stream-video .host .avatar { margin: 0 auto 12px; width: 130px; height: 130px; font-size: 2.6rem; }
.stream-video .live-pill { position: absolute; top: 16px; left: 16px; background: var(--danger); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; padding: 6px 13px; border-radius: 99px; }
.stream-video .hls { position: absolute; top: 16px; right: 16px; font-size: 0.74rem; background: rgba(0,0,0,.6); padding: 6px 12px; border-radius: 99px; z-index: 2; }
.stream-info { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.stream-info h3 { font-size: 1.3rem; }
.stream-info p { color: var(--muted); font-size: 0.9rem; }

.stream-side { display: flex; flex-direction: column; gap: 16px; }
.live-comments {
  height: 330px;
  overflow-y: auto;
  padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 18px;
}
.lc { display: flex; gap: 10px; font-size: 0.87rem; animation: fadeIn 0.3s; }
.lc .avatar { width: 30px; height: 30px; font-size: 0.72rem; }
.lc b { color: var(--blue); font-weight: 700; }
.lc.gift-note { background: rgba(240, 180, 41, 0.1); border: 1px solid rgba(240, 180, 41, 0.35); padding: 9px 12px; border-radius: 12px; color: var(--gold); }
.comment-form { display: flex; gap: 9px; }
.comment-form input {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 11px 16px;
  outline: none;
}
.comment-form input:focus { border-color: var(--pink); }

.gift-bar { padding: 16px; }
.gift-bar .credits { display: flex; justify-content: space-between; align-items: center; font-size: 0.88rem; margin-bottom: 14px; color: var(--muted); }
.gift-bar .credits b { color: var(--gold); font-size: 1.05rem; }
.gift-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gift {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 6px;
  text-align: center;
  cursor: pointer;
  transition: 0.18s;
}
.gift:hover { background: var(--surface-3); transform: translateY(-3px); border-color: rgba(240, 180, 41, 0.5); }
.gift .g-emoji { font-size: 1.5rem; display: block; }
.gift .g-name { font-size: 0.72rem; display: block; margin-top: 4px; }
.gift .g-price { font-size: 0.72rem; color: var(--gold); font-weight: 700; }
.gift-float { position: fixed; font-size: 2.6rem; pointer-events: none; z-index: 1300; animation: giftUp 2.4s ease-out forwards; }
@keyframes giftUp { 0% { transform: translateY(0) scale(0.6); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-320px) scale(1.5) rotate(14deg); opacity: 0; } }

/* ---------- Explore ---------- */
.explore-tabs { display: flex; gap: 10px; margin-bottom: 26px; flex-wrap: wrap; }
.explore-tab {
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.92rem;
  transition: 0.18s;
  color: var(--muted);
}
.explore-tab.on { background: var(--pink); color: #fff; border-color: var(--pink); }
.explore-panel { display: none; }
.explore-panel.on { display: block; animation: fadeIn 0.3s; }

.sugar-roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.sugar-role {
  padding: 24px 18px;
  text-align: center;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: 0.2s;
}
.sugar-role:hover, .sugar-role.on { background: var(--blue-dim); border-color: rgba(46, 139, 242, 0.5); transform: translateY(-4px); }
.sugar-role .em { font-size: 2rem; display: block; margin-bottom: 8px; color: var(--gold); }
.sugar-role b { font-size: 0.98rem; }
.sugar-note {
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(240, 180, 41, 0.07);
  border: 1px solid rgba(240, 180, 41, 0.3);
  color: #ffe3a8;
  font-size: 0.9rem;
  margin-bottom: 26px;
  display: flex; gap: 12px;
}
.profile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.mini-profile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: 0.2s;
}
.mini-profile:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.mini-profile .mp-photo { height: 160px; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 3rem; font-weight: 900; color: rgba(255,255,255,.3); position: relative; background: var(--surface-3); }
.mini-profile .mp-photo .verified-badge { position: absolute; top: 10px; right: 10px; }
.mini-profile .mp-body { padding: 15px; }
.mini-profile .mp-body b { font-size: 1rem; display: block; }
.mini-profile .mp-body small { color: var(--muted); font-size: 0.82rem; display: block; margin-bottom: 10px; }
.mini-profile .mp-body .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }

.comm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.comm-card {
  padding: 24px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: 0.2s;
}
.comm-card:hover { background: var(--surface-2); transform: translateY(-4px); }
.comm-card .em { font-size: 1.9rem; margin-bottom: 10px; display: block; color: var(--blue); }
.comm-card b { display: block; font-size: 1.05rem; margin-bottom: 6px; }
.comm-card small { color: var(--muted); font-size: 0.84rem; }
.comm-card .members { display: block; margin-top: 12px; color: var(--pink); font-size: 0.8rem; font-weight: 700; }

.gate {
  padding: 50px 34px;
  text-align: center;
  border-radius: 24px;
  background: var(--surface);
  border: 1px dashed rgba(255, 77, 106, 0.5);
}
.gate .lock { font-size: 3rem; display: block; margin-bottom: 14px; color: var(--danger); }
.gate h3 { font-size: 1.5rem; margin-bottom: 10px; }
.gate p { color: var(--muted); max-width: 560px; margin: 0 auto 22px; font-size: 0.93rem; }
.gate .rules { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.gate .rules span { font-size: 0.8rem; background: var(--surface-2); border: 1px solid var(--border); padding: 8px 14px; border-radius: 99px; }

.adult-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.creator-card {
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}
.creator-card .cc-photo { height: 170px; display: flex; align-items: center; justify-content: center; font-size: 2.6rem; font-weight: 900; position: relative; background: var(--surface-3); color: rgba(255,255,255,.3); }
.creator-card .cc-photo .sub-pill { position: absolute; bottom: 10px; left: 10px; background: rgba(0,0,0,.7); font-size: 0.72rem; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--border-strong); color: var(--gold); }
.creator-card .cc-body { padding: 15px; }
.creator-card .cc-body b { display: block; }
.creator-card .cc-body small { color: var(--muted); font-size: 0.82rem; display: block; margin-bottom: 12px; }
.blurred-content {
  height: 110px;
  border-radius: 12px;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 12px;
  border: 1px solid var(--border);
}

/* ---------- Home view ---------- */
.home-hero {
  padding: 34px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-top: 4px solid var(--pink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.home-hero h2 { font-size: 1.9rem; margin-bottom: 6px; }
.home-hero p { color: var(--muted); font-size: 0.95rem; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card { padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.stat-card .em { color: var(--blue); }
.stat-card:nth-child(even) .em { color: var(--pink); }
.stat-card b { display: block; font-size: 1.6rem; font-family: var(--display); margin-top: 6px; }
.stat-card small { color: var(--muted); font-size: 0.8rem; }
.home-cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; }
.panel { padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.panel h4 { font-size: 1.05rem; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; }
.panel h4 a { font-size: 0.8rem; color: var(--pink); font-family: var(--font); font-weight: 700; cursor: pointer; }
.mini-list { display: flex; flex-direction: column; gap: 14px; }
.mini-row { display: flex; gap: 12px; align-items: center; }
.mini-row .mr-main { flex: 1; min-width: 0; }
.mini-row b { font-size: 0.93rem; display: block; }
.mini-row small { color: var(--muted); font-size: 0.8rem; }

/* ---------- Match drawer content ---------- */
.match-visual { display: flex; justify-content: center; gap: 14px; margin: 8px 0 4px; }
.match-visual .avatar { border: 3px solid var(--bg-2); }
.match-title { font-size: 2rem; text-align: center; color: var(--pink); font-family: var(--display); font-weight: 900; }
.match-sub { text-align: center; color: var(--muted); font-size: 0.95rem; }
.match-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-cards { height: 430px; max-width: 560px; }
  .feature-grid, .safety { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .discover-layout { grid-template-columns: 1fr; }
  .filters-panel { position: static; }
  .stream-layout { grid-template-columns: 1fr; }
  .sugar-roles { grid-template-columns: repeat(2, 1fr); }
  .home-cols { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .app-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    top: auto;
    height: auto;
    flex-direction: row;
    justify-content: space-around;
    border-right: none;
    border-top: 1px solid var(--border);
    padding: 8px;
    z-index: 95;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(16px);
  }
  .app-nav a { flex-direction: column; gap: 3px; font-size: 0.72rem; padding: 8px 10px; }
  .app-nav .nav-foot { display: none; }
  .app-main { padding-bottom: 100px; }
  .chats-layout { grid-template-columns: 1fr; height: auto; }
  .chat-list { max-height: 300px; border-right: none; border-bottom: 1px solid var(--border); }
  .chat-pane { min-height: 480px; }
}

@media (max-width: 720px) {
  .nav, .header-actions .btn-ghost { display: none; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    padding: 14px;
  }
  .hamburger { display: block; }
  .feature-grid, .safety, .steps { grid-template-columns: 1fr; }
  .form-grid, .choice-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 30px 22px; }
  .hero { padding: 56px 0 70px; }
  section.block { padding: 60px 0; }
  .deck { height: 500px; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .sugar-roles { grid-template-columns: 1fr 1fr; }
  .side-stack { width: calc(100vw - 24px); right: 12px; top: 12px; }
}

/* ---------- Locked app ---------- */
body.locked * { user-select: none; }
.devtools-block {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: none;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 30px;
}
.devtools-block.show { display: flex; }
.devtools-block h2 { font-size: 1.6rem; margin-bottom: 10px; }
.devtools-block p { color: var(--muted); max-width: 460px; }
