/* ============ Crush · design system ============ */
:root {
  --r-xs: 10px; --r-sm: 14px; --r: 20px; --r-lg: 28px; --r-xl: 36px;
  --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.2, 1.35, .35, 1); --out: cubic-bezier(.4, 0, .2, 1);
  --safe-top: max(env(safe-area-inset-top), var(--tg-safe-area-inset-top, 0px));
  --safe-bottom: max(env(safe-area-inset-bottom), var(--tg-safe-area-inset-bottom, 0px));
  --content-top: var(--tg-content-safe-area-inset-top, 0px);
  --tabbar-h: 68px;
  --net: #FFC83D; --serious: #9B1B3B; --serious-l: #C2304F; --night: #FF6FB5;
  --ok: #22C55E; --warn: #F59E0B; --bad: #FF4D5E; --blue: #3B9BFF; --gold: #F5C542;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", system-ui, sans-serif;
}
html[data-theme="dark"] {
  --bg: #0A0A0F; --bg2: #101018; --card: #15151F; --card2: #1C1C29; --card3: #252536;
  --text: #F5F4FA; --text2: #C9C7D6; --muted: #858399; --line: rgba(255,255,255,.08); --line2: rgba(255,255,255,.14);
  --glass: rgba(21,21,31,.72); --shadow: 0 10px 40px rgba(0,0,0,.45); --shadow-sm: 0 4px 16px rgba(0,0,0,.35);
  --scrim: rgba(5,5,10,.6); --skel: rgba(255,255,255,.06); --skel2: rgba(255,255,255,.12);
  color-scheme: dark;
}
html[data-theme="light"] {
  --bg: #F5F3EF; --bg2: #EDEAE4; --card: #FFFFFF; --card2: #F3F1ED; --card3: #E8E5DF;
  --text: #16141C; --text2: #3F3B4A; --muted: #807B8C; --line: rgba(20,16,30,.08); --line2: rgba(20,16,30,.16);
  --glass: rgba(255,255,255,.78); --shadow: 0 12px 40px rgba(40,20,60,.12); --shadow-sm: 0 4px 14px rgba(40,20,60,.08);
  --scrim: rgba(20,16,30,.35); --skel: rgba(20,16,30,.05); --skel2: rgba(20,16,30,.1);
  color-scheme: light;
}
html[data-accent="crush"] { --a1: #FF3B7F; --a2: #9B5CFF; --on-a: #fff; }
html[data-accent="lime"] { --a1: #B6F22E; --a2: #22D39B; --on-a: #0D1A05; }
html[data-accent="ocean"] { --a1: #2F7BFF; --a2: #00C6D6; --on-a: #fff; }
html[data-accent="sunset"] { --a1: #FF7A1A; --a2: #FF2E63; --on-a: #fff; }
html[data-accent="violet"] { --a1: #7B61FF; --a2: #D14CFF; --on-a: #fff; }
:root { --grad: linear-gradient(135deg, var(--a1), var(--a2)); }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.4; -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
body { overflow: hidden; user-select: none; -webkit-user-select: none; }
input, textarea, select, button { font: inherit; color: inherit; }
textarea, input { user-select: text; -webkit-user-select: text; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
img { display: block; max-width: 100%; }
a { color: var(--a1); text-decoration: none; }
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }

#app { position: fixed; inset: 0; display: flex; flex-direction: column; overflow: hidden; }
.aurora { position: fixed; inset: -20% -20% auto -20%; height: 60vh; pointer-events: none; z-index: 0; opacity: .5; filter: blur(60px);
  background: radial-gradient(40% 50% at 20% 40%, color-mix(in srgb, var(--a1) 45%, transparent), transparent 70%), radial-gradient(40% 50% at 80% 30%, color-mix(in srgb, var(--a2) 40%, transparent), transparent 70%);
  animation: aurora 18s ease-in-out infinite alternate; }
html[data-theme="light"] .aurora { opacity: .28; }
@keyframes aurora { to { transform: translate3d(4%, 6%, 0) rotate(8deg) scale(1.1); } }

/* ---------- boot ---------- */
.boot { flex: 1; display: grid; place-items: center; align-content: center; gap: 22px; }
.boot-logo { font-size: 44px; }
.boot-bar { width: 120px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.boot-bar i { display: block; width: 40%; height: 100%; background: var(--grad); border-radius: 4px; animation: bootbar 1s var(--ease) infinite; }
@keyframes bootbar { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.logo-word { font-weight: 900; letter-spacing: -.06em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-spark { display: inline-block; margin-left: 2px; font-size: .5em; vertical-align: super; color: var(--a1); animation: spark 2.4s ease-in-out infinite; }
@keyframes spark { 50% { transform: rotate(90deg) scale(1.3); opacity: .6; } }

/* ---------- layout ---------- */
.shell { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; min-height: 0; padding-top: calc(var(--safe-top) + var(--content-top)); }
.topbar { display: flex; align-items: center; gap: 10px; padding: 8px 16px 6px; min-height: 52px; flex-shrink: 0; }
.topbar .logo-word { font-size: 28px; }
.topbar .spacer { flex: 1; }
.screens { position: relative; flex: 1; min-height: 0; }
.layer { position: absolute; inset: 0; display: flex; flex-direction: column; background: transparent; }
.layer.tab { transition: opacity .22s var(--ease); }
.layer.tab.hidden { opacity: 0; pointer-events: none; visibility: hidden; }
.layer.push { background: var(--bg); z-index: 20; transform: translateX(100%); transition: transform .38s var(--ease); box-shadow: -20px 0 50px rgba(0,0,0,.25); padding-top: calc(var(--safe-top) + var(--content-top)); position: fixed; }
.layer.push.in { transform: none; }
.layer.push.out { transform: translateX(100%); }
.scroll { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 24px); }
.layer.push .scroll { padding-bottom: calc(var(--safe-bottom) + 28px); }
.pad { padding: 0 16px; }
.push-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; min-height: 52px; flex-shrink: 0; }
.push-head h2 { flex: 1; margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h1 { font-size: 30px; font-weight: 900; letter-spacing: -.045em; line-height: 1.05; margin: 0; }
.h2 { font-size: 22px; font-weight: 850; letter-spacing: -.03em; margin: 0; }
.h3 { font-size: 17px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.sub { color: var(--muted); font-size: 14px; }
.small { font-size: 12.5px; color: var(--muted); }
.row { display: flex; align-items: center; gap: 10px; }
.col { display: flex; flex-direction: column; gap: 10px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.center { text-align: center; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; } .mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-title { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; }

/* ---------- tabbar ---------- */
.tabbar { position: fixed; left: 12px; right: 12px; bottom: calc(var(--safe-bottom) + 10px); height: var(--tabbar-h); z-index: 15; display: flex; align-items: stretch; padding: 6px; gap: 2px;
  background: var(--glass); backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); transition: transform .35s var(--ease); }
.tabbar.hide { transform: translateY(140%); }
.tab-btn { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 20px; color: var(--muted); font-size: 10.5px; font-weight: 700; transition: color .2s; }
.tab-btn svg { width: 24px; height: 24px; transition: transform .35s var(--spring); }
.tab-btn.active { color: var(--text); }
.tab-btn.active svg { transform: translateY(-1px) scale(1.08); }
.tab-pill { position: absolute; top: 6px; bottom: 6px; left: 6px; border-radius: 20px; background: color-mix(in srgb, var(--a1) 16%, transparent); transition: transform .45s var(--spring), width .45s var(--spring); pointer-events: none; }
.tab-btn.active .ti { color: var(--a1); }
.badge { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg); animation: pop .4s var(--spring); }
.badge:empty, .badge[data-n="0"] { display: none; }
@keyframes pop { from { transform: scale(0); } }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 22px; border-radius: 16px; font-weight: 800; font-size: 15.5px; letter-spacing: -.01em; background: var(--card2); color: var(--text); transition: transform .15s var(--ease), opacity .2s, filter .2s; white-space: nowrap; overflow: hidden; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--grad); color: var(--on-a); box-shadow: 0 8px 24px color-mix(in srgb, var(--a1) 35%, transparent); }
.btn.primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-100%); animation: shine 3.5s ease-in-out infinite; }
@keyframes shine { 60%, 100% { transform: translateX(100%); } }
.btn.gold { background: linear-gradient(135deg, #FFE08A, #F5B82E 45%, #D4891A); color: #3A2400; box-shadow: 0 8px 24px rgba(245,184,46,.35); }
.btn.ghost { background: transparent; border: 1.5px solid var(--line2); }
.btn.danger { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.btn.ok { background: var(--ok); color: #fff; }
.btn.sm { height: 38px; padding: 0 14px; border-radius: 12px; font-size: 14px; }
.btn.xs { height: 30px; padding: 0 11px; border-radius: 10px; font-size: 12.5px; }
.btn.block { display: flex; width: 100%; }
.btn[disabled], .btn.loading { opacity: .55; pointer-events: none; }
.btn.loading::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); color: var(--text); position: relative; flex-shrink: 0; transition: transform .15s; }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn .badge { top: -4px; left: auto; right: -4px; }
.icon-btn.plain { background: transparent; border: 0; }

/* ---------- chips ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips.scroll-x { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px 16px; margin: 0 -16px; }
.chips.scroll-x::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 12px; background: var(--card); border: 1.5px solid var(--line); font-size: 14px; font-weight: 650; white-space: nowrap; transition: all .2s var(--ease); flex-shrink: 0; }
.chip:active { transform: scale(.95); }
.chip.on { background: color-mix(in srgb, var(--a1) 16%, var(--card)); border-color: var(--a1); color: var(--text); }
.chip.sm { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 10px; }
.chip.common { border-color: color-mix(in srgb, var(--a1) 60%, transparent); background: color-mix(in srgb, var(--a1) 12%, var(--card)); }
.chip.lock { opacity: .6; }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 9px; font-size: 12.5px; font-weight: 750; background: var(--card2); color: var(--text2); white-space: nowrap; }
.intent { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 10px; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.intent.network { background: color-mix(in srgb, var(--net) 22%, transparent); color: var(--net); }
html[data-theme="light"] .intent.network { color: #9A6A00; background: color-mix(in srgb, var(--net) 30%, transparent); }
.intent.serious { background: color-mix(in srgb, var(--serious) 35%, transparent); color: #FF8FA6; }
html[data-theme="light"] .intent.serious { color: var(--serious); background: color-mix(in srgb, var(--serious) 16%, transparent); }
.intent.onenight { background: color-mix(in srgb, var(--night) 22%, transparent); color: var(--night); }
html[data-theme="light"] .intent.onenight { color: #D6348A; }
.intent-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.intent-dot.network { background: var(--net); } .intent-dot.serious { background: var(--serious-l); } .intent-dot.onenight { background: var(--night); }
.seg { display: flex; padding: 4px; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.seg button { flex: 1; height: 36px; border-radius: 12px; font-weight: 750; font-size: 13.5px; color: var(--muted); position: relative; transition: all .25s var(--ease); white-space: nowrap; padding: 0 8px; }
.seg button.on { background: var(--card3); color: var(--text); box-shadow: var(--shadow-sm); }
.seg button .cnt { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 11px; }

/* ---------- cards & lists ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.card.tight { padding: 12px; }
.list { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.li { display: flex; align-items: center; gap: 12px; padding: 13px 14px; min-height: 54px; position: relative; width: 100%; text-align: left; }
.li + .li::before { content: ""; position: absolute; top: 0; left: 58px; right: 0; height: 1px; background: var(--line); }
.li:active { background: var(--card2); }
.li .li-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; background: var(--card2); flex-shrink: 0; }
.li .li-t { flex: 1; min-width: 0; font-weight: 650; }
.li .li-s { font-size: 12.5px; color: var(--muted); font-weight: 500; margin-top: 1px; }
.li .li-v { color: var(--muted); font-size: 14px; }
.chev { color: var(--muted); opacity: .6; width: 18px; height: 18px; }
.avatar { width: 48px; height: 48px; border-radius: 16px; object-fit: cover; background: var(--card3); flex-shrink: 0; display: grid; place-items: center; font-weight: 800; color: var(--muted); overflow: hidden; }
.avatar.sm { width: 38px; height: 38px; border-radius: 13px; }
.avatar.lg { width: 64px; height: 64px; border-radius: 22px; }
.avatar.round { border-radius: 50%; }
.avatar.anon { background: linear-gradient(135deg, #3a3a52, #1c1c29); color: #fff; font-size: 20px; }
.avatar.gold { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--gold); }
.verified { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--blue); color: #fff; flex-shrink: 0; }
.verified svg { width: 12px; height: 12px; }
.online-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent); display: inline-block; flex-shrink: 0; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 40px 28px; gap: 10px; }
.empty .em { font-size: 56px; animation: floaty 3s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-8px) rotate(-4deg); } }
.skel { background: linear-gradient(90deg, var(--skel) 25%, var(--skel2) 50%, var(--skel) 75%); background-size: 200% 100%; animation: skel 1.3s infinite linear; border-radius: 12px; }
@keyframes skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.divider { height: 1px; background: var(--line); margin: 14px 0; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.field > label { font-size: 13px; font-weight: 750; color: var(--muted); }
.input, .textarea, .select { width: 100%; min-height: 50px; padding: 13px 15px; border-radius: 15px; background: var(--card); border: 1.5px solid var(--line); outline: none; font-size: 16px; transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--a1); box-shadow: 0 0 0 4px color-mix(in srgb, var(--a1) 15%, transparent); }
.textarea { resize: none; min-height: 110px; line-height: 1.45; }
.select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 38px; }
.counter { font-size: 12px; color: var(--muted); text-align: right; }
.switch { position: relative; width: 50px; height: 30px; border-radius: 15px; background: var(--card3); transition: background .25s; flex-shrink: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .3s var(--spring); }
.switch.on { background: var(--a1); }
.switch.on::after { transform: translateX(20px); }
.range2 { position: relative; height: 40px; }
.range2 input { position: absolute; left: 0; right: 0; top: 10px; width: 100%; pointer-events: none; appearance: none; -webkit-appearance: none; background: none; height: 20px; margin: 0; }
.range2 input::-webkit-slider-thumb { pointer-events: auto; appearance: none; -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 3px solid var(--a1); box-shadow: 0 2px 8px rgba(0,0,0,.3); cursor: grab; }
.range2 input::-moz-range-thumb { pointer-events: auto; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--a1); }
.range2 .track { position: absolute; left: 0; right: 0; top: 18px; height: 5px; border-radius: 3px; background: var(--card3); }
.range2 .fill { position: absolute; top: 18px; height: 5px; border-radius: 3px; background: var(--grad); }

/* ---------- sheet / modal / toast ---------- */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 50; opacity: 0; transition: opacity .3s; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.scrim.in { opacity: 1; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; max-height: 90vh; display: flex; flex-direction: column; background: var(--bg2); border-radius: 28px 28px 0 0; transform: translateY(105%); transition: transform .42s var(--ease); box-shadow: 0 -10px 50px rgba(0,0,0,.35); padding-bottom: var(--safe-bottom); }
.sheet.in { transform: none; }
.sheet-grip { width: 100%; padding: 10px 0 4px; display: grid; place-items: center; flex-shrink: 0; touch-action: none; }
.sheet-grip i { width: 40px; height: 5px; border-radius: 3px; background: var(--line2); }
.sheet-head { display: flex; align-items: center; padding: 4px 18px 10px; gap: 10px; flex-shrink: 0; }
.sheet-head h3 { flex: 1; margin: 0; font-size: 20px; font-weight: 850; letter-spacing: -.03em; }
.sheet-body { overflow-y: auto; padding: 0 18px 20px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.toast-wrap { position: fixed; top: calc(var(--safe-top) + var(--content-top) + 10px); left: 12px; right: 12px; z-index: 100; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { max-width: 440px; padding: 12px 16px; border-radius: 16px; background: var(--card3); color: var(--text); font-weight: 650; font-size: 14px; box-shadow: var(--shadow); display: flex; gap: 10px; align-items: center; animation: toastIn .45s var(--spring); pointer-events: auto; border: 1px solid var(--line); }
.toast.err { background: color-mix(in srgb, var(--bad) 22%, var(--card2)); }
.toast.ok { background: color-mix(in srgb, var(--ok) 20%, var(--card2)); }
.toast.bye { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastIn { from { transform: translateY(-30px) scale(.9); opacity: 0; } }
@keyframes toastOut { to { transform: translateY(-20px); opacity: 0; } }

/* ---------- swipe deck ---------- */
.swipe-top { padding: 0 16px 10px; display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.swipe-top .chips { flex: 1; }
.deck-wrap { position: relative; flex: 1; min-height: 0; margin: 0 12px; }
.deck { position: absolute; inset: 0; }
.pcard { position: absolute; inset: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--card2); box-shadow: var(--shadow); touch-action: none; will-change: transform; transform-origin: 50% 90%; transition: transform .45s var(--ease), opacity .3s; }
.pcard.next { transform: scale(.94) translateY(14px); }
.pcard.next2 { transform: scale(.88) translateY(28px); opacity: .6; }
.pcard .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; background: var(--card3); }
.pcard .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, transparent 18%, transparent 45%, rgba(0,0,0,.85) 100%); pointer-events: none; }
.pcard .bars { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; gap: 4px; z-index: 2; }
.pcard .bars i { flex: 1; height: 3.5px; border-radius: 2px; background: rgba(255,255,255,.35); }
.pcard .bars i.on { background: #fff; }
.pcard .info { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 18px 20px; color: #fff; z-index: 2; }
.pcard .nm { font-size: 30px; font-weight: 900; letter-spacing: -.04em; display: flex; align-items: center; gap: 8px; line-height: 1.05; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.pcard .nm .age { font-weight: 500; opacity: .95; }
.pcard .meta { font-size: 14.5px; opacity: .92; margin-top: 5px; display: flex; align-items: center; gap: 6px; }
.pcard .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pcard .tags .tag { background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pcard .tags .tag.common { background: color-mix(in srgb, var(--a1) 55%, transparent); }
.pcard .intent { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pcard .intent.network { background: rgba(255,200,61,.9); color: #3b2a00; }
.pcard .intent.serious { background: rgba(155,27,59,.92); color: #fff; }
.pcard .intent.onenight { background: rgba(255,111,181,.92); color: #fff; }
.compat { position: absolute; top: 24px; right: 14px; z-index: 3; display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 6px; border-radius: 17px; background: rgba(0,0,0,.45); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; font-weight: 850; font-size: 14px; }
.compat .ring { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; }
.compat.hot { background: var(--grad); color: var(--on-a); box-shadow: 0 6px 20px color-mix(in srgb, var(--a1) 45%, transparent); animation: hotpulse 2s ease-in-out infinite; }
@keyframes hotpulse { 50% { transform: scale(1.06); } }
.pcard .badges { position: absolute; top: 24px; left: 14px; z-index: 3; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.pbadge { height: 26px; padding: 0 10px; border-radius: 9px; font-size: 12px; font-weight: 850; display: inline-flex; align-items: center; gap: 4px; color: #fff; background: rgba(0,0,0,.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pbadge.boost { background: linear-gradient(135deg, #7B61FF, #3B9BFF); }
.pbadge.gold { background: linear-gradient(135deg, #FFE08A, #D4891A); color: #3A2400; }
.pbadge.liked { background: var(--grad); }
.pcard .more { position: absolute; right: 16px; bottom: 22px; z-index: 4; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: grid; place-items: center; color: #fff; }
.stamp { position: absolute; top: 60px; z-index: 5; padding: 6px 16px; border-radius: 14px; font-size: 34px; font-weight: 950; letter-spacing: -.02em; border: 4px solid; opacity: 0; pointer-events: none; text-transform: uppercase; }
.stamp.like { left: 22px; transform: rotate(-14deg); color: #3DFF9A; border-color: #3DFF9A; text-shadow: 0 0 20px rgba(61,255,154,.5); }
.stamp.nope { right: 22px; transform: rotate(14deg); color: #FF4D6D; border-color: #FF4D6D; }
.stamp.super { left: 50%; top: auto; bottom: 38%; transform: translateX(-50%) rotate(-6deg); color: #4FC3FF; border-color: #4FC3FF; }
.pcard.gold-frame::before, .tile.gold-frame::before, .gallery.gold-frame::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 3px; z-index: 6; pointer-events: none;
  background: conic-gradient(from var(--ang, 0deg), #FFF3C4, #F5C542, #B8860B, #FFE08A, #F5C542, #FFF3C4); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: goldspin 4s linear infinite; }
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes goldspin { to { --ang: 360deg; } }
.pcard.locked .ph { filter: blur(22px) saturate(1.2); transform: scale(1.15); }
.lock-overlay { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #fff; text-align: center; padding: 30px; }
.lock-overlay .em { font-size: 52px; filter: drop-shadow(0 6px 20px rgba(0,0,0,.4)); }
.pcard.ad .ad-label { position: absolute; top: 18px; left: 16px; z-index: 3; }
.pcard.placeholder { background: var(--grad); display: flex; align-items: center; justify-content: center; }
.actions { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 14px 0 calc(var(--tabbar-h) + var(--safe-bottom) + 22px); flex-shrink: 0; }
.act { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .2s var(--spring), opacity .2s; }
.act:active { transform: scale(.88); }
.act svg { width: 28px; height: 28px; }
.act.sm { width: 46px; height: 46px; } .act.sm svg { width: 21px; height: 21px; }
.act.big { width: 70px; height: 70px; } .act.big svg { width: 34px; height: 34px; }
.act.nope { color: #FF4D6D; } .act.super { color: #3BA7FF; } .act.rewind { color: var(--warn); } .act.boost { color: #9B7BFF; }
.act.like { background: var(--grad); color: var(--on-a); border: 0; box-shadow: 0 10px 30px color-mix(in srgb, var(--a1) 45%, transparent); }
.act[disabled] { opacity: .35; pointer-events: none; }
.quota { position: absolute; left: 50%; bottom: -2px; transform: translate(-50%, 50%); z-index: 8; height: 28px; padding: 0 12px; border-radius: 14px; background: var(--card3); border: 1px solid var(--line); font-size: 12.5px; font-weight: 800; display: flex; align-items: center; gap: 6px; box-shadow: var(--shadow-sm); white-space: nowrap; }
.quota.low { color: var(--warn); }

/* ---------- match overlay ---------- */
.match { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px 24px calc(var(--safe-bottom) + 30px); text-align: center; background: radial-gradient(120% 80% at 50% 30%, color-mix(in srgb, var(--a1) 55%, #000) 0%, color-mix(in srgb, var(--a2) 40%, #000) 50%, #050508 100%); color: #fff; animation: fadeIn .35s var(--ease); overflow: hidden; }
@keyframes fadeIn { from { opacity: 0; } }
.match canvas { position: absolute; inset: 0; pointer-events: none; }
.match .title { font-size: 52px; font-weight: 950; letter-spacing: -.06em; line-height: .95; margin: 0 0 8px; animation: matchTitle .8s var(--spring) .2s both; text-shadow: 0 10px 40px rgba(0,0,0,.35); }
@keyframes matchTitle { from { transform: scale(2.4) rotate(-8deg); opacity: 0; } }
.match .pair { position: relative; display: flex; justify-content: center; margin: 30px 0 34px; height: 150px; width: 260px; }
.match .pair img, .match .pair .ph0 { width: 130px; height: 150px; border-radius: 30px; object-fit: cover; border: 4px solid #fff; position: absolute; top: 0; box-shadow: 0 20px 40px rgba(0,0,0,.4); background: #333; }
.match .pair .l { left: 10px; transform: rotate(-10deg); animation: pairL .7s var(--spring) both; }
.match .pair .r { right: 10px; transform: rotate(10deg); animation: pairR .7s var(--spring) both; }
.match .pair .heart { position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 30px; z-index: 2; animation: heartIn .6s var(--spring) .45s both, beat 1.2s ease-in-out 1.2s infinite; }
@keyframes pairL { from { transform: translateX(-140%) rotate(-40deg); opacity: 0; } }
@keyframes pairR { from { transform: translateX(140%) rotate(40deg); opacity: 0; } }
@keyframes heartIn { from { transform: scale(0); } }
@keyframes beat { 15% { transform: scale(1.2); } 30% { transform: scale(1); } 45% { transform: scale(1.12); } 60% { transform: scale(1); } }
.match .btns { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 10px; animation: up .6s var(--ease) .5s both; }
.match .btn.ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.match .btn.white { background: #fff; color: #111; }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }

/* ---------- top grid ---------- */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { position: relative; border-radius: 22px; overflow: hidden; background: var(--card2); aspect-ratio: 3 / 4.2; animation: tileIn .5s var(--ease) both; }
@keyframes tileIn { from { transform: translateY(16px) scale(.97); opacity: 0; } }
.tile img.ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile .shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.82)); }
.tile .tinfo { position: absolute; left: 10px; right: 10px; bottom: 9px; color: #fff; }
.tile .tn { font-weight: 850; font-size: 16px; letter-spacing: -.02em; display: flex; align-items: center; gap: 5px; }
.tile .ts { font-size: 11.5px; opacity: .85; margin-top: 1px; }
.tile .tstats { display: flex; gap: 10px; font-size: 12px; font-weight: 750; margin-top: 5px; align-items: center; }
.tile .tstats span { display: inline-flex; align-items: center; gap: 3px; }
.tile .tstats svg { width: 13px; height: 13px; }
.tile .rank { position: absolute; top: 8px; left: 8px; z-index: 3; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 11px; display: grid; place-items: center; font-weight: 950; font-size: 14px; color: #fff; background: rgba(0,0,0,.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.tile .rank.r1 { background: linear-gradient(135deg, #FFE08A, #D4891A); color: #3A2400; }
.tile .rank.r2 { background: linear-gradient(135deg, #F1F1F6, #A5A8B8); color: #222; }
.tile .rank.r3 { background: linear-gradient(135deg, #F3C09A, #B0643A); color: #2a1200; }
.tile .heart-btn { position: absolute; top: 8px; right: 8px; z-index: 3; width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: rgba(0,0,0,.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; transition: transform .25s var(--spring); }
.tile .heart-btn svg { width: 18px; height: 18px; }
.tile .heart-btn.on { color: #FF3B7F; background: #fff; animation: likePop .45s var(--spring); }
@keyframes likePop { 40% { transform: scale(1.35); } }
.tile .tbadge { position: absolute; top: 44px; left: 8px; z-index: 3; }
.tile.locked img.ph { filter: blur(16px); transform: scale(1.1); }
.tile.adtile, .tile.placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 14px; gap: 8px; }
.tile.placeholder { background: repeating-linear-gradient(-45deg, var(--card), var(--card) 12px, var(--card2) 12px, var(--card2) 24px); border: 2px dashed var(--line2); }
.ad-banner { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); overflow: hidden; min-height: 64px; width: 100%; text-align: left; }
.ad-banner img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.ad-banner.big img { width: 100%; height: auto; aspect-ratio: 3 / 1; border-radius: 12px; }
.ad-banner.big { flex-direction: column; align-items: stretch; }
.ad-banner.placeholder { border-style: dashed; border-width: 2px; border-color: var(--line2); background: transparent; }
.ad-mark { font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fab-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 12px; background: linear-gradient(135deg, #7B61FF, #3B9BFF); color: #fff; font-weight: 800; font-size: 13px; flex-shrink: 0; }

/* ---------- seek (chat) ---------- */
.seek-wrap { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.seek-feed { flex: 1; overflow-y: auto; padding: 8px 12px 12px; display: flex; flex-direction: column; gap: 14px; overscroll-behavior: contain; }
.msg { display: flex; gap: 10px; align-items: flex-end; animation: msgIn .45s var(--spring) both; max-width: 100%; }
@keyframes msgIn { from { transform: translateY(14px) scale(.96); opacity: 0; } }
.msg.mine { flex-direction: row-reverse; }
.msg .avatar { width: 40px; height: 40px; border-radius: 50%; }
.bubble { position: relative; max-width: calc(100% - 52px); background: var(--card); border: 1px solid var(--line); border-radius: 22px 22px 22px 8px; padding: 10px 13px 10px; min-width: 200px; }
.msg.mine .bubble { border-radius: 22px 22px 8px 22px; background: color-mix(in srgb, var(--a1) 12%, var(--card)); border-color: color-mix(in srgb, var(--a1) 25%, transparent); }
.bubble.pinned { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.bubble .bh { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; margin-bottom: 4px; flex-wrap: wrap; }
.bubble .bh .who { max-width: 150px; }
.bubble .bt { font-size: 15px; line-height: 1.42; white-space: pre-wrap; word-break: break-word; user-select: text; -webkit-user-select: text; }
.bubble .bf { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.bubble .time { font-size: 11.5px; color: var(--muted); margin-left: auto; }
.itsme { height: 36px; padding: 0 14px; border-radius: 12px; background: linear-gradient(135deg, #22C55E, #10B981); color: #fff; font-weight: 850; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 6px 18px rgba(34,197,94,.35); transition: transform .2s var(--spring); }
.itsme:active { transform: scale(.94); }
.itsme.done { background: var(--card2); color: var(--muted); box-shadow: none; }
.found-badge { position: absolute; top: -10px; right: 12px; height: 22px; padding: 0 8px; border-radius: 8px; background: var(--ok); color: #fff; font-size: 11.5px; font-weight: 850; display: flex; align-items: center; }
.composer { flex-shrink: 0; padding: 8px 12px calc(var(--tabbar-h) + var(--safe-bottom) + 18px); background: linear-gradient(180deg, transparent, var(--bg) 30%); }
.composer .box { background: var(--card); border: 1.5px solid var(--line); border-radius: 22px; padding: 6px 6px 6px 14px; display: flex; flex-direction: column; gap: 6px; transition: border-color .2s; }
.composer .box:focus-within { border-color: var(--a1); }
.composer textarea { width: 100%; border: 0; outline: 0; background: transparent; resize: none; min-height: 24px; max-height: 120px; font-size: 15.5px; padding: 8px 0 2px; line-height: 1.4; }
.composer .tools { display: flex; align-items: center; gap: 6px; }
.send { width: 40px; height: 40px; border-radius: 14px; background: var(--grad); color: var(--on-a); display: grid; place-items: center; flex-shrink: 0; transition: transform .2s var(--spring), opacity .2s; }
.send[disabled] { opacity: .35; }
.send svg { width: 20px; height: 20px; }
.pin-strip { display: flex; gap: 8px; overflow-x: auto; padding: 0 12px 8px; scrollbar-width: none; flex-shrink: 0; }
.pin-strip::-webkit-scrollbar { display: none; }

/* ---------- profile view ---------- */
.gallery { position: relative; margin: 0 12px; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3 / 4; background: var(--card2); }
.gallery .track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery .track::-webkit-scrollbar { display: none; }
.gallery .track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; }
.gallery .dots { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; gap: 4px; z-index: 2; }
.gallery .dots i { flex: 1; height: 3.5px; border-radius: 2px; background: rgba(255,255,255,.4); transition: background .2s; }
.gallery .dots i.on { background: #fff; }
.gallery.locked img { filter: blur(22px); transform: scale(1.1); }
.p-name { font-size: 32px; font-weight: 950; letter-spacing: -.05em; line-height: 1.05; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.p-name .age { font-weight: 500; color: var(--text2); }
.ring-wrap { position: relative; width: 64px; height: 64px; flex-shrink: 0; }
.ring-wrap svg { transform: rotate(-90deg); }
.ring-wrap .rv { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; font-size: 16px; letter-spacing: -.03em; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px; text-align: center; transition: transform .15s; }
.stat:active { transform: scale(.97); }
.stat b { display: block; font-size: 22px; font-weight: 900; letter-spacing: -.03em; }
.stat span { font-size: 12px; color: var(--muted); font-weight: 650; }
.p-actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 12px 16px calc(var(--safe-bottom) + 12px); display: flex; gap: 10px; background: linear-gradient(180deg, transparent, var(--bg) 35%); }
.p-actions .btn { flex: 1; height: 56px; border-radius: 18px; }
.p-actions .btn.sq { flex: 0 0 56px; padding: 0; }
.comment { display: flex; gap: 10px; padding: 10px 0; }
.comment + .comment { border-top: 1px solid var(--line); }
.comment .ct { font-size: 14.5px; white-space: pre-wrap; word-break: break-word; margin-top: 2px; user-select: text; -webkit-user-select: text; }
.lock-card { position: relative; overflow: hidden; border-radius: var(--r); padding: 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 22%, var(--card)), var(--card)); border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); }

/* ---------- me ---------- */
.me-hero { position: relative; display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.me-hero .mh-photo { position: relative; width: 92px; height: 116px; border-radius: 24px; overflow: hidden; flex-shrink: 0; background: var(--card3); }
.me-hero .mh-photo img { width: 100%; height: 100%; object-fit: cover; }
.me-hero .mh-photo.gold-frame::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 3px; background: conic-gradient(from var(--ang, 0deg), #FFF3C4, #F5C542, #B8860B, #FFE08A, #F5C542, #FFF3C4); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: goldspin 4s linear infinite; }
.progress { height: 8px; border-radius: 4px; background: var(--card3); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 4px; background: var(--grad); transition: width .8s var(--ease); }
.tier { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 18px; color: #fff; }
.tier.free { background: linear-gradient(135deg, color-mix(in srgb, var(--a1) 85%, #000), color-mix(in srgb, var(--a2) 85%, #000)); }
.tier.plus { background: linear-gradient(135deg, #5B3DF5, #B03DF5); }
.tier.gold { background: linear-gradient(135deg, #3A2A05, #8A6414 50%, #D4A017); }
.tier::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.12); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.qa { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 12px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); text-align: left; min-height: 96px; transition: transform .15s; position: relative; }
.qa:active { transform: scale(.96); }
.qa .qi { font-size: 24px; }
.qa b { font-size: 13.5px; font-weight: 800; line-height: 1.15; }
.qa span { font-size: 11.5px; color: var(--muted); line-height: 1.2; }
.accent-dot { width: 42px; height: 42px; border-radius: 50%; border: 3px solid transparent; transition: transform .2s var(--spring); }
.accent-dot.on { border-color: var(--text); transform: scale(1.1); }

/* ---------- premium ---------- */
.prem-hero { position: relative; margin: 0 12px; padding: 26px 20px; border-radius: var(--r-xl); overflow: hidden; color: #fff; text-align: center; }
.prem-hero.plus { background: radial-gradient(120% 100% at 0% 0%, #8A6CFF, #4B2BD6 50%, #1B0F4D); }
.prem-hero.gold { background: radial-gradient(120% 100% at 0% 0%, #FFE9A8, #D4A017 40%, #3A2A05); color: #1F1400; }
.prem-hero .big { font-size: 64px; line-height: 1; animation: floaty 3s ease-in-out infinite; }
.feat { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; }
.feat .fi { font-size: 22px; width: 32px; text-align: center; flex-shrink: 0; }
.feat b { font-weight: 800; }
.plan { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 20px; background: var(--card); border: 2px solid var(--line); width: 100%; text-align: left; transition: all .2s var(--ease); }
.plan.on { border-color: var(--a1); background: color-mix(in srgb, var(--a1) 8%, var(--card)); }
.plan .pt { flex: 1; }
.plan .pt b { font-size: 16px; font-weight: 850; display: block; }
.plan .pp { font-size: 18px; font-weight: 900; white-space: nowrap; }
.plan .save { position: absolute; top: -10px; right: 14px; height: 22px; padding: 0 9px; border-radius: 8px; background: var(--grad); color: var(--on-a); font-size: 11.5px; font-weight: 900; display: flex; align-items: center; }
.radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line2); flex-shrink: 0; display: grid; place-items: center; }
.plan.on .radio { border-color: var(--a1); }
.plan.on .radio::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--a1); }
.paywall-card { border-radius: var(--r-lg); padding: 22px 18px; text-align: center; background: radial-gradient(120% 100% at 50% 0%, color-mix(in srgb, var(--a1) 35%, var(--card)), var(--card)); border: 1px solid var(--line); }
.countdown { font-size: 34px; font-weight: 950; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

/* ---------- onboarding ---------- */
.ob { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; background: var(--bg); padding-top: calc(var(--safe-top) + var(--content-top)); }
.ob-head { display: flex; align-items: center; gap: 12px; padding: 10px 16px; flex-shrink: 0; }
.ob-steps { flex: 1; height: 6px; border-radius: 3px; background: var(--card3); overflow: hidden; }
.ob-steps i { display: block; height: 100%; background: var(--grad); border-radius: 3px; transition: width .5s var(--ease); }
.ob-body { flex: 1; overflow-y: auto; padding: 12px 20px 20px; overscroll-behavior: contain; }
.ob-body.anim { animation: stepIn .45s var(--ease); }
.ob-body.anim-back { animation: stepBack .45s var(--ease); }
@keyframes stepIn { from { transform: translateX(40px); opacity: 0; } }
@keyframes stepBack { from { transform: translateX(-40px); opacity: 0; } }
.ob-foot { flex-shrink: 0; padding: 10px 20px calc(var(--safe-bottom) + 16px); }
.ob-title { font-size: 32px; font-weight: 950; letter-spacing: -.05em; line-height: 1.02; margin: 8px 0 8px; }
.ob-sub { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.bigopt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 18px; border-radius: 22px; background: var(--card); border: 2px solid var(--line); text-align: left; transition: all .25s var(--ease); margin-bottom: 10px; }
.bigopt:active { transform: scale(.98); }
.bigopt .bo-e { font-size: 32px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; background: var(--card2); flex-shrink: 0; }
.bigopt b { display: block; font-size: 17px; font-weight: 850; letter-spacing: -.02em; }
.bigopt span { font-size: 13.5px; color: var(--muted); line-height: 1.3; display: block; margin-top: 2px; }
.bigopt.on { border-color: var(--a1); background: color-mix(in srgb, var(--a1) 10%, var(--card)); }
.bigopt.intent-opt.on.network { border-color: var(--net); background: color-mix(in srgb, var(--net) 12%, var(--card)); }
.bigopt.intent-opt.on.serious { border-color: var(--serious-l); background: color-mix(in srgb, var(--serious) 18%, var(--card)); }
.bigopt.intent-opt.on.onenight { border-color: var(--night); background: color-mix(in srgb, var(--night) 12%, var(--card)); }
.bigopt .check { width: 26px; height: 26px; border-radius: 9px; border: 2px solid var(--line2); display: grid; place-items: center; margin-left: auto; flex-shrink: 0; transition: all .2s; color: transparent; }
.bigopt.on .check { background: var(--a1); border-color: var(--a1); color: #fff; }
.bigopt .check svg { width: 16px; height: 16px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.duo .bigopt { flex-direction: column; text-align: center; margin: 0; padding: 22px 12px; }
.photos5 { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 8px; }
.photos5 .slot { position: relative; aspect-ratio: 3 / 4; border-radius: 18px; background: var(--card); border: 2px dashed var(--line2); display: grid; place-items: center; overflow: hidden; color: var(--muted); }
.photos5 .slot:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.photos5 .slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photos5 .slot.filled { border: 0; }
.photos5 .slot .main-tag { position: absolute; left: 8px; bottom: 8px; z-index: 2; }
.photos5 .slot .x { position: absolute; top: 6px; right: 6px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; }
.photos5 .slot .x svg { width: 14px; height: 14px; }
.photos5 .slot .plus { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: var(--on-a); display: grid; place-items: center; }
.photos5 .slot.uploading::after { content: ""; position: absolute; inset: 0; background: var(--scrim); }
.photos5 .slot.uploading::before { content: ""; position: absolute; z-index: 2; width: 26px; height: 26px; border-radius: 50%; border: 3px solid #fff; border-right-color: transparent; animation: spin .7s linear infinite; }
.uni-list .li.on { background: color-mix(in srgb, var(--a1) 10%, transparent); }
.uni-list .li.on .li-t { color: var(--a1); }
.legend { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); margin-top: 8px; }

/* ---------- notifications ---------- */
.notif { display: flex; gap: 12px; padding: 12px 16px; align-items: center; position: relative; width: 100%; text-align: left; }
.notif.unread { background: color-mix(in srgb, var(--a1) 7%, transparent); }
.notif.unread::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--a1); }
.notif .ni { position: relative; }
.notif .ni .ntype { position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--card3); border: 2px solid var(--bg); }

/* ---------- admin ---------- */
.adm-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 0 12px 10px; scrollbar-width: none; flex-shrink: 0; }
.adm-tabs::-webkit-scrollbar { display: none; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; }
.kpi b { display: block; font-size: 24px; font-weight: 900; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 12px; color: var(--muted); font-weight: 650; }
.kpi i { font-style: normal; font-size: 12px; color: var(--ok); font-weight: 800; margin-left: 6px; }
.bars-chart { display: flex; align-items: flex-end; gap: 4px; height: 110px; padding-top: 10px; }
.bars-chart .bc { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.bars-chart .bc i { width: 100%; border-radius: 5px 5px 2px 2px; background: var(--grad); min-height: 3px; transition: height .6s var(--ease); }
.bars-chart .bc span { font-size: 9px; color: var(--muted); }
.bars-chart .bc em { font-size: 9.5px; font-style: normal; font-weight: 800; color: var(--text2); }
.hbar { display: flex; align-items: center; gap: 10px; margin: 8px 0; font-size: 13px; }
.hbar .hb { flex: 1; height: 10px; border-radius: 5px; background: var(--card3); overflow: hidden; }
.hbar .hb i { display: block; height: 100%; border-radius: 5px; }
.adm-row { display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; margin-bottom: 8px; width: 100%; text-align: left; }
.adm-grid-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pill-status { height: 22px; padding: 0 8px; border-radius: 7px; font-size: 11px; font-weight: 850; display: inline-flex; align-items: center; }
.pill-status.ok { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.pill-status.bad { background: color-mix(in srgb, var(--bad) 18%, transparent); color: var(--bad); }
.pill-status.warn { background: color-mix(in srgb, var(--warn) 20%, transparent); color: var(--warn); }
.pill-status.info { background: color-mix(in srgb, var(--blue) 18%, transparent); color: var(--blue); }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.banned-screen { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; gap: 12px; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 120; }
@media (min-width: 560px) { .shell, .ob, .layer.push { max-width: 520px; margin: 0 auto; left: 0; right: 0; } .tabbar { max-width: 496px; margin: 0 auto; } .sheet { max-width: 560px; margin: 0 auto; } }

.btn svg { width: 20px; height: 20px; }
.btn.sq svg { width: 22px; height: 22px; }
