* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
:root {
  --primary: #fd297b;
  --primary-2: #ff5864;
  --primary-3: #ff655b;
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-muted: #f1f1f3;
  --text: #1a1a1a;
  --text-muted: #6b6b75;
  --text-faint: #a0a0aa;
  --border: #ececef;
  --green: #4cd964;
  --gold: #f5c518;
}

/* Theme override */
body.theme-dark {
  --bg: #0f1115;
  --bg-soft: #141824;
  --bg-muted: #1b2232;
  --text: #f2f4f8;
  --text-muted: #b7bcc8;
  --text-faint: #8f96a6;
  --border: #2a3143;
}
html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: #e8e8ec;
  overflow: hidden;
}
body {
  display: flex;
  justify-content: center;
}

/* App container — replaces phone frame */
.app {
  width: 100%;
  max-width: 480px;
  height: 100vh;
  height: 100dvh;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
@media (min-width: 520px) {
  .app { box-shadow: 0 0 60px rgba(0,0,0,0.18); }
}

.screen-host {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  background: var(--bg);
}
.screen.active { display: flex; }
.body-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.body-scroll::-webkit-scrollbar { display: none; }

/* === Landing === */
#landing {
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.15), transparent 50%),
    linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 50%, var(--primary-3) 100%);
  color: #fff;
}
#landing .body-scroll {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(48px + env(safe-area-inset-top, 0px)) 28px 40px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
}
.logo-mark {
  width: 38px; height: 38px;
  background: #fff;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.logo-mark svg { width: 22px; height: 22px; fill: var(--primary); }
.landing-hero { margin-top: 80px; }
.landing-hero h1 {
  font-size: 44px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}
.landing-hero p {
  font-size: 17px;
  opacity: 0.92;
  line-height: 1.5;
  max-width: 300px;
}
.landing-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.btn {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
  font-family: inherit;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: #fff; color: var(--primary); }
.btn-secondary {
  background: rgba(255,255,255,0.18);
  color: #fff;
  backdrop-filter: blur(10px);
}
.btn-dark { background: var(--text); color: #fff; }
.btn-outline {
  background: #fff;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-grad {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
}
.legal {
  text-align: center;
  font-size: 11px;
  opacity: 0.85;
  margin-top: 14px;
  line-height: 1.5;
}
.legal a { color: #fff; text-decoration: underline; }

/* === Generic top bar === */
.topbar {
  height: calc(56px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 16px;
  padding-right: 16px;
  border-bottom: 1px solid var(--border);
}
.topbar .title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.icon-btn {
  width: 36px; height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text);
}
.icon-btn:active { background: var(--bg-muted); }
.icon-btn svg { width: 22px; height: 22px; }

/* === Forms === */
.form-screen .body-scroll { padding: 8px 24px 32px; }
.form-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 8px;
  margin-top: 16px;
}
.form-sub {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 28px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.field input, .field textarea, .field select {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--primary);
}
.field textarea {
  height: 100px;
  padding: 14px 16px;
  resize: none;
}
.field-row { display: flex; gap: 12px; }
.field-row > .field { flex: 1; }
.form-footer {
  padding: 16px 24px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
}
.progress {
  height: 4px;
  background: var(--bg-muted);
  border-radius: 2px;
  margin: 0 24px 16px;
  overflow: hidden;
  flex-shrink: 0;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  transition: width 0.3s;
}

/* === Photo upload === */
.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.photo-cell {
  aspect-ratio: 3/4;
  background: var(--bg-muted);
  border: 2px dashed var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.photo-cell.filled {
  border-style: solid;
  border-color: transparent;
}
.photo-placeholder { font-size: 28px; opacity: 0.4; }
.photo-cell.filled .photo-placeholder { display: none; }
.photo-cell .plus {
  position: absolute;
  bottom: 6px; right: 6px;
  width: 22px; height: 22px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
  line-height: 1;
}

/* === Interest chips === */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.chip {
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: var(--bg);
  color: var(--text);
  user-select: none;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chip:active { transform: scale(0.95); }
.chip.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-color: transparent;
  color: #fff;
}

/* === Swipe deck === */
#discover { background: var(--bg-soft); }
.deck {
  flex: 1;
  position: relative;
  padding: 16px;
}
.card {
  position: absolute;
  inset: 16px;
  border-radius: 20px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
  transition: transform 0.4s cubic-bezier(.2,.8,.4,1), opacity 0.3s;
}
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.25) 40%, transparent 65%);
}
.card-info {
  position: absolute;
  left: 18px; right: 18px; bottom: 18px;
  color: #fff;
  z-index: 2;
}
.card-info .name {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex; align-items: center; gap: 8px;
}
.verified {
  width: 18px; height: 18px;
  background: #1da1f2;
  border-radius: 50%;
  display: inline-flex;
  align-items: center; justify-content: center;
  color: #fff; font-size: 11px;
}
.card-info .meta {
  font-size: 14px;
  opacity: 0.95;
  margin-top: 2px;
  display: flex; align-items: center; gap: 6px;
}
.card-info .bio {
  font-size: 13px;
  opacity: 0.9;
  margin-top: 8px;
  line-height: 1.4;
}
.card-tags {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px;
}
.card-tags span {
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}
.card.card-locked {
  cursor: pointer;
}
.card-lock-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(0,0,0,0.38);
  color: #fff;
  text-align: center;
}
.swipe-actions {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 14px 16px 18px;
}
.swipe-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s;
}
.swipe-btn:active { transform: scale(0.92); }
.swipe-btn.big { width: 68px; height: 68px; }
.swipe-btn svg { width: 28px; height: 28px; }
.swipe-btn.big svg { width: 34px; height: 34px; }
.swipe-btn.nope { color: var(--primary-2); }
.swipe-btn.like { color: var(--green); }
.swipe-btn.star { color: #2196f3; }
.swipe-btn.boost { color: #b066ff; }
.swipe-btn.rewind { color: var(--gold); }

.stamp {
  position: absolute;
  top: 30px;
  padding: 8px 18px;
  border: 4px solid;
  border-radius: 8px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 2px;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.2s;
}
.stamp.like { right: 20px; transform: rotate(15deg); color: var(--green); border-color: var(--green); }
.stamp.nope { left: 20px; transform: rotate(-15deg); color: var(--primary-2); border-color: var(--primary-2); }

/* === Bottom nav === */
.bottom-nav {
  flex-shrink: 0;
  min-height: 64px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  border-top: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: stretch;
  padding-left: 8px;
  padding-right: 8px;
}
.nav-item {
  flex: 1;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text-faint);
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  position: relative;
  padding: 8px 0;
}
.nav-item svg { width: 26px; height: 26px; }
.nav-item.active { color: var(--primary); }
.nav-badge {
  position: absolute;
  top: 6px;
  right: calc(50% - 18px);
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 6px;
  min-width: 18px;
  text-align: center;
  border: 2px solid var(--bg);
}

/* === Likes screen === */
#likes .body-scroll { padding: 8px 16px 24px; }
.seg {
  display: flex;
  background: var(--bg-muted);
  padding: 4px;
  border-radius: 12px;
  margin: 8px 0 18px;
}
.seg button {
  flex: 1;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
}
.seg button.active {
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.likes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.like-card {
  aspect-ratio: 3/4;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.like-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent 50%);
}
.like-card .info {
  position: absolute;
  left: 10px; right: 10px; bottom: 8px;
  color: #fff;
  z-index: 2;
}
.like-card .info .n { font-size: 14px; font-weight: 700; }
.like-card .info .a { font-size: 12px; opacity: 0.9; }
.like-card.locked .blur-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(18px);
  transform: scale(1.1);
}
.like-card.locked .lock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.lock-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}
.lock-icon svg { width: 22px; height: 22px; }
.new-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.premium-banner {
  background: linear-gradient(135deg, #2c2c2e, #1a1a1a);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.premium-banner .pb-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, #ffd700, #ffae00);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.premium-banner .pb-text { flex: 1; }
.premium-banner .pb-text .t1 { font-size: 14px; font-weight: 700; }
.premium-banner .pb-text .t2 { font-size: 12px; opacity: 0.7; margin-top: 2px; }
.premium-banner .pb-arrow { color: #fff; opacity: 0.6; }

/* === Matches list === */
#messages .body-scroll { padding: 8px 0 16px; }
.matches-row { padding: 0 16px; margin-bottom: 8px; }
.matches-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin: 8px 0 12px;
}
.matches-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.matches-strip::-webkit-scrollbar { display: none; }
.new-match {
  flex-shrink: 0;
  width: 76px;
  text-align: center;
  cursor: pointer;
}
.new-match .av {
  width: 76px; height: 100px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  border: 2.5px solid var(--primary);
  margin-bottom: 4px;
}
.new-match .nm-name {
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-list {
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.chat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}
.chat-row:active { background: var(--bg-muted); }
.chat-av {
  width: 56px; height: 56px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.chat-info { flex: 1; min-width: 0; }
.chat-info .cname { font-weight: 700; font-size: 15px; }
.chat-info .cmsg {
  font-size: 13px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}
.chat-time { font-size: 12px; color: var(--text-faint); }
.unread-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--primary);
}

/* === Chat screen === */
#chat { background: var(--bg); }
.chat-header {
  height: calc(64px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 4px;
  padding-right: 8px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.chat-header .av {
  width: 38px; height: 38px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
}
.chat-header .name { font-weight: 700; font-size: 15px; }
.chat-header .status { font-size: 11px; color: var(--green); }
.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
}
.chat-body::-webkit-scrollbar { display: none; }
.match-banner {
  text-align: center;
  margin-bottom: 20px;
}
.match-banner .mb-circle {
  width: 80px; height: 80px;
  border-radius: 50%;
  margin: 0 auto 8px;
  background-size: cover;
  background-position: center;
  border: 3px solid var(--primary);
}
.match-banner .mb-t {
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.match-banner .mb-s {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.msg {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 6px;
  word-wrap: break-word;
}
.msg.them {
  background: var(--bg-muted);
  color: var(--text);
  border-bottom-left-radius: 6px;
  align-self: flex-start;
  margin-right: auto;
}
.msg.me {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  border-bottom-right-radius: 6px;
  align-self: flex-end;
  margin-left: auto;
}
.msg-row { display: flex; }
.msg-time {
  font-size: 10px;
  color: var(--text-faint);
  text-align: center;
  margin: 8px 0;
}
.chat-input {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.chat-input input {
  flex: 1;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  background: var(--bg-soft);
}
.chat-input input:focus { border-color: var(--primary); }
.send-btn {
  width: 40px; height: 40px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.send-btn svg { width: 20px; height: 20px; }

/* === Match overlay === */
#match-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2), transparent 50%),
    linear-gradient(135deg, var(--primary), var(--primary-2), var(--primary-3));
  z-index: 50;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  color: #fff;
  text-align: center;
}
#match-overlay.show { display: flex; }
.match-title {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -1px;
  font-style: italic;
  margin-bottom: 4px;
}
.match-sub { font-size: 14px; opacity: 0.92; margin-bottom: 36px; }
.match-avs {
  display: flex;
  gap: 14px;
  margin-bottom: 36px;
}
.match-avs > div {
  width: 130px; height: 170px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  border: 3px solid #fff;
}
.match-avs > div:first-child { transform: rotate(-6deg); }
.match-avs > div:last-child { transform: rotate(6deg); }
#match-overlay .btn { max-width: 280px; }
#match-overlay .btn + .btn { margin-top: 10px; }

/* === Subscription screen === */
#premium {
  background: linear-gradient(180deg, #1a1a1a 0%, #2c1820 60%, #4a1f30 100%);
  color: #fff;
}
#premium .topbar { border-bottom: none; }
#premium .topbar .icon-btn { color: #fff; }
#premium .topbar .icon-btn:active { background: rgba(255,255,255,0.1); }
#premium .body-scroll { padding: 0 24px 24px; }
.premium-hero {
  text-align: center;
  padding: 8px 0 24px;
}
.premium-crown {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #ffd700, #ff9500);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
}
.premium-crown svg { width: 36px; height: 36px; color: #fff; }
.premium-hero h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 8px;
}
.premium-hero h1 span {
  background: linear-gradient(135deg, #ffd700, #ff9500);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.premium-hero p { font-size: 14px; opacity: 0.7; line-height: 1.5; }
.perks {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 20px;
}
.perk {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}
.perk + .perk { border-top: 1px solid rgba(255,255,255,0.08); }
.perk-ico {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.perk-ico svg { width: 18px; height: 18px; color: #fff; }
.perk-text { flex: 1; font-size: 13px; }
.perk-text strong { display: block; font-weight: 700; margin-bottom: 1px; }
.perk-text span { color: rgba(255,255,255,0.6); font-size: 12px; }
.plans { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.plan {
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  transition: all 0.15s;
}
.plan.selected {
  border-color: #ffd700;
  background: rgba(255,215,0,0.08);
}
.plan-left .pname { font-size: 15px; font-weight: 700; }
.plan-left .pper { font-size: 12px; opacity: 0.65; margin-top: 2px; }
.plan-right { text-align: right; }
.plan-right .ptotal { font-size: 16px; font-weight: 800; }
.plan-right .pold { font-size: 12px; opacity: 0.55; text-decoration: line-through; }
.plan-tag {
  position: absolute;
  top: -8px; right: 12px;
  background: linear-gradient(135deg, #ffd700, #ff9500);
  color: #1a1a1a;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.premium-cta {
  background: linear-gradient(135deg, #ffd700, #ff9500);
  color: #1a1a1a;
}
.small-legal {
  text-align: center;
  font-size: 10px;
  opacity: 0.5;
  margin-top: 14px;
  line-height: 1.5;
}

/* === Profile === */
#profile .body-scroll { padding: 0; }
.prof-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  padding: 28px 24px 70px;
  color: #fff;
  text-align: center;
}
.prof-av {
  width: 110px; height: 110px;
  border-radius: 50%;
  margin: 0 auto 12px;
  background-size: cover;
  background-position: center;
  border: 4px solid #fff;
}
.prof-name { font-size: 22px; font-weight: 800; letter-spacing: -0.4px; }
.prof-meta { font-size: 13px; opacity: 0.9; margin-top: 2px; }
.prof-card {
  background: var(--bg);
  border-radius: 16px;
  margin: -50px 16px 16px;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  text-align: center;
}
.prof-stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 14px;
}
.prof-stat .num {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.prof-stat .lbl {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}
.prof-list { padding: 0 16px 24px; }
.list-section { margin-bottom: 16px; }
.list-section h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin: 8px 12px;
  font-weight: 700;
}
.list-card {
  background: var(--bg);
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
}
.list-row + .list-row { border-top: 1px solid var(--border); }
.list-row:active { background: var(--bg-muted); }
.list-row svg.lead { width: 20px; height: 20px; color: var(--text-muted); flex-shrink: 0; }
.list-row .lt { flex: 1; font-size: 14px; font-weight: 500; }
.list-row .lv { font-size: 13px; color: var(--text-muted); }
.list-row svg.chev { width: 18px; height: 18px; color: var(--text-faint); }
.gold-row .lt {
  background: linear-gradient(135deg, #ffd700, #ff9500);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

/* === Toast === */
.toast {
  position: absolute;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(26,26,26,0.92);
  color: #fff;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  max-width: calc(100% - 40px);
  text-align: center;
  transition: opacity 0.2s;
}
.toast.show { opacity: 1; }

/* === Utilities === */
.fade-in { animation: fadeIn 0.25s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.pop { animation: pop 0.4s cubic-bezier(.2,.8,.4,1.2); }
@keyframes pop {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* === Chat image === */
.chat-img {
  max-width: 200px;
  max-height: 200px;
  border-radius: 10px;
  display: block;
  object-fit: cover;
  cursor: pointer;
}

/* === Locked like card info === */
.like-card.locked .info {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
}

/* === Premium modal sheet === */
.premium-modal-overlay {
  position: absolute;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.premium-modal-overlay.show { display: flex; }
.premium-modal-sheet {
  background: linear-gradient(180deg, #1c1c2e 0%, #2c1820 60%, #4a1f30 100%);
  width: 100%;
  border-radius: 24px 24px 0 0;
  padding: 0 24px 40px;
  color: #fff;
  max-height: 90vh;
  overflow-y: auto;
  animation: sheetUp 0.32s cubic-bezier(.2,.8,.4,1);
}
.premium-modal-sheet::-webkit-scrollbar { display: none; }
@keyframes sheetUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.sheet-handle {
  width: 36px; height: 4px;
  background: rgba(255,255,255,0.18);
  border-radius: 2px;
  margin: 12px auto 20px;
}

/* === Locked chat row === */
.chat-row.chat-locked .chat-av {
  filter: blur(7px) brightness(0.7);
}
.chat-row.chat-locked .cname,
.chat-row.chat-locked .cmsg {
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
}
.chat-lock-icon {
  width: 26px; height: 26px;
  background: linear-gradient(135deg, #ffd700, #ff9500);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chat-lock-icon svg { width: 13px; height: 13px; color: #fff; }

/* === Payment modal === */
.payment-modal-overlay {
  position: absolute;
  inset: 0;
  z-index: 250;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.payment-modal-overlay.show { display: flex; }
.payment-sheet {
  background: linear-gradient(180deg, #1c1c2e 0%, #2a1f38 100%);
  width: 100%;
  border-radius: 24px 24px 0 0;
  padding: 0 24px 40px;
  color: #fff;
  max-height: 92vh;
  overflow-y: auto;
  animation: sheetUp 0.32s cubic-bezier(.2,.8,.4,1);
}
.payment-sheet::-webkit-scrollbar { display: none; }
.payment-header {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 0 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 20px;
}
.payment-back {
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.08);
  border: none; border-radius: 50%;
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.payment-back svg { width: 16px; height: 16px; }
.payment-title { font-size: 18px; font-weight: 800; flex: 1; }
.payment-secure {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; color: rgba(255,255,255,0.45);
}
.payment-secure svg { width: 12px; height: 12px; }

/* Card preview */
.card-preview {
  background: linear-gradient(135deg, #1a1a3e 0%, #2d1b4e 50%, #1a2a4e 100%);
  border-radius: 18px;
  padding: 20px 22px;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
  min-height: 150px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}
.card-preview::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.card-preview::after {
  content: '';
  position: absolute;
  bottom: -60px; left: 20px;
  width: 180px; height: 180px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}
.card-chip {
  width: 34px; height: 24px;
  background: linear-gradient(135deg, #ffd700, #e8a000);
  border-radius: 5px;
  margin-bottom: 18px;
  position: relative; z-index: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.card-number-display {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 3px;
  color: #fff;
  margin-bottom: 18px;
  font-family: 'Courier New', Courier, monospace;
  position: relative; z-index: 1;
}
.card-footer {
  display: flex;
  justify-content: space-between;
  position: relative; z-index: 1;
}
.card-field-label {
  font-size: 9px;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 3px;
}
.card-field-value {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Pay fields */
.pay-field { margin-bottom: 14px; }
.pay-field label {
  display: block;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; color: rgba(255,255,255,0.45);
  margin-bottom: 7px;
}
.pay-field input {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  color: #fff;
  font-size: 16px; font-family: inherit;
  padding: 0 16px;
  height: 52px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  letter-spacing: 0.5px;
}
.pay-field input::placeholder { color: rgba(255,255,255,0.2); letter-spacing: normal; }
.pay-field input:focus {
  border-color: rgba(255,215,0,0.55);
  background: rgba(255,255,255,0.1);
}
.pay-field-row { display: flex; gap: 12px; }
.pay-field-row > .pay-field { flex: 1; }

/* 2FA overlay */
.twofa-overlay {
  position: absolute;
  inset: 0;
  z-index: 310;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.twofa-overlay.show { display: flex; }
.twofa-sheet {
  background: linear-gradient(160deg, #1c1c2e, #2c1820);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 32px 24px 28px;
  width: 100%;
  color: #fff;
  text-align: center;
  animation: pop 0.32s cubic-bezier(.2,.8,.4,1.2);
}
.twofa-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, #ffd700, #ff9500);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.twofa-icon svg { width: 30px; height: 30px; color: #fff; }
.twofa-title { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.twofa-sub {
  font-size: 13px; color: rgba(255,255,255,0.55);
  line-height: 1.5; margin-bottom: 28px;
}
.code-inputs {
  display: flex; gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
}
.code-input {
  width: 44px; height: 54px;
  background: rgba(255,255,255,0.07);
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  color: #fff;
  font-size: 22px; font-weight: 800;
  text-align: center;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  font-family: inherit;
  caret-color: transparent;
  -moz-appearance: textfield;
}
.code-input::-webkit-inner-spin-button,
.code-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.code-input:focus { border-color: #ffd700; background: rgba(255,255,255,0.1); }
.code-input.filled { border-color: rgba(255,215,0,0.5); }
.twofa-resend {
  font-size: 12px; color: rgba(255,255,255,0.4);
  margin-top: 14px; cursor: pointer;
}
.twofa-resend span { color: #ffd700; }

/* === Verify email screen === */
#verify-email .body-scroll { padding: 0; }
.ve-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 24px 40px;
  text-align: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.ve-icon {
  font-size: 64px;
  line-height: 1;
  margin-bottom: 16px;
}
.ve-email {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  word-break: break-all;
  margin-bottom: 28px;
  background: rgba(253,41,123,0.07);
  border-radius: 10px;
  padding: 8px 18px;
  max-width: 300px;
}
.ve-code-wrap {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 28px;
}
.ve-code-input {
  width: 44px; height: 56px;
  background: var(--bg-muted);
  border: 2px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  font-size: 24px; font-weight: 800;
  text-align: center;
  outline: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  font-family: inherit;
  caret-color: transparent;
  -moz-appearance: textfield;
}
.ve-code-input::-webkit-inner-spin-button,
.ve-code-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.ve-code-input:focus {
  border-color: var(--primary);
  background: rgba(253,41,123,0.04);
  box-shadow: 0 0 0 3px rgba(253,41,123,0.12);
}
.ve-code-input.filled {
  border-color: var(--primary);
  background: rgba(253,41,123,0.06);
}
.ve-resend {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 20px;
  cursor: pointer;
}
.ve-resend span { color: var(--primary); font-weight: 600; }

/* === Desktop adaptation === */
@media (min-width: 768px) {
  html, body {
    overflow: auto;
  }
  body {
    justify-content: stretch;
  }
  .app {
    max-width: 100%;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }
}
