/* ============================================================
   LUCKMATE — app.css  v4.0
   Nigerian Dating App · Light + Dark Mode · PWA-ready
   Clean white base · Deep Pink accent · Dark Purple depth
   320px → 1920px · iOS safe areas · Installable PWA
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700;1,900&family=DM+Sans:wght@400;500;600;700;800&display=swap');

/* ══════════════════════════════════════════════════════════
   CSS VARIABLES — LIGHT MODE (default)
══════════════════════════════════════════════════════════ */
:root {
  /* ── Brand ── */
  --pink:           #E91E8C;
  --pink-hover:     #C8177A;
  --pink-light:     #FF6BB5;
  --pink-dim:       rgba(233,30,140,0.08);
  --pink-dim2:      rgba(233,30,140,0.14);
  --pink-border:    rgba(233,30,140,0.22);
  --purple:         #1A0A2E;
  --purple-mid:     #3D1F6B;
  --purple-soft:    rgba(26,10,46,0.06);

  /* ── Accent ── */
  --gold:           #F59E0B;
  --gold-dim:       rgba(245,158,11,0.10);
  --gold-border:    rgba(245,158,11,0.22);
  --green:          #16A34A;
  --green-dim:      rgba(22,163,74,0.10);
  --blue:           #3B82F6;
  --blue-dim:       rgba(59,130,246,0.10);
  --red-err:        #EF4444;

  /* ── Surfaces ── */
  --bg:             #F5F5F7;
  --surface:        #FFFFFF;
  --surface-2:      #F0F0F3;
  --surface-3:      #E4E4EA;
  --surface-4:      #D8D8E0;
  --overlay:        rgba(255,255,255,0.94);

  /* ── Text ── */
  --text-1:         #0D0D12;
  --text-2:         #3C3C4A;
  --text-3:         #7C7C8E;
  --text-4:         #ABABBC;
  --text-inv:       #FFFFFF;

  /* ── Borders ── */
  --border-1:       rgba(0,0,0,0.08);
  --border-2:       rgba(0,0,0,0.05);
  --border-pink:    rgba(233,30,140,0.22);

  /* ── Shadows ── */
  --shadow-xs:      0 1px 3px rgba(0,0,0,0.06);
  --shadow-sm:      0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:      0 6px 24px rgba(0,0,0,0.10);
  --shadow-lg:      0 16px 56px rgba(0,0,0,0.13);
  --shadow-card:    0 8px 32px rgba(0,0,0,0.12);
  --shadow-pink:    0 6px 24px rgba(233,30,140,0.28);
  --shadow-nav:     0 -1px 0 rgba(0,0,0,0.06), 0 -4px 16px rgba(0,0,0,0.04);

  /* ── Layout ── */
  --top-h:          58px;
  --bottom-h:       68px;
  --radius-xs:      6px;
  --radius-sm:      10px;
  --radius-md:      14px;
  --radius-lg:      20px;
  --radius-xl:      28px;
  --radius-full:    999px;

  /* ── Safe Areas (iOS notch/home bar) ── */
  --sat: env(safe-area-inset-top,    0px);
  --sar: env(safe-area-inset-right,  0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left,   0px);

  --top-total:    calc(var(--top-h) + var(--sat));
  --bottom-total: calc(var(--bottom-h) + var(--sab));

  /* ── Typography ── */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* ── Motion ── */
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:  cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast:     140ms;
  --dur-base:     240ms;
  --dur-slow:     380ms;
}

/* ══════════════════════════════════════════════════════════
   DARK MODE
══════════════════════════════════════════════════════════ */
[data-theme="dark"] {
  --bg:             #0D0D12;
  --surface:        #18181F;
  --surface-2:      #22222C;
  --surface-3:      #2E2E3C;
  --surface-4:      #3A3A4C;
  --overlay:        rgba(18,18,26,0.96);

  --text-1:         #F2F2F7;
  --text-2:         #C0C0D0;
  --text-3:         #7878A0;
  --text-4:         #4C4C68;

  --border-1:       rgba(255,255,255,0.08);
  --border-2:       rgba(255,255,255,0.04);

  --shadow-xs:      0 1px 3px rgba(0,0,0,0.3);
  --shadow-sm:      0 2px 8px rgba(0,0,0,0.35);
  --shadow-md:      0 6px 24px rgba(0,0,0,0.45);
  --shadow-lg:      0 16px 56px rgba(0,0,0,0.55);
  --shadow-card:    0 8px 32px rgba(0,0,0,0.5);
  --shadow-nav:     0 -1px 0 rgba(255,255,255,0.05), 0 -4px 16px rgba(0,0,0,0.3);

  --pink-dim:       rgba(233,30,140,0.12);
  --pink-dim2:      rgba(233,30,140,0.20);
  --purple-soft:    rgba(100,60,180,0.12);
  --gold-dim:       rgba(245,158,11,0.12);
  --green-dim:      rgba(22,163,74,0.12);
  --blue-dim:       rgba(59,130,246,0.12);
}

/* ══════════════════════════════════════════════════════════
   RESET
══════════════════════════════════════════════════════════ */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overscroll-behavior-y: contain;
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-1);
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-user-select: none;
  user-select: none;
  transition: background var(--dur-base), color var(--dur-base);
}
input, textarea, [contenteditable] { -webkit-user-select: text; user-select: text; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
button, input, select, textarea { -webkit-appearance: none; appearance: none; }

/* ══════════════════════════════════════════════════════════
   APP SHELL
══════════════════════════════════════════════════════════ */
.app-shell {
  display: flex;
  flex-direction: column;
  height: 100vh; height: 100dvh;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--border-1);
}

/* Desktop two-column */
/* ── Desktop 3-column layout ── */
body.desktop-layout {
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: #0f0f17;
  min-height: 100vh;
  overflow: hidden;
}
.desktop-left {
  display: none;
  width: 220px;
  flex-shrink: 0;
  flex-direction: column;
  padding: 24px 14px;
  background: var(--surface);
  border-right: 1px solid var(--border-1);
  height: 100vh;
  overflow-y: auto;
}
.desktop-right {
  display: none;
  width: 260px;
  flex-shrink: 0;
  flex-direction: column;
  padding: 16px 14px;
  background: var(--surface);
  border-left: 1px solid var(--border-1);
  height: 100vh;
  overflow-y: auto;
}
@media (min-width: 960px) {
  .desktop-left { display: flex; }
  .app-shell {
    flex-shrink: 0;
    width: 420px;
    max-width: 420px;
    border-radius: 0;
    box-shadow: none;
    border-left: 1px solid var(--border-1);
    border-right: 1px solid var(--border-1);
  }
}
@media (min-width: 1200px) {
  .desktop-right { display: flex; }
}
.sidebar-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: var(--radius-md);
  font-size: 15px; font-weight: 700; color: var(--text-2);
  cursor: pointer; transition: background var(--dur-base), color var(--dur-base);
  margin-bottom: 2px; width: 100%; text-align: left;
}
.sidebar-nav-item:hover  { background: var(--surface-2); color: var(--text-1); }
.sidebar-nav-item.active { background: var(--pink-dim); color: var(--pink); }
.sidebar-nav-item .nav-icon { font-size: 20px; width: 28px; text-align: center; flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════
   TOP BAR
══════════════════════════════════════════════════════════ */
.top-bar {
  height: var(--top-total);
  display: flex; align-items: flex-end;
  padding-top: var(--sat); padding-bottom: 10px;
  padding-left: 18px; padding-right: 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-1);
  flex-shrink: 0; z-index: 200; position: relative; gap: 10px;
  transition: background var(--dur-base), border-color var(--dur-base);
}
.top-bar__logo {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 900;
  letter-spacing: -0.5px; line-height: 1;
  color: var(--text-1); font-style: italic;
}
.top-bar__logo em { font-style: italic; color: var(--pink); }
.top-bar__spacer { flex: 1; }
.top-bar__actions { display: flex; align-items: center; gap: 6px; }
.top-bar__icon-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); border-radius: 50%; font-size: 17px;
  position: relative;
  transition: background var(--dur-base), transform var(--dur-fast);
  flex-shrink: 0; cursor: pointer; color: var(--text-1);
  border: 1px solid var(--border-1);
}
.top-bar__icon-btn:hover  { background: var(--surface-3); }
.top-bar__icon-btn:active { transform: scale(0.90); }
.top-bar__badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 16px; height: 16px;
  background: var(--pink); border-radius: var(--radius-full);
  font-size: 9px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--surface); padding: 0 3px; line-height: 1; color: white;
}
.top-bar__coins {
  display: flex; align-items: center; gap: 5px;
  background: var(--gold-dim); border: 1px solid var(--gold-border);
  border-radius: var(--radius-full); padding: 6px 12px 6px 10px;
  font-size: 13px; font-weight: 800; color: var(--gold);
  cursor: pointer;
  transition: background var(--dur-base), transform var(--dur-fast);
  white-space: nowrap;
}
.top-bar__coins:hover  { background: rgba(245,158,11,0.16); }
.top-bar__coins:active { transform: scale(0.95); }
.theme-toggle-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); border-radius: 50%;
  border: 1px solid var(--border-1); cursor: pointer; font-size: 17px;
  transition: background var(--dur-base), transform var(--dur-fast);
  flex-shrink: 0;
}
.theme-toggle-btn:active { transform: scale(0.90); }

/* Boost strip */
.boost-strip {
  display: none; align-items: center; gap: 10px;
  padding: 8px 16px;
  background: linear-gradient(90deg, var(--blue-dim), var(--pink-dim));
  border-bottom: 1px solid rgba(59,130,246,0.14);
  font-size: 13px; flex-shrink: 0;
  animation: slideDown 0.3s var(--ease-out);
}
.boost-strip.show { display: flex; }
.boost-strip__time { margin-left: auto; font-weight: 800; color: var(--blue); font-variant-numeric: tabular-nums; }

/* PWA Install Banner */
.pwa-install-banner {
  display: none; align-items: center; gap: 12px;
  background: linear-gradient(135deg, var(--purple), var(--purple-mid));
  padding: 12px 16px; flex-shrink: 0;
  animation: slideDown 0.4s var(--ease-out);
}
.pwa-install-banner.show { display: flex; }
.pwa-install-banner__icon { font-size: 22px; flex-shrink: 0; }
.pwa-install-banner__text { flex: 1; font-size: 13px; font-weight: 700; color: white; line-height: 1.3; }
.pwa-install-banner__text small { font-weight: 500; opacity: 0.8; font-size: 11px; display: block; }
.pwa-install-banner__btn {
  background: white; color: var(--purple); border: none;
  border-radius: var(--radius-full); padding: 7px 14px;
  font-size: 12px; font-weight: 800; cursor: pointer; flex-shrink: 0;
  transition: transform var(--dur-fast);
}
.pwa-install-banner__btn:active { transform: scale(0.95); }
.pwa-install-banner__close {
  color: rgba(255,255,255,0.7); font-size: 18px;
  cursor: pointer; flex-shrink: 0; padding: 2px;
}

/* ══════════════════════════════════════════════════════════
   SCREENS
══════════════════════════════════════════════════════════ */
.screens {
  flex: 1; position: relative;
  overflow: hidden; min-height: 0;
}
.screen {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  opacity: 0; pointer-events: none;
  transform: translateY(6px);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
  overflow: hidden;
}
.screen.active { opacity: 1; pointer-events: auto; transform: translateY(0); }
.screen__scroll {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain;
  scrollbar-width: thin; scrollbar-color: var(--border-1) transparent;
}
.screen__scroll::-webkit-scrollbar { width: 3px; }
.screen__scroll::-webkit-scrollbar-track { background: transparent; }
.screen__scroll::-webkit-scrollbar-thumb { background: var(--border-1); border-radius: 2px; }

/* ══════════════════════════════════════════════════════════
   BOTTOM NAVIGATION
══════════════════════════════════════════════════════════ */
.bottom-nav {
  height: var(--bottom-total);
  display: flex; align-items: flex-start;
  padding-top: 6px; padding-bottom: var(--sab);
  background: var(--surface); border-top: 1px solid var(--border-1);
  flex-shrink: 0; z-index: 200; box-shadow: var(--shadow-nav);
  transition: background var(--dur-base);
}
@media (min-width: 960px) { .bottom-nav { display: none; } .screens { flex: 1; } }
.bottom-nav__item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px; padding: 4px 4px; cursor: pointer;
  color: var(--text-4);
  transition: color var(--dur-base), transform var(--dur-fast);
  position: relative; border: none; background: none; min-height: 44px;
}
.bottom-nav__item:active { transform: scale(0.88); }
.bottom-nav__item.active { color: var(--pink); }
.bottom-nav__item.active .bottom-nav__icon { transform: scale(1.12); }
.bottom-nav__item.active::before {
  content: '';
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 18px; height: 3px;
  background: var(--pink);
  border-radius: 0 0 3px 3px;
}
.bottom-nav__icon {
  font-size: 22px; line-height: 1; position: relative;
  transition: transform var(--dur-base) var(--ease-spring);
}
.bottom-nav__label { font-size: 10px; font-weight: 700; letter-spacing: 0.1px; line-height: 1; }
.bottom-nav__badge {
  position: absolute; top: 2px; right: calc(50% - 16px);
  width: 8px; height: 8px; background: var(--pink);
  border-radius: 50%; border: 2px solid var(--surface);
}
/* ══════════════════════════════════════════════════════════
   DISCOVER SCREEN — Badoo style
══════════════════════════════════════════════════════════ */

/* The discover-screen fills the entire .screen container */
.discover-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
}

/* Filter chips — normal flow at top */
.filter-row {
  display: flex; gap: 7px; padding: 8px 14px 6px;
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  flex-shrink: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border-1);
  z-index: 2;
}
.filter-row::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--surface); border: 1.5px solid var(--border-1);
  border-radius: var(--radius-full); padding: 5px 13px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
  cursor: pointer; transition: all var(--dur-base);
  flex-shrink: 0; color: var(--text-2); min-height: 30px;
  box-shadow: var(--shadow-xs);
}
.chip:hover, .chip.active { background: var(--pink-dim); border-color: var(--pink-border); color: var(--pink); }
.chip--filter { background: var(--pink); border-color: var(--pink); color: white; box-shadow: var(--shadow-pink); }
.chip--filter:hover { background: var(--pink-hover); }

/* Swipe progress — hidden */
.swipe-progress { display: none; }
.swipe-bar, .swipe-bar__fill { display: none; }
.swipe-count { display: none; }

/* Card stack — fills all remaining height, no padding */
.card-stack {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 0;
}

/* ── CARD — full bleed like Badoo ── */
.pcard {
  position: absolute;
  inset: 0;
  border-radius: 0;
  overflow: hidden;
  background: #111;
  will-change: transform;
  transform-origin: 50% 100%;
  -webkit-user-drag: none;
  touch-action: none;
}
/* Only the top card is full-bleed, cards behind peek with slight scale */
.pcard--top  { z-index: 3; cursor: grab; border-radius: 0; }
.pcard--top:active { cursor: grabbing; }
.pcard--mid  { z-index: 2; transform: scale(0.97) translateY(6px); pointer-events: none; transition: transform 0.35s var(--ease-out); border-radius: 12px; overflow: hidden; }
.pcard--back { z-index: 1; transform: scale(0.94) translateY(12px); pointer-events: none; transition: transform 0.35s var(--ease-out); border-radius: 12px; overflow: hidden; }

/* Photo fills card */
.pcard__img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; pointer-events: none; -webkit-touch-callout: none;
  user-select: none;
}

/* Photo nav dots — top of card */
.pcard__dots {
  position: absolute; top: 8px; left: 8px; right: 8px;
  display: flex; gap: 4px; z-index: 5; pointer-events: none;
}
.pcard__dot {
  flex: 1; height: 3px; background: rgba(255,255,255,0.4);
  border-radius: 2px; transition: background 0.2s;
  cursor: pointer; pointer-events: auto;
}
.pcard__dot.on { background: white; }

/* Tap zones for photo navigation */
.pcard__tap-prev, .pcard__tap-next {
  position: absolute; top: 0; bottom: 0; width: 40%; z-index: 4;
}
.pcard__tap-prev { left: 0; }
.pcard__tap-next { right: 0; }

/* Deep gradient at bottom */
.pcard__grad {
  position: absolute; bottom: 0; left: 0; right: 0; height: 65%;
  background: linear-gradient(to top,
    rgba(0,0,0,0.92) 0%,
    rgba(0,0,0,0.65) 35%,
    rgba(0,0,0,0.20) 65%,
    transparent 100%);
  pointer-events: none; z-index: 3;
}

/* Name/info overlay — bottom of card */
.pcard__info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 14px 16px 16px; z-index: 4;
}
.pcard__name {
  font-family: var(--font-display);
  font-size: clamp(24px, 6.5vw, 30px); font-weight: 900;
  line-height: 1.1; color: white; font-style: italic;
  display: flex; align-items: center; gap: 8px; margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.pcard__verified {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; background: var(--pink);
  border-radius: 50%; font-size: 11px; flex-shrink: 0; color: white;
}
.pcard__meta {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 6px; font-size: 13px; color: rgba(255,255,255,0.85);
  margin-bottom: 6px; font-weight: 600;
}
.pcard__meta-sep { color: rgba(255,255,255,0.3); font-size: 10px; }
.pcard__bio {
  font-size: 13px; color: rgba(255,255,255,0.72); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: 7px;
}
.pcard__tags { display: flex; gap: 5px; flex-wrap: wrap; }
.pcard__tag {
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-full); padding: 3px 10px;
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.9); white-space: nowrap;
  backdrop-filter: blur(4px);
}
.pcard__tag--tribe  { background: rgba(233,30,140,0.28); border-color: rgba(233,30,140,0.45); color: #FFB0D8; }
.pcard__tag--intent { background: rgba(245,158,11,0.22); border-color: rgba(245,158,11,0.4); color: #FFD88A; }

/* Swipe stamps */
.pcard__stamp {
  position: absolute; top: 28px;
  font-size: 20px; font-weight: 900; padding: 6px 14px;
  border-radius: 8px; border: 3px solid; letter-spacing: 2px;
  text-transform: uppercase; opacity: 0; pointer-events: none; z-index: 10; transition: opacity 0.08s;
}
.pcard__stamp--like  { left: 16px; color:#16A34A; border-color:#16A34A; background:rgba(22,163,74,0.1); transform:rotate(-12deg); }
.pcard__stamp--nope  { right: 16px; color:#EF4444; border-color:#EF4444; background:rgba(239,68,68,0.1); transform:rotate(12deg); }
.pcard__stamp--super { top:auto; bottom:40%; left:50%; transform:translateX(-50%); color:#3B82F6; border-color:#3B82F6; background:rgba(59,130,246,0.1); }

/* Expand button (↑ to open full profile sheet) */
.pcard__expand-btn {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; background: rgba(0,0,0,0.45); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; cursor: pointer; z-index: 6; color: white;
  border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(8px);
  transition: background 0.2s;
}
.pcard__expand-btn:hover { background: rgba(0,0,0,0.65); }

/* Online badge */
.pcard__online-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px; padding: 4px 10px;
  font-size: 11px; font-weight: 700; color: white;
  display: flex; align-items: center; gap: 5px; z-index: 6;
  backdrop-filter: blur(8px);
}
.pcard__online-dot { width: 7px; height: 7px; background: #16A34A; border-radius: 50%; flex-shrink: 0; }

/* ── ACTION BUTTONS — sit below card, part of discover-screen ── */
.action-row {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(10px, 3.5vw, 18px);
  padding: clamp(10px, 2.5vw, 14px) 16px clamp(12px, 3vw, 16px);
  flex-shrink: 0;
  background: var(--bg);
  border-top: 1px solid var(--border-1);
}
.action-btn {
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 2px solid; cursor: pointer;
  position: relative; flex-shrink: 0; background: var(--surface);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.action-btn:active { transform: scale(0.84) !important; }
.action-btn--sm  { width: clamp(44px,11vw,52px);  height: clamp(44px,11vw,52px);  font-size: clamp(18px,4.5vw,22px); }
.action-btn--lg  { width: clamp(58px,14vw,68px);  height: clamp(58px,14vw,68px);  font-size: clamp(24px,5.5vw,30px); }
.action-btn--undo      { border-color: rgba(245,158,11,0.35); color: var(--gold); }
.action-btn--nope      { border-color: rgba(239,68,68,0.35);  color: #EF4444; }
.action-btn--superlike { border-color: rgba(59,130,246,0.35); color: #3B82F6; }
.action-btn--like      { border-color: var(--pink-border);    color: var(--pink); }
.action-btn--boost     { border-color: rgba(59,130,246,0.35); color: #3B82F6; }
.action-btn--nope:active      { background: rgba(239,68,68,0.1); }
.action-btn--like:active      { background: rgba(233,30,140,0.1); }
.action-btn--superlike:active { background: rgba(59,130,246,0.1); }
.action-btn__cost {
  position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%);
  font-size: 9px; font-weight: 800; color: var(--gold);
  white-space: nowrap; pointer-events: none;
}

/* Empty card state */
.card-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; height: 100%; padding: 32px 24px; text-align: center;
}
.card-state__icon  { font-size: 60px; margin-bottom: 16px; }
.card-state__title { font-family: var(--font-display); font-size: 24px; font-weight: 900; margin-bottom: 10px; color: var(--text-1); font-style: italic; }
.card-state__body  { font-size: 15px; color: var(--text-3); line-height: 1.7; max-width: 280px; margin-bottom: 24px; }

/* Stories row — in Chats screen */
.stories-row { display: flex; gap: 10px; padding: 12px 16px; overflow-x: auto; scrollbar-width: none; background: var(--surface); border-bottom: 1px solid var(--border-1); flex-shrink: 0; }
.stories-row::-webkit-scrollbar { display: none; }
.story-bubble { display: flex; flex-direction: column; align-items: center; gap: 5px; flex-shrink: 0; cursor: pointer; width: 60px; }
.story-bubble__ring { width: 56px; height: 56px; border-radius: 50%; padding: 2.5px; background: linear-gradient(135deg, var(--pink), var(--purple-mid), #FF6BB5); position: relative; }
.story-bubble__ring--seen { background: var(--surface-3); }
.story-bubble__img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface); }
.story-bubble__add { position: absolute; bottom: -1px; right: -1px; width: 18px; height: 18px; background: var(--pink); border-radius: 50%; border: 2px solid var(--surface); display: flex; align-items: center; justify-content: center; font-size: 12px; color: white; font-weight: 900; }
.story-bubble__name { font-size: 10px; font-weight: 700; color: var(--text-2); text-align: center; max-width: 58px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

   MATCHES / CHATS SCREEN
══════════════════════════════════════════════════════════ */
.matches-screen-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 10px; flex-shrink: 0;
  background: var(--surface); border-bottom: 1px solid var(--border-1);
}
.matches-screen-title {
  font-family: var(--font-display); font-size: 22px; font-weight: 900;
  color: var(--text-1); font-style: italic;
}
.likes-strip { padding: 14px 16px 8px; flex-shrink: 0; background: var(--surface); }
.likes-strip__label {
  font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--text-3); margin-bottom: 12px;
}
.bubbles-row {
  display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none;
  padding-bottom: 2px; -webkit-overflow-scrolling: touch;
}
.bubbles-row::-webkit-scrollbar { display: none; }
.bubble {
  display: flex; flex-direction: column; align-items: center;
  gap: 5px; flex-shrink: 0; cursor: pointer; width: 64px;
}
.bubble__img-wrap { position: relative; width: 58px; height: 58px; }
.bubble__img {
  width: 58px; height: 58px; border-radius: 50%; object-fit: cover;
  border: 2.5px solid var(--pink); transition: transform var(--dur-base);
}
.bubble:active .bubble__img { transform: scale(0.92); }
.bubble__dot {
  position: absolute; top: 0; right: 0;
  width: 12px; height: 12px; background: var(--pink);
  border-radius: 50%; border: 2px solid var(--surface);
}
.bubble__online {
  position: absolute; bottom: 2px; right: 2px;
  width: 12px; height: 12px; background: var(--green);
  border-radius: 50%; border: 2px solid var(--surface);
}
.bubble__name {
  font-size: 11px; font-weight: 700; color: var(--text-2);
  text-align: center; max-width: 62px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.messages-section-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px 8px; background: var(--bg);
}
.messages-section-label { font-size: 13px; font-weight: 800; color: var(--text-2); }
.sort-btn {
  font-size: 12px; font-weight: 700; color: var(--pink);
  cursor: pointer; background: none; border: none;
  display: flex; align-items: center; gap: 4px;
}
.new-match-card {
  margin: 0 14px 8px; background: var(--surface);
  border-radius: var(--radius-lg); padding: 14px 16px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-1);
}
.new-match-card__row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.new-match-card__avatar {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--pink); flex-shrink: 0;
}
.new-match-card__body { flex: 1; min-width: 0; }
.new-match-card__name { font-size: 15px; font-weight: 800; color: var(--text-1); }
.new-match-card__sub  { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.new-match-card__btns { display: flex; gap: 8px; }
.new-match-card__btns .btn { flex: 1; font-size: 14px; padding: 9px 16px; min-height: 40px; }
.conv-list { background: var(--bg); }
.conv-item {
  display: flex; align-items: center; gap: 13px;
  padding: 12px 18px; cursor: pointer;
  background: var(--surface); border-bottom: 1px solid var(--border-2);
  transition: background var(--dur-fast); min-height: 72px;
}
.conv-item:hover, .conv-item:active { background: var(--surface-2); }
.conv-item__avatar-wrap { position: relative; flex-shrink: 0; }
.conv-item__avatar { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.conv-item__online {
  position: absolute; bottom: 0; right: 0;
  width: 13px; height: 13px; background: var(--green);
  border-radius: 50%; border: 2px solid var(--surface);
}
.conv-item__unread-dot {
  position: absolute; top: 0; right: 0;
  width: 12px; height: 12px; background: var(--pink);
  border-radius: 50%; border: 2px solid var(--surface);
}
.conv-item__body { flex: 1; min-width: 0; }
.conv-item__row1 { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3px; }
.conv-item__name    { font-size: 15px; font-weight: 800; color: var(--text-1); }
.conv-item__time    { font-size: 11px; color: var(--text-3); flex-shrink: 0; font-weight: 600; }
.conv-item__preview {
  font-size: 13px; color: var(--text-3); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 220px; font-weight: 500;
}
.conv-item__preview.unread { color: var(--text-1); font-weight: 700; }
.conv-item__badge {
  min-width: 20px; height: 20px; background: var(--pink);
  border-radius: var(--radius-full); font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px; flex-shrink: 0; color: white;
}
.conv-item__star { font-size: 16px; color: var(--text-4); flex-shrink: 0; cursor: pointer; padding: 4px; }

/* ══════════════════════════════════════════════════════════
   CHAT SCREEN
══════════════════════════════════════════════════════════ */
.chat-screen {
  position: absolute;
  inset: 0;
  z-index: 400;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  transform: translateX(102%);
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
}
.chat-screen.open {
  transform: translateX(0);
}
.chat-topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px; padding-top: calc(10px + var(--sat));
  background: var(--surface); border-bottom: 1px solid var(--border-1);
  flex-shrink: 0; min-height: calc(58px + var(--sat)); box-shadow: var(--shadow-sm);
}
.chat-back {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--text-1); cursor: pointer;
  flex-shrink: 0; border-radius: 50%; transition: background var(--dur-base);
}
.chat-back:hover { background: var(--surface-2); }
.chat-topbar__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--pink); flex-shrink: 0; }
.chat-topbar__info { flex: 1; min-width: 0; }
.chat-topbar__name   { font-size: 15px; font-weight: 800; line-height: 1.2; color: var(--text-1); }
.chat-topbar__status { font-size: 12px; color: var(--green); font-weight: 600; }
.chat-topbar__actions { display: flex; gap: 6px; }
.chat-action-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); border-radius: 50%; font-size: 16px; color: var(--text-1);
  cursor: pointer; transition: background var(--dur-base); border: none; flex-shrink: 0;
}
.chat-action-btn:hover { background: var(--surface-3); }
.chat-msgs {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch; padding: 14px 14px 6px;
  display: flex; flex-direction: column; gap: 5px;
  scroll-behavior: smooth; overscroll-behavior-y: contain;
  scrollbar-width: thin; scrollbar-color: var(--border-1) transparent;
  background: var(--bg);
}
.msg-row { display: flex; flex-direction: column; max-width: 76%; animation: msgSlide 0.2s var(--ease-out); }
.msg-row--them { align-self: flex-start; }
.msg-row--me   { align-self: flex-end; }
@keyframes msgSlide { from{opacity:0;transform:translateY(5px)} to{opacity:1;transform:none} }
.msg-bubble { padding: 9px 14px; font-size: 14px; line-height: 1.55; word-break: break-word; white-space: pre-wrap; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.msg-row--them .msg-bubble {
  background: var(--surface); border-radius: 4px 18px 18px 18px;
  color: var(--text-1); box-shadow: var(--shadow-xs); border: 1px solid var(--border-1);
}
.msg-row--me .msg-bubble { background: var(--pink); border-radius: 18px 18px 4px 18px; color: white; }
.msg-time { font-size: 10px; color: var(--text-3); padding: 2px 4px; font-variant-numeric: tabular-nums; font-weight: 600; }
.msg-row--me .msg-time { text-align: right; }
.msg-read { color: var(--pink); font-size: 11px; }
.msg-system {
  align-self: center; background: var(--surface-2);
  border-radius: var(--radius-full); padding: 4px 14px;
  font-size: 11px; color: var(--text-3); text-align: center; max-width: 90%; font-weight: 600;
}
.voice-bubble { display: flex; align-items: center; gap: 8px; padding: 10px 12px; min-width: 160px; }
.voice-play {
  width: 30px; height: 30px; background: var(--pink-dim); border-radius: 50%; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--pink); font-size: 12px; flex-shrink: 0;
}
.voice-wave { flex: 1; height: 22px; display: flex; align-items: center; gap: 2px; }
.voice-wave span { display: block; width: 3px; min-height: 3px; background: var(--pink-border); border-radius: 2px; animation: waveAnim 1.2s ease-in-out infinite; }
.voice-wave span:nth-child(1){animation-delay:0s;height:5px}.voice-wave span:nth-child(2){animation-delay:.1s;height:12px}.voice-wave span:nth-child(3){animation-delay:.2s;height:18px}.voice-wave span:nth-child(4){animation-delay:.3s;height:10px}.voice-wave span:nth-child(5){animation-delay:.4s;height:6px}.voice-wave span:nth-child(6){animation-delay:.5s;height:15px}.voice-wave span:nth-child(7){animation-delay:.6s;height:8px}
@keyframes waveAnim { 0%,80%,100%{transform:scaleY(1)} 40%{transform:scaleY(1.8)} }
.voice-dur { font-size: 11px; color: var(--text-3); font-weight: 600; }
.typing-row { display: none; align-items: center; gap: 3px; padding: 4px 16px 8px; }
.typing-row.show { display: flex; }
.typing-dot { width: 7px; height: 7px; background: var(--text-3); border-radius: 50%; animation: typingBounce 1.3s ease-in-out infinite; }
.typing-dot:nth-child(2){animation-delay:0.15s}.typing-dot:nth-child(3){animation-delay:0.30s}
@keyframes typingBounce { 0%,60%,100%{transform:translateY(0)} 30%{transform:translateY(-7px)} }
.chat-bar {
  display: flex; align-items: flex-end; gap: 7px;
  padding: 9px 12px; padding-bottom: max(9px, var(--sab));
  background: var(--surface); border-top: 1px solid var(--border-1);
  flex-shrink: 0; box-shadow: var(--shadow-nav);
}
.chat-field {
  flex: 1; background: var(--surface-2); border: 1.5px solid var(--border-1);
  border-radius: 22px; padding: 10px 16px; color: var(--text-1);
  font-family: var(--font-body); font-size: max(14px,16px); outline: none;
  resize: none; max-height: 110px; min-height: 40px; line-height: 1.45;
  transition: border-color var(--dur-base), background var(--dur-base);
}
@supports (-webkit-touch-callout: none) { .chat-field { font-size: 16px; } }
.chat-field:focus { border-color: var(--pink-border); background: var(--surface); }
.chat-field::placeholder { color: var(--text-4); }
.chat-btn {
  width: 38px; height: 38px; border-radius: 50%; border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; cursor: pointer;
  transition: transform var(--dur-base), box-shadow var(--dur-base);
  flex-shrink: 0; color: var(--text-2);
}
.chat-btn:active { transform: scale(0.88); }
.chat-btn--emoji { background: var(--surface-2); border: 1.5px solid var(--border-1); }
.chat-btn--voice { background: none; border: none; color: var(--text-3); width: 32px; height: 32px; font-size: 20px; }
.chat-btn--voice.recording { background: rgba(239,68,68,0.08); border-color: #EF4444; color: #EF4444; animation: recPulse 1s ease-in-out infinite; }
.chat-btn--send { background: var(--pink); color: white; box-shadow: var(--shadow-pink); }
.chat-btn--send:hover { box-shadow: 0 6px 20px rgba(233,30,140,0.4); transform: scale(1.06); }
.chat-btn--send:disabled { opacity: 0.35; transform: none; box-shadow: none; }
@keyframes recPulse { 0%,100%{box-shadow:none} 50%{box-shadow:0 0 0 7px rgba(239,68,68,0.1)} }

/* ══════════════════════════════════════════════════════════
   SHEETS & MODALS
══════════════════════════════════════════════════════════ */
.sheet-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  z-index: 500; display: none;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.sheet-backdrop.show { display: block; }
.profile-sheet {
  position: fixed; bottom: 0; left: 0; right: 0;
  max-width: 480px; margin: 0 auto;
  background: var(--surface); border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  z-index: 501; transform: translateY(100%);
  transition: transform 0.4s var(--ease-spring);
  padding-bottom: var(--sab); max-height: 92vh; max-height: 92dvh;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.profile-sheet.open { transform: translateY(0); }
.sheet-handle {
  width: 36px; height: 4px; background: var(--surface-3);
  border-radius: 2px; margin: 10px auto 0; flex-shrink: 0;
}
@media (min-width: 960px) {
  .profile-sheet {
    border-radius: var(--radius-xl); bottom: auto; top: 50%; left: 50%;
    transform: translate(-50%, -40%); max-height: 85vh; opacity: 0;
    transition: transform 0.35s var(--ease-spring), opacity 0.25s;
  }
  .profile-sheet.open { transform: translate(-50%, -50%); opacity: 1; }
}
.modal { position: fixed; inset: 0; z-index: 700; display: none; align-items: flex-end; justify-content: center; }
.modal.open { display: flex; }
@media (min-width: 640px) { .modal { align-items: center; } }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal__sheet {
  position: relative; width: 100%; max-width: 480px;
  background: var(--surface); border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding-bottom: max(20px, var(--sab)); max-height: 92vh; max-height: 92dvh;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  animation: sheetUp 0.35s var(--ease-spring);
}
@media (min-width: 640px) { .modal__sheet { border-radius: var(--radius-xl); max-height: 88vh; animation: popIn 0.3s var(--ease-spring); } }
@keyframes sheetUp { from{transform:translateY(100%)} to{transform:translateY(0)} }
.modal__handle { width: 36px; height: 4px; background: var(--surface-3); border-radius: 2px; margin: 10px auto 0; }
.modal__header { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px 10px; }
.modal__title { font-family: var(--font-display); font-size: 20px; font-weight: 900; color: var(--text-1); font-style: italic; }
.modal__close {
  width: 32px; height: 32px; background: var(--surface-2); border-radius: 50%; border: none;
  color: var(--text-2); font-size: 15px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background var(--dur-base);
}
.modal__close:hover { background: var(--surface-3); }
.modal__body { padding: 0 20px; }
.modal__footer { padding: 16px 20px 4px; display: flex; gap: 10px; }
.modal__footer .btn { flex: 1; }
.filter-group { margin-bottom: 18px; }
.filter-label {
  font-size: 13px; font-weight: 800; color: var(--text-2); margin-bottom: 9px;
  display: flex; justify-content: space-between; align-items: center;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.filter-label span { color: var(--pink); font-weight: 700; text-transform: none; letter-spacing: 0; font-size: 14px; }
.pill-toggle-group { display: flex; gap: 6px; }
.pill-toggle {
  flex: 1; padding: 9px 10px; border-radius: var(--radius-full);
  border: 1.5px solid var(--border-1); background: var(--surface-2);
  color: var(--text-2); font-size: 13px; font-weight: 700; cursor: pointer;
  transition: all var(--dur-base); text-align: center; min-height: 40px;
  display: flex; align-items: center; justify-content: center;
}
.pill-toggle.active { background: var(--purple); border-color: var(--purple); color: white; }
.tag-group { display: flex; flex-wrap: wrap; gap: 7px; }
.ftag {
  padding: 7px 14px; border-radius: var(--radius-full);
  background: var(--surface-2); border: 1.5px solid var(--border-1);
  font-size: 13px; font-weight: 600; cursor: pointer; color: var(--text-2);
  transition: all var(--dur-base); min-height: 36px; display: inline-flex; align-items: center;
}
.ftag.on { background: var(--pink-dim); border-color: var(--pink-border); color: var(--pink); }
.fselect {
  width: 100%; background: var(--surface-2); border: 1.5px solid var(--border-1);
  border-radius: var(--radius-md); padding: 12px 16px; color: var(--text-1);
  font-family: var(--font-body); font-size: 14px; font-weight: 600; outline: none;
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='rgba(0,0,0,0.3)' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 36px; min-height: 46px;
}
.fselect option { background: white; color: var(--text-1); }
.fselect:focus { border-color: var(--pink-border); background: var(--surface); }
[data-theme="dark"] .fselect { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='rgba(255,255,255,0.3)' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); }
[data-theme="dark"] .fselect option { background: #22222C; color: #F2F2F7; }
.range-wrap { position: relative; padding: 8px 0; }
input[type="range"] { width: 100%; height: 4px; appearance: none; -webkit-appearance: none; background: var(--surface-3); border-radius: 2px; outline: none; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--purple); box-shadow: var(--shadow-md); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--purple); border: none; box-shadow: var(--shadow-md); cursor: pointer; }
.toggle-wrap { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border-2); }
.toggle-wrap:last-child { border-bottom: none; }
.toggle-label { font-size: 14px; font-weight: 600; color: var(--text-1); }
.toggle { width: 46px; height: 26px; background: var(--surface-3); border-radius: var(--radius-full); position: relative; cursor: pointer; transition: background 0.25s; flex-shrink: 0; }
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle.on { background: var(--pink); }
.toggle__knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: white; border-radius: 50%; transition: transform 0.25s var(--ease-spring); box-shadow: 0 1px 4px rgba(0,0,0,0.2); }
.toggle.on .toggle__knob { transform: translateX(20px); }
.boost-list { display: flex; flex-direction: column; gap: 10px; }
.boost-opt { display: flex; align-items: center; gap: 12px; background: var(--surface-2); border: 2px solid var(--border-1); border-radius: var(--radius-lg); padding: 14px 16px; cursor: pointer; transition: border-color var(--dur-base), background var(--dur-base); min-height: 64px; }
.boost-opt.on { border-color: var(--pink); background: var(--pink-dim); }
.boost-opt__icon { font-size: 26px; flex-shrink: 0; }
.boost-opt__info { flex: 1; }
.boost-opt__name { font-size: 14px; font-weight: 800; margin-bottom: 2px; color: var(--text-1); }
.boost-opt__desc { font-size: 12px; color: var(--text-3); }
.boost-opt__price { font-size: 14px; font-weight: 800; color: var(--gold); white-space: nowrap; }
.coins-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.coin-card { background: var(--surface-2); border: 2px solid var(--border-1); border-radius: var(--radius-lg); padding: 14px 8px; text-align: center; cursor: pointer; position: relative; transition: border-color var(--dur-base), background var(--dur-base); min-height: 88px; }
.coin-card.on { border-color: var(--gold); background: var(--gold-dim); }
.coin-card__badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--gold); color: white; padding: 2px 9px; border-radius: var(--radius-full); font-size: 9px; font-weight: 800; white-space: nowrap; }
.coin-card__amount { font-family: var(--font-display); font-size: 20px; font-weight: 900; color: var(--gold); font-style: italic; }
.coin-card__price  { font-size: 12px; color: var(--text-3); margin-top: 3px; font-weight: 600; }
.plan-card { background: var(--surface-2); border: 2px solid var(--border-1); border-radius: var(--radius-lg); padding: 18px; cursor: pointer; margin-bottom: 11px; position: relative; transition: border-color var(--dur-base), background var(--dur-base); }
.plan-card.on { border-color: var(--pink); background: var(--pink-dim); }
.plan-card__badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--pink); color: white; padding: 3px 14px; border-radius: var(--radius-full); font-size: 11px; font-weight: 800; white-space: nowrap; }
.plan-card__row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.plan-card__name  { font-size: 15px; font-weight: 800; color: var(--text-1); }
.plan-card__price { font-family: var(--font-display); font-size: 26px; font-weight: 900; color: var(--pink); line-height: 1; font-style: italic; }
.plan-card__price small { font-size: 13px; font-family: var(--font-body); color: var(--text-3); font-style: normal; }
.plan-features { display: flex; flex-direction: column; gap: 5px; }
.plan-feature { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-2); }
.plan-feature::before { content: '✓'; color: var(--green); font-weight: 800; flex-shrink: 0; }
.gift-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.gift-card { background: var(--surface-2); border: 2px solid var(--border-1); border-radius: var(--radius-md); padding: 12px 6px; text-align: center; cursor: pointer; transition: border-color var(--dur-base), background var(--dur-base); min-height: 72px; }
.gift-card.on { border-color: var(--pink); background: var(--pink-dim); }
.gift-card__icon { font-size: 26px; margin-bottom: 4px; }
.gift-card__name { font-size: 11px; font-weight: 700; margin-bottom: 2px; color: var(--text-2); }
.gift-card__coins { font-size: 10px; color: var(--gold); font-weight: 700; }
.balance-row { display: flex; align-items: center; justify-content: space-between; background: var(--surface-2); border-radius: var(--radius-md); padding: 12px 14px; margin: 14px 0; font-size: 13px; font-weight: 600; color: var(--text-2); }
.balance-row span:last-child { font-weight: 800; color: var(--gold); }

/* ══════════════════════════════════════════════════════════
   MATCH OVERLAY
══════════════════════════════════════════════════════════ */
.match-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: none; flex-direction: column;
  align-items: center; justify-content: center;
  background: var(--overlay); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: clamp(24px, 6vw, 48px); text-align: center; overflow: hidden;
}
.match-overlay.show { display: flex; }
.match-overlay::before { content: ''; position: absolute; width: 340px; height: 340px; background: radial-gradient(circle, var(--pink-dim2) 0%, transparent 70%); border-radius: 50%; animation: matchGlow 2s ease-in-out infinite; pointer-events: none; }
@keyframes matchGlow { 0%,100%{transform:scale(1)} 50%{transform:scale(1.12)} }
.match-title { font-family: var(--font-display); font-size: clamp(36px, 10vw, 56px); font-weight: 900; line-height: 1; margin-bottom: 10px; color: var(--pink); font-style: italic; animation: popIn 0.6s var(--ease-spring) both; position: relative; z-index: 1; }
.match-sub { font-size: 16px; color: var(--text-3); font-weight: 600; margin-bottom: 36px; animation: fadeUp 0.5s var(--ease-out) 0.25s both; position: relative; z-index: 1; }
.match-avatars { display: flex; align-items: center; justify-content: center; margin-bottom: 36px; animation: popIn 0.65s var(--ease-spring) 0.1s both; position: relative; z-index: 1; }
.match-avatar { width: clamp(88px, 22vw, 110px); height: clamp(88px, 22vw, 110px); border-radius: 50%; object-fit: cover; border: 4px solid white; box-shadow: var(--shadow-lg); flex-shrink: 0; }
.match-avatar--you  { transform: translateX(22px); z-index: 1; }
.match-avatar--them { transform: translateX(-22px); }
.match-heart { font-size: 34px; z-index: 2; animation: heartbeat 1s ease-in-out infinite; position: relative; margin: 0 -6px; }
.match-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 320px; animation: fadeUp 0.5s var(--ease-out) 0.45s both; position: relative; z-index: 1; }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 999; display: none; }

/* ══════════════════════════════════════════════════════════
   PROFILE SCREEN
══════════════════════════════════════════════════════════ */
.profile-header-card { background: var(--surface); border-bottom: 1px solid var(--border-1); padding: 20px 18px 18px; flex-shrink: 0; }
.profile-avatar-row { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.profile-avatar-wrap { position: relative; flex-shrink: 0; }
.profile-avatar { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 3px solid white; box-shadow: var(--shadow-md); }
.profile-completeness-ring { position: absolute; bottom: -2px; right: -2px; background: var(--green); color: white; font-size: 9px; font-weight: 800; padding: 2px 5px; border-radius: var(--radius-full); border: 2px solid var(--surface); }
.profile-name-col { flex: 1; min-width: 0; }
.profile-name { font-family: var(--font-display); font-size: 22px; font-weight: 900; color: var(--text-1); line-height: 1.1; font-style: italic; }
.profile-badge-row { display: flex; align-items: center; gap: 7px; margin-top: 5px; flex-wrap: wrap; }
.profile-status-badge { display: flex; align-items: center; gap: 4px; background: var(--surface-2); border: 1.5px solid var(--border-1); border-radius: var(--radius-full); padding: 3px 9px; font-size: 12px; font-weight: 700; color: var(--text-2); }
.profile-location-badge { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--text-3); }
.prog-wrap { margin-bottom: 0; }
.prog-label { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--text-2); margin-bottom: 6px; }
.prog-label span { color: var(--green); font-weight: 800; }
.prog-bar { height: 5px; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.prog-fill { height: 100%; border-radius: 3px; background: var(--green); transition: width 0.7s var(--ease-out); }
.stat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.stat-box { background: var(--surface-2); border: 1px solid var(--border-1); border-radius: var(--radius-md); padding: 13px 8px; text-align: center; }
.stat-box__val { font-family: var(--font-display); font-size: 22px; font-weight: 900; color: var(--pink); line-height: 1; font-style: italic; }
.stat-box__lbl { font-size: 11px; color: var(--text-3); margin-top: 3px; font-weight: 600; }
.section-card { background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--border-1); overflow: hidden; margin: 0 14px 12px; box-shadow: var(--shadow-xs); }
.section-card-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-3); padding: 14px 16px 8px; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--border-2); cursor: pointer; color: var(--text-1); text-decoration: none; background: var(--surface); transition: background var(--dur-fast); }
.list-row:last-child { border-bottom: none; }
.list-row:hover, .list-row:active { background: var(--surface-2); }
.list-row__icon { width: 36px; height: 36px; background: var(--surface-2); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; border: 1px solid var(--border-1); }
.list-row__body { flex: 1; min-width: 0; }
.list-row__title { font-size: 14px; font-weight: 700; color: var(--text-1); }
.list-row__sub   { font-size: 12px; color: var(--text-3); margin-top: 1px; font-weight: 500; }
.list-row__arrow { color: var(--text-4); font-size: 18px; flex-shrink: 0; }
.list-row__value { font-size: 13px; color: var(--text-3); font-weight: 600; flex-shrink: 0; }

/* Premium banner */
.premium-banner {
  margin: 0 14px 12px;
  background: linear-gradient(135deg, var(--purple), #6D28D9, var(--pink));
  border-radius: var(--radius-lg); padding: 18px 16px; color: white;
  position: relative; overflow: hidden;
}
.premium-banner::before { content: ''; position: absolute; top: -20px; right: -20px; width: 100px; height: 100px; background: rgba(255,255,255,0.06); border-radius: 50%; pointer-events: none; }
.premium-banner__title { font-family: var(--font-display); font-size: 18px; font-weight: 900; margin-bottom: 6px; font-style: italic; }
.premium-banner__badge { background: rgba(255,255,255,0.15); border-radius: var(--radius-full); padding: 5px 14px; font-size: 12px; font-weight: 700; display: inline-block; margin-bottom: 12px; }
.premium-banner__features { display: flex; flex-direction: column; gap: 6px; }
.premium-banner__feat { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; opacity: 0.95; }

/* Badges */
.badges-row { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 0 4px; }
.badge-pill { display: inline-flex; align-items: center; gap: 4px; background: var(--surface-2); border: 1px solid var(--border-1); border-radius: var(--radius-full); padding: 4px 10px; font-size: 11px; font-weight: 700; color: var(--text-2); white-space: nowrap; }
.badge-pill--earned { background: var(--pink-dim); border-color: var(--pink-border); color: var(--pink); }
.badge-pill--gold { background: var(--gold-dim); border-color: var(--gold-border); color: var(--gold); }

/* ══════════════════════════════════════════════════════════
   SHARED COMPONENTS
══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 12px 24px; border-radius: var(--radius-full);
  font-family: var(--font-body); font-size: 15px; font-weight: 800;
  cursor: pointer; border: none; white-space: nowrap;
  transition: transform var(--dur-fast), box-shadow var(--dur-base), background var(--dur-base);
  min-height: 46px; -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.95); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }
.btn--pink, .btn--red { background: var(--pink); color: white; box-shadow: var(--shadow-pink); }
.btn--pink:hover, .btn--red:hover { background: var(--pink-hover); box-shadow: 0 10px 36px rgba(233,30,140,0.4); transform: translateY(-1px); }
.btn--purple, .btn--dark { background: var(--purple); color: white; }
.btn--purple:hover, .btn--dark:hover { background: var(--purple-mid); }
.btn--outline { background: transparent; color: var(--text-1); border: 2px solid var(--border-1); }
.btn--outline:hover { background: var(--surface-2); }
.btn--ghost { background: var(--surface-2); color: var(--text-1); border: 1.5px solid var(--border-1); }
.btn--ghost:hover { background: var(--surface-3); }
.btn--gold { background: var(--gold); color: white; }
.btn--gold:hover { background: #d97706; }
.btn--full { width: 100%; }
.btn--sm { padding: 8px 16px; font-size: 13px; min-height: 36px; }
.btn--lg { padding: 14px 32px; font-size: 16px; min-height: 50px; }
.badge { display: inline-flex; align-items: center; gap: 3px; padding: 3px 9px; border-radius: var(--radius-full); font-size: 11px; font-weight: 800; line-height: 1; }
.badge--pink, .badge--red { background: var(--pink-dim); color: var(--pink); }
.badge--gold  { background: var(--gold-dim);  color: var(--gold); }
.badge--green { background: var(--green-dim); color: var(--green); }
.badge--blue  { background: var(--blue-dim);  color: var(--blue); }
.notif-banner { display: flex; align-items: center; gap: 12px; background: var(--surface-2); border: 1px solid var(--border-1); border-radius: var(--radius-lg); padding: 13px 15px; margin: 0 0 12px; cursor: pointer; transition: background var(--dur-base); }
.notif-banner:hover { background: var(--surface-3); }
.notif-banner__icon { width: 38px; height: 38px; background: var(--pink-dim); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.notif-banner__body { flex: 1; font-size: 13px; color: var(--text-2); line-height: 1.4; font-weight: 600; }
.notif-banner__arrow { color: var(--text-4); font-size: 18px; }
.p-section { padding: 0 16px 16px; }
.divider { height: 1px; background: var(--border-2); }
.toast {
  position: fixed;
  bottom: calc(var(--bottom-total) + 12px);
  left: 50%; transform: translateX(-50%) translateY(10px);
  background: var(--purple); color: white;
  border-radius: var(--radius-full); padding: 10px 20px;
  font-size: 14px; font-weight: 700; z-index: 900; opacity: 0;
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
  white-space: nowrap; max-width: calc(100vw - 32px);
  box-shadow: var(--shadow-lg); pointer-events: none; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (min-width: 960px) { .toast { bottom: 24px; } }
.likes-page-header { padding: 20px 18px 14px; background: var(--surface); border-bottom: 1px solid var(--border-1); }
.likes-page-title { font-family: var(--font-display); font-size: 22px; font-weight: 900; color: var(--text-1); margin-bottom: 4px; font-style: italic; }
.likes-page-sub { font-size: 14px; color: var(--text-3); font-weight: 600; }
.likes-cta-btn { display: block; background: var(--purple); color: white; border-radius: var(--radius-full); padding: 13px 20px; font-size: 15px; font-weight: 800; text-align: center; margin: 14px 0; cursor: pointer; transition: background var(--dur-base), transform var(--dur-fast); min-height: 46px; }
.likes-cta-btn:hover { background: var(--purple-mid); }
.likes-cta-btn:active { transform: scale(0.97); }
.likes-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border-1); padding: 0 18px; background: var(--surface); }
.likes-tab { flex: 1; padding: 11px 8px 9px; font-size: 13px; font-weight: 800; color: var(--text-3); cursor: pointer; border-bottom: 2px solid transparent; text-align: center; display: flex; align-items: center; justify-content: center; gap: 5px; transition: color var(--dur-base), border-color var(--dur-base); }
.likes-tab.active { color: var(--text-1); border-bottom-color: var(--pink); }
.likes-tab .lock { font-size: 11px; }
.likes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; }
.likes-grid-item { position: relative; aspect-ratio: 3/4; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; background: var(--surface-2); }
.likes-grid-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.likes-grid-item--blur img { filter: blur(18px) scale(1.05); }
.likes-grid-item__time { position: absolute; bottom: 8px; left: 8px; background: rgba(0,0,0,0.55); color: white; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: var(--radius-full); display: flex; align-items: center; gap: 4px; }
.likes-grid-item__actions { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.likes-grid-item__btn { width: 36px; height: 36px; border-radius: 50%; background: white; border: none; display: flex; align-items: center; justify-content: center; font-size: 15px; cursor: pointer; box-shadow: var(--shadow-md); transition: transform var(--dur-fast); }
.likes-grid-item__btn:active { transform: scale(0.88); }
.likes-upgrade-card { background: var(--surface); border-radius: var(--radius-lg); border: 1.5px solid var(--border-1); padding: 18px; text-align: center; aspect-ratio: 3/4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.likes-upgrade-card__icon { font-size: 28px; }
.likes-upgrade-card__title { font-size: 13px; font-weight: 800; color: var(--text-1); line-height: 1.3; }
.likes-upgrade-card__price { font-size: 11px; color: var(--text-3); font-weight: 600; }
.settings-section { margin: 0 14px 12px; }
.settings-section-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-3); padding: 12px 4px 8px; }
.settings-card { background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--border-1); overflow: hidden; box-shadow: var(--shadow-xs); }
.sort-option { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; cursor: pointer; border-bottom: 1px solid var(--border-2); transition: background var(--dur-fast); }
.sort-option:last-child { border-bottom: none; }
.sort-option:hover { background: var(--surface-2); }
.sort-option.active { background: var(--pink-dim); }
.sort-option__label { font-size: 15px; font-weight: 700; color: var(--text-1); }
.sort-option__radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sort-option.active .sort-option__radio { border-color: var(--pink); background: var(--pink); }
.sort-option.active .sort-option__radio::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: white; }
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-sm); }

/* ══════════════════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════════════════ */
@keyframes popIn     { from{opacity:0;transform:scale(0.6)} to{opacity:1;transform:scale(1)} }
@keyframes fadeUp    { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:none} }
@keyframes slideDown { from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:none} }
@keyframes heartbeat { 0%,100%{transform:scale(1)} 50%{transform:scale(1.22)} }
@keyframes floatBob  { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
@keyframes spin      { to{transform:rotate(360deg)} }
@keyframes shimmer   { 0%{background-position:-200% 0} 100%{background-position:200% 0} }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 374px) {
  .top-bar__coins { padding: 5px 8px; font-size: 12px; }
  .pcard__name    { font-size: 20px; }
  .action-btn--lg { width: 54px; height: 54px; font-size: 22px; }
  .action-btn--sm { width: 42px; height: 42px; font-size: 17px; }
  .match-avatar   { width: 80px; height: 80px; }
  .match-title    { font-size: 32px; }
  .coins-grid     { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 428px) { .filter-row { padding: 10px 16px 8px; } .chat-field { font-size: 15px; } }
@media (min-width: 640px) and (max-width: 959px) {
  body { background: var(--surface-2); display: flex; align-items: center; justify-content: center; }
  .app-shell { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); max-height: 92vh; max-height: 92dvh; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .card-stack { padding-top: 2px; }
  .action-row { padding: 6px 16px 8px; }
  .action-btn--lg { width: 52px; height: 52px; font-size: 22px; }
  .swipe-progress, .filter-row { display: none; }
}
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .top-bar, .bottom-nav, .conv-item { border-width: 0.5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
@media (display-mode: standalone) {
  .top-bar { padding-top: calc(var(--sat) + 4px); }
}
