:root {
  --bg: #0d0b14;
  --surface: #16131e;
  --surface-2: #1e1a28;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f0f8;
  --muted: #a49eb2;
  --accent: #ff5f8f;
  --accent-2: #ff9a62;
  --accent-grad: linear-gradient(135deg, var(--accent), var(--accent-2));
  --online: #3ee08f;
  --danger: #ff4d5e;
  --radius: 20px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }
code { font-size: 0.9em; background: rgba(255,255,255,.07); padding: 1px 5px; border-radius: 5px; }
svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.muted { color: var(--muted); }

/* ---------- shared ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; }
.brand.small { font-size: 20px; }
.brand-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--accent-grad); box-shadow: 0 0 0 4px rgba(255,95,143,.16), 0 0 18px rgba(255,95,143,.7); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-strong); background: var(--surface-2); padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; transition: transform .15s ease, filter .15s ease, background .15s; white-space: nowrap; }
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent-grad); border-color: transparent; color: #1a0710; box-shadow: 0 8px 26px rgba(255, 95, 143, .32); }
.btn.big { padding: 15px 22px; font-size: 16px; width: 100%; }
.btn.btn-call { background: #fff; color: #17111d; border-color: transparent; }
.btn.ghost { background: rgba(255,255,255,.08); color: var(--muted); cursor: default; }
.btn.ghost:hover { filter: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn svg { width: 17px; height: 17px; }

.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: rgba(20,16,28,.7); backdrop-filter: blur(8px); }
.icon-btn:hover { background: #262132; }
.icon-btn svg { width: 18px; height: 18px; }
.link-btn { background: none; border: 0; color: var(--muted); padding: 0; text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
.link-btn:hover { color: var(--text); }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 13px; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }

/* A "photo": real image when present, otherwise a soft gradient portrait card. */
.photo {
  --c1: #ff7a8a; --c2: #ffb36b;
  position: relative; overflow: hidden;
  display: grid; place-items: center;
  background:
    radial-gradient(120% 80% at 30% 15%, rgba(255,255,255,.32), transparent 50%),
    radial-gradient(90% 70% at 85% 100%, rgba(0,0,0,.35), transparent 60%),
    linear-gradient(155deg, var(--c1), var(--c2));
  background-size: cover; background-position: center;
}
.photo .initial { font-family: var(--serif); font-weight: 500; color: rgba(255,255,255,.88); font-size: clamp(64px, 9vw, 110px); line-height: 1; text-shadow: 0 6px 30px rgba(0,0,0,.18); }
.photo.has-img .initial { display: none; }

/* ---------- onboarding ---------- */
.onboarding { position: fixed; inset: 0; display: grid; place-items: center; padding: 24px; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; pointer-events: none; }
.g1 { width: 520px; height: 520px; background: #ff4f86; top: -160px; left: -120px; animation: drift 16s ease-in-out infinite alternate; }
.g2 { width: 460px; height: 460px; background: #6b4bff; bottom: -180px; right: -120px; animation: drift 19s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.1); } }
.onboard-card { position: relative; width: min(440px, 100%); padding: 36px 32px; border-radius: 28px; background: rgba(22, 19, 30, .72); border: 1px solid var(--line); backdrop-filter: blur(24px); box-shadow: var(--shadow); }
.onboard-card h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 7vw, 44px); line-height: 1.05; letter-spacing: -0.02em; margin: 24px 0 26px; }
#onboard-form { display: grid; gap: 8px; }
#onboard-form label { font-size: 13px; color: var(--muted); margin-top: 6px; }
input, textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-strong);
  background: rgba(0,0,0,.25); color: var(--text); font: inherit; font-size: 16px; outline: none; resize: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus { border-color: rgba(255,95,143,.6); box-shadow: 0 0 0 4px rgba(255,95,143,.15); }
.city-field { position: relative; }
.city-field svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--accent); width: 18px; height: 18px; }
.city-field input { padding-left: 40px; }
#onboard-form .btn { margin-top: 16px; }
.fineprint { font-size: 12px; color: var(--muted); margin: 18px 0 0; text-align: center; }

/* ---------- shell ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  padding: 14px max(20px, calc((100vw - 1160px) / 2));
  background: rgba(13, 11, 20, .82); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
}
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.tab { position: relative; border: 0; background: none; padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); transition: background .15s, color .15s; }
.tab.active { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 9px; background: var(--accent); color: #1a0710; font-size: 11px; font-weight: 700; vertical-align: 1px; }
.city-pill { justify-self: end; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 500; max-width: 220px; }
.city-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.city-pill svg { color: var(--accent); width: 16px; height: 16px; }
.city-pill:hover { background: var(--surface-2); }

main { max-width: 1160px; margin: 0 auto; padding: 8px 20px 60px; }
.banner { margin: 18px 0 0; padding: 12px 14px; border-radius: 14px; background: rgba(255, 154, 98, .1); border: 1px solid rgba(255, 154, 98, .3); font-size: 13px; color: #ffd2b8; }
.view-head { padding: 26px 0 18px; }
.view-head h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 5vw, 40px); letter-spacing: -0.015em; margin: 0; line-height: 1.1; }
.view-head p { margin: 6px 0 0; }
.sub-head { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; margin: 32px 0 12px; }

/* ---------- discover grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.card {
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
  animation: rise .35s ease both;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.card .photo { aspect-ratio: 3 / 4; }
.card .shade { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 45%, rgba(10, 6, 14, .88)); pointer-events: none; }
.card .online-pill { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(10,8,14,.55); backdrop-filter: blur(8px); }
.card .online-pill i, .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--online); box-shadow: 0 0 8px var(--online); }
.card .dist { position: absolute; top: 12px; right: 12px; padding: 4px 10px; border-radius: 999px; font-size: 12px; background: rgba(10,8,14,.55); backdrop-filter: blur(8px); }
.card .info { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; display: grid; gap: 10px; }
.card .name { font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.1; }
.card .name span { font-family: var(--sans); font-weight: 400; font-size: 19px; opacity: .85; }
.card .headline { font-size: 13px; color: #e5dcec; margin-top: 2px; }
.card .btn { width: 100%; }
.card.matched { border-color: rgba(255,95,143,.45); box-shadow: 0 0 0 1px rgba(255,95,143,.25); }

.pending-dots { display: inline-flex; gap: 3px; }
.pending-dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: dots 1.2s infinite; }
.pending-dots i:nth-child(2) { animation-delay: .15s; }
.pending-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* ---------- matches ---------- */
.match-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 680px; }
.match { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); cursor: pointer; transition: background .15s; }
.match:hover { background: var(--surface-2); }
.match .photo { width: 58px; height: 58px; border-radius: 50%; }
.match .photo .initial { font-size: 26px; }
.match .name { font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.match .sub { color: var(--muted); font-size: 13px; }
.match .bar { width: 70px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 6px; }
.match .bar i { display: block; height: 100%; background: var(--accent-grad); }
.empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 50px 20px; color: var(--muted); max-width: 680px; }
.empty svg { width: 40px; height: 40px; color: var(--accent); opacity: .7; }

/* ---------- sheets ---------- */
.backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(6, 4, 10, .65); backdrop-filter: blur(6px); animation: fade .2s ease; }
.sheet { position: relative; width: min(440px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); animation: rise .28s cubic-bezier(.2,.9,.3,1.2); }
.sheet-close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.profile-sheet .hero { aspect-ratio: 4 / 4.2; }
.profile-sheet .hero .initial { font-size: 140px; }
.gallery { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: pointer; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; scroll-snap-align: start; user-select: none; }
.gallery-dots { position: absolute; top: 10px; left: 14px; right: 60px; display: flex; gap: 4px; pointer-events: none; }
.gallery-dots i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.35); }
.gallery-dots i.on { background: #fff; }
.profile-body { padding: 22px 24px 26px; display: grid; gap: 14px; }
.profile-body h2 { font-family: var(--serif); font-weight: 500; font-size: 32px; margin: 0; letter-spacing: -0.01em; line-height: 1.1; }
.profile-body h2 span { font-family: var(--sans); font-weight: 400; font-size: 24px; opacity: .8; }
.meta { margin: -8px 0 0; color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.bio { margin: 0; font-family: var(--serif); font-size: 19px; line-height: 1.4; color: #efe6f4; }
.prompts { display: grid; gap: 10px; }
.prompt { padding: 14px 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.prompt small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.prompt p { margin: 0; font-size: 16px; }
.memory { padding: 16px; border-radius: 16px; background: rgba(255,95,143,.07); border: 1px solid rgba(255,95,143,.2); }
.memory h4 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: #ffb3c8; font-weight: 600; }
.feelings { margin: 0 0 10px; font-style: italic; color: #f0e4f2; }
.memory ul { margin: 0 0 12px; padding-left: 18px; color: #dcd2e4; font-size: 14px; display: grid; gap: 4px; }
.request-form { display: grid; gap: 10px; }
.request-form textarea { font-size: 15px; }
.status-note { text-align: center; color: var(--muted); font-size: 14px; margin: 0; }
.small-sheet { padding: 26px; display: grid; gap: 12px; }
.small-sheet h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin: 0 0 4px; }

/* ---------- call ---------- */
.call { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-rows: auto 1fr auto auto; padding: max(18px, env(safe-area-inset-top)) 20px max(26px, env(safe-area-inset-bottom)); overflow: hidden; animation: fade .3s ease; }
.call-bg { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 50% at 50% 40%, color-mix(in srgb, var(--c1, #ff5f8f) 40%, transparent), transparent 70%),
  radial-gradient(50% 40% at 70% 85%, color-mix(in srgb, var(--c2, #6b4bff) 28%, transparent), transparent 70%),
  #0b0911; }
.call-head { display: flex; justify-content: space-between; align-items: center; max-width: 720px; width: 100%; margin: 0 auto; }
.timer { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 500; }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: #ff4d6a; box-shadow: 0 0 10px #ff4d6a; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.call-center { display: grid; justify-items: center; align-content: center; gap: 6px; text-align: center; }
.call-center h2 { font-family: var(--serif); font-weight: 500; font-size: 40px; margin: 30px 0 0; letter-spacing: -0.01em; }
.call-status { margin: 0; color: var(--muted); min-height: 1.5em; }
.orb-wrap { --level: 0; --you: 0; position: relative; display: grid; place-items: center; width: 280px; height: 280px; }
.orb { z-index: 2; width: 180px; height: 180px; border-radius: 50%; transform: scale(calc(1 + var(--level) * .1)); transition: transform .08s linear; box-shadow: 0 0 calc(30px + var(--level) * 90px) color-mix(in srgb, var(--c1) 70%, transparent); }
.orb .initial { font-size: 76px; }
.orb-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--c1, #ff5f8f) 55%, transparent); opacity: .35; }
.orb-ring.r1 { transform: scale(calc(.8 + var(--level) * .3)); transition: transform .1s; }
.orb-ring.r2 { transform: scale(calc(.95 + var(--level) * .45)); opacity: .18; transition: transform .14s; }
.call[data-state="connecting"] .orb-ring, .call[data-state="thinking"] .orb-ring.r1 { animation: breathe 1.6s ease-in-out infinite; }
.call[data-state="userSpeaking"] .orb-ring.r1 { border-color: rgba(120, 190, 255, .7); transform: scale(calc(.85 + var(--you) * .6)); opacity: .6; }
@keyframes breathe { 50% { transform: scale(.9); opacity: .6; } }
.text-form { display: flex; gap: 8px; max-width: 520px; width: 100%; margin: 0 auto 18px; }
.text-form .btn { padding: 0 18px; }
.call-controls { display: flex; justify-content: center; gap: 28px; }
.ctl { display: grid; justify-items: center; gap: 6px; width: 76px; padding: 0; background: none; border: 0; color: var(--muted); font-size: 12px; }
.ctl svg { width: 26px; height: 26px; box-sizing: content-box; padding: 19px; border-radius: 50%; background: rgba(255,255,255,.09); border: 1px solid var(--line-strong); color: var(--text); transition: background .15s, transform .15s; }
.ctl:hover svg { background: rgba(255,255,255,.15); }
.ctl:active svg { transform: scale(.94); }
.ctl[aria-pressed="true"] svg { background: var(--text); color: #120e18; }
.ctl .off { display: none; }
#mute-btn[aria-pressed="true"] .on { display: none; }
#mute-btn[aria-pressed="true"] .off { display: block; }
.ctl.hangup svg { background: var(--danger); border-color: transparent; color: #fff; padding: 22px; box-shadow: 0 10px 30px rgba(255, 77, 94, .45); }
.ctl.hangup:hover svg { background: #ff6573; }

/* ---------- your profile ---------- */
.top-right { justify-self: end; display: flex; align-items: center; gap: 8px; min-width: 0; }
.me-btn { position: relative; width: 38px; height: 38px; flex: none; border-radius: 50%; padding: 0; overflow: hidden; border: 1px solid var(--line-strong); background: var(--surface-2); font-weight: 600; }
.me-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.me-btn.incomplete::after { content: ""; position: absolute; top: 1px; right: 1px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--bg); }
.banner.cta { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: rgba(255,95,143,.08); border-color: rgba(255,95,143,.3); color: #ffd6e2; font-size: 14px; }
.banner.cta .btn { flex: none; padding: 8px 14px; }

.me-sheet { width: min(500px, 100%); padding: 26px 24px 24px; display: grid; gap: 16px; }
.me-sheet h3 { font-family: var(--serif); font-weight: 500; font-size: 28px; margin: 0; }
.me-sheet #me-why { margin: -10px 0 0; font-size: 14px; }
.me-field { display: grid; gap: 7px; font-size: 13px; color: var(--muted); font-weight: 500; }
.me-label small, .me-field small { font-weight: 400; opacity: .8; margin-left: 4px; }
.me-row { display: flex; gap: 12px; }
.me-row .age { width: 92px; flex: none; }
.me-row .grow { flex: 1; min-width: 0; }
.me-field input, .me-field textarea, .me-field select { font-size: 15px; color: var(--text); }
select { width: 100%; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); font: inherit; font-size: 14px; outline: none; }
.me-prompt { display: grid; gap: 6px; padding: 10px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.me-prompt + .me-prompt { margin-top: 4px; }
.me-prompt select { background: transparent; border: 0; padding: 4px 6px; font-weight: 600; color: var(--muted); font-size: 13px; }
.me-prompt textarea { background: rgba(0,0,0,.2); }
.me-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.me-photo { position: relative; aspect-ratio: 3 / 4; border-radius: 16px; background: var(--surface-2) center / cover; border: 1px solid var(--line); overflow: hidden; }
.me-photo .icon-btn { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; }
.me-photo.empty { display: grid; place-content: center; justify-items: center; gap: 2px; border: 1.5px dashed var(--line-strong); color: var(--muted); }
.me-photo.empty span { font-size: 34px; line-height: 1; color: var(--accent); }
.me-photo.empty:hover { background-color: #241f2e; }
.me-photo.loading { opacity: .5; pointer-events: none; animation: breathe 1.2s ease-in-out infinite; }
.chips.pickable .chip { cursor: pointer; color: var(--text); }
.chips.pickable .chip.on { background: var(--accent-grad); color: #1a0710; border-color: transparent; font-weight: 600; }
.me-add-interest { display: flex; gap: 8px; }
.me-add-interest input { padding: 10px 14px; font-size: 14px; }
.me-add-interest .btn { flex: none; }

/* ---------- tokens ---------- */
.tokens-pill { display: inline-flex; align-items: center; gap: 5px; padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(255,196,92,.35); background: rgba(255,196,92,.08); color: #ffd98a; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; flex: none; }
.tokens-pill svg { width: 17px; height: 17px; color: #ffc45c; }
.tokens-pill:hover { background: rgba(255,196,92,.14); }
.tokens-pill.low { border-color: rgba(255,95,143,.55); background: rgba(255,95,143,.12); color: #ffc2d4; }
.tokens-pill.low svg { color: var(--accent); }
.chat-head { grid-template-columns: auto 1fr auto auto; }
.chat-head .tokens-pill { padding: 7px 10px; font-size: 13px; }

.tokens-sheet { padding: 26px 22px 20px; display: grid; gap: 12px; }
.tokens-top { display: inline-flex; align-items: baseline; gap: 6px; color: #ffd98a; }
.tokens-top svg { width: 22px; height: 22px; color: #ffc45c; align-self: center; }
.tokens-top b { font-family: var(--serif); font-size: 30px; font-weight: 500; }
.tokens-top span { color: var(--muted); font-size: 14px; }
.tokens-sheet h3 { font-family: var(--serif); font-weight: 500; font-size: 28px; margin: 0; }
.tokens-sheet #tokens-why { margin: -4px 0 4px; font-size: 14px; }
.packs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pack { position: relative; display: grid; gap: 4px; justify-items: start; text-align: left; padding: 16px 14px 14px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line-strong); transition: transform .15s, border-color .15s; }
.pack:hover { transform: translateY(-2px); border-color: rgba(255,196,92,.5); }
.pack:disabled { opacity: .6; }
.pack.featured { border-color: rgba(255,95,143,.55); background: linear-gradient(160deg, rgba(255,95,143,.14), rgba(255,154,98,.06)); }
.pack-badge { position: absolute; top: -9px; right: 10px; padding: 2px 9px; border-radius: 999px; background: var(--accent-grad); color: #1a0710; font-size: 11px; font-weight: 700; }
.pack-tokens { display: inline-flex; align-items: center; gap: 5px; font-size: 22px; font-weight: 600; color: #ffd98a; font-variant-numeric: tabular-nums; }
.pack-tokens svg { width: 20px; height: 20px; color: #ffc45c; }
.pack-msgs { font-size: 12px; color: var(--muted); }
.pack-price { margin-top: 6px; font-size: 17px; font-weight: 700; }
.pack.sub { grid-column: 1 / -1; padding: 18px 16px 16px; border-color: rgba(178,139,255,.6); background: linear-gradient(140deg, rgba(143,124,255,.22), rgba(255,95,143,.14)); }
.pack.sub .pack-tokens { color: #e6dcff; font-size: 24px; }
.pack.sub .pack-msgs { color: #d8cfe8; font-size: 13px; }
.pack.sub .pack-badge { background: linear-gradient(135deg, #a98bff, #ff7fae); }
.pack.sub small { font-size: 13px; font-weight: 500; color: var(--muted); }
.pack.sub.active { opacity: 1; cursor: default; transform: none; }
.tokens-pill.unlimited { border-color: rgba(178,139,255,.55); background: rgba(143,124,255,.14); color: #e6dcff; }
.tokens-pill.unlimited svg { color: #b39bff; }
.cancel-sub { grid-column: 1 / -1; justify-self: center; margin: -2px 0 4px; }
.test-note { grid-column: 1 / -1; margin: 0; padding: 9px 12px; border-radius: 12px; font-size: 12px; color: #ffd98a; background: rgba(255,196,92,.08); border: 1px dashed rgba(255,196,92,.4); }
.pack.loading { grid-column: 1 / -1; min-height: 120px; animation: breathe 1.2s ease-in-out infinite; }

/* ---------- notification ask ---------- */
.notify-sheet { justify-items: center; text-align: center; padding: 30px 26px 22px; }
.notify-sheet .photo { width: 88px; height: 88px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255,95,143,.35), 0 0 30px rgba(255,95,143,.35); }
.notify-sheet .photo .initial { font-size: 40px; }
.notify-sheet h3 { font-size: 24px; margin: 6px 0 0; }
.notify-sheet p { margin: 0 0 6px; font-size: 15px; }
.notify-sheet .link-btn { margin-top: 2px; }

/* ---------- login ---------- */
#login-form, #reset-form { display: grid; gap: 8px; }
#reset-form label { font-size: 13px; color: var(--muted); margin-top: 6px; }
#reset-form .btn { margin-top: 16px; }
.fineprint a { color: inherit; }
.me-change summary { cursor: pointer; text-align: center; font-size: 13px; color: var(--muted); }
.me-change .me-field { margin-top: 10px; }
#login-form label { font-size: 13px; color: var(--muted); margin-top: 6px; }
#login-form .btn { margin-top: 16px; }
.auth-switch { display: block; margin: 14px auto 0; padding: 4px; }
.me-account { margin: 0; text-align: center; font-size: 13px; overflow-wrap: anywhere; }
#me-have-account { justify-self: start; }

/* ---------- message + call buttons ---------- */
.act-row { display: flex; gap: 8px; }
.act-row > .btn:first-child { flex: 1; }
.act-row.big > .btn { width: auto; flex: 1; }
.btn.icon-only { padding: 10px; aspect-ratio: 1; }
.card .act-row .btn.icon-only { width: auto; }
.match .act-row .btn.icon-only { padding: 11px; }
.match-text { min-width: 0; }
.match .preview { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match .preview.hers { color: #e9e1ef; }

/* ---------- chat ---------- */
/* Below the profile sheet (50) so her profile can open on top; below the call (60). */
.chat { position: fixed; inset: 0; z-index: 40; display: grid; grid-template-rows: auto 1fr auto; background: var(--bg); animation: fade .2s ease; }
.chat::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(70% 45% at 50% 0%, color-mix(in srgb, var(--c1, #ff5f8f) 14%, transparent), transparent 70%); }
body.chat-open { overflow: hidden; }
.chat-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: max(10px, env(safe-area-inset-top)) max(14px, calc((100vw - 760px) / 2)) 10px; border-bottom: 1px solid var(--line); background: rgba(13, 11, 20, .85); backdrop-filter: blur(16px); }
.chat-who { display: flex; align-items: center; gap: 11px; min-width: 0; background: none; border: 0; padding: 2px 4px; border-radius: 14px; text-align: left; }
.chat-who:hover { background: rgba(255,255,255,.04); }
.chat-who .photo { width: 42px; height: 42px; border-radius: 50%; flex: none; }
.chat-who .photo .initial { font-size: 20px; }
.chat-who .name { font-weight: 600; font-size: 16px; line-height: 1.2; }
.chat-who .sub { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.chat-who .dot { width: 7px; height: 7px; }
.call-icon { width: 42px; height: 42px; background: #fff; color: #17111d; border: 0; }
.call-icon:hover { background: #f0eaf4; }

.chat-log { overflow-y: auto; overscroll-behavior: contain; padding: 18px max(14px, calc((100vw - 760px) / 2)) 10px; display: flex; flex-direction: column; gap: 3px; }
.chat-intro { display: grid; justify-items: center; gap: 10px; text-align: center; color: var(--muted); font-size: 13px; padding: 10px 20px 18px; }
.chat-intro .photo { width: 84px; height: 84px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255,95,143,.35); }
.chat-intro .photo .initial { font-size: 40px; }
.chat-intro p { margin: 0; max-width: 300px; }
.chat-intro strong { color: var(--text); }
.chat-day { align-self: center; margin: 14px 0 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.chat-event { align-self: center; display: inline-flex; align-items: center; gap: 7px; margin: 10px 0; padding: 6px 12px; border-radius: 999px; font-size: 12px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); }
.chat-event svg { width: 14px; height: 14px; color: var(--online); }
.bubble { max-width: min(78%, 520px); padding: 9px 14px; border-radius: 20px; font-size: 15px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; animation: pop .18s ease-out; }
.bubble.her { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); }
.bubble.me { align-self: flex-end; background: var(--accent-grad); color: #1a0710; }
.bubble.her.tail { border-bottom-left-radius: 6px; }
.bubble.me.tail { border-bottom-right-radius: 6px; }
.bubble.sending { opacity: .6; }
.bubble.typing { padding: 13px 16px; color: var(--muted); }
.bubble.typing .pending-dots i { width: 6px; height: 6px; }
.bubble-time { font-size: 11px; color: var(--muted); margin: 2px 6px 8px; }
.bubble-time.me { align-self: flex-end; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } }

.chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px max(14px, calc((100vw - 760px) / 2)) max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(13, 11, 20, .9); }
.chat-form textarea { flex: 1; min-height: 46px; max-height: 140px; padding: 12px 16px; border-radius: 23px; font-size: 16px; line-height: 1.35; }
.chat-form .send { width: 46px; height: 46px; padding: 0; flex: none; }

/* ---------- toast ---------- */
.toast { position: fixed; z-index: 80; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; max-width: min(92vw, 480px); padding: 12px 14px 12px 18px; border-radius: 16px; background: #241f2e; border: 1px solid var(--line-strong); box-shadow: var(--shadow); font-size: 14px; animation: rise .25s ease; }
.toast.error { border-color: rgba(255,77,94,.5); }
.toast.match { border-color: rgba(255,95,143,.5); background: linear-gradient(135deg, #2d1a28, #2a1d1a); }
.toast .btn { padding: 8px 14px; }

@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .topbar { grid-template-columns: auto 1fr; grid-template-areas: "brand city" "tabs tabs"; padding: 12px 16px; row-gap: 10px; }
  .topbar .brand { grid-area: brand; }
  .top-right { grid-area: city; }
  .city-pill { max-width: 120px; }
  .top-right .tokens-pill { padding: 7px 10px; }
  .banner.cta { flex-direction: column; align-items: stretch; }
  .me-sheet { padding: 22px 18px 20px; }
  .tabs { grid-area: tabs; justify-self: stretch; }
  .tab { flex: 1; }
  main { padding: 0 14px 40px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card .info { padding: 12px; gap: 8px; }
  .card .name { font-size: 20px; }
  .card .name span { font-size: 16px; }
  .card .headline { display: none; }
  .card .btn { padding: 9px 10px; font-size: 13px; }
  .card .dist { display: none; }
  .backdrop { place-items: end center; padding: 0; }
  .sheet { width: 100%; border-radius: 26px 26px 0 0; max-height: 92vh; }
  .orb-wrap { width: 230px; height: 230px; }
  .orb { width: 150px; height: 150px; }
  .call-center h2 { font-size: 34px; margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
