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

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

:root {
  --bg-primary: #0a0a0c;
  --bg-secondary: #111114;
  --bg-card: #16161a;
  --bg-elevated: #1c1c21;
  --bg-hover: #222228;
  --text-primary: #eaeaed;
  --text-secondary: #8e8e96;
  --text-muted: #5a5a62;
  --accent-rose: #e8566d;
  --accent-rose-hover: #d4455c;
  --accent-gold: #d4a853;
  --accent-gold-dim: #b8923f;
  --online-green: #34d399;
  --danger: #ef4444;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  --shadow-card: 0 2px 12px rgba(0,0,0,.4);
  --shadow-elevated: 0 8px 32px rgba(0,0,0,.6);
  --transition: 180ms ease;
  --font-body: 'DM Sans', sans-serif;
  --font-display: 'Playfair Display', serif;

  /* Mobile viewport + fixed chrome (JS updates --vvh) */
  --header-h: 64px;
  --tab-h: 68px;
  --vvh: 100dvh;
  --window-inner-h: 100vh;
  --bottom-tabs-total-h: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px));
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100%;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
input, textarea { font-family: inherit; outline: none; border: none; background: none; color: inherit; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2a2a30; border-radius: 3px; }

/* ─── Header ─── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  background: rgba(10,10,12,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.header-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 600;
  letter-spacing: -.02em;
}
.header-logo .logo-icon {
  width: 32px; height: 32px;
  border-radius: 0;
  object-fit: cover;
}
.header-nav { display: flex; align-items: center; gap: 6px; }
.header-nav-item {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: .875rem; font-weight: 500;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
  position: relative;
}
.header-nav-item:hover, .header-nav-item.active { color: var(--text-primary); background: var(--bg-elevated); }
.header-nav-item .nav-badge {
  position: absolute; top: 4px; right: 8px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent-rose);
  font-size: .65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.header-right { display: flex; align-items: center; gap: 16px; }
.coin-balance {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 10px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  font-size: .875rem; font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}
.coin-balance:hover { background: var(--bg-hover); }
.flame-icon {
  width: 28px; height: 28px;
  flex-shrink: 0;
  pointer-events: none;
}
.flame-icon-pkg {
  width: 32px; height: 32px;
  flex-shrink: 0;
  pointer-events: none;
}
.coin-plus {
  margin-left: 4px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent-rose);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 600;
  color: #fff;
  transition: transform var(--transition);
}
.coin-balance:hover .coin-plus { transform: scale(1.1); }
.header-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-hover);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  overflow: hidden;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.header-avatar:hover { background: var(--bg-elevated); color: var(--text-primary); transform: translateY(-1px); }
.header-avatar-icon { display: block; }
.header-avatar-img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.header-avatar.has-image .header-avatar-icon { display: none; }
.header-avatar.has-image .header-avatar-img { display: block; }

/* ─── Account Panel ─── */
/* ─── Account Panel ─── */
.account-scrim {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
.account-scrim.open {
  opacity: 1;
  pointer-events: auto;
}
.account-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  width: min(410px, 100vw);
  padding: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,0) 220px),
    var(--bg-secondary);
  border-left: 1px solid rgba(255,255,255,.08);
  box-shadow: -24px 0 80px rgba(0,0,0,.62);
  transform: translateX(100%);
  transition: transform 260ms cubic-bezier(.2,.82,.2,1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.account-panel.open {
  transform: translateX(0);
}
.account-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  background: var(--bg-secondary);
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
  z-index: 2;
}
.account-kicker {
  display: block;
  color: var(--accent-rose);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.account-panel h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  margin: 0;
}
.account-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.06);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}
.account-close:hover { color: var(--text-primary); background: rgba(255,255,255,.1); }
.account-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.account-card {
  flex-shrink: 0;
  padding: 22px;
  border-radius: 22px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.075);
  text-align: center;
}
.account-photo {
  width: 104px;
  height: 104px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(232,86,109,.56), rgba(212,168,83,.34));
  color: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.14);
}
.account-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.account-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
}
.account-email {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: .86rem;
  word-break: break-word;
}
.account-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 40px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  margin-top: 14px;
  transition: all 0.2s ease;
}
.account-secondary-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
}
.account-stats {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 8px 0;
}
.account-stats div {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.065);
}
.account-stats span {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text-primary);
  line-height: 1;
}
.account-stats small {
  display: block;
  margin-top: 5px;
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.account-section {
  flex-shrink: 0;
  padding: 14px 0 16px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.account-section:first-of-type {
  border-top: none;
}
.account-section-title {
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.account-bio-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}
.account-interest-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.account-interest-list span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.075);
  color: var(--text-secondary);
  font-size: .8rem;
  font-weight: 700;
}
.account-prompts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.account-prompt-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.account-prompt-card-q {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-rose);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.account-prompt-card-a {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}
.account-primary,
.account-verify-btn,
.account-signout {
  flex-shrink: 0;
  width: 100%;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.2s ease;
}
.account-primary,
.account-signout {
  height: 48px;
}
.account-primary {
  background: var(--accent-rose);
  color: #fff;
  box-shadow: 0 12px 34px rgba(232,86,109,.28);
  margin-top: 8px;
}
.account-primary:hover {
  background: #f06277;
  transform: translateY(-1px);
}
.account-verify-btn {
  min-height: 58px;
  margin-top: 10px;
  padding: 9px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: #fff;
  color: #101014;
  box-shadow: 0 10px 28px rgba(255,255,255,.1);
}
.account-verify-btn span {
  font-size: .92rem;
  line-height: 1.1;
}
.account-verify-btn small {
  color: rgba(16,16,20,.62);
  font-size: .68rem;
  font-weight: 800;
  line-height: 1.1;
}
.account-verify-btn:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(255,255,255,.15);
}
.account-verify-btn:disabled {
  cursor: not-allowed;
  background: rgba(255,255,255,.08);
  color: var(--text-muted);
  box-shadow: none;
}
.account-verify-btn:disabled small {
  color: var(--text-muted);
}
.account-signout {
  margin-top: 10px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--text-secondary);
}
.account-signout:hover { color: var(--text-primary); background: rgba(255,255,255,.08); }

/* ─── Edit Profile Sub-View ─── */
.account-edit-view {
  position: absolute;
  inset: 0;
  z-index: 100;
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(100%);
  transition: transform 300ms cubic-bezier(0.2, 0.82, 0.2, 1);
}
.account-edit-view.open {
  transform: translateX(0);
}
.edit-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-secondary);
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}
.edit-panel-head h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
}
.edit-back-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.06);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}
.edit-back-btn:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,.1);
}
.edit-save-btn {
  background: transparent;
  border: none;
  color: var(--accent-rose);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.edit-save-btn:hover {
  background: rgba(232,86,109,.1);
}
.edit-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.edit-section {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.edit-label {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.edit-label-sub {
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 6px;
}
.edit-label-desc {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: -4px;
  margin-bottom: 8px;
  line-height: 1.4;
}
.edit-photo-preview-container {
  display: flex;
  justify-content: center;
  margin: 10px 0;
}
.edit-photo-preview {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid var(--accent-rose);
  box-shadow: 0 0 20px rgba(232,86,109,0.3);
  overflow: hidden;
  background: linear-gradient(145deg, rgba(232,86,109,.56), rgba(212,168,83,.34));
  display: flex;
  align-items: center;
  justify-content: center;
}
.edit-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.edit-photo-preview svg {
  width: 48px;
  height: 48px;
  color: rgba(255,255,255,0.7);
}

.edit-input,
.edit-textarea,
.edit-select {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}
.edit-input:focus,
.edit-textarea:focus,
.edit-select:focus {
  outline: none;
  background: rgba(255,255,255,0.08);
  border-color: var(--accent-rose);
  box-shadow: 0 0 0 3px rgba(232,86,109,0.15);
}
.edit-textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.5;
}
.edit-char-counter {
  align-self: flex-end;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.edit-form-row {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.edit-form-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.edit-interests-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.edit-interest-chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.edit-interest-chip:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
  transform: translateY(-1px);
}
.edit-interest-chip.selected {
  background: linear-gradient(135deg, var(--accent-rose), #ff8a65);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(232,86,109,0.3);
}
.edit-prompt-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
}
.edit-prompt-row select {
  font-weight: 700;
}
.edit-prompt-row input {
  font-size: 0.9rem;
}

/* ─── Layout ─── */
.header-left { display: flex; align-items: center; gap: 12px; }

.sidebar-toggle-btn {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}
.sidebar-toggle-btn:hover { background: var(--bg-elevated); color: var(--text-primary); }
.sidebar-toggle-btn.active { color: var(--text-primary); background: var(--bg-elevated); }

.app-layout {
  display: flex;
  padding-top: var(--header-h);
  min-height: 100%;
}

/* ── sidebar base ── */
.sidebar {
  width: 300px;
  min-width: 300px;
  height: calc(100vh - 64px);
  position: sticky; top: 64px;
  overflow-y: auto;
  background: var(--bg-secondary);
  border-right: 1px solid rgba(255,255,255,.04);
  display: flex; flex-direction: column;
  transition: width 220ms ease, min-width 220ms ease, opacity 200ms ease, transform 220ms ease;
  z-index: 50;
}

/* ── collapsed: sidebar shrinks out of the flex flow ── */
.sidebar-collapsed .sidebar {
  width: 0;
  min-width: 0;
  opacity: 0;
  overflow: hidden;
  border: none;
  pointer-events: none;
}

/* ── on profile page: sidebar floats over the content ── */
.profile-open .sidebar {
  position: fixed;
  top: 64px; left: 0;
  width: 300px;
  min-width: 300px;
  height: calc(100vh - 64px);
  transform: translateX(-100%);
  opacity: 1;
  border-right: 1px solid rgba(255,255,255,.04);
  box-shadow: 4px 0 32px rgba(0,0,0,.6);
}
.profile-open .sidebar.overlay-open {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}

/* scrim behind the overlaid sidebar */
.sidebar-scrim {
  display: none;
  position: fixed; inset: 64px 0 0 0;
  z-index: 49;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(2px);
}
.profile-open .sidebar-scrim.visible { display: block; }

.main-content {
  flex: 1;
  width: 100%;
  padding: 28px 32px;
  max-width: 1200px;
  overflow: hidden;
  background: var(--bg-primary);
}
.sidebar-collapsed .main-content {
  max-width: none;
  flex: 1 1 100%;
}
.main-content.chat-open,
.main-content.view-chat {
  padding: 0;
  display: flex;
  flex-direction: column;
}
.main-content.view-matches,
.main-content.view-live,
.main-content.view-swipe,
.main-content.view-profile,
.main-content.view-verification {
  max-width: none;
  padding: 0;
  flex: 1 1 100%;
}
.main-content.view-matches,
.main-content.view-live,
.main-content.view-swipe,
.main-content.view-verification {
  min-height: calc(100vh - 64px);
  overflow: hidden;
}
.main-content.view-matches .messages-view,
.main-content.view-live .messages-view,
.main-content.view-swipe .messages-view,
.main-content.view-discover .messages-view,
.main-content.view-profile .messages-view,
.main-content.view-verification .messages-view,
.main-content.view-chat .messages-view,
.main-content.chat-open .messages-view {
  display: none !important;
}
.main-content:not(.view-messages) .inbox-empty {
  display: none !important;
  pointer-events: none !important;
}
.main-content.view-live .live-view {
  display: flex !important;
}
.main-content.view-matches .matches-view {
  display: block !important;
}
.main-content.view-live,
.main-content.view-matches,
.main-content.view-swipe,
.main-content.view-messages,
.main-content.view-verification {
  background:
    linear-gradient(180deg, rgba(255,255,255,.015), rgba(255,255,255,0) 180px),
    var(--bg-primary);
}

/* ─── Sidebar Sections ─── */
.sidebar-section { padding: 16px 16px 8px; }
.sidebar-section-title {
  font-size: .7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.chat-list { flex: 1; overflow-y: auto; padding: 0 8px 16px; }
.chat-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition);
  position: relative;
}
.chat-item:hover { background: var(--bg-hover); }
.chat-item.active-chat { background: rgba(232,86,109,.08); }
.chat-item.active-chat .chat-name { color: var(--accent-rose); }
.chat-item.unread .chat-name { color: var(--text-primary); font-weight: 600; }
.chat-item.unread .chat-preview { color: var(--text-primary); }
.chat-avatar-wrap { position: relative; flex-shrink: 0; }
.chat-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.chat-online-dot {
  position: absolute; bottom: 1px; right: 1px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--online-green);
  border: 2px solid var(--bg-secondary);
}
.chat-info { flex: 1; min-width: 0; }
.chat-name-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chat-name { font-size: .875rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-time { font-size: .7rem; color: var(--text-muted); flex-shrink: 0; }
.chat-preview {
  font-size: .78rem; color: var(--text-secondary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 2px;
}
.chat-unread-badge {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-rose);
  flex-shrink: 0;
}
.sidebar-search {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  margin: 0 16px 8px;
}
.sidebar-search input { flex: 1; font-size: .85rem; }
.sidebar-search input::placeholder { color: var(--text-muted); }
.sidebar-search .search-icon { color: var(--text-muted); font-size: .85rem; }

/* ─── Main: Section Headers ─── */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 600;
  letter-spacing: -.01em;
}
.section-subtitle { font-size: .85rem; color: var(--text-secondary); margin-top: 2px; }
.section-action {
  font-size: .8rem; font-weight: 500;
  color: var(--accent-rose);
  cursor: pointer;
  transition: opacity var(--transition);
}
.section-action:hover { opacity: .8; }

/* ─── Online Now Strip ─── */
.online-strip {
  display: flex; gap: 14px;
  overflow-x: auto;
  padding: 0 0 20px;
  scrollbar-width: none;
  margin-bottom: 28px;
}
.online-strip::-webkit-scrollbar { display: none; }
.online-user {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
}
.online-avatar-wrap {
  position: relative;
  width: 64px; height: 64px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, var(--accent-rose), var(--accent-gold));
  transition: transform var(--transition);
}
.online-user:hover .online-avatar-wrap { transform: scale(1.08); }
.online-avatar-wrap img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg-primary);
}
.online-avatar-wrap .pulse-ring {
  position: absolute; bottom: 2px; right: 2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--online-green);
  border: 2px solid var(--bg-primary);
}
.online-user-name { font-size: .72rem; color: var(--text-secondary); font-weight: 500; }

/* ─── Profile Cards Grid ─── */
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 36px;
}
.profile-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.profile-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-elevated); }
.profile-card-img {
  width: 100%;
  aspect-ratio: 3 / 3.6;
  object-fit: cover;
  display: block;
}
.profile-card-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 48px 16px 14px;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, transparent 100%);
}
.profile-card-name {
  font-size: 1rem; font-weight: 600;
  display: flex; align-items: center; gap: 0;
}
.profile-card-name .age { font-weight: 700; color: #fff; margin-left: 6px; }
.profile-card-name .verified-badge { margin-left: 3px; }
.profile-card-location { font-size: .75rem; color: rgba(255, 255, 255, 0.95); margin-top: 2px; }
.profile-card-online {
  position: absolute; top: 12px; left: 12px;
  display: flex; align-items: center; gap: 5px;
  padding: 4px 10px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  font-size: .7rem; font-weight: 500;
}
.profile-card-online .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--online-green);
}
.profile-card-actions {
  position: absolute; top: 12px; right: 12px;
  display: flex; flex-direction: column; gap: 6px;
}
.profile-card-action-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  transition: background var(--transition), transform var(--transition);
}
.profile-card-action-btn:hover { background: var(--accent-rose); transform: scale(1.1); }
.profile-card-action-btn.liked {
  background: var(--accent-rose);
  color: #fff;
}

/* ─── Match Reveal ─── */
.match-reveal {
  position: fixed;
  inset: 0;
  z-index: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vh, 34px);
  padding: clamp(28px, 6vh, 72px) 20px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  background:
    radial-gradient(circle at 38% 44%, rgba(232,86,109,.22) 0 11%, transparent 28%),
    radial-gradient(circle at 65% 48%, rgba(255,126,28,.18) 0 12%, transparent 30%),
    linear-gradient(135deg, #0d0d10 0%, #09090b 48%, #151014 100%);
  transition: opacity 700ms cubic-bezier(.4,0,.2,1), visibility 700ms cubic-bezier(.4,0,.2,1);
}
.match-reveal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}
.match-reveal.exiting {
  opacity: 0;
}
.match-stage {
  position: relative;
  width: min(660px, calc(100vw - 32px));
  height: clamp(300px, 48vh, 430px);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 28px 52px rgba(0,0,0,.58));
  isolation: isolate;
}
.match-card {
  position: absolute;
  width: clamp(160px, 24vw, 230px);
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  overflow: hidden;
  background: var(--bg-elevated);
  box-shadow: 0 24px 80px rgba(0,0,0,.48), 0 0 0 1px rgba(255,255,255,.1);
  /* rotate from bottom-center like holding a hand of cards */
  transform-origin: 50% 100%;
  animation-duration: 2000ms;
  animation-timing-function: cubic-bezier(.22,.84,.2,1);
  animation-fill-mode: both;
}
.match-card-her {
  z-index: 2;
  animation-name: matchDeckHerOpen;
}
.match-card-me {
  z-index: 1;
  animation-name: matchDeckMeOpen;
}
.match-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.match-card-placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 34%, rgba(255,255,255,.2) 0 12%, transparent 13%),
    linear-gradient(145deg, var(--accent-rose), #ff7a1c 56%, var(--accent-gold));
}
.match-card-placeholder span {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  font-weight: 800;
  letter-spacing: .08em;
}
.match-card-label {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.48);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}
.match-heart-badge {
  position: relative;
  z-index: 5;
  width: clamp(86px, 10vw, 108px);
  height: clamp(86px, 10vw, 108px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  box-shadow: 0 18px 50px rgba(232,86,109,.36);
  opacity: 0;
  animation: matchBadgeArrive 800ms cubic-bezier(.2,.9,.2,1) 1700ms both, matchPulse 1600ms ease-in-out 2600ms infinite;
}
.match-heart-badge span {
  font-size: clamp(3rem, 5vw, 3.8rem);
  line-height: 1;
  background: linear-gradient(135deg, #ff8b1f 0%, var(--accent-rose) 72%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.match-copy {
  position: relative;
  width: min(620px, calc(100vw - 40px));
  text-align: center;
  opacity: 0;
  animation: matchCopyIn 700ms ease 2400ms both;
}
.match-kicker {
  color: var(--accent-rose);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .2em;
  margin-bottom: 10px;
}
.match-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.6vw, 4rem);
  line-height: 1.02;
  color: #fff;
}
.match-copy p {
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 1rem;
}
.match-arc {
  position: absolute;
  top: 17%;
  left: 50%;
  width: min(340px, 42vw);
  height: min(170px, 19vw);
  border-top: 3px solid rgba(232,86,109,.72);
  border-radius: 50% 50% 0 0;
  transform: translateX(-50%);
  opacity: 0;
  animation: matchArcIn 1000ms ease 1800ms both;
}

/* hearts — scattered emoji hearts, staggered fade + float */
.match-hearts span {
  position: absolute;
  --heart-delay: 0ms;
  --heart-size: 22px;
  font-size: var(--heart-size);
  line-height: 1;
  opacity: 0;
  animation:
    heartFadeIn 700ms ease calc(1900ms + var(--heart-delay)) both,
    floatHeart 3600ms ease-in-out calc(2600ms + var(--heart-delay)) infinite;
}
.match-hearts span::before { content: '♥'; }
.match-hearts span::after  { display: none; }

.match-hearts span:nth-child(1) { left: 9%;  top: 28%;    --heart-delay: 0ms;    --heart-size: 20px; color: rgba(232,86,109,.65); }
.match-hearts span:nth-child(2) { left: 20%; top: 14%;    --heart-delay: 180ms;  --heart-size: 28px; color: rgba(232,86,109,.45); }
.match-hearts span:nth-child(3) { left: 14%; bottom: 24%; --heart-delay: 420ms;  --heart-size: 16px; color: rgba(255,126,28,.55); }
.match-hearts span:nth-child(4) { right: 8%; top: 32%;    --heart-delay: 90ms;   --heart-size: 24px; color: rgba(232,86,109,.60); }
.match-hearts span:nth-child(5) { right: 18%;top: 15%;    --heart-delay: 310ms;  --heart-size: 18px; color: rgba(255,126,28,.50); }
.match-hearts span:nth-child(6) { right: 12%;bottom: 22%; --heart-delay: 560ms;  --heart-size: 30px; color: rgba(232,86,109,.40); }
.match-hearts span:nth-child(7) { left: 32%; bottom: 10%; --heart-delay: 240ms;  --heart-size: 14px; color: rgba(232,86,109,.50); }
.match-hearts span:nth-child(8) { right: 32%;bottom: 12%; --heart-delay: 480ms;  --heart-size: 22px; color: rgba(255,126,28,.45); }

/* ── Card deal keyframes: both start perfectly stacked at center ── */
@keyframes matchDeckHerOpen {
  /* pop in stacked */
  0%   { opacity: 0; transform: translate(0,0) rotate(0deg) scale(.72); }
  14%  { opacity: 1; transform: translate(0,0) rotate(0deg) scale(1.04); }
  22%  { opacity: 1; transform: translate(0,0) rotate(0deg) scale(1);    }
  /* stacked hold — drama pause */
  40%  { opacity: 1; transform: translate(0,0) rotate(-1deg) scale(1);   }
  /* deal left — slight upward arc through mid */
  70%  { opacity: 1; transform: translateX(clamp(-170px,-22vw,-128px)) translateY(-12px) rotate(-11deg) scale(1); }
  /* settle with tiny bounce back */
  100% { opacity: 1; transform: translateX(clamp(-148px,-19vw,-112px)) translateY(-4px) rotate(-9deg) scale(1); }
}
@keyframes matchDeckMeOpen {
  /* pop in stacked (same start) */
  0%   { opacity: 0; transform: translate(0,0) rotate(0deg) scale(.72); }
  14%  { opacity: 1; transform: translate(0,0) rotate(0deg) scale(1.04); }
  22%  { opacity: 1; transform: translate(0,0) rotate(0deg) scale(1);    }
  /* slightly longer hold — stagger feel */
  48%  { opacity: 1; transform: translate(0,0) rotate(1deg)  scale(1);   }
  /* deal right */
  76%  { opacity: 1; transform: translateX(clamp(128px,22vw,170px))  translateY(18px)  rotate(11deg) scale(1); }
  100% { opacity: 1; transform: translateX(clamp(112px,19vw,148px))  translateY(12px)  rotate(9deg)  scale(1); }
}

@keyframes matchBadgeArrive {
  0%   { opacity: 0; transform: scale(.6); }
  60%  { opacity: 1; transform: scale(1.12); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes matchPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.05); }
}
@keyframes matchCopyIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes matchArcIn {
  from { opacity: 0; clip-path: inset(0 50% 0 50%); }
  to   { opacity: .72; clip-path: inset(0 0 0 0); }
}
@keyframes heartFadeIn {
  from { opacity: 0; transform: scale(.6); }
  to   { opacity: 1; }
}
@keyframes floatHeart {
  0%,100% { transform: translateY(0)    scale(1);    }
  50%     { transform: translateY(-14px) scale(1.06); }
}

@media (max-width: 640px) {
  .match-reveal {
    gap: 12px;
    padding: 24px 16px;
  }
  .match-stage {
    width: min(360px, calc(100vw - 28px));
    height: 310px;
    min-height: 310px;
  }
  .match-card {
    width: 148px;
    border-radius: 18px;
  }
  .match-heart-badge {
    width: 82px;
    height: 82px;
  }
  .match-heart-badge span {
    font-size: 3rem;
  }
  .match-card-label {
    font-size: .82rem;
    left: 10px;
    right: 10px;
    bottom: 10px;
  }
  .match-arc {
    top: 18%;
    width: 220px;
    height: 110px;
    border-top-width: 3px;
  }
  .match-hearts span:nth-child(n+5) { display: none; }
  .match-copy h2 {
    font-size: clamp(2rem, 13vw, 3.1rem);
  }
  @keyframes matchDeckHerOpen {
    0%   { opacity: 0; transform: translate(0,0) rotate(0deg) scale(.72); }
    14%  { opacity: 1; transform: translate(0,0) rotate(0deg) scale(1.04); }
    22%  { opacity: 1; transform: translate(0,0) rotate(0deg) scale(1); }
    40%  { opacity: 1; transform: translate(0,0) rotate(-1deg) scale(1); }
    70%  { opacity: 1; transform: translateX(-88px) translateY(-8px) rotate(-11deg); }
    100% { opacity: 1; transform: translateX(-74px) translateY(-2px) rotate(-8deg); }
  }
  @keyframes matchDeckMeOpen {
    0%   { opacity: 0; transform: translate(0,0) rotate(0deg) scale(.72); }
    14%  { opacity: 1; transform: translate(0,0) rotate(0deg) scale(1.04); }
    22%  { opacity: 1; transform: translate(0,0) rotate(0deg) scale(1); }
    48%  { opacity: 1; transform: translate(0,0) rotate(1deg)  scale(1); }
    76%  { opacity: 1; transform: translateX(88px)  translateY(14px)  rotate(11deg); }
    100% { opacity: 1; transform: translateX(74px)  translateY(10px)  rotate(8deg); }
  }
}

/* ─── CTA Banner ─── */
.cta-banner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 28px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; top: -40%; right: -10%;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,86,109,.12) 0%, transparent 70%);
  pointer-events: none;
}
.cta-text h3 {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 600;
  margin-bottom: 4px;
}
.cta-text p { font-size: .85rem; color: var(--text-secondary); }
.cta-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 22px;
  background: var(--accent-rose);
  border-radius: var(--radius-full);
  font-size: .875rem; font-weight: 600;
  color: #fff;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
  z-index: 1;
}
.cta-btn:hover { background: var(--accent-rose-hover); transform: scale(1.03); }

/* ─── Coin Packages Modal ─── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 250ms ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  width: 480px; max-width: 92vw;
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  padding: 32px;
  transform: translateY(20px) scale(.97);
  transition: transform 300ms ease;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-close {
  float: right;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  transition: background var(--transition);
}
.modal-close:hover { background: var(--bg-hover); }
.modal h2 {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 600;
  margin-bottom: 4px;
}
.modal .modal-sub { font-size: .85rem; color: var(--text-secondary); margin-bottom: 24px; }

/* ─── Signup / Onboarding ─── */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2,2,4,.62);
  backdrop-filter: blur(18px) saturate(1.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}
.auth-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.auth-backdrop-noise {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 20%, rgba(232,86,109,.18), transparent 32%),
    radial-gradient(circle at 78% 74%, rgba(212,168,83,.12), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,0));
  pointer-events: none;
}
.auth-modal {
  position: relative;
  width: min(520px, calc(100vw - 40px));
  max-height: min(680px, calc(100vh - 40px));
  overflow-y: auto;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.025)),
    #101014;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 32px 120px rgba(0,0,0,.72), 0 0 0 1px rgba(232,86,109,.08);
  transform: translateY(18px) scale(.97);
  transition: transform 240ms cubic-bezier(.2,.8,.2,1);
}
.auth-overlay.open .auth-modal { transform: translateY(0) scale(1); }
.auth-modal::-webkit-scrollbar { display: none; }
.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.auth-close:hover {
  background: rgba(255,255,255,.11);
  color: var(--text-primary);
  transform: scale(1.04);
}
body.auth-locked .auth-close {
  display: none !important;
}
.auth-step {
  display: none;
  padding: 30px;
}
.auth-step.active { display: block; }
.auth-proof {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--text-secondary);
  font-size: 0.74rem;
  margin-bottom: 16px;
}
.auth-proof-avatars {
  display: flex;
  align-items: center;
}
.auth-proof-avatars img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #101014;
  margin-left: -6px;
}
.auth-proof-avatars img:first-child { margin-left: 0; }
.auth-social-proof {
  color: rgba(255,255,255,.48);
  font-size: 0.72rem;
  font-weight: 650;
  margin: -8px 0 14px;
}
.auth-step h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 4.2vw, 2.0rem);
  line-height: 1.15;
  color: var(--text-primary);
  max-width: 440px;
  margin-bottom: 8px;
}
.auth-sub {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 430px;
}
.auth-benefits-line {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 18px;
  flex-wrap: wrap;
}
.auth-benefit-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  padding: 5px 12px;
  border-radius: 999px;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.auth-field span {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.auth-field input {
  width: 100%;
  box-sizing: border-box;
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--text-primary);
  font-size: 0.94rem;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.auth-field input:focus {
  border-color: rgba(232,86,109,.55);
  background: rgba(255,255,255,.075);
  box-shadow: 0 0 0 3px rgba(232,86,109,.11);
}
.auth-primary {
  width: 100%;
  height: 50px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f05d76, #c93162);
  color: #fff;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: .01em;
  box-shadow: 0 10px 30px rgba(232,86,109,.28);
  transition: transform 160ms ease, box-shadow 180ms ease, filter 180ms ease;
  margin-top: 6px;
}
.auth-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 14px 40px rgba(232,86,109,.38);
}
.auth-primary:active { transform: translateY(0) scale(.99); }
.auth-primary:disabled {
  opacity: .62;
  cursor: default;
  transform: none;
}
.auth-error {
  min-height: 14px;
  color: #ff8da0;
  font-size: 0.74rem;
  text-align: center;
}
.auth-fineprint {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-align: center;
}
.auth-legal-links {
  margin-top: 7px;
  color: rgba(255,255,255,.38);
  font-size: .66rem;
  line-height: 1.35;
  text-align: center;
}
.auth-legal-links a {
  color: rgba(255,255,255,.58);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-legal-links a:hover {
  color: var(--text-primary);
}
.auth-step-kicker {
  color: var(--accent-rose);
  font-size: 0.70rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.onboard-photo-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  align-items: center;
  margin: 16px 0 14px;
}
.onboard-photo-picker {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(145deg, rgba(232,86,109,.65), rgba(212,168,83,.42));
  border: 1px solid rgba(255,255,255,.16);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
  box-shadow: inset 0 0 30px rgba(0,0,0,.22);
}
.onboard-photo-plus {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ffffff;
  color: #111114;
  border: 2px solid #101014;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(0,0,0,.35);
  z-index: 2;
}
.onboard-photo-picker.needs-photo {
  border-color: rgba(255,141,160,.72);
  box-shadow: inset 0 0 30px rgba(0,0,0,.22), 0 0 0 3px rgba(232,86,109,.16);
}
.onboard-photo-picker img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.onboard-photo-picker.has-image img { display: block; }
.onboard-photo-picker.has-image #onboard-photo-placeholder { display: none; }
#onboard-photo-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}
.onboard-photo-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.onboard-photo-copy strong {
  color: var(--text-primary);
  font-size: 0.88rem;
  line-height: 1.3;
}
.onboard-photo-copy span {
  color: var(--text-secondary);
  font-size: 0.78rem;
  line-height: 1.45;
}
.interest-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.interest-picker button {
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform 120ms ease;
}
.interest-picker button:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,.08);
}
.interest-picker button.selected {
  color: #fff;
  background: rgba(232,86,109,.22);
  border-color: rgba(232,86,109,.5);
  transform: translateY(-1px);
}
@media (max-width: 560px) {
  .auth-overlay { padding: 8px; align-items: end; }
  .auth-modal { width: 100%; max-height: calc(100vh - 16px); border-radius: 20px 20px 0 0; }
  .auth-step { padding: 20px 16px 18px; }
  .auth-benefits-line { margin: 10px 0 12px; gap: 4px; }
  .auth-benefit-badge { font-size: 0.68rem; padding: 3px 8px; }
  .onboard-photo-row { grid-template-columns: 80px 1fr; justify-items: start; text-align: left; }
}
.coin-packages { display: flex; flex-direction: column; gap: 10px; }
.coin-package {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition);
  position: relative;
}
.coin-package:hover { background: var(--bg-hover); }
.coin-package.popular {
  background: rgba(232,86,109,.08);
}
.coin-package.popular::after {
  content: 'BEST VALUE';
  position: absolute; top: -8px; right: 14px;
  padding: 2px 10px;
  background: var(--accent-rose);
  border-radius: var(--radius-full);
  font-size: .6rem; font-weight: 700;
  letter-spacing: .05em;
  color: #fff;
}
.pkg-left { display: flex; align-items: center; gap: 12px; }
.pkg-coins { font-size: 1.1rem; font-weight: 700; }
.pkg-bonus { font-size: .75rem; color: var(--accent-gold); font-weight: 500; }
.pkg-price {
  padding: 7px 16px;
  background: var(--accent-rose);
  border-radius: var(--radius-full);
  font-size: .82rem; font-weight: 600;
  color: #fff;
  transition: background var(--transition);
}
.coin-package:hover .pkg-price { background: var(--accent-rose-hover); }

/* ─── Checkout Modal ─── */
.checkout-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.8);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 280ms ease;
  padding: 16px;
}
.checkout-overlay.open {
  opacity: 1; pointer-events: auto;
}
.checkout-modal {
  width: 460px; max-width: 100%;
  max-height: 92vh; overflow-y: auto;
  background: #0e0e13;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 20px;
  box-shadow: 0 40px 120px rgba(0,0,0,.9), 0 0 0 1px rgba(232,86,109,.08);
  transform: translateY(24px) scale(.97);
  transition: transform 300ms cubic-bezier(.2,.8,.2,1);
}
.checkout-overlay.open .checkout-modal {
  transform: translateY(0) scale(1);
}
.checkout-modal::-webkit-scrollbar { display: none; }

/* Header */
.checkout-header {
  display: flex; align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  gap: 12px;
  position: sticky; top: 0;
  background: #0e0e13;
  z-index: 2;
  border-radius: 20px 20px 0 0;
}
.checkout-back-btn, .checkout-close-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
  font-size: .85rem;
}
.checkout-back-btn:hover, .checkout-close-btn:hover {
  background: rgba(255,255,255,.11); color: var(--text-primary);
}
.checkout-header-center {
  flex: 1; text-align: center;
}
.checkout-lock-row {
  display: inline-flex; align-items: center; gap: 5px;
  color: #4ade80;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
}
.checkout-pkg-summary {
  font-size: .9rem; font-weight: 700;
  color: var(--text-primary);
  margin-top: 2px;
}

/* Body */
.checkout-body {
  padding: 22px 24px 28px;
}

/* Virtual card art */
.checkout-card-art {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
  border-radius: 14px;
  padding: 24px 24px 22px;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
  min-height: 180px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 8px 30px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.12);
}
.checkout-card-art::before {
  content: '';
  position: absolute; top: -40px; right: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(232,86,109,.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.checkout-card-art::after {
  content: '';
  position: absolute; bottom: -60px; left: -20px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(79,140,255,.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.checkout-card-chip {
  width: 36px; height: 28px;
  background: linear-gradient(135deg, #d4a847, #f5d08a, #c8973a);
  border-radius: 5px;
  position: relative;
  z-index: 1;
}
.checkout-card-chip::before {
  content: '';
  position: absolute; inset: 4px;
  border: 1px solid rgba(180,130,40,.5);
  border-radius: 3px;
}
.checkout-card-number-display {
  font-family: 'Courier New', monospace;
  font-size: 1.1rem; letter-spacing: .2em;
  color: rgba(255,255,255,.9);
  z-index: 1; position: relative;
  margin-top: 12px;
}
.checkout-card-bottom {
  display: flex; justify-content: space-between; align-items: flex-end;
  z-index: 1; position: relative;
}
.checkout-card-label {
  font-size: .6rem; letter-spacing: .12em;
  color: rgba(255,255,255,.5);
  text-transform: uppercase; margin-bottom: 2px;
}
.checkout-card-value {
  font-size: .82rem; font-weight: 600;
  color: rgba(255,255,255,.9);
  letter-spacing: .04em;
}

/* Form */
.checkout-form {
  display: flex; flex-direction: column; gap: 14px;
}
.checkout-field-group {
  display: flex; flex-direction: column; gap: 6px;
}
.checkout-label {
  font-size: .68rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted);
}
.checkout-input-wrap {
  position: relative;
}
.checkout-input {
  width: 100%; height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--text-primary);
  font-size: .95rem;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.checkout-input:focus {
  border-color: rgba(232,86,109,.5);
  background: rgba(255,255,255,.075);
  box-shadow: 0 0 0 3px rgba(232,86,109,.10);
  outline: none;
}
.checkout-input.error-shake {
  border-color: rgba(255,60,80,.6);
  animation: coInputShake 350ms ease;
}
@keyframes coInputShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
.checkout-card-brands {
  position: absolute; right: 8px; top: 50%;
  transform: translateY(-50%);
  display: flex; gap: 4px; align-items: center;
  pointer-events: none;
}
.co-brand-icon {
  opacity: .35;
  transition: opacity 250ms ease, transform 250ms ease;
  border-radius: 3px;
}
.co-brand-icon.active {
  opacity: 1;
  transform: scale(1.08);
}
.checkout-card-brands.has-match .co-brand-icon:not(.active) {
  opacity: .12;
}
.checkout-cvv-hint {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  cursor: help;
}
.checkout-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.checkout-error {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: rgba(255,60,80,.10);
  border: 1px solid rgba(255,60,80,.25);
  border-radius: 10px;
  color: #ff8da0;
  font-size: .82rem; font-weight: 500;
  animation: coErrorIn 300ms ease;
}
@keyframes coErrorIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.checkout-pay-btn {
  width: 100%; height: 52px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f05d76, #c93162);
  color: #fff;
  font-size: 1rem; font-weight: 800;
  letter-spacing: .01em;
  box-shadow: 0 8px 28px rgba(232,86,109,.3);
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
  margin-top: 2px;
}
.checkout-pay-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 12px 36px rgba(232,86,109,.4);
}
.checkout-pay-btn:active:not(:disabled) { transform: translateY(0) scale(.99); }
.checkout-pay-btn:disabled {
  opacity: .6; cursor: default; transform: none;
}
.checkout-trust-row {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  color: var(--text-muted);
  font-size: .68rem;
}
.checkout-trust-dot { opacity: .5; }

/* Processing state */
.checkout-processing {
  padding: 56px 24px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.checkout-spinner {
  width: 48px; height: 48px;
  border: 3px solid rgba(255,255,255,.10);
  border-top-color: var(--accent-rose);
  border-radius: 50%;
  animation: coSpin 700ms linear infinite;
}
@keyframes coSpin {
  to { transform: rotate(360deg); }
}
.checkout-processing-title {
  font-size: 1.05rem; font-weight: 700;
  color: var(--text-primary);
}
.checkout-processing-sub {
  font-size: .82rem; color: var(--text-muted);
}

/* Success state */
.checkout-success {
  padding: 48px 24px 52px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.checkout-success-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(74,222,128,.2), rgba(74,222,128,.06));
  border: 2px solid rgba(74,222,128,.35);
  display: flex; align-items: center; justify-content: center;
  color: #4ade80;
  animation: coSuccessIcon 500ms cubic-bezier(.2,.8,.2,1) both;
}
@keyframes coSuccessIcon {
  from { transform: scale(.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.checkout-success-title {
  font-family: var(--font-display);
  font-size: 1.45rem; font-weight: 700;
  color: var(--text-primary);
}
.checkout-success-coins {
  font-size: .92rem; color: var(--text-secondary);
  margin-top: -4px;
}
.checkout-success-btn {
  margin-top: 8px;
  padding: 14px 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f05d76, #c93162);
  color: #fff; font-size: .95rem; font-weight: 800;
  box-shadow: 0 8px 28px rgba(232,86,109,.3);
  transition: transform 150ms ease, filter 150ms ease;
}
.checkout-success-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }

/* ─── Notification Toasts ─── */
.toast-container {
  position: fixed; bottom: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 10px;
  z-index: 150;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevated);
  pointer-events: auto;
  animation: toastIn 400ms ease forwards;
  max-width: 320px;
}
.toast.out { animation: toastOut 300ms ease forwards; }
.toast-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.toast-text { flex: 1; }
.toast-name { font-size: .82rem; font-weight: 600; }
.toast-msg { font-size: .75rem; color: var(--text-secondary); }
.toast-close {
  font-size: .8rem; color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition);
  flex-shrink: 0;
}
.toast-close:hover { color: var(--text-primary); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(40px); }
}

@media (max-width: 768px) {
  .toast-container {
    top: calc(14px + env(safe-area-inset-top, 0px));
    right: 12px;
    bottom: auto;
    left: 12px;
    align-items: stretch;
    z-index: 10020;
  }
  .toast {
    width: 100%;
    max-width: none;
    border-radius: 16px;
    padding: 12px 14px;
  }
  .mobile-top-toast {
    animation-name: toastInMobileTop;
  }
  .mobile-top-toast.out {
    animation-name: toastOutMobileTop;
  }
}

@keyframes toastInMobileTop {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes toastOutMobileTop {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-18px); }
}

/* ─── Staggered Load ─── */
.fade-up {
  opacity: 0; transform: translateY(16px);
  animation: fadeUp 500ms ease forwards;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Verified Badge ─── */
.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 6px;
  vertical-align: middle;
  flex-shrink: 0;
  line-height: 1;
  cursor: help;
}
.verified-badge svg {
  width: 100%;
  height: 100%;
  display: block;
}
.swipe-name-row .verified-badge {
  width: 28px;
  height: 28px;
  align-self: center;
  margin-left: 8px;
  margin-right: 0;
}
.pmodal-name-row .verified-badge {
  width: 22px;
  height: 22px;
  align-self: center;
  margin-left: 8px;
  margin-right: 0;
}
.chat-view-name .verified-badge {
  width: 14px;
  height: 14px;
  margin-left: 4px;
  vertical-align: middle;
}
.chat-item .verified-badge {
  width: 13px;
  height: 13px;
  margin-left: 4px;
  vertical-align: middle;
}
.verified-tooltip {
  position: fixed;
  z-index: 10000;
  width: min(240px, calc(100vw - 24px));
  padding: 11px 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(20, 20, 26, 0.96);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.36);
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}
.verified-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.verified-tooltip-title {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}
.verified-tooltip-copy {
  margin-top: 5px;
  color: var(--text-secondary);
  font-size: 0.72rem;
  line-height: 1.35;
}
.verified-tooltip-link {
  display: inline-block;
  margin-top: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8cc9ff;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

/* ─── Typing indicator ─── */
.typing-dots { display: flex; gap: 3px; align-items: center; padding: 4px 0; }
.typing-dots span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typingBounce 1.2s ease infinite;
}
.typing-dots span:nth-child(2) { animation-delay: .2s; }
.typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* ─── Chat View ─── */
.chat-view {
  display: none;
  flex-direction: column;
  height: calc(100vh - 64px);
  max-height: calc(100vh - 64px);
  position: sticky;
  top: 64px;
  overflow: visible;
}
.chat-view.active { display: flex; }
.discover-feed.hidden { display: none; }

.chat-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--bg-secondary);
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}
.chat-back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 7px 12px;
  border-radius: var(--radius-md);
  transition: background var(--transition), color var(--transition);
}
.chat-back-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
.chat-view-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-view-avatar-wrap { position: relative; }
.chat-view-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg-elevated);
}
.chat-view-online-dot {
  position: absolute; bottom: 1px; right: 1px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--online-green);
  border: 2px solid var(--bg-secondary);
  display: none;
}
.chat-view-online-dot.visible { display: block; }
.chat-view-name { font-size: .95rem; font-weight: 600; }
.chat-view-status { font-size: .75rem; color: var(--online-green); margin-top: 1px; }
.chat-view-status.offline { color: var(--text-muted); }
.chat-view-actions { display: flex; gap: 6px; }

.debug-hud {
  position: absolute;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.debug-mode-toggle {
  pointer-events: none;
  min-width: 0;
  height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(232,86,109,.32);
  background: rgba(28,28,33,.92);
  color: var(--text-secondary);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
  backdrop-filter: blur(14px);
  user-select: none;
}

.debug-mode-toggle:hover {
  border-color: rgba(232,86,109,.32);
  color: var(--text-secondary);
}

.debug-mode-toggle.quick {
  border-color: rgba(232,86,109,.72);
  background: linear-gradient(135deg, rgba(232,86,109,.24), rgba(212,168,83,.14)), rgba(28,28,33,.96);
  color: #ffd1d9;
}

.debug-mode-toggle.no-flag {
  border-color: rgba(255,255,255,.14);
  background: rgba(28,28,33,.72);
  color: rgba(255,255,255,.48);
}

.chat-action-icon-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
}
.chat-action-icon-btn:hover { background: var(--bg-hover); color: var(--text-primary); }

.chat-messages-area {
  flex: 1;
  overflow-y: auto;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg-primary);
}

/* date divider */
.chat-date-divider {
  text-align: center;
  font-size: .7rem;
  color: var(--text-muted);
  padding: 8px 0 4px;
  letter-spacing: .04em;
}

/* message rows */
.msg-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 72%;
  animation: msgIn 200ms ease;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.msg-row.mine {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.msg-row.hers { align-self: flex-start; }

.msg-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-bottom: 2px;
}
.msg-row.mine .msg-avatar { display: none; }

.msg-bubble {
  padding: 10px 15px;
  border-radius: 18px;
  font-size: .9rem;
  line-height: 1.45;
  max-width: 100%;
  word-break: break-word;
  position: relative;
}
.msg-row.hers .msg-bubble {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}
.msg-row.mine .msg-bubble {
  background: var(--accent-rose);
  color: #fff;
  border-bottom-right-radius: 4px;
}

/* consecutive bubbles – tighten radius */
.msg-row.hers + .msg-row.hers .msg-bubble { border-top-left-radius: 4px; }
.msg-row.mine + .msg-row.mine .msg-bubble { border-top-right-radius: 4px; }

.msg-time {
  font-size: .65rem;
  color: var(--text-muted);
  margin-top: 4px;
  padding: 0 4px;
  align-self: flex-end;
}
.msg-row.mine .msg-time { text-align: right; }

/* typing indicator bubble */
.typing-bubble {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  animation: msgIn 200ms ease;
}
.typing-bubble-dots {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border-radius: 18px;
  border-bottom-left-radius: 4px;
}
.typing-bubble-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typingBounce 1.2s ease infinite;
}
.typing-bubble-dots span:nth-child(2) { animation-delay: .2s; }
.typing-bubble-dots span:nth-child(3) { animation-delay: .4s; }

/* chat input bar */
.chat-starter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 0;
  background: var(--bg-secondary);
  border-top: 1px solid rgba(255,255,255,.06);
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}
.chat-starter-row[hidden] { display: none !important; }
.chat-starter-row::-webkit-scrollbar { display: none; }
.chat-starter-chip {
  flex: 0 0 auto;
  min-height: 34px;
  max-width: min(260px, 72vw);
  padding: 8px 13px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.09);
  color: var(--text-primary);
  font-size: .84rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.chat-starter-chip:hover {
  background: rgba(232,86,109,.14);
  border-color: rgba(232,86,109,.28);
}
.chat-starter-chip:active { transform: scale(.98); }

.chat-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border-top: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}
.chat-starter-row:not([hidden]) + .chat-input-bar { border-top: 0; }
.chat-input-field {
  flex: 1;
  padding: 10px 16px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  font-size: .9rem;
  color: var(--text-primary);
  border: 1px solid transparent;
  transition: border-color var(--transition);
}
.chat-input-field:focus {
  border-color: rgba(232,86,109,.3);
}
.chat-input-field::placeholder { color: var(--text-muted); }
.chat-input-icon-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
  flex-shrink: 0;
}
.chat-input-icon-btn:hover { color: var(--text-primary); background: var(--bg-elevated); }
.chat-send-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent-rose);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.chat-send-btn:hover { background: var(--accent-rose-hover); transform: scale(1.06); }
.chat-send-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ══════════════════════════════════════
   REPLY BAR
══════════════════════════════════════ */
.reply-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 20px;
  background: linear-gradient(90deg, rgba(232,86,109,.08) 0%, rgba(232,86,109,.02) 100%);
  border-top: 1px solid rgba(232,86,109,.15);
  position: relative;
  overflow: hidden;
  animation: replySlideIn 180ms cubic-bezier(.22,1,.36,1);
}
@keyframes replySlideIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reply-bar::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-rose), rgba(232,86,109,.3));
}
.reply-bar-inner { flex: 1; min-width: 0; }
.reply-bar-label {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-rose);
  margin-bottom: 2px;
  opacity: .9;
}
.reply-bar-text {
  font-size: .82rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reply-bar-close {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: .75rem;
  background: rgba(255,255,255,.06);
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.reply-bar-close:hover { background: rgba(255,255,255,.14); color: var(--text-primary); }

/* ─── Reply quote inside bubble ─── */
.reply-quote {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 7px;
  border-radius: 6px;
  overflow: hidden;
  max-width: 240px;
}
.reply-quote-accent {
  width: 3px;
  background: rgba(255,255,255,.35);
  flex-shrink: 0;
}
.reply-quote-text {
  padding: 4px 8px;
  font-size: .74rem;
  background: rgba(255,255,255,.09);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  color: rgba(255,255,255,.65);
}
.msg-row.hers .reply-quote-accent { background: var(--accent-rose); opacity: .7; }
.msg-row.hers .reply-quote-text   { background: rgba(232,86,109,.12); color: rgba(232,86,109,.85); }

/* ══════════════════════════════════════
   EMOJI PICKER  — floating tooltip
══════════════════════════════════════ */
.emoji-picker {
  position: fixed;
  width: 312px;
  background: rgba(22,22,26,.95);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,.7), 0 0 0 .5px rgba(255,255,255,.05) inset;
  z-index: 500;
  overflow: hidden;
  transform-origin: bottom left;
  animation: pickerPop 200ms cubic-bezier(.34,1.56,.64,1);
}
@keyframes pickerPop {
  from { opacity: 0; transform: scale(.88) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.emoji-picker-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.emoji-picker-search svg { color: var(--text-muted); flex-shrink: 0; }
.emoji-picker-search input {
  flex: 1;
  font-size: .85rem;
  color: var(--text-primary);
  background: none;
  border: none;
  outline: none;
}
.emoji-picker-search input::placeholder { color: var(--text-muted); }
.emoji-picker-cats {
  display: flex;
  gap: 2px;
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  overflow-x: auto;
  scrollbar-width: none;
}
.emoji-picker-cats::-webkit-scrollbar { display: none; }
.emoji-cat-btn {
  flex-shrink: 0;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background .12s;
  opacity: .55;
}
.emoji-cat-btn:hover,
.emoji-cat-btn.active { background: rgba(255,255,255,.1); opacity: 1; }
.emoji-picker-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0;
  padding: 6px;
  max-height: 220px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
}
.emoji-picker-grid span {
  font-size: 1.25rem;
  cursor: pointer;
  padding: 5px;
  border-radius: 8px;
  text-align: center;
  line-height: 1.4;
  transition: background .1s, transform .1s;
}
.emoji-picker-grid span:hover { background: rgba(255,255,255,.12); transform: scale(1.2); }
/* caret arrow pointing down toward the button */
.emoji-picker::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 24px;
  width: 12px; height: 12px;
  background: rgba(22,22,26,.95);
  border-right: 1px solid rgba(255,255,255,.1);
  border-bottom: 1px solid rgba(255,255,255,.1);
  transform: rotate(45deg);
}

/* ══════════════════════════════════════
   CONTEXT MENU  — iMessage-style
══════════════════════════════════════ */

/* Reaction strip — appears above the message bubble */
.ctx-reaction-strip {
  position: fixed;
  background: rgba(22,22,26,.96);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  padding: 6px 10px;
  display: flex;
  gap: 2px;
  z-index: 600;
  box-shadow: 0 12px 40px rgba(0,0,0,.7);
  transform-origin: bottom center;
  animation: stripPop 220ms cubic-bezier(.34,1.56,.64,1);
}
@keyframes stripPop {
  from { opacity: 0; transform: scale(.7); }
  to   { opacity: 1; transform: scale(1); }
}
.ctx-reaction-strip::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px; height: 10px;
  background: rgba(22,22,26,.96);
  border-right: 1px solid rgba(255,255,255,.1);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.ctx-reaction-strip span {
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 50%;
  transition: background .1s, transform .15s cubic-bezier(.34,1.56,.64,1);
  line-height: 1;
}
.ctx-reaction-strip span:hover { background: rgba(255,255,255,.12); transform: scale(1.35) translateY(-2px); }

/* Action menu — below the strip */
.ctx-menu {
  position: fixed;
  background: rgba(22,22,26,.96);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 4px;
  z-index: 590;
  box-shadow: 0 12px 40px rgba(0,0,0,.7);
  min-width: 160px;
  animation: menuFade 160ms ease;
}
@keyframes menuFade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ctx-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: .84rem;
  color: var(--text-secondary);
  border-radius: 10px;
  cursor: pointer;
  transition: background .12s, color .12s;
  letter-spacing: .01em;
}
.ctx-item:hover { background: rgba(255,255,255,.07); color: var(--text-primary); }
.ctx-item-icon { font-size: 1rem; opacity: .7; }
.ctx-divider {
  height: 1px;
  background: rgba(255,255,255,.06);
  margin: 3px 0;
}

/* ══════════════════════════════════════
   REACTION BADGES ON BUBBLES
══════════════════════════════════════ */
.msg-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
  padding: 0 2px;
}
.msg-reaction {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px 3px 5px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  font-size: .85rem;
  cursor: pointer;
  transition: background .12s, transform .12s;
  animation: rxnPop 200ms cubic-bezier(.34,1.56,.64,1);
}
@keyframes rxnPop {
  from { transform: scale(.6); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.msg-reaction:hover { background: rgba(255,255,255,.14); transform: scale(1.05); }
.msg-reaction .rxn-count {
  font-size: .72rem;
  color: var(--text-muted);
  font-weight: 500;
  min-width: 8px;
}

/* ══════════════════════════════════════
   IMAGE BUBBLES
══════════════════════════════════════ */
.msg-bubble-img {
  max-width: 220px;
  max-height: 300px;
  border-radius: 14px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: opacity .15s;
}
.msg-bubble-img:hover { opacity: .92; }

/* ══════════════════════════════════════
   CALL OVERLAY
══════════════════════════════════════ */
.call-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: callFadeIn 400ms cubic-bezier(.22,1,.36,1);
}
@keyframes callFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.call-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.35) saturate(1.4);
  transform: scale(1.08);
}
.call-bg-blur {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(28px) saturate(120%);
  -webkit-backdrop-filter: blur(28px) saturate(120%);
  background: rgba(6,6,8,.55);
}
.call-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  z-index: 1;
  padding: 48px 32px 56px;
  width: 100%;
  max-width: 420px;
  text-align: center;
}
.call-type-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 48px;
}

/* Avatar + rings */
.call-avatar-ring {
  position: relative;
  width: 130px;
  height: 130px;
  margin-bottom: 32px;
}
.call-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(232,86,109,.35);
  animation: callRingPulse 2.4s ease-out infinite;
}
.call-ring-1 { inset: -18px; animation-delay: 0s; }
.call-ring-2 { inset: -36px; animation-delay: .6s; }
.call-ring-3 { inset: -54px; animation-delay: 1.2s; }
@keyframes callRingPulse {
  0%   { opacity: .7; transform: scale(.92); }
  60%  { opacity: .2; }
  100% { opacity: 0;  transform: scale(1); }
}
.call-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,.15);
  box-shadow: 0 0 0 1px rgba(232,86,109,.3), 0 20px 60px rgba(0,0,0,.6);
  position: relative;
  z-index: 1;
}

/* Name & status */
.call-name {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #fff;
  margin-bottom: 8px;
  font-family: var(--font-display);
}
.call-status {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  letter-spacing: .04em;
  margin-bottom: 4px;
  animation: callStatusPulse 1.8s ease-in-out infinite;
}
@keyframes callStatusPulse {
  0%, 100% { opacity: .5; }
  50%       { opacity: .9; }
}
.call-timer {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
  margin-bottom: 4px;
}

/* Call bubble in chat — Telegram style */
.call-bubble {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--bg-elevated);
  border: 1px solid rgba(255,255,255,.07);
  min-width: 200px;
  max-width: 240px;
}
.call-bubble-left { flex: 1; min-width: 0; }
.call-bubble-title {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
}
.call-bubble-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .72rem;
  color: var(--accent-rose);
  opacity: .8;
}
.call-bubble-meta svg { flex-shrink: 0; }
.call-bubble-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(232,86,109,.15);
  border: 1px solid rgba(232,86,109,.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-rose);
  flex-shrink: 0;
}

/* Action buttons */
.call-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 60px;
}
.call-action-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s, background .15s;
  background: rgba(255,255,255,.12);
  color: #fff;
  backdrop-filter: blur(8px);
}
.call-action-btn:hover { transform: scale(1.08); background: rgba(255,255,255,.18); }
.call-action-btn.active { background: rgba(255,255,255,.28); }
.call-end-btn {
  width: 68px;
  height: 68px;
  background: var(--danger) !important;
  box-shadow: 0 8px 24px rgba(239,68,68,.45);
}
.call-end-btn:hover { background: #dc2626 !important; transform: scale(1.06); }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .sidebar { display: none; }
  .main-content { padding: 20px 16px; }
  .profiles-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
}
@media (max-width: 600px) {
  .header-nav { display: none; }
  .profiles-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner { flex-direction: column; text-align: center; gap: 16px; }
}

/* ══════════════════════════════════════
   PROFILE PAGE (dedicated route)
══════════════════════════════════════ */

@keyframes ppReveal {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.profile-page {
  display: none;
  width: 100%;
  height: calc(100vh - 64px);
  overflow: hidden;
  position: relative;
}
.profile-page.active {
  display: grid;
  grid-template-columns: 58% 42%;
}

/* ── photo col ── */
.pp-photo-col {
  position: relative;
  height: calc(100vh - 64px);
  overflow: hidden;
}
.pp-photo {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center center;
  display: block;
}
/* bottom gradient — carries the name overlay */
.pp-photo-col::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 35%,
    rgba(4,3,8,.5) 60%,
    rgba(4,3,8,.97) 100%
  );
  pointer-events: none;
}
/* right-edge bleed into info panel — seamless transition */
.pp-photo-col::after {
  content: '';
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 110px;
  background: linear-gradient(to right, transparent, #0a0a0c);
  pointer-events: none;
}

/* name / location overlay */
.pp-photo-identity {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 26px 34px 34px;
}
.pp-name-row {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 10px;
}
.pp-name {
  font-family: var(--font-display);
  font-size: 4rem; font-weight: 600; font-style: italic;
  color: #fff; line-height: .92;
  letter-spacing: -.03em;
}
.pp-age {
  font-family: var(--font-display);
  font-size: 2.1rem; font-weight: 700;
  color: #fff;
}
.pp-online-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--online-green);
  box-shadow: 0 0 0 3px rgba(52,211,153,.22);
  margin-bottom: 5px; flex-shrink: 0;
  display: none;
}
.pp-online-dot.visible { display: block; }
.pp-location {
  display: flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,.85);
  font-size: .8rem; font-weight: 400;
  letter-spacing: .02em;
}

/* ── info col ── */
.pp-info-col {
  height: calc(100vh - 64px);
  overflow-y: auto;
  background: #0a0a0c;
  scrollbar-width: none;
}
.pp-info-col::-webkit-scrollbar { display: none; }

.pp-info-inner {
  padding: 28px 44px 36px 36px;
  min-height: calc(100vh - 64px);
  display: flex; flex-direction: column;
  animation: ppReveal 360ms ease both;
}

/* top bar: back ← · · · match% */
.pp-top-bar {
  display: flex; align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 34px;
}
.pp-back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-muted); font-size: .78rem; font-weight: 500;
  padding: 6px 0;
  transition: color var(--transition);
}
.pp-back-btn:hover { color: var(--text-primary); }

/* match — right-aligned block */
.pp-match {
  text-align: right;
  min-width: 178px;
}
.pp-match-num-row {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  line-height: 1;
  overflow: visible;
}
.pp-match-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(4rem, 5.6vw, 6.4rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(125deg, var(--accent-rose) 30%, var(--accent-gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pp-match-sym {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  padding-top: .35em;
  background: linear-gradient(125deg, var(--accent-rose) 30%, var(--accent-gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pp-match-label {
  font-size: .78rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--text-muted);
  display: block; margin-top: 6px;
}
.pp-match-track {
  width: 152px; height: 4px;
  background: rgba(255,255,255,.07);
  border-radius: 99px; overflow: hidden;
  margin: 14px 0 0 auto;
}
.pp-match-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent-rose), var(--accent-gold));
  border-radius: 99px;
  transition: width 700ms cubic-bezier(.22,.68,0,1.12) 200ms;
}

/* section dividers */
.pp-rule {
  height: 1px;
  background: rgba(255,255,255,.055);
  margin: 22px 0;
  flex-shrink: 0;
}

/* bio — pull-quote style */
.pp-bio-wrap {
  position: relative;
  padding-left: 2px;
}
.pp-bio-wrap::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 6rem; line-height: .65;
  color: var(--accent-rose);
  opacity: .16;
  position: absolute; top: -4px; left: -12px;
  pointer-events: none; user-select: none;
}
.pp-bio {
  font-size: .92rem; line-height: 1.78;
  color: var(--text-secondary);
  position: relative;
}

/* prompts — numbered editorial */
.pp-prompts { display: flex; flex-direction: column; gap: 22px; }
.pp-prompt {
  display: flex; gap: 18px; align-items: flex-start;
}
.pp-prompt-num {
  font-family: var(--font-display);
  font-size: .78rem; font-style: italic;
  color: var(--accent-rose); opacity: .45;
  flex-shrink: 0; padding-top: 1px;
  width: 18px; line-height: 1;
  letter-spacing: .02em;
}
.pp-prompt-body { flex: 1; }
.pp-prompt-q {
  display: block;
  font-size: .6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .13em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.pp-prompt-a {
  display: block;
  font-size: .88rem; line-height: 1.62;
  color: var(--text-primary); font-weight: 400;
}

/* tags */
.pp-tags {
  display: flex; flex-wrap: wrap; gap: 7px;
  margin-bottom: 24px;
}
.pp-tag {
  padding: 5px 13px;
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.035);
  font-size: .74rem; font-weight: 500;
  color: var(--text-muted); letter-spacing: .02em;
  transition: all 140ms ease;
  cursor: default;
}
.pp-tag:hover {
  background: rgba(232,86,109,.09);
  border-color: rgba(232,86,109,.28);
  color: rgba(232,86,109,.9);
}

/* actions — pinned to bottom via margin-top: auto */
.pp-actions {
  display: flex; gap: 10px; align-items: center;
  margin-top: auto; padding-top: 20px;
}
.pp-like-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 0 22px; height: 50px;
  border-radius: 99px;
  border: 1.5px solid rgba(255,255,255,.1);
  color: var(--text-secondary);
  font-size: .85rem; font-weight: 500;
  transition: all 140ms ease; white-space: nowrap;
}
.pp-like-btn:hover {
  border-color: var(--accent-rose); color: var(--accent-rose);
  background: rgba(232,86,109,.07);
}
.pp-like-btn.liked {
  border-color: var(--accent-rose);
  background: rgba(232,86,109,.12); color: var(--accent-rose);
}
.pp-like-btn.liked svg { fill: var(--accent-rose); }

.pp-msg-btn {
  flex: 1; height: 50px;
  border-radius: 99px;
  background: var(--accent-rose); color: #fff;
  font-size: .9rem; font-weight: 600; letter-spacing: .01em;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 4px 22px rgba(232,86,109,.38);
  transition: all 140ms ease;
}
.pp-msg-btn:hover {
  background: var(--accent-rose-hover);
  box-shadow: 0 6px 30px rgba(232,86,109,.52);
  transform: translateY(-1px);
}
.pp-msg-btn:active { transform: translateY(0) scale(.98); }

/* main-content state */
.main-content.profile-open,
.main-content.view-profile {
  padding: 0;
  overflow: hidden;
  max-width: none;
  width: 100%;
  flex: 1 1 100%;
}

@media (max-width: 900px) {
  .pp-match { min-width: 118px; }
  .pp-match-num { font-size: 3.4rem; }
  .pp-match-sym { font-size: 1.4rem; }
  .pp-match-label { font-size: .66rem; margin-top: 4px; }
  .pp-match-track { width: 112px; height: 3px; margin-top: 10px; }
}

/* ══════════════════════════════════════
   PROFILE MODAL
══════════════════════════════════════ */

.pmodal-overlay {
  position: fixed; inset: 0; z-index: 400;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none;
  transition: opacity 240ms ease;
}
.pmodal-overlay.open {
  opacity: 1; pointer-events: all;
}

.pmodal {
  position: relative;
  width: 420px;
  max-width: calc(100vw - 32px);
  max-height: 88vh;
  background: var(--bg-card);
  border-radius: 22px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.06);
  transform: translateY(28px) scale(.97);
  transition: transform 280ms cubic-bezier(.22,.68,0,1.2);
}
.pmodal-overlay.open .pmodal {
  transform: translateY(0) scale(1);
}

/* close button */
.pmodal-close {
  position: absolute; top: 14px; right: 14px; z-index: 10;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.9);
  transition: background var(--transition), transform var(--transition);
}
.pmodal-close:hover { background: rgba(0,0,0,.75); transform: scale(1.08); }

/* ── photo ── */
.pmodal-photo-wrap {
  position: relative;
  flex-shrink: 0;
  height: 340px;
  overflow: hidden;
}
.pmodal-photo {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.pmodal-photo-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 30%,
    rgba(0,0,0,.18) 55%,
    rgba(10,8,14,.92) 100%
  );
}

/* identity overlay at bottom of photo */
.pmodal-identity {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 16px 20px 18px;
}
.pmodal-name-row {
  display: flex; align-items: baseline; gap: 0;
  margin-bottom: 6px;
}
.pmodal-name {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 600;
  color: #fff;
  letter-spacing: -.02em;
  line-height: 1;
  margin-right: 6px;
}
.pmodal-age {
  font-size: 1.35rem; font-weight: 700;
  color: #fff;
  font-family: var(--font-display);
}
.pmodal-online {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--online-green);
  box-shadow: 0 0 0 2px rgba(52,211,153,.3);
  display: none;
  margin-bottom: 3px;
  margin-left: 8px;
}
.pmodal-online.visible { display: block; }
.pmodal-location {
  display: flex; align-items: center; gap: 5px;
  color: rgba(255,255,255,.9);
  font-size: .8rem; font-weight: 400;
}

/* ── scrollable body ── */
.pmodal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 20px 0;
  scrollbar-width: none;
}
.pmodal-body::-webkit-scrollbar { display: none; }

/* match bar */
.pmodal-match {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,.05);
}
.pmodal-match-left {
  display: flex; align-items: baseline; gap: 5px;
  flex-shrink: 0;
}
.pmodal-match-pct {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 600;
  background: linear-gradient(90deg, var(--accent-rose), var(--accent-gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.pmodal-match-label {
  font-size: .72rem; font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .06em;
}
.pmodal-match-track {
  flex: 1; height: 5px;
  background: rgba(255,255,255,.08);
  border-radius: 99px;
  overflow: hidden;
}
.pmodal-match-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-rose), var(--accent-gold));
  border-radius: 99px;
  transition: width 600ms cubic-bezier(.22,.68,0,1.1) 200ms;
}

/* bio */
.pmodal-bio {
  font-size: .9rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}

/* prompts */
.pmodal-prompts { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.pmodal-prompt {
  background: var(--bg-elevated);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  position: relative;
  overflow: hidden;
}
.pmodal-prompt::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent-rose), var(--accent-gold));
  border-radius: 99px;
}
.pmodal-prompt-q {
  font-size: .68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--accent-rose);
  margin-bottom: 6px;
}
.pmodal-prompt-a {
  font-size: .875rem;
  line-height: 1.5;
  color: var(--text-primary);
  font-weight: 400;
}

/* tags */
.pmodal-tags {
  display: flex; flex-wrap: wrap; gap: 7px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.pmodal-tag {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  font-size: .75rem; font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: .01em;
}

/* sticky action bar */
.pmodal-actions {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px 20px;
  background: linear-gradient(to top, var(--bg-card) 75%, transparent);
}
.pmodal-like-btn {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.12);
  background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: border-color var(--transition), color var(--transition), background var(--transition), transform 120ms ease;
}
.pmodal-like-btn:hover {
  border-color: var(--accent-rose);
  color: var(--accent-rose);
  background: rgba(232,86,109,.08);
}
.pmodal-like-btn:active { transform: scale(.92); }
.pmodal-like-btn.liked {
  border-color: var(--accent-rose);
  background: rgba(232,86,109,.15);
  color: var(--accent-rose);
}
.pmodal-like-btn.liked svg { fill: var(--accent-rose); }

.pmodal-msg-btn {
  flex: 1; height: 52px;
  border-radius: var(--radius-full);
  background: var(--accent-rose);
  color: #fff;
  font-size: .9rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  letter-spacing: .01em;
  transition: background var(--transition), transform 120ms ease, box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(232,86,109,.4);
}
.pmodal-msg-btn:hover {
  background: var(--accent-rose-hover);
  box-shadow: 0 6px 28px rgba(232,86,109,.55);
  transform: translateY(-1px);
}
.pmodal-msg-btn:active { transform: translateY(0) scale(.98); }


/* ══════════════════════════════════════
   MESSAGES VIEW (inbox)
══════════════════════════════════════ */
.messages-view {
  width: 100%;
  min-height: calc(100vh - 64px);
  max-width: 740px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.messages-view.hidden { display: none; }

.inbox-header {
  margin-bottom: 32px;
}
.inbox-title-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}
.inbox-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -.02em;
}
.inbox-count {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Search bar */
.inbox-search-wrap {
  position: relative;
}
.inbox-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.inbox-search {
  width: 100%;
  height: 42px;
  background: var(--bg-elevated);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius-full);
  padding: 0 16px 0 40px;
  font-size: .875rem;
  color: var(--text-primary);
  transition: border-color var(--transition);
}
.inbox-search:focus {
  border-color: rgba(232,86,109,.35);
}
.inbox-search::placeholder { color: var(--text-muted); }

/* Row list */
.inbox-list {
  display: flex;
  flex-direction: column;
}

/* Individual row */
.inbox-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 12px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: background var(--transition);
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.inbox-row:last-child { border-bottom: none; }
.inbox-row:hover { background: var(--bg-hover); }
.inbox-row.active { background: rgba(232,86,109,.07); }

/* Avatar */
.inbox-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.inbox-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.inbox-online-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--online-green);
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 5px rgba(52,211,153,.5);
}

/* Text content */
.inbox-row-body {
  flex: 1;
  min-width: 0;
}
.inbox-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.inbox-row-name {
  font-size: .93rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inbox-row-time {
  font-size: .7rem;
  color: var(--text-muted);
  flex-shrink: 0;
}
.inbox-row-preview {
  font-size: .82rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inbox-row-preview.unread {
  color: var(--text-primary);
  font-weight: 500;
}

/* Chevron */
.inbox-row-chevron {
  color: var(--text-muted);
  flex-shrink: 0;
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition);
}
.inbox-row:hover .inbox-row-chevron {
  opacity: 1;
  transform: translateX(2px);
}

/* Empty state */
.inbox-empty {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
}
.inbox-empty.visible { display: flex; }
.inbox-empty-icon {
  font-size: 3.5rem;
  color: var(--accent-rose);
  opacity: .18;
  margin-bottom: 20px;
}
.inbox-empty-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.inbox-empty-body {
  color: var(--text-secondary);
  font-size: .9rem;
  margin-bottom: 28px;
}
.inbox-empty-cta {
  padding: 12px 28px;
  border-radius: var(--radius-full);
  background: var(--accent-rose);
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(232,86,109,.38);
  transition: background var(--transition), transform 120ms ease;
}
.inbox-empty-cta:hover { background: var(--accent-rose-hover); transform: translateY(-1px); }
.inbox-empty-cta:active { transform: scale(.98); }

/* ══════════════════════════════════════
   MATCHES VIEW
══════════════════════════════════════ */
.matches-view {
  width: 100%;
  min-height: calc(100vh - 64px);
  padding: 64px 48px 100px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 50vw 60vh at 10% 0%, rgba(232,86,109,.07) 0%, transparent 68%),
    radial-gradient(ellipse 44vw 54vh at 88% 100%, rgba(212,168,83,.055) 0%, transparent 70%),
    var(--bg-primary);
}
.matches-view.hidden { display: none; }

/* Ambient background glow */
.matches-view::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -5%;
  width: 50vw;
  height: 60vh;
  background: radial-gradient(ellipse at 30% 30%, rgba(232,86,109,.07) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.matches-view::after {
  content: '';
  position: absolute;
  bottom: -8%;
  right: -5%;
  width: 40vw;
  height: 50vh;
  background: radial-gradient(ellipse at 70% 70%, rgba(212,168,83,.05) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* ── Hero Header ── */
.matches-hero {
  position: relative;
  z-index: 1;
  margin-bottom: 56px;
}
.matches-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent-rose);
  margin-bottom: 16px;
  opacity: 0;
  animation: matchesViewFadeUp 600ms ease 80ms both;
}
.matches-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--accent-rose);
  opacity: .6;
}
.matches-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -.02em;
  color: var(--text-primary);
  opacity: 0;
  animation: matchesViewFadeUp 600ms ease 160ms both;
}
.matches-subtitle {
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: .95rem;
  opacity: 0;
  animation: matchesViewFadeUp 600ms ease 240ms both;
}

/* ── Grid ── */
.matches-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
}

/* ── Card ── */
.mcard {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: pointer;
  background: var(--bg-card);
  box-shadow: 0 6px 30px rgba(0,0,0,.45);
  opacity: 0;
  animation: matchesCardIn 550ms cubic-bezier(.22,.84,.2,1) both;
  transition: transform 340ms cubic-bezier(.2,.8,.2,1), box-shadow 340ms ease;
}
.mcard:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 24px 64px rgba(0,0,0,.65), 0 0 0 1px rgba(232,86,109,.18);
}
.mcard-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(.2,.8,.2,1);
}
.mcard:hover .mcard-img {
  transform: scale(1.06);
}

/* Gradient overlay — always present */
.mcard-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.0)  30%,
    rgba(0,0,0,.18) 55%,
    rgba(0,0,0,.75) 85%,
    rgba(0,0,0,.88) 100%
  );
  transition: background 340ms ease;
}
.mcard:hover .mcard-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.08) 20%,
    rgba(0,0,0,.28) 50%,
    rgba(0,0,0,.82) 80%,
    rgba(0,0,0,.92) 100%
  );
}

/* Match % badge — top right */
.mcard-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 7px 11px 5px;
  border-radius: 12px;
  background: rgba(8,8,10,.68);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.mcard-badge-pct {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(125deg, var(--accent-rose) 20%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mcard-badge-label {
  font-size: .52rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Bottom info — always visible */
.mcard-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 18px 20px;
  transition: transform 340ms cubic-bezier(.2,.8,.2,1), opacity 340ms ease;
}
.mcard:hover .mcard-info {
  transform: translateY(-52px);
}
.mcard-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  display: block;
  line-height: 1.1;
}
.mcard-age {
  font-size: .82rem;
  font-weight: 700;
  color: #fff;
  margin-top: 3px;
  display: block;
}

/* Action buttons — slide up on hover */
.mcard-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 14px 16px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 280ms ease 60ms, transform 300ms cubic-bezier(.2,.8,.2,1) 60ms;
}
.mcard:hover .mcard-actions {
  opacity: 1;
  transform: translateY(0);
}
.mcard-btn {
  flex: 1;
  height: 42px;
  border-radius: 12px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 180ms ease, transform 120ms ease;
}
.mcard-btn:active { transform: scale(.97); }
.mcard-btn-msg {
  background: var(--accent-rose);
  color: #fff;
  box-shadow: 0 4px 18px rgba(232,86,109,.45);
}
.mcard-btn-msg:hover { background: var(--accent-rose-hover); }
.mcard-btn-profile {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.1);
}
.mcard-btn-profile:hover { background: rgba(255,255,255,.18); }

/* ── Empty State ── */
.matches-empty {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
}
.matches-empty-heart {
  font-size: 5rem;
  line-height: 1;
  color: var(--accent-rose);
  opacity: .22;
  margin-bottom: 24px;
  font-family: serif;
}
.matches-empty-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.matches-empty-body {
  color: var(--text-secondary);
  font-size: .95rem;
  max-width: 320px;
  line-height: 1.7;
  margin-bottom: 32px;
}
.matches-empty-cta {
  padding: 13px 32px;
  border-radius: var(--radius-full);
  background: var(--accent-rose);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 6px 24px rgba(232,86,109,.4);
  transition: background var(--transition), transform 120ms ease, box-shadow var(--transition);
}
.matches-empty-cta:hover {
  background: var(--accent-rose-hover);
  box-shadow: 0 8px 30px rgba(232,86,109,.55);
  transform: translateY(-1px);
}
.matches-empty-cta:active { transform: translateY(0) scale(.98); }

/* ── Entrance Animations ── */
@keyframes matchesViewFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes matchesCardIn {
  from { opacity: 0; transform: translateY(28px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .matches-view { padding: 48px 24px 80px; }
  .matches-hero { margin-bottom: 36px; }
}
@media (max-width: 600px) {
  .matches-view { padding: 36px 16px 72px; }
  .matches-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .mcard-actions { gap: 6px; padding: 10px 10px 12px; }
  .mcard-btn { height: 38px; font-size: .74rem; border-radius: 10px; }
  .mcard:hover .mcard-info { transform: translateY(-48px); }
}


/* ══════════════════════════════════════
   LIVE VIEW
══════════════════════════════════════ */
.live-view {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.live-view.hidden { display: none; }

/* ── Ambient background ── */
.live-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.live-bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(232,86,109,.18) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(212,168,83,.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 85% 75%, rgba(232,86,109,.05) 0%, transparent 55%);
}
.live-bg-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,.06) 3px,
    rgba(0,0,0,.06) 4px
  );
  animation: liveScanlinesScroll 12s linear infinite;
  opacity: .6;
}
.live-bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 100% at 50% 50%, transparent 40%, rgba(0,0,0,.55) 100%);
}

/* ── Inner layout ── */
.live-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 24px 80px;
  max-width: 780px;
  width: 100%;
  gap: 0;
}

/* ── On-Air Badge ── */
.live-air-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: rgba(232,86,109,.1);
  border: 1px solid rgba(232,86,109,.28);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-rose);
  margin-bottom: 32px;
  opacity: 0;
  animation: liveFadeUp 600ms ease 100ms both;
}
.live-air-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-rose);
  box-shadow: 0 0 8px rgba(232,86,109,.8);
  animation: liveAirDotPulse 1400ms ease-in-out infinite;
  flex-shrink: 0;
}
.live-air-sep { opacity: .4; }
.live-air-soon { color: var(--text-muted); }

/* ── Headline ── */
.live-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  font-weight: 700;
  line-height: 1.02;
  color: var(--text-primary);
  letter-spacing: -.025em;
  margin-bottom: 20px;
  opacity: 0;
  animation: liveFadeUp 700ms ease 200ms both;
}
.live-headline em {
  font-style: italic;
  background: linear-gradient(125deg, #fff 30%, rgba(255,255,255,.55));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.live-period {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-rose), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: normal;
}
.live-sub {
  font-size: .97rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 52px;
  opacity: 0;
  animation: liveFadeUp 600ms ease 300ms both;
}

/* ── Stage ── */
/* ── Feature pills ── */
.live-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 48px;
  opacity: 0;
  animation: liveFadeUp 600ms ease 560ms both;
}
.live-feat {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.live-feat-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-rose);
  opacity: .7;
  flex-shrink: 0;
}

/* ── CTA ── */
.live-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  opacity: 0;
  animation: liveFadeUp 600ms ease 680ms both;
}
.live-waitlist {
  font-size: .82rem;
  color: var(--text-muted);
}
.live-waitlist-num {
  color: var(--accent-rose);
  font-weight: 700;
}
.live-notify-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-rose) 0%, #c03060 100%);
  color: #fff;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 8px 32px rgba(232,86,109,.42), 0 2px 8px rgba(0,0,0,.3);
  transition: transform 160ms ease, box-shadow 200ms ease, background 200ms ease;
}
.live-notify-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 44px rgba(232,86,109,.55), 0 2px 12px rgba(0,0,0,.3);
}
.live-notify-btn:active { transform: translateY(0) scale(.98); }
.live-notify-btn.notified {
  background: linear-gradient(135deg, #2d6a4f 0%, #1b4332 100%);
  box-shadow: 0 8px 32px rgba(52,211,153,.25);
}
.live-notify-note {
  font-size: .75rem;
  color: var(--text-muted);
}

/* ── Keyframes ── */
@keyframes liveFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes liveAirDotPulse {
  0%, 100% { opacity: 1;  transform: scale(1); }
  50%       { opacity: .35; transform: scale(.75); }
}
@keyframes liveScanlinesScroll {
  from { transform: translateY(0); }
  to   { transform: translateY(40px); }
}
/* ── Responsive ── */
@media (max-width: 640px) {
  .live-features { gap: 8px; }
  .live-feat { font-size: .74rem; padding: 7px 13px; }
  .live-sub br { display: none; }
}

/* ══════════════════════════════════════
   VERIFICATION HELP ARTICLE
══════════════════════════════════════ */
.verification-open .sidebar { display: none; }
.verification-open .app-layout {
  display: block;
  padding-top: 0;
  min-height: 100vh;
}
.verification-open .site-header { display: none; }
.verification-open .main-content {
  max-width: none;
  min-height: 100vh;
  padding: 0;
  overflow: visible;
}
.verification-view,
.legal-view {
  min-height: 100vh;
  overflow-y: auto;
  background: #000;
  color: #f5f5f5;
}
.verification-view.hidden,
.legal-view.hidden { display: none; }
.verification-help-header {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 32px;
  border-bottom: 1px solid #1f1f1f;
  background: #000;
}
.verification-help-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 750;
}
.verification-help-brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
.verification-help-search {
  width: min(360px, 42vw);
  height: 42px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  border-radius: 999px;
  background: #111;
  color: #777;
  font-size: .92rem;
}
.verification-article {
  width: min(920px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 38px 0 84px;
}
.verification-breadcrumb {
  color: #9a9a9a;
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: 24px;
}
.verification-breadcrumb span {
  color: #5f5f5f;
  padding: 0 8px;
}
.verification-article h1 {
  max-width: 760px;
  margin: 0 0 24px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.07;
  letter-spacing: 0;
}
.verification-lede,
.verification-article p,
.verification-article li {
  color: #d4d4d4;
  font-size: 1.02rem;
  line-height: 1.58;
}
.verification-lede {
  max-width: 780px;
  margin: 0 0 38px;
  color: #e5e5e5;
  font-size: 1.12rem;
}
.verification-panel {
  margin: 0 0 34px;
  padding: 26px 28px;
  border: 1px solid #242424;
  border-radius: 8px;
  background: #0b0b0b;
}
.verification-panel p {
  margin-top: 0;
}
.verification-article h2 {
  margin: 42px 0 16px;
  color: #fff;
  font-size: 1.28rem;
  line-height: 1.25;
  letter-spacing: 0;
}
.verification-article ul,
.verification-article ol {
  margin: 0 0 22px;
  padding-left: 28px;
}
.verification-article ul { list-style: disc; }
.verification-article ol { list-style: decimal; }
.verification-article li {
  margin: 13px 0;
}
.verification-article strong {
  color: #fff;
  font-weight: 800;
}
.verification-article a {
  color: #57a8ff;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.verification-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #222;
}
@media (max-width: 720px) {
  .verification-help-header {
    height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 20px;
  }
  .verification-help-search {
    width: 100%;
  }
  .verification-article {
    width: calc(100vw - 32px);
    padding: 34px 0 62px;
  }
  .verification-panel {
    padding: 20px;
  }
}

/* ══════════════════════════════════════
   POST-SIGNUP SWIPE VIEW
══════════════════════════════════════ */
.swipe-view {
  position: relative;
  height: calc(100vh - 64px);
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #08080a;
}
.swipe-view.hidden { display: none; }
.swipe-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 15%, rgba(232,86,109,.16), transparent 34%),
    radial-gradient(circle at 18% 75%, rgba(212,168,83,.09), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0) 42%);
}
.swipe-shell {
  position: relative;
  z-index: 1;
  width: min(430px, calc(100vw - 34px));
  height: 100%;
  max-height: calc(100vh - 64px - 20px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 0;
  box-sizing: border-box;
}
.swipe-topline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text-secondary);
  font-size: .78rem;
}
.swipe-topline span {
  display: none !important;
}
.swipe-topline strong {
  font-weight: 700;
  text-align: center;
  line-height: 1.35;
}
.swipe-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 650px;
  perspective: 1200px;
  aspect-ratio: 3 / 4;
  margin: 0 auto;
  width: auto;
  max-width: 100%;
  align-self: center;
  container-type: inline-size;
}
.swipe-stack-card {
  position: absolute;
  inset: 0 0 26px;
  border-radius: 30px;
  overflow: hidden;
  background:
    linear-gradient(155deg, rgba(255,255,255,.09), rgba(255,255,255,.02)),
    #15151a;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 24px 70px rgba(0,0,0,.45);
  transform-origin: 50% 100%;
  transition: transform 380ms cubic-bezier(.2,.82,.2,1), opacity 260ms ease;
}
.swipe-stack-card-1 {
  z-index: 1;
  transform: translateY(14px) scale(.955);
  opacity: .88;
}
.swipe-stack-card-2 {
  z-index: 0;
  transform: translateY(27px) scale(.91);
  opacity: .48;
}
.swipe-stage.deck-advance .swipe-stack-card-1 {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.swipe-stage.deck-advance .swipe-stack-card-2 {
  transform: translateY(14px) scale(.955);
  opacity: .88;
}
.swipe-card {
  position: absolute;
  inset: 0 0 26px;
  z-index: 2;
  border-radius: 30px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,.11);
  box-shadow: 0 36px 110px rgba(0,0,0,.72), 0 0 0 1px rgba(232,86,109,.08);
  transform: translateX(0) rotate(0deg) scale(1);
  opacity: 1;
  transition: transform 360ms cubic-bezier(.2,.82,.2,1), opacity 260ms ease;
  touch-action: pan-y;
  user-select: none;
}
.swipe-card.exit-left {
  transform: translateX(-145%) translateY(26px) rotate(-22deg) scale(.92);
  opacity: 0;
}
.swipe-card.exit-right {
  transform: translateX(145%) translateY(26px) rotate(22deg) scale(.92);
  opacity: 0;
}
.swipe-card.exit-super {
  transform: translateY(-142%) rotate(0deg) scale(.9);
  opacity: 0;
}
.swipe-card.entering {
  animation: swipeCardIn 420ms cubic-bezier(.2,.82,.2,1) both;
}
.swipe-card.needs-like {
  animation: swipeNudge 420ms ease both;
}
.swipe-card.preview-like {
  transform: translateX(42px) rotate(5deg);
}
.swipe-card.preview-pass {
  transform: translateX(-42px) rotate(-5deg);
}
.swipe-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 220ms ease, filter 220ms ease, transform 420ms ease;
}
.swipe-card.superlike-playing .swipe-photo {
  opacity: .16;
  filter: blur(5px) saturate(1.25);
  transform: scale(1.04);
}
.swipe-card.superlike-playing .swipe-card-copy,
.swipe-card.superlike-playing .swipe-like-flag {
  opacity: 0;
}
.swipe-photo-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.05) 0%, transparent 34%, rgba(0,0,0,.86) 100%),
    radial-gradient(circle at 50% 92%, rgba(232,86,109,.16), transparent 42%);
}
.swipe-lottie-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(.92);
  transition: opacity 180ms ease, transform 220ms ease;
}
.swipe-card.superlike-playing .swipe-lottie-layer {
  opacity: 1;
  transform: scale(1);
}
#superlike-lottie {
  width: min(78%, 340px);
  height: min(78%, 340px);
}
.swipe-stamp {
  position: absolute;
  top: 34px;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  padding: 8px 15px;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 950;
  letter-spacing: .12em;
  background: rgba(0,0,0,.22);
  backdrop-filter: blur(8px);
  transform: rotate(-12deg) scale(0.9);
  transition: opacity 150ms ease, transform 150ms ease;
}
.swipe-stamp-like {
  left: 26px;
  color: #62f0b2;
  border: 3px solid rgba(98,240,178,.86);
}
.swipe-stamp-pass {
  right: 26px;
  color: #ff768a;
  border: 3px solid rgba(255,118,138,.86);
  transform: rotate(12deg) scale(0.9);
}
.swipe-card.exit-right .swipe-stamp-like,
.swipe-card.preview-like .swipe-stamp-like {
  opacity: 1;
  transform: rotate(-12deg) scale(1.05);
}
.swipe-card.exit-left .swipe-stamp-pass,
.swipe-card.preview-pass .swipe-stamp-pass {
  opacity: 1;
  transform: rotate(12deg) scale(1.05);
}
.swipe-like-flag {
  position: absolute;
  top: 20px;
  left: 20px;
  display: none;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(232,86,109,.92);
  color: #fff;
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .16em;
  box-shadow: 0 12px 34px rgba(232,86,109,.35);
  opacity: 1;
  transition: opacity 180ms ease;
}
.swipe-card.has-like .swipe-like-flag { display: inline-flex; }
.swipe-card-copy {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 58px; /* Raised slightly away from actions pill */
  opacity: 1;
  transition: opacity 180ms ease;
}
.swipe-name-row {
  display: flex;
  align-items: baseline;
  gap: 0;
  font-family: var(--font-display);
  color: #fff;
  line-height: 1;
}
#swipe-name {
  font-size: clamp(1.8rem, 10cqw, 3rem);
  font-weight: 700;
  margin-right: 6px;
}
#swipe-age {
  font-size: clamp(1.2rem, 6cqw, 1.8rem);
  color: #fff;
  font-weight: 700;
}
.swipe-location {
  margin-top: 9px;
  color: rgba(255,255,255,.65);
  font-size: .92rem;
  font-weight: 600;
}
.swipe-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.swipe-tags span {
  height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.84);
  font-size: .76rem;
  font-weight: 700;
}
.swipe-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 64px 64px 1fr;
  gap: 12px;
  padding: 12px 10px 14px;
  border-radius: 0 0 30px 30px;
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.swipe-actions::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 0 0 30px 30px;
  background: linear-gradient(to top, rgba(8, 8, 12, 1) 0%, rgba(8, 8, 12, 0.95) 30%, rgba(8, 8, 12, 0.7) 60%, rgba(8, 8, 12, 0) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.11);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 35%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 35%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}
.swipe-action {
  height: 56px;
  border-radius: 999px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 160ms ease, filter 180ms ease, box-shadow 180ms ease;
}
.swipe-action:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}
.swipe-action:disabled {
  opacity: .28;
  cursor: default;
  transform: none;
  filter: none;
}
.swipe-pass {
  background: #16161b;
  border: 1px solid #2a2a31;
  color: #8c8c96;
}
.swipe-super {
  background: #123e62;
  border: 1px solid #3f9ee8;
  color: #9fddff;
  box-shadow: 0 12px 34px rgba(67,153,255,.28);
}
.swipe-like {
  background: linear-gradient(135deg, #f05d76, #c93162);
  color: #fff;
  font-size: .92rem;
  box-shadow: 0 16px 44px rgba(232,86,109,.34);
}
.swipe-like.is-match {
  background: linear-gradient(135deg, #ff6f87, #e44969);
  box-shadow: 0 18px 58px rgba(232,86,109,.52);
}
@keyframes swipeCardIn {
  from { opacity: 0; transform: translateY(26px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes swipeNudge {
  0%, 100% { transform: translateX(0) rotate(0); }
  30% { transform: translateX(10px) rotate(1.5deg); }
  62% { transform: translateX(-6px) rotate(-1deg); }
}
.superlike-burst {
  position: absolute;
  left: 50%;
  top: 49%;
  z-index: 7;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
}
.superlike-burst.active {
  opacity: 1;
}
.superlike-burst span {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(135deg, #76d7ff, #328bff);
  box-shadow: 0 0 24px rgba(73,166,255,.72);
  transform: translate(-50%, -50%) rotate(45deg) scale(.4);
  animation: superShard 760ms cubic-bezier(.14,.78,.24,1) both;
}
.superlike-burst span:nth-child(1) { --x: -118px; --y: -128px; animation-delay: 0ms; }
.superlike-burst span:nth-child(2) { --x: 126px; --y: -118px; animation-delay: 45ms; }
.superlike-burst span:nth-child(3) { --x: -146px; --y: 12px; animation-delay: 80ms; }
.superlike-burst span:nth-child(4) { --x: 148px; --y: 24px; animation-delay: 35ms; }
.superlike-burst span:nth-child(5) { --x: 0px; --y: -178px; animation-delay: 110ms; }
@keyframes superShard {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(45deg) scale(.35); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(225deg) scale(1); }
}
@media (max-width: 560px) {
  .swipe-shell { width: min(420px, calc(100vw - 24px)); padding: 8px 0; gap: 8px; }
  .swipe-stage { min-height: 0; }
  .swipe-card, .swipe-stack-card { border-radius: 24px; }
  .swipe-topline { align-items: center; justify-content: center; }
  .swipe-actions { grid-template-columns: 56px 56px 1fr; gap: 8px; left: 0; right: 0; bottom: 0; padding: 10px 8px 12px; border-radius: 0 0 24px 24px; }
  .swipe-actions::before { border-radius: 0 0 24px 24px; }
  .swipe-action { height: 52px; }
  .swipe-card-copy { bottom: 50px; left: 18px; right: 18px; }
}

/* ─── Profile Boost Overlay ─── */
.boost-reveal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(8, 6, 12, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.boost-reveal-glow-bg {
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.12) 0%, rgba(232, 86, 109, 0.05) 40%, transparent 70%);
  animation: boostGlowPulse 8s ease infinite alternate;
  pointer-events: none;
}

@keyframes boostGlowPulse {
  0% { transform: scale(1) rotate(0deg); opacity: 0.8; }
  100% { transform: scale(1.2) rotate(180deg); opacity: 1; }
}

.boost-reveal-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 600px;
  padding: 40px 20px;
  background: transparent;
  border: none;
  border-radius: 0;
  backdrop-filter: none;
  box-shadow: none;
}

.boost-reveal-visual {
  position: relative;
  width: 320px;
  height: 320px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: boostRevealVisualIn 1000ms cubic-bezier(0.16, 1, 0.3, 1) 200ms both;
}

@keyframes boostRevealVisualIn {
  0% { opacity: 0; transform: scale(0.85); filter: blur(10px); }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

#boost-lottie {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  z-index: 1;
  pointer-events: none;
}

.boost-reveal-photo-container {
  width: 125px;
  height: 125px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
  overflow: hidden;
  position: relative;
  z-index: 2;
  background: #1a1625;
  animation: boostPhotoPulse 3s ease-in-out infinite alternate;
}

@keyframes boostPhotoPulse {
  0% {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
    border-color: rgba(255, 255, 255, 0.25);
  }
  100% {
    box-shadow: 0 0 45px rgba(139, 92, 246, 0.55);
    border-color: rgba(255, 255, 255, 0.55);
  }
}

.boost-reveal-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #1a1625;
  display: flex;
  align-items: center;
  justify-content: center;
}

.boost-reveal-photo svg {
  width: 48px;
  height: 48px;
  color: rgba(255, 255, 255, 0.8);
}

.boost-reveal-title {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #ffffff;
  margin-top: 10px;
  margin-bottom: 8px;
  text-transform: uppercase;
  animation: boostFadeSlideUp 900ms cubic-bezier(0.16, 1, 0.3, 1) 400ms both;
}

@keyframes boostFadeSlideUp {
  0% { opacity: 0; transform: translateY(28px); }
  100% { opacity: 1; transform: translateY(0); }
}

.boost-reveal-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  margin-bottom: 28px;
  max-width: 420px;
  line-height: 1.5;
  animation: boostFadeSlideUp 900ms cubic-bezier(0.16, 1, 0.3, 1) 550ms both;
}

.boost-reveal-benefits {
  display: flex;
  gap: 14px;
  margin-bottom: 38px;
  justify-content: center;
  animation: boostFadeSlideUp 900ms cubic-bezier(0.16, 1, 0.3, 1) 700ms both;
}

.boost-benefit-tag {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.boost-reveal-close-btn {
  background: #ffffff;
  color: #000000;
  border: none;
  padding: 16px 54px;
  border-radius: 30px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.12);
  animation: boostFadeScaleIn 900ms cubic-bezier(0.16, 1, 0.3, 1) 850ms both;
}

.boost-reveal-close-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 35px rgba(255, 255, 255, 0.22);
  background: #fcfcfc;
}

.boost-reveal-close-btn:active {
  transform: translateY(1px);
}

@keyframes boostFadeScaleIn {
  0% { opacity: 0; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}

/* Sparks / Sparkles */
.boost-sparkle {
  position: absolute;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  animation: boostSparkleAnim 1.5s ease-out forwards;
}

@keyframes boostSparkleAnim {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; }
}

/* Active Boost Banner State */
.cta-banner.boost-active {
  background: linear-gradient(135deg, rgba(20, 12, 35, 0.9) 0%, rgba(45, 20, 70, 0.9) 100%);
  border: 1px solid rgba(168, 85, 247, 0.6);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
  position: relative;
  overflow: hidden;
}

.cta-banner.boost-active::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.15), transparent);
  transform: translateX(-100%);
  animation: boostBannerShimmer 3s infinite;
}

@keyframes boostBannerShimmer {
  100% { transform: translateX(100%); }
}

.cta-banner.boost-active .cta-btn {
  background: linear-gradient(135deg, #a855f7 0%, var(--accent-rose) 100%);
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

/* ══════════════════════════════════════
   MOBILE BOTTOM NAVIGATION & RESPONSIVE OVERRIDES
   ══════════════════════════════════════ */
.mobile-bottom-nav {
  display: none;
}

.account-stat-box {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.065);
  text-align: center;
  font-family: inherit;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
button.account-stat-box {
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
button.account-stat-box:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}
button.account-stat-box:active {
  transform: translateY(0);
}
.account-flame-val {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text-primary);
  line-height: 1;
}
.profile-mobile-credits-btn {
  display: none !important;
}

@media (max-width: 768px) {
  /* Header adjustments */
  .header-nav {
    display: none !important;
  }
  .site-header {
    padding: 0 16px;
    position: fixed;
    justify-content: center;
  }
  .header-left {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
  }
  .sidebar-toggle-btn {
    display: none !important;
  }
  .header-logo {
    gap: 8px;
    font-size: 1.5rem;
    white-space: nowrap;
  }
  .header-logo .logo-icon {
    width: 34px;
    height: 34px;
  }
  .header-right {
    width: 100%;
    justify-content: space-between;
    gap: 0;
    position: relative;
    z-index: 2;
  }
  .coin-balance {
    padding: 5px 10px 5px 7px;
    gap: 4px;
    font-size: 0.82rem;
  }
  .coin-balance .flame-icon {
    width: 24px !important;
    height: 24px !important;
  }
  .coin-plus {
    width: 18px;
    height: 18px;
    margin-left: 1px;
    font-size: 0.7rem;
  }

  /* App layouts */
  .app-layout {
    padding-bottom: var(--bottom-tabs-total-h);
  }

  /* Hide scrollbars on mobile */
  html {
    overflow-x: hidden;
    scrollbar-width: none;
  }
  body {
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  html::-webkit-scrollbar,
  body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  /*
    Discover: document scroll for iOS Safari chrome collapse.
    Keep body/main barely scrollable (+2px). Never lock body or inner-scroll #discover-feed.
  */
  body.discover-view {
    min-height: calc(100dvh + 2px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: none;
  }
  body.discover-view .app-layout {
    height: auto;
    min-height: 0;
    overflow: visible;
    padding-top: 0;
    padding-bottom: 0;
  }
  body.discover-view .main-content.view-discover {
    min-height: calc(100dvh + 2px);
    height: auto;
    overflow: visible !important;
    padding: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 12px calc(var(--tab-h) + env(safe-area-inset-bottom, 0px) + 32px) 16px !important;
  }
  body.discover-view .discover-feed:not(.hidden),
  body.discover-view #discover-feed {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .main-content {
    padding: 16px 12px calc(24px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .main-content.view-matches,
  .main-content.view-live,
  .main-content.view-swipe,
  .main-content.view-chat,
  .main-content.view-profile {
    padding: 0 !important;
  }

  /* Height-controlled PWA view limits (inner scroll — not Discover) */
  .swipe-view {
    height: calc(var(--vvh) - var(--header-h) - var(--bottom-tabs-total-h)) !important;
    max-height: calc(var(--vvh) - var(--header-h) - var(--bottom-tabs-total-h)) !important;
    overscroll-behavior: none !important;
  }
  .swipe-shell {
    max-height: calc(var(--vvh) - var(--header-h) - var(--bottom-tabs-total-h) - 16px) !important;
  }
  
  /* Fullscreen chat — overlays global header and bottom tab bar */
  body.chat-open {
    overflow: hidden;
  }
  body.chat-open .site-header {
    display: none !important;
  }
  body.chat-open .mobile-bottom-nav {
    display: none !important;
  }
  body.chat-open .app-layout {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  body.chat-open .main-content {
    padding: 0 !important;
  }
  body.chat-open .chat-view {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: var(--chat-visual-h, var(--chat-stable-h, 100dvh));
    max-height: var(--chat-visual-h, var(--chat-stable-h, 100dvh));
    z-index: 200;
    background: var(--bg-primary);
    overscroll-behavior: none !important;
    display: flex !important;
    flex-direction: column;
  }
  body.chat-open .chat-view-header {
    padding-top: calc(14px + env(safe-area-inset-top, 0px));
    flex-shrink: 0;
  }
  body.chat-open .chat-messages-area {
    flex: 1 1 auto;
    min-height: 0;
  }
  body.chat-open .chat-input-bar {
    flex-shrink: 0;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
  body.chat-open .chat-starter-row {
    flex-shrink: 0;
  }
  .chat-messages-area {
    overscroll-behavior-y: contain !important;
  }

  /* Profile page dedicated view height control on mobile */
  .profile-page {
    min-height: calc(100dvh - 64px - 68px - env(safe-area-inset-bottom, 0px)) !important;
    height: calc(100dvh - 64px - 68px - env(safe-area-inset-bottom, 0px)) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: #0a0a0c;
    -webkit-overflow-scrolling: touch;
  }
  .profile-page.active {
    display: block !important;
  }
  .pp-photo-col {
    width: 100%;
    height: min(62dvh, 520px) !important;
    min-height: 390px;
  }
  .pp-photo {
    height: 100%;
    object-position: center center;
  }
  .pp-photo-col::before {
    background: linear-gradient(
      to bottom,
      rgba(4,3,8,.04) 0%,
      transparent 34%,
      rgba(4,3,8,.54) 74%,
      #0a0a0c 100%
    );
  }
  .pp-photo-col::after {
    display: none;
  }
  .pp-photo-identity {
    padding: 0 18px 26px;
  }
  .pp-name-row {
    gap: 10px;
    margin-bottom: 8px;
  }
  .pp-name {
    font-size: clamp(3.2rem, 18vw, 5rem);
  }
  .pp-age {
    font-size: clamp(1.6rem, 8vw, 2.4rem);
  }
  .pp-location {
    font-size: 0.86rem;
  }
  .pp-info-col {
    height: auto !important;
    overflow: visible !important;
    background: #0a0a0c;
  }
  .pp-info-inner {
    min-height: 0 !important;
    padding: 22px 18px calc(96px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .pp-top-bar {
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 22px;
  }
  .pp-back-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 4;
    padding: 9px 12px 9px 9px;
    border-radius: 999px;
    background: rgba(10, 10, 12, 0.52);
    color: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    font-size: 0.95rem;
  }
  .pp-match {
    min-width: 116px;
  }
  .pp-match-num {
    font-size: 3.1rem;
  }
  .pp-match-sym {
    font-size: 1.25rem;
  }
  .pp-match-track {
    width: 104px;
  }
  .pp-rule {
    margin: 18px 0;
  }
  .pp-bio {
    font-size: 1rem;
  }
  .pp-prompts {
    gap: 18px;
  }
  .pp-prompt-a {
    font-size: 1rem;
  }
  .pp-tags {
    margin-bottom: 6px;
  }
  .pp-actions {
    margin-top: 12px;
    padding-top: 14px;
  }

  /* Reset matches, live, and verification views to scroll naturally with the page, removing double scrollbars and inner borders */
  .main-content.view-matches,
  .main-content.view-live,
  .main-content.view-verification {
    overflow: visible !important;
    min-height: auto !important;
    height: auto !important;
  }
  .matches-view, .live-view, .verification-view {
    min-height: auto !important;
    height: auto !important;
    overflow-y: visible !important;
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Fullscreen auth signup — overlays bottom tab bar on mobile */
  html.auth-open,
  body.auth-open {
    overflow: hidden !important;
    overscroll-behavior: none;
  }
  body.auth-open {
    position: fixed;
    width: 100%;
  }
  body.auth-open .mobile-bottom-nav {
    display: none !important;
  }
  body.auth-open .site-header {
    visibility: hidden;
    pointer-events: none;
  }
  body.auth-open .auth-overlay,
  .auth-overlay.open {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--auth-stable-h, 100dvh);
    min-height: 100dvh;
    display: flex !important;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-primary);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: none !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  body.auth-open .auth-backdrop-noise,
  .auth-overlay.open .auth-backdrop-noise {
    display: none;
  }
  body.auth-open .auth-modal,
  .auth-overlay.open .auth-modal {
    flex: 1 1 auto;
    min-height: 0 !important;
    height: 100% !important;
    max-height: none !important;
    transition: none !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background:
      linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.025)),
      var(--bg-primary);
  }
  body.auth-open .auth-step {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }

  /* Fullscreen Modal Overlays */
  .auth-overlay, .checkout-overlay, .modal-overlay, .pmodal-overlay {
    padding: 0 !important;
    align-items: stretch !important;
    justify-content: stretch !important;
  }
  .auth-modal, .checkout-modal, .modal-overlay .modal, .pmodal {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    border: none !important;
    transform: none !important;
    margin: 0 !important;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .checkout-header {
    border-radius: 0 !important;
  }
  
  /* Reset animations which rely on translation */
  .auth-overlay.open .auth-modal,
  .checkout-overlay.open .checkout-modal,
  .modal-overlay.open .modal,
  .pmodal-overlay.open .pmodal {
    transform: none !important;
  }

  body.auth-open .auth-modal {
    height: 100% !important;
    max-height: 100% !important;
  }

  /* Fullscreen profile modal instead of sidebar drawer */
  .account-panel {
    width: 100vw !important;
    max-width: 100vw !important;
    border-left: none !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    transform: translateX(100%);
  }
  .account-panel.open {
    transform: translateX(0) !important;
  }

  /* Auth signup branding header (mobile only) */
  .auth-logo-header {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin-top: 10px;
    margin-bottom: 8px;
  }
  .auth-logo-lottie {
    width: 72px;
    height: 72px;
  }
  .auth-logo-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    line-height: 1.1;
  }

  /* Center texts and metadata badges in signup modal steps on mobile */
  .auth-step {
    text-align: center !important;
  }
  .auth-step h2, .auth-sub, .auth-fineprint {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .auth-benefits-line {
    justify-content: center !important;
  }
  #desktop-profile-credits {
    display: none !important;
  }
  .profile-mobile-credits-btn {
    display: flex !important;
  }
  .profile-coin-plus-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-rose);
    color: #ffffff !important;
    font-size: 0.65rem;
    font-weight: 700;
    margin-left: 3px;
    line-height: 1;
    text-align: center;
    vertical-align: middle;
    padding-bottom: 1px;
  }

  /* Mobile Bottom Navigation Bar */
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: calc(68px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(16, 16, 20, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    align-items: center;
    justify-content: space-around;
    z-index: 9999;
  }
  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 68px;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.65rem;
    font-weight: 600;
    gap: 4px;
    transition: color 0.2s ease, transform 0.15s ease;
    position: relative;
  }
  .mobile-nav-item svg {
    stroke: var(--text-secondary);
    transition: stroke 0.2s ease, transform 0.2s ease;
  }
  .mobile-nav-item:active {
    transform: scale(0.92);
  }
  .mobile-nav-item.active {
    color: var(--accent-rose);
  }
  .mobile-nav-item.active svg {
    stroke: var(--accent-rose);
  }
  .mobile-nav-badge {
    position: absolute;
    top: 8px;
    right: calc(50% - 22px);
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--accent-rose);
    color: #fff;
    border: 2px solid rgba(16, 16, 20, 0.96);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1;
    z-index: 2;
    box-shadow: 0 6px 14px rgba(232, 86, 109, 0.35);
  }
  .mobile-nav-badge[hidden] {
    display: none !important;
  }
  
  .mobile-nav-item.swipe-btn-container {
    flex: 0 0 72px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
  }
  .mobile-swipe-btn {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--accent-rose);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 34px rgba(232, 86, 109, 0.28);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
    position: absolute;
    top: -16px;
    border: 0;
  }
  .mobile-swipe-btn svg {
    fill: #fff !important;
    color: #fff !important;
    width: 32px;
    height: 32px;
    stroke: none !important;
  }
  .mobile-nav-item.swipe-btn-container:active .mobile-swipe-btn {
    transform: scale(0.9) translateY(4px);
    box-shadow: 0 2px 10px rgba(232, 86, 109, 0.3);
  }
  .mobile-nav-item.swipe-btn-container.active .mobile-swipe-btn {
    box-shadow: 0 12px 34px rgba(232, 86, 109, 0.28);
    transform: scale(1.05) translateY(-2px);
  }
}

/* Auth signup branding header (hidden on desktop) */
.auth-logo-header {
  display: none;
}
