:root {
  --bg: var(--tg-theme-bg-color, #09070d);
  --bg-2: #0e0a13;
  --panel: var(--tg-theme-secondary-bg-color, #15101d);
  --panel-2: #1c1526;
  --text: var(--tg-theme-text-color, #fbf8fc);
  --muted: var(--tg-theme-hint-color, #a79dae);
  --link: var(--tg-theme-link-color, #ff4f98);
  --accent: #ff3d8f;
  --accent-2: #9a58ff;
  --accent-soft: rgba(255, 61, 143, .13);
  --green: #46d58c;
  --warning: #ffb94c;
  --danger: #ff5a6f;
  --line: rgba(255, 255, 255, .085);
  --line-strong: rgba(255, 255, 255, .14);
  --glass: rgba(13, 9, 19, .62);
  --shadow: 0 24px 80px rgba(0, 0, 0, .42);
  --nav-h: 77px;
  --radius: 28px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); color-scheme: dark; }
html, body { margin: 0; min-height: 100%; }
body {
  background:
    radial-gradient(850px 500px at 50% -180px, rgba(255, 61, 143, .18), transparent 65%),
    radial-gradient(640px 520px at 120% 18%, rgba(154, 88, 255, .13), transparent 62%),
    var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}
body.sheet-open { overflow: hidden; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { background: #18121f; }
.hidden { display: none !important; }

.ambient { position: fixed; pointer-events: none; filter: blur(80px); opacity: .2; border-radius: 999px; z-index: 0; }
.ambient-one { width: 230px; height: 230px; background: #ff2d8b; left: -150px; top: 26%; }
.ambient-two { width: 260px; height: 260px; background: #7b4cff; right: -190px; top: 48%; }

.app-shell { position: relative; z-index: 1; width: min(100%, 560px); min-height: 100svh; margin: 0 auto; padding-bottom: calc(var(--nav-h) + 18px + env(safe-area-inset-bottom)); }
.main-content { min-height: calc(100svh - 74px); }

.topbar {
  position: sticky; top: 0; z-index: 30;
  min-height: calc(68px + env(safe-area-inset-top));
  padding: calc(10px + env(safe-area-inset-top)) 16px 9px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 92%, transparent), color-mix(in srgb, var(--bg) 72%, transparent), transparent);
  backdrop-filter: blur(20px);
}
.brand-button { display: inline-flex; align-items: center; gap: 10px; border: 0; background: none; padding: 0; text-align: left; }
.brand-mark {
  width: 39px; height: 39px; border-radius: 15px; display: grid; place-items: center;
  background: linear-gradient(135deg, #ff2e86, #9e5cff); box-shadow: 0 8px 28px rgba(255, 45, 132, .26);
  font-size: 29px; font-weight: 900; line-height: 1;
}
.brand-mark span { transform: translateY(-1px); }
.brand-copy { display: grid; gap: 2px; }
.brand-copy b { font-size: 18px; letter-spacing: -.35px; }
.brand-copy small { font-size: 11px; color: var(--muted); max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-actions { display: flex; gap: 8px; }
.top-icon, .glass-icon, .sheet-close {
  border: 1px solid var(--line); background: rgba(255,255,255,.045); color: var(--text);
  min-width: 40px; height: 40px; border-radius: 15px; display: grid; place-items: center; font-weight: 800;
}
.top-icon:active, .glass-icon:active, .sheet-close:active { transform: scale(.94); }

.view { display: none; padding: 4px 14px 24px; animation: viewIn .18s ease; }
.view.active { display: block; }
@keyframes viewIn { from { opacity: .35; transform: translateY(3px); } to { opacity: 1; transform: none; } }

.discover-heading, .section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 2px 4px 11px; }
.discover-heading h1, .section-head h1 { margin: 3px 0 0; font-size: 26px; line-height: 1.05; letter-spacing: -.75px; }
.section-head { padding-top: 8px; padding-bottom: 18px; }
.section-head p { margin: 6px 0 0; font-size: 13px; color: var(--muted); line-height: 1.35; }
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #ff79af; }
.scope-pill {
  border: 1px solid var(--line); background: rgba(255,255,255,.055); border-radius: 999px; padding: 8px 11px;
  color: #e8e1ec; font-size: 12px; font-weight: 700; white-space: nowrap;
}

.card-stage { min-height: min(690px, calc(100svh - 232px)); display: grid; align-items: start; }
.profile-card {
  width: 100%; border-radius: 30px; overflow: hidden; background: color-mix(in srgb, var(--panel) 94%, #09070d);
  border: 1px solid var(--line); box-shadow: var(--shadow); transform-origin: 50% 88%; user-select: none; touch-action: pan-y;
  will-change: transform, opacity;
}
.photo-wrap { height: clamp(410px, 59svh, 570px); min-height: 410px; position: relative; overflow: hidden; background: #19121f; }
.photo-wrap > img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; transition: opacity .18s ease; }
.photo-loader { position: absolute; inset: 0; display: grid; place-items: center; background: #18121f; z-index: 1; transition: opacity .18s ease; }
.photo-loader span { width: 34px; height: 34px; border: 3px solid rgba(255,255,255,.14); border-top-color: #ff5fa3; border-radius: 50%; animation: spin .8s linear infinite; }
.photo-loader.done { opacity: 0; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.photo-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(6,3,9,.16) 0%, transparent 32%, transparent 50%, rgba(4,2,7,.25) 67%, rgba(4,2,7,.92) 100%); pointer-events: none; }
.photo-topline { position: absolute; z-index: 2; left: 14px; right: 14px; top: 14px; display: flex; justify-content: space-between; align-items: center; }
.compat-pill { border: 1px solid rgba(255,255,255,.15); background: rgba(10,7,14,.62); backdrop-filter: blur(16px); border-radius: 999px; padding: 8px 10px; font-size: 12px; font-weight: 800; box-shadow: 0 8px 26px rgba(0,0,0,.18); }
.glass-icon { background: rgba(10,7,14,.55); backdrop-filter: blur(14px); border-color: rgba(255,255,255,.14); }
.profile-overlay { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 16px; text-shadow: 0 2px 16px rgba(0,0,0,.68); }
.name-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.name-line h2 { margin: 0; font-size: 32px; line-height: 1; letter-spacing: -.9px; }
.name-line > span:not(.verified-badge) { font-size: 26px; font-weight: 600; }
.verified-badge { width: 21px; height: 21px; border-radius: 50%; display: inline-grid; place-items: center; background: #49b7ff; color: white; font-size: 13px; font-weight: 900; text-shadow: none; box-shadow: 0 0 0 2px rgba(255,255,255,.14); }
.meta-line { display: flex; flex-wrap: wrap; gap: 8px 13px; margin-top: 8px; font-size: 12px; color: #eee7f1; }
.meta-line span:empty { display: none; }

.swipe-stamp { position: absolute; z-index: 4; top: 78px; padding: 8px 11px; border: 3px solid; border-radius: 9px; font-size: 22px; font-weight: 950; letter-spacing: .03em; opacity: 0; text-shadow: 0 2px 12px rgba(0,0,0,.55); }
.like-stamp { left: 20px; color: #ff69a9; border-color: #ff69a9; transform: rotate(-10deg); }
.skip-stamp { right: 20px; color: #f1eaf6; border-color: #f1eaf6; transform: rotate(10deg); }

.profile-details { padding: 16px 18px 18px; }
.goal-row { display: inline-flex; align-items: center; margin-bottom: 11px; padding: 7px 10px; border-radius: 999px; background: var(--accent-soft); color: #ffc2dc; font-size: 12px; font-weight: 750; }
.bio { margin: 0 0 13px; font-size: 15px; line-height: 1.48; color: #eee7f1; white-space: pre-wrap; }
.prompt-card { margin: 0 0 13px; padding: 13px 14px; border: 1px solid rgba(255, 83, 157, .18); background: linear-gradient(135deg, rgba(255,61,143,.09), rgba(154,88,255,.06)); border-radius: 17px; font-size: 13px; line-height: 1.42; color: #f4eaf1; }
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: rgba(255,255,255,.045); border-radius: 999px; padding: 7px 9px; font-size: 11px; color: #cfc4d5; }
.note-cta { width: 100%; margin-top: 15px; border: 1px solid rgba(255, 78, 153, .2); background: rgba(255,61,143,.08); color: #ffc1da; border-radius: 16px; padding: 11px 13px; font-weight: 750; font-size: 12px; }

.actions { display: grid; grid-template-columns: repeat(4, 1fr); align-items: end; gap: 9px; padding: 13px 4px 4px; }
.round-action { border: 0; background: none; padding: 0; display: grid; justify-items: center; gap: 5px; color: var(--muted); font-size: 10px; }
.round-action > span { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: #16101e; color: #f5eef8; font-size: 25px; box-shadow: 0 8px 25px rgba(0,0,0,.25); transition: transform .12s ease, border-color .12s ease; }
.round-action:active > span { transform: scale(.9); }
.round-action.like > span { width: 64px; height: 64px; background: linear-gradient(135deg, #ff438f, #ff1e75); border: 0; color: white; box-shadow: 0 12px 30px rgba(255, 45, 130, .34); font-size: 29px; }
.round-action.note > span { border-color: rgba(154,88,255,.34); color: #c8a9ff; }
.round-action.undo > span { color: #cfc3d9; font-size: 24px; }
.round-action.skip > span { font-size: 36px; font-weight: 250; }

.loading-card { width: 100%; border: 1px solid var(--line); background: var(--panel); border-radius: 30px; overflow: hidden; }
.loading-info { padding: 17px; }
.skeleton { position: relative; overflow: hidden; background: rgba(255,255,255,.055); }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent); animation: shimmer 1.25s infinite; }
@keyframes shimmer { 100% { transform: translateX(100%); } }
.skeleton-photo { height: clamp(410px, 59svh, 570px); }
.skeleton-line { height: 13px; border-radius: 8px; margin: 11px 0; width: 72%; }
.skeleton-line.wide { height: 22px; width: 47%; }
.skeleton-line.short { width: 43%; }

.empty-state { min-height: 420px; width: 100%; padding: 38px 25px; border: 1px solid var(--line); border-radius: 29px; background: rgba(255,255,255,.035); display: grid; place-items: center; align-content: center; text-align: center; }
.empty-orb, .empty-icon { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 25px; background: linear-gradient(135deg, rgba(255,61,143,.18), rgba(154,88,255,.13)); font-size: 31px; margin-bottom: 16px; }
.empty-state h2 { margin: 0; font-size: 22px; letter-spacing: -.4px; }
.empty-state p { max-width: 370px; margin: 9px 0 20px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.empty-actions { display: grid; gap: 9px; width: min(100%, 320px); }

.primary-btn, .secondary-btn, .ghost-btn { width: 100%; border-radius: 16px; min-height: 48px; padding: 12px 16px; font-weight: 820; border: 0; }
.primary-btn { background: linear-gradient(135deg, #ff3d8f, #ec267d); color: white; box-shadow: 0 10px 27px rgba(255,45,132,.22); }
.primary-btn:disabled { opacity: .42; box-shadow: none; }
.secondary-btn { background: rgba(255,255,255,.055); border: 1px solid var(--line); color: var(--text); }
.ghost-btn { background: transparent; color: var(--muted); }

.soft-banner { margin: -4px 0 14px; padding: 12px 14px; border: 1px solid rgba(255,61,143,.17); background: rgba(255,61,143,.07); border-radius: 17px; color: #edcbd9; font-size: 12px; line-height: 1.45; }
.likes-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.like-card { position: relative; min-width: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); box-shadow: 0 12px 38px rgba(0,0,0,.18); }
.like-card-photo { position: relative; aspect-ratio: .82; overflow: hidden; }
.like-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.like-card-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 48%, rgba(5,3,8,.85) 100%); }
.like-card-name { position: absolute; z-index: 2; left: 11px; right: 11px; bottom: 10px; display: flex; align-items: center; gap: 5px; font-weight: 850; font-size: 15px; text-shadow: 0 2px 12px #000; }
.like-card-body { padding: 10px; }
.like-card-note { min-height: 31px; color: var(--muted); font-size: 11px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.like-card-actions { display: grid; grid-template-columns: 42px 1fr; gap: 7px; margin-top: 9px; }
.like-card-actions button { border: 1px solid var(--line); border-radius: 13px; min-height: 39px; background: rgba(255,255,255,.045); font-weight: 800; }
.like-card-actions .like-back { border: 0; background: linear-gradient(135deg, #ff438f, #ef267f); color: white; }

.matches-list { display: grid; gap: 9px; }
.match-row { display: grid; grid-template-columns: 58px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.035); border-radius: 19px; }
.match-row img { width: 58px; height: 58px; border-radius: 17px; object-fit: cover; }
.match-copy { min-width: 0; display: grid; gap: 4px; }
.match-copy b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-copy small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.match-copy .online { color: #77e8aa; }
.chat-btn { border: 0; border-radius: 14px; padding: 10px 12px; background: rgba(255,61,143,.11); color: #ff98c4; font-weight: 800; font-size: 11px; }

.profile-view { padding-top: 8px; }
.me-hero { height: 330px; border-radius: 29px; overflow: hidden; position: relative; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); }
.me-hero > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.me-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(5,3,8,.06), rgba(5,3,8,.05) 45%, rgba(5,3,8,.88)); }
.me-copy { position: absolute; left: 18px; bottom: 17px; right: 18px; }
.me-copy > div { font-size: 27px; font-weight: 880; letter-spacing: -.65px; }
.me-copy small { display: block; margin-top: 5px; color: #e4dbe9; }
.photo-edit { position: absolute; z-index: 2; top: 13px; right: 13px; border: 1px solid rgba(255,255,255,.15); background: rgba(8,5,11,.58); backdrop-filter: blur(13px); border-radius: 999px; padding: 8px 10px; font-size: 11px; font-weight: 800; }
.profile-completion { margin-top: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.035); border-radius: 20px; padding: 14px; }
.completion-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.completion-head span { color: #ff8ab9; font-weight: 850; }
.progress-track { height: 7px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; margin: 10px 0 8px; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#ff3d8f,#9e5cff); transition: width .35s ease; }
.profile-completion small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 10px 0; }
.stat-card { min-height: 83px; border: 1px solid var(--line); border-radius: 19px; background: rgba(255,255,255,.035); display: grid; place-items: center; align-content: center; gap: 4px; padding: 8px; text-align: center; }
button.stat-card { color: var(--text); }
.stat-card strong { font-size: 19px; letter-spacing: -.4px; }
.stat-card span { color: var(--muted); font-size: 10px; }
.settings-card { border: 1px solid var(--line); background: rgba(255,255,255,.03); border-radius: 22px; overflow: hidden; }
.menu-row { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; min-height: 67px; padding: 12px 13px; display: grid; grid-template-columns: 40px 1fr 18px; gap: 10px; align-items: center; text-align: left; }
.menu-row:last-child { border-bottom: 0; }
.menu-ico { width: 39px; height: 39px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.05); color: #f6d7e6; font-size: 18px; }
.menu-row div { display: grid; gap: 3px; }
.menu-row b { font-size: 13px; }
.menu-row small { font-size: 10px; color: var(--muted); }
.menu-row i { color: #766c7d; font-size: 22px; font-style: normal; }
.age-note { color: var(--muted); font-size: 10px; line-height: 1.45; text-align: center; padding: 15px 24px 0; }

.center-view { min-height: calc(100svh - 115px); place-items: center; align-content: center; text-align: center; padding: 50px 26px; }
.center-view.active { display: grid; }
.big-logo { width: 88px; height: 88px; border-radius: 30px; display: grid; place-items: center; background: linear-gradient(135deg,#ff3d8f,#9854ff); font-size: 61px; box-shadow: 0 20px 50px rgba(255,61,143,.25); margin-bottom: 18px; }
.warning-logo { font-size: 38px; }
.center-view h2 { margin: 7px 0 9px; font-size: 25px; }
.center-view p { max-width: 380px; margin: 0 0 20px; color: var(--muted); font-size: 13px; line-height: 1.55; }

.bottom-nav {
  position: fixed; z-index: 40; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100%, 560px);
  height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding: 8px 9px calc(8px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: repeat(4,1fr); gap: 3px;
  background: color-mix(in srgb, var(--bg) 87%, transparent); border-top: 1px solid var(--line); backdrop-filter: blur(24px);
}
.nav-btn { position: relative; border: 0; background: transparent; display: grid; place-items: center; align-content: center; gap: 3px; color: #7f7587; border-radius: 16px; }
.nav-btn > span { position: relative; font-size: 23px; line-height: 1; min-width: 29px; }
.nav-btn small { font-size: 9px; font-weight: 700; }
.nav-btn.active { color: #ff5ca2; background: rgba(255,61,143,.07); }
.nav-badge { position: absolute; top: -7px; right: -11px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; display: grid; place-items: center; background: #ff3d8f; color: white; font-size: 9px; border: 2px solid var(--bg); }

.sheet-backdrop { position: fixed; z-index: 70; inset: 0; background: rgba(0,0,0,.54); backdrop-filter: blur(3px); opacity: 0; transition: opacity .2s ease; }
.sheet-backdrop.show { opacity: 1; }
.sheet {
  position: fixed; z-index: 80; left: 50%; bottom: 0; transform: translate(-50%, 105%); width: min(100%, 560px); max-height: min(84svh, 760px); overflow-y: auto;
  background: #120e18; border: 1px solid var(--line); border-bottom: 0; border-radius: 28px 28px 0 0;
  padding: 9px 15px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -20px 70px rgba(0,0,0,.48); transition: transform .24s cubic-bezier(.2,.8,.2,1);
}
.sheet.open { transform: translate(-50%, 0); }
.tall-sheet { max-height: 91svh; }
.compact-sheet { max-height: 70svh; }
.sheet-handle { width: 42px; height: 4px; border-radius: 999px; background: rgba(255,255,255,.18); margin: 0 auto 9px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; position: sticky; top: -9px; z-index: 3; background: linear-gradient(to bottom,#120e18 84%,transparent); padding: 9px 0 13px; }
.sheet-head h2 { margin: 2px 0 0; font-size: 23px; letter-spacing: -.5px; }
.sheet-close { min-width: 38px; height: 38px; font-size: 25px; font-weight: 350; }
.sheet-copy { color: var(--muted); font-size: 12px; line-height: 1.48; margin: 0 0 15px; }
.sheet-copy.small { font-size: 10px; margin-top: 12px; }
.form-block { margin: 5px 0 18px; }
.form-block > label, .label-row > label { display: block; font-size: 11px; font-weight: 800; color: #d8cfdd; margin-bottom: 9px; }
.label-row { display: flex; justify-content: space-between; align-items: center; }
.label-row span { color: var(--muted); font-size: 10px; }
.segmented { display: grid; grid-template-columns: repeat(2,1fr); gap: 4px; padding: 4px; background: rgba(255,255,255,.045); border: 1px solid var(--line); border-radius: 16px; }
.segmented button { border: 0; border-radius: 12px; background: transparent; min-height: 43px; color: var(--muted); font-size: 12px; font-weight: 780; }
.segmented button.selected { background: rgba(255,61,143,.13); color: #ff9bc4; }
.range-pair { display: grid; grid-template-columns: 1fr 18px 1fr; gap: 8px; align-items: end; }
.range-pair > span { color: var(--muted); text-align: center; padding-bottom: 13px; }
.range-pair label { display: grid; gap: 5px; }
.range-pair small { color: var(--muted); font-size: 9px; }
.range-pair input, .field input, .field textarea, .select-input {
  width: 100%; border: 1px solid var(--line); background: rgba(255,255,255,.045); border-radius: 15px; outline: none; padding: 12px 13px; color: var(--text); font-size: 13px;
}
.range-pair input:focus, .field input:focus, .field textarea:focus, .select-input:focus { border-color: rgba(255,61,143,.46); box-shadow: 0 0 0 3px rgba(255,61,143,.07); }
.radio-list { display: grid; gap: 8px; }
.radio-option { border: 1px solid var(--line); background: rgba(255,255,255,.03); border-radius: 15px; min-height: 49px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 9px; text-align: left; font-size: 12px; }
.radio-option.selected { border-color: rgba(255,61,143,.33); background: rgba(255,61,143,.07); }
.radio-dot { width: 19px; height: 19px; border-radius: 50%; border: 2px solid #655b6c; display: grid; place-items: center; }
.radio-option.selected .radio-dot { border-color: #ff5a9e; }
.radio-option.selected .radio-dot::after { content:""; width: 9px; height: 9px; border-radius: 50%; background:#ff5a9e; }
.sticky-action { position: sticky; bottom: 0; z-index: 3; margin-top: 9px; }

.form-grid.two { display: grid; grid-template-columns: 1.25fr .75fr; gap: 9px; }
.field { display: grid; gap: 7px; margin-bottom: 13px; position: relative; }
.field > span { font-size: 10px; color: var(--muted); font-weight: 750; padding-left: 2px; }
.field textarea { resize: none; line-height: 1.43; }
.counter { position: absolute; right: 10px; bottom: 7px; font-size: 9px; color: #756b7d; background: #16111d; padding-left: 6px; }
.choice-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.choice-grid.compact { grid-template-columns: repeat(3,minmax(0,1fr)); }
.choice { border: 1px solid var(--line); background: rgba(255,255,255,.03); border-radius: 14px; min-height: 46px; padding: 9px; text-align: left; font-size: 11px; color: #d5cbdc; }
.choice.selected { border-color: rgba(255,61,143,.36); background: rgba(255,61,143,.09); color: #ffc2dc; }
.choice-grid.compact .choice { min-height: 42px; font-size: 10px; padding: 8px; text-align: center; }
.select-input { appearance: none; background-image: linear-gradient(45deg,transparent 50%,#82798a 50%),linear-gradient(135deg,#82798a 50%,transparent 50%); background-position: calc(100% - 18px) 18px,calc(100% - 13px) 18px; background-size:5px 5px,5px 5px; background-repeat:no-repeat; }
.select-input option { background: #17111f; }

.danger-row { width: 100%; border: 1px solid rgba(255,90,111,.18); background: rgba(255,90,111,.055); color: #ff9fab; border-radius: 16px; min-height: 50px; padding: 12px; text-align: left; margin-bottom: 8px; font-weight: 800; }
.danger-row.strong { color: #ff6e80; }
.upload-box { position: relative; border: 1px dashed rgba(255,255,255,.17); background: rgba(255,255,255,.025); border-radius: 20px; padding: 20px; text-align: center; margin-bottom: 11px; }
.upload-box input { display: none; }
.upload-icon { font-size: 34px; margin-bottom: 8px; }
.upload-box b { display: block; font-size: 14px; }
.upload-box p { color: var(--muted); font-size: 10px; line-height: 1.4; margin: 6px auto 13px; max-width: 300px; }

.modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(9px); }
.match-card { position: relative; z-index: 1; width: min(100%, 390px); overflow: hidden; border: 1px solid rgba(255,255,255,.12); background: #15101c; border-radius: 31px; padding: 28px 20px 20px; text-align: center; box-shadow: 0 30px 100px rgba(0,0,0,.56); }
.match-glow { position: absolute; width: 250px; height: 180px; border-radius: 50%; background: #ff3d8f; filter: blur(75px); opacity: .15; left: 50%; top: -90px; transform: translateX(-50%); pointer-events: none; }
.match-photos { display: flex; justify-content: center; margin-bottom: 13px; }
.match-photos img { width: 92px; height: 92px; border-radius: 30px; object-fit: cover; border: 4px solid #15101c; box-shadow: 0 12px 30px rgba(0,0,0,.32); }
.match-photos img + img { margin-left: -20px; }
.match-heart { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg,#ff3d8f,#ef247c); color: white; margin: -35px auto 13px; position: relative; z-index: 2; border: 4px solid #15101c; }
.match-card h2 { margin: 6px 0 7px; font-size: 24px; }
.match-card p { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 0 0 18px; }
.match-card .secondary-btn { margin-top: 8px; }

.toast { position: fixed; z-index: 130; left: 50%; bottom: calc(var(--nav-h) + 18px + env(safe-area-inset-bottom)); transform: translate(-50%, 18px); width: max-content; max-width: min(calc(100% - 32px), 480px); opacity: 0; background: rgba(28,21,37,.94); border: 1px solid var(--line-strong); backdrop-filter: blur(15px); color: #f7f0f9; border-radius: 16px; padding: 11px 14px; box-shadow: 0 15px 45px rgba(0,0,0,.38); font-size: 12px; transition: opacity .18s ease, transform .18s ease; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 390px) {
  .view { padding-left: 10px; padding-right: 10px; }
  .photo-wrap, .skeleton-photo { min-height: 390px; }
  .profile-details { padding-left: 14px; padding-right: 14px; }
  .name-line h2 { font-size: 29px; }
  .actions { gap: 4px; }
  .round-action > span { width: 49px; height: 49px; }
  .round-action.like > span { width: 58px; height: 58px; }
  .choice-grid.compact { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .likes-grid { gap: 8px; }
}

@media (min-width: 720px) {
  .app-shell { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* V2 discover controls stay reachable without forcing the user to scroll the whole card. */
.discover-view { padding-bottom: 105px; }
.discover-view .actions {
  position: fixed;
  z-index: 35;
  left: 50%;
  bottom: calc(var(--nav-h) + 8px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(calc(100% - 28px), 532px);
  padding: 9px 8px 7px;
  border: 1px solid rgba(255,255,255,.055);
  border-radius: 24px;
  background: linear-gradient(to bottom, rgba(9,7,13,.68), rgba(9,7,13,.94));
  backdrop-filter: blur(18px);
  box-shadow: 0 -10px 35px rgba(0,0,0,.18);
}
