:root {
  --bg: #0B090B;
  --bg-2: #120E12;
  --surface: #17121A;
  --surface-2: #221A24;
  --line: #33262F;
  --text: #FFF7F7;
  --muted: #A89DA3;
  --faint: #8D8790;
  --accent: #F52B42;
  --accent-2: #FF4D6D;
  --grad: linear-gradient(135deg, #F52B42 0%, #F52B42 55%, #FF6B7D 100%);
  --hot: linear-gradient(135deg, #ff4d6d, #ff8a3d);
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 12px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.45; }
body { overscroll-behavior-y: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: #FF8A97; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
[hidden] { display: none !important; }

#app {
  max-width: 520px; margin: 0 auto; min-height: 100vh; padding: 12px 16px calc(96px + var(--safe-b));
  background: radial-gradient(120% 60% at 90% -10%, #3A0A14 0%, transparent 55%), radial-gradient(80% 40% at -10% 10%, #24070D 0%, transparent 60%), var(--bg);
}

/* ---------------------------------------------------------------- header & nav */
.top { display: flex; justify-content: space-between; align-items: center; min-height: 44px; gap: 10px; }
.top .back { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px; padding: 7px 14px 7px 10px; font-weight: 700; font-size: 14px; }
.top .back + .brand { margin-right: auto; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.slot-hint { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--faint); }
.slot:active { background: var(--surface-2); }
.nudge { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 0 0 12px; border-radius: 18px; background: #1E0F14; border: 1px solid #5A2330; cursor: pointer; }
.nudge > span:first-child { font-size: 24px; }
.nudge p { color: var(--muted); font-size: 13px; }
.nudge .chev { margin-left: auto; color: #FF9AA8; font-size: 24px; }
.brand { font-weight: 900; font-size: 22px; letter-spacing: 0.32em; display: flex; align-items: center; gap: 4px; }
.brand i { width: 26px; height: 26px; border-radius: 50%; background: url('/app/img/halo-heart.webp') center / cover; box-shadow: 0 0 14px #FF4D6D66; margin-left: 4px; }

.tabs {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: min(520px, 100%); z-index: 20;
  display: grid; grid-template-columns: repeat(5, 1fr); padding: 8px 8px calc(8px + var(--safe-b));
  background: rgba(11, 9, 11, 0.9); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--line);
}
.tabs button { position: relative; border: 0; background: none; color: var(--faint); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; font-size: 11px; font-weight: 600; }
.tabs .ico { font-size: 19px; line-height: 1.1; }
.tabs button.active { color: var(--text); }
.tabs button.active .ico { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tabs .dot { position: absolute; top: 2px; right: 28%; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); }

/* ---------------------------------------------------------------- type */
.title { font-size: 28px; font-weight: 800; margin: 14px 0 8px; }
.hero { padding: 14px 2px 12px; }
.hero h1 { font-size: 36px; line-height: 0.98; font-weight: 850; }
.hero em { display: block; font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kicker { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.16em; color: #FF9AA8; margin-bottom: 6px; }
.kicker.warn { color: var(--warn); }
.kicker.hot { color: #ff8a6b; }
.muted { color: var(--muted); }
.fine { color: var(--faint); font-size: 12px; margin-top: 10px; }
.center { text-align: center; }
.section { font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin: 24px 2px 10px; font-weight: 700; }

/* ---------------------------------------------------------------- buttons */
.btn { border: 0; border-radius: var(--r-md); padding: 14px 18px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .12s, opacity .12s; }
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px #c026d3aa; }
.btn.hot { background: var(--hot); color: #fff; }
.btn.ghost { background: var(--surface); border: 1px solid var(--line); }
.btn.danger { background: #3a1418; color: #ffb4b4; border: 1px solid #5c1f26; }
.btn.small { padding: 9px 14px; font-size: 13px; border-radius: var(--r-sm); }
.btn.block { width: 100%; margin-top: 10px; }
.btn.left { justify-content: flex-start; }

/* ---------------------------------------------------------------- cards & chips */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.card.pad { padding: 20px; }
.card.pad h2 { margin: 2px 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 12px; padding: 0 16px 4px; scrollbar-width: none; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chips.big { margin: 16px 0 8px; }
.chip { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 12px; font-size: 13px; white-space: nowrap; }
.chips.big .chip { padding: 10px 14px; font-size: 14px; }
.chip.on { background: #2A1418; border-color: #A3162C; color: #fff; }
.chip.add { border-style: dashed; color: var(--muted); background: none; }

/* ---------------------------------------------------------------- modes */
.modes { display: flex; gap: 6px; padding: 4px; margin: 6px 0 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.modes button { flex: 1; border: 0; background: none; padding: 9px 6px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.modes button.active { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px #5A2330; }

/* ---------------------------------------------------------------- person card */
.person { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: 0 30px 80px -30px #000; }
.photo-wrap { position: relative; }
.carousel { position: relative; aspect-ratio: 4 / 5; max-height: calc(var(--tg-viewport-stable-height, 100vh) - 330px); min-height: 280px; width: 100%; background: #1C1219; }
.carousel img { width: 100%; height: 100%; object-fit: cover; }
.carousel.ph { display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, #6B1D2B, #1E0F14 70%); }
.ph-letter { font-size: 120px; font-weight: 900; color: #ffffff22; }
.bars { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; gap: 4px; }
.bars i { flex: 1; height: 3px; border-radius: 3px; background: #ffffff44; }
.bars i.on { background: #fff; }
.overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 18px 16px; background: linear-gradient(transparent, rgba(8, 6, 12, 0.92)); pointer-events: none; }
.overlay h2 { font-size: 30px; font-weight: 800; }
.overlay .age { font-weight: 500; }
.overlay p { color: #F4E8EA; margin-top: 2px; }
.more { position: absolute; top: 18px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.45); color: #fff; font-size: 18px; backdrop-filter: blur(6px); }
.superbadge { position: absolute; top: 20px; left: 14px; background: #1e3a8a; color: #dbeafe; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.person-body { padding: 12px 18px 0; display: grid; gap: 8px; }
.person-body .bio { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.person .actions { position: sticky; bottom: calc(68px + var(--safe-b)); background: linear-gradient(transparent, var(--surface) 30%); padding-top: 12px; }
.bio { color: #E2D6D9; white-space: pre-line; }
.shared { color: #FF9AA8; font-size: 13px; font-weight: 600; }
.actions { display: flex; justify-content: center; align-items: center; gap: 18px; padding: 14px 18px 20px; }
.act { width: 62px; height: 62px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); font-size: 24px; display: grid; place-items: center; transition: transform .12s; }
.act:active { transform: scale(0.9); }
.act.like { width: 74px; height: 74px; border: 0; background: var(--grad); color: #fff; font-size: 30px; box-shadow: 0 14px 34px -10px #F52B42; }
.act.super { color: #93c5fd; width: 52px; height: 52px; font-size: 20px; }
.act.pass { color: #CDBFC4; }

/* ---------------------------------------------------------------- events */
.event { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); margin: 10px 0; overflow: hidden; }
.event.sponsored { border-color: #5A2330; }
.event .cover { width: 100%; height: 150px; object-fit: cover; }
.event-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 14px; }
.date { text-align: center; background: #24131A; border-radius: 14px; padding: 8px 2px; line-height: 1.1; }
.date b { display: block; font-size: 22px; }
.date span { display: block; font-size: 11px; text-transform: uppercase; color: #FF9AA8; font-weight: 700; }
.date small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.event-info h4 { font-size: 16px; margin: 1px 0 2px; }
.event-info p { color: var(--muted); font-size: 13px; }
.event-info .going { color: #FF9AA8; font-weight: 600; margin-top: 3px; }
.ad { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--warn); border: 1px solid #5b4a1a; border-radius: 6px; padding: 1px 6px; margin-bottom: 4px; }
.ad.feat { color: #FF9AA8; border-color: #5A2330; }
.go { border: 0; background: #2A1418; color: #FFE3E6; border-radius: 12px; padding: 10px 12px; font-weight: 700; font-size: 13px; white-space: nowrap; }
.go.on { background: var(--grad); color: #fff; }
.ctx { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ctx span { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.desc { white-space: pre-line; margin: 12px 0; color: #E2D6D9; }
.promo { background: #1d2a1f; border: 1px dashed #2f6b3d; color: #b7f5c8; border-radius: 12px; padding: 10px 12px; margin: 10px 0; }

/* ---------------------------------------------------------------- company */
.grid-acts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.act-tile { border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 10px 2px 8px; font-size: 11px; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); }
.act-tile span { font-size: 22px; }
.act-tile:active { background: var(--surface-2); }
.intent, .match-row { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px; margin: 8px 0; }
.intent.mine { justify-content: space-between; border-color: #5A2330; }
.intent p, .match-row p { font-size: 13px; }
.grow { flex: 1; min-width: 0; }
.grow b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar.ph { display: grid; place-items: center; background: #2A1418; color: #FF9AA8; font-weight: 800; font-size: 20px; }
.avatar.xl { width: 84px; height: 84px; font-size: 32px; }
.more-s { border: 0; background: none; color: var(--muted); font-size: 20px; padding: 4px 6px; }

/* ---------------------------------------------------------------- matches */
.likes-banner { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 20px; margin: 6px 0 14px; background: linear-gradient(135deg, #2A0B12, #3A0A14); border: 1px solid #6B1D2B; }
.likes-banner .stack { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #ffffff14; font-size: 22px; }
.likes-banner p { color: #FFE0E4; font-size: 13px; }
.likes-banner .chev { margin-left: auto; font-size: 26px; color: #FF9AA8; }
.match { text-align: center; padding: 6px 4px 4px; }
.match .pair { display: flex; justify-content: center; margin: 6px 0 16px; }
.match .pair > :last-child { margin-left: -16px; box-shadow: 0 0 0 4px var(--bg-2); }
.match .pair > :first-child { box-shadow: 0 0 0 4px var(--bg-2); }
.match h2 { font-size: 32px; margin-bottom: 8px; }

/* ---------------------------------------------------------------- profile */
.me-head { display: flex; align-items: center; gap: 16px; margin: 8px 0 16px; }
.me-head h1 { font-size: 26px; }
.status { margin-bottom: 4px; }
.status.on { border-color: #A3162C; background: linear-gradient(135deg, #1F0F15, #2A0B12); }
.status p { margin-top: 2px; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.slot { position: relative; aspect-ratio: 3 / 4; border-radius: 16px; background: var(--surface); border: 1px dashed #3A2C33; display: grid; place-items: center; overflow: hidden; cursor: pointer; }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot .plus { font-size: 28px; color: var(--faint); }
.slot .badge { position: absolute; left: 6px; bottom: 6px; font-size: 10px; font-weight: 700; padding: 3px 7px; border-radius: 999px; background: #3a2e0f; color: var(--warn); }
.slot .badge.bad { background: #3a1418; color: var(--danger); }
.slot .x { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 16px; line-height: 1; }
.switch { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.switch:last-child { border-bottom: 0; }
.switch small { display: block; color: var(--faint); font-size: 12px; margin-top: 2px; }
.switch input { appearance: none; flex: none; width: 44px; height: 26px; border-radius: 999px; background: #2E2228; position: relative; transition: background .15s; margin: 0; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked { background: #F52B42; }
.switch input:checked::after { transform: translateX(18px); }
.links { display: flex; flex-direction: column; }
.links a, .links button { padding: 14px 16px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; color: var(--text); text-decoration: none; }
.links > :last-child { border-bottom: 0; }
.links .danger { color: var(--danger); }
.perks { padding-left: 18px; color: #E2D6D9; margin: 10px 0; }
.perks li { margin: 6px 0; }
.flirt { border-color: #5b2a2a; background: linear-gradient(160deg, #23121a, var(--surface)); }
.product { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.product.focus { background: #1E0F14; margin: 0 -12px; padding: 14px 12px; border-radius: 14px; }
.product p { font-size: 13px; }

/* ---------------------------------------------------------------- forms & onboarding */
.onb { padding-top: 4px; }
.steps { display: flex; gap: 6px; margin: 8px 0 4px; }
.steps i { flex: 1; height: 4px; border-radius: 4px; background: #33262F; }
.steps i.on { background: var(--grad); }
.form { display: grid; gap: 14px; margin-top: 16px; }
.form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
input, select, textarea { width: 100%; padding: 13px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: inherit; }
input:focus, textarea:focus { outline: 2px solid #A3162C; outline-offset: 0; }
textarea { min-height: 90px; resize: vertical; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opt span { display: inline-block; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font-weight: 600; font-size: 13px; }
.seg-opt input:checked + span { background: #2A1418; border-color: #F52B42; }
.seg-opt input:focus-visible + span { outline: 2px solid #F52B42; }
.check { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px; font-weight: 500 !important; }
.check input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: #F52B42; }

/* ---------------------------------------------------------------- states */
.splash { min-height: 60vh; display: grid; place-content: center; justify-items: center; gap: 16px; color: var(--muted); }
.splash.small { min-height: 40vh; }
.orb { width: 110px; height: 110px; border-radius: 50%; background: url('/app/img/halo-heart.webp') center / cover; box-shadow: 0 0 80px #F52B4277; animation: pulse 2.4s ease-in-out infinite; }
.spinner { width: 30px; height: 30px; border-radius: 50%; border: 3px solid #2E2228; border-top-color: #FF7A8A; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { transform: scale(1.06); box-shadow: 0 0 110px #FF6B7D99; } }
.empty { text-align: center; padding: 36px 18px; display: grid; gap: 10px; justify-items: center; }
.empty-ico { font-size: 44px; }
.empty p { color: var(--muted); max-width: 320px; }
.empty .btn { min-width: 200px; }

/* ---------------------------------------------------------------- sheet & toast */
.sheet { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, 0); transition: background .2s; display: flex; align-items: flex-end; justify-content: center; }
.sheet.open { background: rgba(0, 0, 0, 0.6); }
.sheet-body { width: min(520px, 100%); max-height: 88vh; overflow-y: auto; background: var(--bg-2); border: 1px solid var(--line); border-bottom: 0; border-radius: 26px 26px 0 0; padding: 10px 18px calc(22px + var(--safe-b)); transform: translateY(100%); transition: transform .22s cubic-bezier(.2, .8, .2, 1); }
.sheet.open .sheet-body { transform: none; }
.sheet-body h2 { margin: 6px 0 6px; }
.sheet-body h3 { margin: 6px 0 10px; }
.grab { width: 40px; height: 4px; border-radius: 4px; background: #3A2C33; margin: 0 auto 12px; }
.sheet-cover { width: calc(100% + 36px); margin: -10px -18px 14px; height: 180px; object-fit: cover; }
#toast { position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top, 0px)); transform: translate(-50%, -16px); background: #FFF7F7; color: #161015; padding: 11px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; opacity: 0; transition: .2s; pointer-events: none; z-index: 60; max-width: calc(100% - 32px); text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.err { background: #ffd9d9; color: #5a0e0e; }

/* ---------------------------------------------------------------- chat */
.chat-row { cursor: pointer; }
.chat-row.unread { border-color: #A3162C; background: #1E0F14; }
.chat-row.unread b { color: #fff; }
.chat-row .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-row .chev { color: var(--faint); font-size: 22px; }
.badge-count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--accent-2); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 4px 2px 12px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.chat-head .avatar { width: 44px; height: 44px; }
.chat-head p { font-size: 12px; }
.contact-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; margin-bottom: 10px; border-radius: 14px; background: #10372a; border: 1px solid #1d5c46; color: #a7f3d0; font-size: 13px; }
.msgs { display: flex; flex-direction: column; gap: 6px; padding-bottom: 86px; min-height: 40vh; }
.bubble { max-width: 80%; align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px 18px 18px 6px; padding: 9px 12px 6px; }
.bubble.mine { align-self: flex-end; background: linear-gradient(135deg, #C8102E, #B3122B); border: 0; border-radius: 18px 18px 6px 18px; color: #fff; }
.bubble p { white-space: pre-wrap; word-break: break-word; }
.bubble small { display: block; text-align: right; font-size: 10px; opacity: .65; margin-top: 2px; }
.sys { align-self: center; font-size: 12px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; margin: 6px 0; }
.invite-card { display: grid; gap: 2px; margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, .25); cursor: pointer; }
.invite-card span { font-size: 12px; opacity: .85; }
.invite-card .link { color: #FFE3E6; font-weight: 700; }
.chat-empty { text-align: center; color: var(--muted); padding: 40px 16px; display: grid; gap: 6px; }
.composer { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: min(520px, 100%); display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px calc(10px + var(--safe-b)); background: rgba(11, 10, 16, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); z-index: 20; }
.msg-input { flex: 1; min-height: 42px; max-height: 120px; resize: none; padding: 10px 14px; border-radius: 21px; line-height: 1.35; }
.send, .invite-btn { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; font-size: 18px; }
.send { background: var(--grad); color: #fff; }
.send:disabled { opacity: .5; }
.invite-btn { background: var(--surface-2); border: 1px solid var(--line); }
.invite-opt small { color: var(--muted); font-weight: 500; }

@media (max-width: 360px) {
  .grid-acts { grid-template-columns: repeat(4, 1fr); }
  .hero h1 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.chat-head p.typing { color: #FF9AA8; font-weight: 700; animation: typingPulse 1.2s ease-in-out infinite; }
@keyframes typingPulse { 50% { opacity: .45; } }
.referral { margin-top: 12px; border-color: #5A2330; background: linear-gradient(135deg, #1F0F15, #17121A); }

/* ---------------------------------------------------------------- 1.5: swipe deck, space, likes, chats */
.tabs .ico { filter: grayscale(1) opacity(.6); }
.tabs button.active .ico { filter: none; background: none; -webkit-background-clip: initial; background-clip: initial; color: inherit; }
.deck-chips { margin-bottom: 10px; }
.deck-head { display: flex; justify-content: space-between; align-items: baseline; margin: 4px 2px 12px; }
.deck { position: relative; }
.card-under { position: absolute; inset: 10px 10px auto; border-radius: 28px; overflow: hidden; transform: scale(.95) translateY(12px); opacity: .55; pointer-events: none; }
.card-under .carousel { max-height: calc(var(--tg-viewport-stable-height, 100vh) - 300px); }
.person.swipe { position: relative; z-index: 2; touch-action: none; user-select: none; -webkit-user-select: none; will-change: transform; }
.person.swipe .carousel { max-height: calc(var(--tg-viewport-stable-height, 100vh) - 300px); }
.person.swipe .overlay { pointer-events: auto; cursor: pointer; padding-bottom: 18px; }
.overlay .more-hint { position: absolute; right: 18px; bottom: 20px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); font-size: 14px; }
.shared-line { color: #FFE3E6 !important; font-weight: 700; font-size: 13px; }
.stamp { position: absolute; top: 44px; padding: 6px 14px; border: 4px solid; border-radius: 12px; font-size: 26px; font-weight: 900; letter-spacing: .04em; opacity: 0; pointer-events: none; transition: opacity .1s; z-index: 3; }
.stamp.like { left: 18px; color: #4ade80; border-color: #4ade80; transform: rotate(-14deg); }
.stamp.nope { right: 18px; color: #f87171; border-color: #f87171; transform: rotate(14deg); }
.stamp.super { left: 50%; top: 40%; color: #60a5fa; border-color: #60a5fa; transform: translateX(-50%) rotate(-6deg); }
.tonightbadge { position: absolute; top: 58px; left: 14px; background: #4A0B17; color: #e0e7ff; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.act.rewind, .act.boost { width: 46px; height: 46px; font-size: 18px; }
.act.rewind { color: #fbbf24; }
.act.boost { color: #FF6B7D; }
.sheet-photos { display: grid; gap: 8px; margin: 0 -18px 12px; }
.sheet-photos img { width: 100%; max-height: 60vh; object-fit: cover; }
.tonight-line { color: #c7d2fe; font-weight: 700; margin-top: 6px; }
.openers { margin: 14px 0 6px; justify-content: center; }
.openers .chip { white-space: normal; text-align: left; }
.match-input { width: 100%; margin-top: 8px; border-radius: 16px; }
.space-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.space-tile { display: grid; gap: 4px; text-align: left; padding: 16px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); min-height: 118px; align-content: start; }
.space-tile.wide { grid-column: 1 / -1; background: linear-gradient(135deg, #2A0B12, #3A0A14); border-color: #6B1D2B; }
.space-tile.hot { background: linear-gradient(160deg, #3a1220, var(--surface)); border-color: #5b2a2a; }
.space-tile b { font-size: 16px; }
.space-tile small { color: var(--muted); font-size: 12px; }
.space-ico { font-size: 26px; }
.space-tile.photo { background-size: cover; background-position: center; min-height: 150px; align-content: end; border-color: #ffffff1a; }
.space-tile.photo.wide { min-height: 170px; background-position: center 75%; }
.space-tile.photo.big { min-height: 190px; padding: 18px; }
.space-tile.big b { font-size: 22px; }
.space-tile.big small { font-size: 13px; }
.space-tile.big .space-ico { font-size: 28px; }
.space-tile.photo .space-ico { font-size: 22px; filter: drop-shadow(0 2px 6px #0008); }
.space-tile.photo small { color: #F6E9EB; }
.halo-img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 60px #c026d355; animation: pulse 2.4s ease-in-out infinite; }
.halo-img.small { width: 48px; height: 48px; margin: -4px auto 4px; display: block; }
.onb-hero { position: relative; border-radius: 22px; overflow: hidden; margin: 6px 0 14px; aspect-ratio: 16 / 7; }
.onb-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.onb-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(11,9,11,.9)); }
.onb-hero span { z-index: 1; position: absolute; left: 14px; bottom: 10px; font-weight: 900; font-size: 20px; text-shadow: 0 2px 10px #000c; }
.onb-hero em { font-style: normal; display: block; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tonight-card.on { border-color: #A3162C; background: linear-gradient(135deg, #2A0B12, var(--surface)); }
.tonight-card { margin-bottom: 12px; }
.like-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.like-tile { position: relative; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background: #24131A; cursor: pointer; }
.like-tile img { width: 100%; height: 100%; object-fit: cover; }
.like-tile.blurred { background: linear-gradient(160deg, hsl(calc(345 + var(--h) / 18), 70%, 38%), hsl(calc(335 + var(--h) / 24), 75%, 14%)); filter: blur(1px); display: grid; place-items: center; }
.like-tile.blurred span { font-size: 28px; font-weight: 900; color: #ffffffaa; }
.like-tile-info { position: absolute; left: 0; right: 0; bottom: 34px; padding: 6px 8px; font-size: 12px; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.like-tile-actions { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; }
.like-tile-actions button { border: 0; background: rgba(0,0,0,.55); color: #fff; padding: 7px 0; font-size: 15px; }
.like-tile-actions .yes { background: linear-gradient(135deg, #B3122B, #F52B42); }
.superbadge.mini { top: 6px; left: 6px; padding: 3px 7px; font-size: 11px; }
.ph-letter.small { font-size: 48px; display: grid; place-items: center; height: 100%; }
.new-matches { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.new-matches::-webkit-scrollbar { display: none; }
.nm { border: 0; background: none; display: grid; justify-items: center; gap: 6px; flex: none; font-size: 12px; color: var(--text); }
.avatar.lg { width: 66px; height: 66px; box-shadow: 0 0 0 3px #F52B42; }
.completion { margin: 0 0 12px; }
.completion-top { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; }
.completion-top b { white-space: nowrap; }
.completion-top small { color: var(--muted); font-size: 12px; }
.bar { height: 8px; border-radius: 8px; background: #33262F; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--grad); border-radius: 8px; }
.me-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.switch.inline { padding: 4px 0; border: 0; }
.pgroup { padding: 12px 0 4px; border-top: 1px solid var(--line); }
.pgroup:first-of-type { border-top: 0; }
.pgroup h3 { margin: 0 0 2px; }
.pgroup.focus { background: #1E0F14; margin: 0 -12px; padding: 12px; border-radius: 16px; border: 1px solid #5A2330; }
.person.swipe .actions { position: static; background: none; padding: 12px 10px 16px; gap: 12px; }
.person.swipe .carousel { max-height: calc(var(--tg-viewport-stable-height, 100vh) - 285px); min-height: 300px; }
.person.swipe .overlay { padding-top: 70px; }

/* Space: everything on one screen, no scrolling */
.space-fit { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 6px;
  height: calc(var(--tg-viewport-stable-height, 100dvh) - 150px - var(--safe-b)); min-height: 420px;
  grid-template-rows: 78px 1.15fr 1fr 1fr 42px;
  grid-template-areas: "party party" "date date" "tonight flirt" "events company" "strip strip"; }
.space-fit.no-flirt { grid-template-areas: "party party" "date date" "tonight tonight" "events company" "strip strip"; }
.space-fit .space-tile { min-height: 0; padding: 12px 14px; gap: 2px; overflow: hidden; }
.space-fit .space-tile b { font-size: 16px; line-height: 1.15; }
.space-fit .space-tile small { font-size: 12px; line-height: 1.25; }
.space-fit .space-tile .space-ico { font-size: 20px; }
.space-fit .space-tile.big { padding: 14px 16px; }
.space-fit .space-tile.big b { font-size: 24px; }
.space-fit .space-tile.big small { font-size: 13px; }
.space-fit .a-date { grid-area: date; background-position: center 30%; }
.space-fit .a-tonight { grid-area: tonight; }
.space-fit .a-flirt { grid-area: flirt; }
.space-fit .a-events { grid-area: events; background-position: center 80%; }
.space-fit .a-company { grid-area: company; }
.space-strip { grid-area: strip; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 14px;
  border: 1px solid #6B1D2B; background: linear-gradient(90deg, #2A0B12, #3A0A14); color: var(--text); text-align: left; }
.space-strip b { font-size: 14px; }
.space-strip small { margin-left: auto; color: var(--muted); font-size: 12px; }
.space-strip.party { grid-area: party; border: 0; background: #28C765; color: #06210f; justify-content: center; }
.space-strip.party b { font-size: 14px; font-weight: 800; text-align: center; }
.space-strip.party small { margin-left: 0; color: #06210f; font-size: 16px; font-weight: 800; }
html.lock-scroll, html.lock-scroll body { overflow: hidden; height: 100%; }
html.lock-scroll #app { min-height: 0; }

/* ================================================================ HOLY TUSA brand (studio app_kit, owner's posters) */
@font-face { font-family: 'Oswald'; src: url('/app/fonts/Oswald.ttf') format('truetype'); font-weight: 200 700; font-display: swap; }
:root { --grad: linear-gradient(135deg, #F52B42 0%, #780C1B 100%); --deep: #780C1B; --green: #28C765; --head: 'Oswald', Impact, 'Arial Narrow', sans-serif; }
#app { background: radial-gradient(110% 50% at 50% -12%, #4a0b17 0%, transparent 60%), radial-gradient(70% 35% at 110% 105%, #3a0a14 0%, transparent 65%), var(--bg); }
h1, h2, .hero h1, .kicker, .space-tile b, .empty h3, .sheet h3, .deck-head b { font-family: var(--head); letter-spacing: .01em; }
h1, .hero h1 { font-style: italic; font-weight: 700; text-transform: uppercase; }
.kicker { text-transform: uppercase; letter-spacing: .12em; }
a { color: #FF8A97; }

/* chrome logo in the header */
.brand { letter-spacing: 0; }
.brand img { height: 30px; width: auto; display: block; filter: drop-shadow(0 0 10px rgba(245, 43, 66, .35)); }

/* tab icons (studio SVG, currentColor): outline when idle, filled when active */
.tabs .ico svg { width: 22px; height: 22px; display: block; margin: 0 auto; }
.tabs .ico .on { display: none; }
.tabs button.active .ico .on { display: block; }
.tabs button.active .ico .off { display: none; }
.tabs button { color: #8D8790; }
.tabs button.active { color: #F52B42; }
.tabs .dot { background: #F52B42; box-shadow: 0 0 8px #F52B42; }

/* buttons: red neon */
.btn.primary, button.primary { background: #F52B42; border-color: #F52B42; color: #fff; box-shadow: 0 6px 22px rgba(245, 43, 66, .35); }
.btn.primary:active { background: #d81f35; }

/* empty states with HOLY CATS / nun illustrations */
.empty-img { width: 168px; height: 168px; object-fit: contain; margin: 4px auto 8px; display: block; }
.empty h3 { font-style: italic; text-transform: uppercase; font-size: 20px; }

/* chat bubbles: mine in red */
.bubble.mine { background: linear-gradient(135deg, #F52B42, #B3122B); }
.splash .orb { background: radial-gradient(circle at 35% 30%, #ff6b7d, #F52B42 45%, #780C1B 80%); box-shadow: 0 0 40px rgba(245, 43, 66, .55); }

/* First-run intro slides (studio onboarding illustrations) */
.intro { display: grid; gap: 8px; padding-top: 2px; }
.intro h1.title { font-size: 24px; line-height: 1.1; }
.intro-img { width: 100%; max-height: 34vh; object-fit: cover; object-position: center 40%; border-radius: 22px; box-shadow: 0 10px 40px rgba(245, 43, 66, .18); }
.intro .steps { justify-content: center; }

/* «Хочу на…» cards (owner 2026-11-13: show how it looks to others) */
.intent-card { display: grid; grid-template-columns: 96px 1fr; gap: 12px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 10px; margin: 10px 0; }
.intent-card .ic-photo { width: 96px; height: 120px; border-radius: 14px; object-fit: cover; }
.intent-card .ic-photo.ph { display: grid; place-items: center; font-size: 34px; background: linear-gradient(160deg, #3A0A14, #17121A); }
.ic-body { display: grid; gap: 4px; align-content: start; }
.ic-chip { justify-self: start; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: #2A0B12; border: 1px solid #5A2330; color: #FF9AA8; }
.ic-body b { font-size: 16px; }
.ic-when { font-size: 13px; color: var(--muted); }
.ic-note { font-size: 14px; color: var(--text); }
.ic-body .btn { margin-top: 4px; padding: 9px 12px; }
.intent-card.example { opacity: .55; }
.ic-examples > p { margin: 6px 0; }

/* Owner 2026-11-13: no green on action buttons — the Space signup strip is bright red → burgundy (green = flirt bracelet only) */
.space-strip.party { background: linear-gradient(90deg, #F52B42 0%, #C8102E 55%, #780C1B 100%); color: #fff;
  box-shadow: 0 6px 24px rgba(245, 43, 66, .45); }
.space-strip.party small { color: #fff; }
.space-strip.party:active { background: #780C1B; }

/* HOLY TUSA signup tile (owner 2026-11-13): bright, modern, solid — app palette (hot red → crimson), no photo */
.space-fit .a-party { grid-area: party; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 0;
  background: linear-gradient(110deg, #FF4560 0%, #F52B42 45%, #C8102E 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 0 0 1px rgba(255, 90, 110, .45), 0 10px 28px rgba(245, 43, 66, .45); }
.space-fit .a-party .ap-ico { font-size: 24px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: rgba(255, 255, 255, .18); flex: none; }
.space-fit .a-party .ap-text { display: grid; gap: 2px; text-align: left; }
.space-fit .a-party b { font-family: var(--head); font-size: 14px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: #fff; line-height: 1.15; }
.space-fit .a-party small { font-size: 11.5px; line-height: 1.25; color: rgba(255, 255, 255, .9); font-weight: 600; }
.space-fit .a-party .ap-go { margin-left: auto; font-size: 26px; color: #fff; opacity: .9; }
.space-fit .a-party:active { filter: brightness(.92); }
