/* JuftChat — warm paper, ink, one pomegranate accent. */
:root {
  --bg: #F4EFE7;
  --surface: #FFFCF7;
  --sunk: #EBE4D8;
  --ink: #1D1915;
  --ink-2: #4A433C;
  --muted: #857B70;
  --line: #E2D9CB;
  --accent: #B3352B;
  --accent-2: #8F2820;
  --accent-soft: #F4DCD6;
  --on-accent: #FFF8F2;
  --blue: #2A5694;
  --gold: #A8791F;
  --gold-soft: #F3E6C8;
  --ok: #2F7A4F;
  --shadow: 0 1px 2px rgba(40, 28, 16, .06), 0 8px 24px rgba(40, 28, 16, .08);
  --r: 16px;
  --r-sm: 10px;
  --tab-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: 'Golos Text', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Prata', Georgia, serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #14110E;
  --surface: #1E1A16;
  --sunk: #26211C;
  --ink: #F2ECE3;
  --ink-2: #CFC6BA;
  --muted: #998E81;
  --line: #322B24;
  --accent: #DB5246;
  --accent-2: #F06B5F;
  --accent-soft: #3A1F1B;
  --on-accent: #1A0E0C;
  --blue: #6E9BDB;
  --gold: #D9AE55;
  --gold-soft: #33291A;
  --ok: #5DBB84;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
#app { max-width: 560px; margin: 0 auto; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--ink); font: 400 15px/1.45 var(--font);
  -webkit-font-smoothing: antialiased; overscroll-behavior: none; overflow: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
img { display: block; max-width: 100%; }
svg.i { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.i.fill { fill: currentColor; stroke: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

#app { height: 100%; display: flex; flex-direction: column; }
.boot { flex: 1; display: grid; place-items: center; }
.boot-mark, .wordmark { font-family: var(--serif); font-size: 34px; letter-spacing: -.5px; color: var(--ink); }
.boot-mark span, .wordmark span { color: var(--accent); }
.boot-mark { animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .45; } }

/* ---------- layout ---------- */
.screen { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 16px calc(var(--tab-h) + var(--safe-b) + 24px); }
.screen.flush { padding: 0; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 14px 16px 10px; min-height: 58px; }
.topbar h1 { margin: 0; font: 600 22px/1.2 var(--font); letter-spacing: -.3px; flex: 1; }
.topbar .wordmark { font-size: 26px; flex: 1; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); }
.icon-btn:active { background: var(--sunk); }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; max-width: 560px; margin: 0 auto;
  height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: color-mix(in srgb, var(--surface) 94%, transparent); border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 11px; font-weight: 500; position: relative; }
.tab.on { color: var(--ink); }
.tab.on svg.i { stroke-width: 2.2; }
.tab .dot { position: absolute; top: 9px; left: calc(50% + 8px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }

/* ---------- type & atoms ---------- */
.h-serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.3px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 12px; }
.section-title { font-size: 12px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); margin: 26px 4px 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 22px; width: 100%;
  border-radius: 14px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 16px; transition: transform .12s, opacity .2s;
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .35; pointer-events: none; }
.btn.accent { background: var(--accent); color: var(--on-accent); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.soft { background: var(--sunk); color: var(--ink); }
.btn.gold { background: var(--gold); color: #fff; }
.btn.sm { height: 40px; font-size: 14px; border-radius: 11px; width: auto; padding: 0 16px; }
.btn.danger { background: transparent; color: var(--accent); border: 1.5px solid var(--accent-soft); }
.link { color: var(--accent); font-weight: 600; }

.card { background: var(--surface); border-radius: var(--r); border: 1px solid var(--line); }
.list { background: var(--surface); border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; }
.item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; width: 100%; text-align: left; }
.item + .item { border-top: 1px solid var(--line); }
.item .i { color: var(--ink-2); }
.item .val { color: var(--muted); font-size: 14px; }
.item:active { background: var(--sunk); }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 15px; background: var(--sunk); color: var(--ink-2); font-size: 13px; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip.pick { height: 38px; padding: 0 15px; border-radius: 19px; font-size: 14px; border: 1.5px solid transparent; }
.chip.pick.on { background: var(--ink); color: var(--bg); }
.badge-verified { width: 18px; height: 18px; color: var(--blue); flex: none; }
.badge-premium { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 8px; background: var(--gold-soft); color: var(--gold); font-size: 11.5px; font-weight: 700; letter-spacing: .3px; }

.field { display: block; }
.field > span { display: block; font-size: 13px; color: var(--muted); margin: 0 2px 6px; font-weight: 500; }
.input, select.input, textarea.input {
  width: 100%; height: 52px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface);
  outline: none; font-size: 16px; appearance: none; -webkit-appearance: none;
}
textarea.input { height: 110px; padding: 14px 16px; resize: none; line-height: 1.45; }
.input:focus { border-color: var(--ink-2); }
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23857B70' stroke-width='1.8' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }

.choice { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); text-align: left; }
.choice + .choice { margin-top: 10px; }
.choice.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice b { display: block; font-weight: 600; }
.choice small { color: var(--muted); font-size: 13px; }
.choice .mark { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); margin-left: auto; flex: none; display: grid; place-items: center; }
.choice.on .mark { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.choice .mark svg { width: 14px; height: 14px; stroke-width: 2.6; opacity: 0; }
.choice.on .mark svg { opacity: 1; }

/* ---------- onboarding ---------- */
.ob { flex: 1; display: flex; flex-direction: column; padding: 0 20px calc(20px + var(--safe-b)); overflow-y: auto; }
.ob-top { display: flex; align-items: center; gap: 10px; height: 56px; }
.ob-progress { flex: 1; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.ob-progress i { display: block; height: 100%; background: var(--ink); border-radius: 2px; transition: width .35s ease; }
.ob h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.15; letter-spacing: -.4px; margin: 18px 0 8px; }
.ob p.lead { margin: 0 0 24px; color: var(--ink-2); }
.ob-body { flex: 1; }
.ob-foot { padding-top: 16px; }

.welcome { flex: 1; display: flex; flex-direction: column; padding: 0 22px calc(22px + var(--safe-b)); }
.welcome-art { flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 260px; }
.welcome .wordmark { font-size: 46px; margin-bottom: 14px; }
.welcome h1 { font-family: var(--serif); font-weight: 400; font-size: 25px; line-height: 1.25; margin: 0 0 26px; max-width: 320px; color: var(--ink-2); }
.promise { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.promise .i { color: var(--accent); margin-top: 1px; }
.promise b { display: block; font-weight: 600; font-size: 15px; }
.promise span { color: var(--muted); font-size: 13.5px; }
.rings { display: flex; margin-bottom: 26px; }
.rings i { width: 54px; height: 54px; border-radius: 50%; border: 5px solid var(--accent); }
.rings i + i { margin-left: -16px; border-color: var(--ink); }

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.photo-slot { position: relative; aspect-ratio: 3 / 4; border-radius: 14px; background: var(--sunk); border: 1.5px dashed var(--line); display: grid; place-items: center; color: var(--muted); overflow: hidden; }
.photo-slot.big { grid-column: span 2; grid-row: span 2; }
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-slot .del { position: absolute; right: 6px; top: 6px; width: 28px; height: 28px; border-radius: 50%; background: rgba(20, 16, 12, .6); color: #fff; display: grid; place-items: center; }
.photo-slot .del svg { width: 16px; height: 16px; }
.photo-slot .main-tag { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 7px; background: rgba(20, 16, 12, .6); color: #fff; font-size: 11px; font-weight: 600; }
.photo-slot.busy::after { content: ''; position: absolute; inset: 0; background: color-mix(in srgb, var(--surface) 60%, transparent); animation: breathe 1s infinite; }

/* ---------- feed ---------- */
.feed { flex: 1; display: flex; flex-direction: column; padding: 0 12px calc(var(--tab-h) + var(--safe-b) + 10px); min-height: 0; }
.deck { position: relative; flex: 1; min-height: 0; }
.pcard {
  position: absolute; inset: 0; border-radius: 22px; overflow: hidden; background: var(--sunk); box-shadow: var(--shadow);
  touch-action: none; user-select: none; will-change: transform;
}
.pcard.under { transform: scale(.955) translateY(10px); filter: brightness(.96); transition: transform .3s; }
.pcard .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.pcard .bars { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; gap: 4px; z-index: 2; }
.pcard .bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .38); }
.pcard .bars i.on { background: #fff; }
.pcard .scrim { position: absolute; left: 0; right: 0; bottom: 0; height: 52%; background: linear-gradient(to top, rgba(14, 10, 7, .86), rgba(14, 10, 7, 0)); pointer-events: none; }
.pcard .info { position: absolute; left: 18px; right: 18px; bottom: 18px; color: #fff; z-index: 2; }
.pcard .name { display: flex; align-items: center; gap: 8px; font-size: 27px; font-weight: 600; letter-spacing: -.4px; line-height: 1.1; }
.pcard .name .age { font-weight: 400; opacity: .92; }
.pcard .name .badge-verified { color: #8DB6F0; width: 22px; height: 22px; }
.pcard .meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; font-size: 14px; opacity: .92; align-items: center; }
.pcard .meta span { display: inline-flex; align-items: center; gap: 5px; }
.pcard .meta svg { width: 16px; height: 16px; }
.pcard .about { margin-top: 8px; font-size: 14px; opacity: .88; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .more { position: absolute; right: 14px; bottom: 18px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .18); color: #fff; display: grid; place-items: center; z-index: 3; backdrop-filter: blur(6px); }
.pcard .tag-super { position: absolute; top: 24px; left: 14px; z-index: 2; display: inline-flex; gap: 6px; align-items: center; padding: 6px 11px; border-radius: 10px; background: var(--gold); color: #fff; font-size: 12.5px; font-weight: 700; }
.pcard .tag-super svg { width: 15px; height: 15px; }
.pcard .stamp { position: absolute; top: 46px; z-index: 4; padding: 6px 14px; border: 3px solid; border-radius: 10px; font-weight: 800; font-size: 26px; letter-spacing: 1px; opacity: 0; text-transform: uppercase; }
.pcard .stamp.like { left: 22px; color: #6FD39A; border-color: #6FD39A; transform: rotate(-12deg); }
.pcard .stamp.nope { right: 22px; color: #F28B80; border-color: #F28B80; transform: rotate(12deg); }
.pcard .stamp.sup { left: 50%; top: auto; bottom: 150px; transform: translateX(-50%); color: #F1C76A; border-color: #F1C76A; }
.pcard .tap { position: absolute; top: 0; bottom: 30%; width: 50%; z-index: 1; }
.pcard .tap.l { left: 0; } .pcard .tap.r { right: 0; }

.actions { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 14px 0 4px; }
.act { width: 58px; height: 58px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; box-shadow: var(--shadow); transition: transform .12s; }
.act:active { transform: scale(.9); }
.act svg.i { width: 26px; height: 26px; stroke-width: 2.2; }
.act.nope { color: var(--ink-2); }
.act.like { width: 68px; height: 68px; background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.act.like svg.i { width: 30px; height: 30px; }
.act.sup { color: var(--gold); }
.act.mini { width: 44px; height: 44px; box-shadow: none; color: var(--muted); }
.act.mini svg.i { width: 20px; height: 20px; }
.act .cnt { position: absolute; }
.quota-line { text-align: center; font-size: 12.5px; color: var(--muted); height: 18px; }

.empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 28px; }
.empty .rings { margin-bottom: 22px; }
.empty h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 0 0 8px; }
.empty p { color: var(--muted); margin: 0 0 22px; max-width: 300px; }

/* ---------- profile view (sheet) ---------- */
.pview .gallery { position: relative; aspect-ratio: 4 / 5; background: var(--sunk); border-radius: 18px; overflow: hidden; }
.pview .gallery img { width: 100%; height: 100%; object-fit: cover; }
.pview .gallery .bars { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; gap: 4px; }
.pview .gallery .bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .4); }
.pview .gallery .bars i.on { background: #fff; }
.pview .gallery .tap { position: absolute; top: 0; bottom: 0; width: 50%; }
.pview .gallery .tap.l { left: 0; } .pview .gallery .tap.r { right: 0; }
.pview h2 { display: flex; align-items: center; gap: 8px; margin: 16px 0 4px; font-size: 26px; font-weight: 600; letter-spacing: -.4px; }
.pview h2 .age { font-weight: 400; color: var(--ink-2); }
.pview .meta { color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; }
.pview .meta span { display: inline-flex; gap: 5px; align-items: center; }
.pview .meta svg { width: 16px; height: 16px; }
.pview .about { margin: 16px 0 0; white-space: pre-wrap; }
.goal-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-2); font-size: 13px; font-weight: 600; margin-top: 14px; }
:root[data-theme="dark"] .goal-pill { color: var(--accent-2); }

/* ---------- likes ---------- */
.likes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lcard { position: relative; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background: var(--sunk); text-align: left; }
.lcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lcard.locked img { filter: blur(14px) saturate(.8); transform: scale(1.2); }
.lcard .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 10px; color: #fff; background: linear-gradient(to top, rgba(14, 10, 7, .8), transparent); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.lcard .cap .badge-verified { color: #8DB6F0; width: 16px; height: 16px; }
.lcard .star { position: absolute; top: 8px; left: 8px; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; }
.lcard .star svg { width: 15px; height: 15px; }
.lcard .lock { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.unlock-card { padding: 20px; margin-bottom: 16px; display: flex; gap: 14px; align-items: center; background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); }
.unlock-card .i { color: var(--gold); width: 30px; height: 30px; }
.unlock-card b { display: block; font-size: 16px; }

/* ---------- chats ---------- */
.new-matches { display: flex; gap: 14px; overflow-x: auto; padding: 4px 16px 6px; margin: 0 -16px; scrollbar-width: none; }
.new-matches::-webkit-scrollbar { display: none; }
.nm { flex: none; width: 70px; text-align: center; font-size: 12.5px; font-weight: 500; }
.nm .ava { width: 70px; height: 70px; }
.nm span { display: block; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ava { position: relative; width: 54px; height: 54px; border-radius: 50%; background: var(--sunk); flex: none; }
.ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ava.ring img { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.ava .on { position: absolute; right: 1px; bottom: 1px; width: 13px; height: 13px; border-radius: 50%; background: var(--ok); border: 2.5px solid var(--bg); }
.conv { display: flex; align-items: center; gap: 13px; padding: 11px 0; width: 100%; text-align: left; }
.conv + .conv { border-top: 1px solid var(--line); }
.conv .nm2 { font-weight: 600; display: flex; align-items: center; gap: 5px; }
.conv .last { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv .last.unread { color: var(--ink); font-weight: 500; }
.conv .time { font-size: 12px; color: var(--muted); align-self: flex-start; margin-top: 4px; }
.conv .ucount { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-size: 11.5px; font-weight: 700; display: grid; place-items: center; margin-top: 4px; }

.chat { position: fixed; inset: 0; z-index: 30; background: var(--bg); display: flex; flex-direction: column; animation: slidein .22s ease-out; }
@keyframes slidein { from { transform: translateX(30%); opacity: 0; } }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 4px; border-bottom: 1px solid var(--line); background: var(--surface); }
.chat-head .who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; text-align: left; }
.chat-head .ava { width: 40px; height: 40px; }
.chat-head b { display: flex; align-items: center; gap: 5px; font-size: 16px; }
.chat-head small { color: var(--muted); font-size: 12.5px; }
.msgs { flex: 1; overflow-y: auto; padding: 16px 12px; display: flex; flex-direction: column; gap: 3px; }
.msg { max-width: 78%; padding: 9px 13px 7px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); align-self: flex-start; white-space: pre-wrap; word-wrap: break-word; font-size: 15.5px; }
.msg.mine { align-self: flex-end; background: var(--ink); color: var(--bg); border-color: var(--ink); }
.msg .t { display: inline-flex; gap: 3px; align-items: center; float: right; margin: 6px 0 -2px 10px; font-size: 11px; opacity: .55; }
.msg .t svg { width: 14px; height: 14px; }
.msg.first { margin-top: 8px; }
.day-sep { align-self: center; margin: 14px 0 6px; font-size: 12px; color: var(--muted); font-weight: 500; }
.chat-intro { text-align: center; padding: 30px 20px; }
.chat-intro .ava { width: 84px; height: 84px; margin: 0 auto 14px; }
.chat-intro h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; margin: 0 0 6px; }
.starters { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.starters button { padding: 11px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-align: left; font-size: 14.5px; }
.composer { display: flex; align-items: flex-end; gap: 8px; padding: 8px 10px calc(8px + var(--safe-b)); border-top: 1px solid var(--line); background: var(--surface); }
.composer textarea { flex: 1; min-height: 44px; max-height: 130px; padding: 11px 14px; border-radius: 22px; border: 1.5px solid var(--line); background: var(--bg); outline: none; resize: none; font-size: 16px; line-height: 1.35; }
.composer .send { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; flex: none; }
.composer .send[disabled] { background: var(--sunk); color: var(--muted); }
.typing { font-size: 12.5px; color: var(--accent); }

/* ---------- my profile ---------- */
.me-head { display: flex; align-items: center; gap: 16px; padding: 6px 0 4px; }
.me-head .ava { width: 82px; height: 82px; }
.me-head h2 { margin: 0; font-size: 22px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.me-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.prem-card { margin-top: 18px; padding: 18px; border-radius: var(--r); background: var(--ink); color: var(--bg); display: flex; align-items: center; gap: 14px; text-align: left; width: 100%; }
.prem-card .i { color: var(--gold); width: 30px; height: 30px; }
.prem-card b { display: block; font-size: 16px; }
.prem-card small { opacity: .7; font-size: 13px; }
.verify-card { margin-top: 10px; padding: 16px 18px; display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; }
.verify-card .i { color: var(--blue); width: 28px; height: 28px; }
.verify-card b, .invite-card b, .verify-card small, .invite-card small { display: block; }
.chat, .sheet, .match-pop { max-width: 560px; margin: 0 auto; }
.verify-card b { display: block; }
.verify-card small { color: var(--muted); font-size: 13px; }
.invite-card { margin-top: 10px; padding: 16px 18px; display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; }
.invite-card .i { color: var(--accent); width: 28px; height: 28px; }
.invite-card small { color: var(--muted); font-size: 13px; }
.switch { width: 46px; height: 28px; border-radius: 14px; background: var(--line); position: relative; flex: none; transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.switch.on { background: var(--ok); }
.switch.on::after { transform: translateX(18px); }
.range-row { display: flex; gap: 10px; }

/* ---------- sheets ---------- */
.sheet-back { position: fixed; inset: 0; z-index: 50; background: rgba(15, 11, 8, .45); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; max-height: 92vh; overflow-y: auto; background: var(--bg);
  border-radius: 22px 22px 0 0; padding: 8px 18px calc(22px + var(--safe-b)); animation: up .26s cubic-bezier(.2, .8, .2, 1);
}
.sheet.full { top: 0; max-height: none; border-radius: 0; padding-top: 0; }
@keyframes up { from { transform: translateY(100%); } }
.sheet .grip { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 4px auto 14px; }
.sheet h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 4px 0 6px; letter-spacing: -.3px; }
.sheet .sub { color: var(--muted); margin: 0 0 18px; }
.sheet-close { position: sticky; top: 0; z-index: 3; display: flex; justify-content: flex-end; padding: 8px 0; margin: 0 -8px; }
.sheet.full .sheet-close { background: var(--bg); }

.perks { margin: 6px 0 20px; }
.perk { display: flex; gap: 14px; align-items: flex-start; padding: 11px 0; }
.perk .i { color: var(--gold); margin-top: 1px; }
.perk b { display: block; font-weight: 600; }
.perk span { color: var(--muted); font-size: 13.5px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.plan { position: relative; padding: 16px 14px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); text-align: left; }
.plan.on { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.plan .p-name { font-size: 13px; color: var(--muted); font-weight: 500; }
.plan .p-price { font-size: 22px; font-weight: 700; margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.plan .p-price svg { width: 18px; height: 18px; color: var(--gold); }
.plan .p-sum { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.plan .save { position: absolute; top: -9px; right: 10px; padding: 2px 8px; border-radius: 7px; background: var(--gold); color: #fff; font-size: 11px; font-weight: 700; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12.5px; margin: 14px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.match-pop { position: fixed; inset: 0; z-index: 60; background: var(--ink); color: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px 24px calc(30px + var(--safe-b)); animation: fade .25s; text-align: center; }
.match-pop .pair { display: flex; margin-bottom: 30px; }
.match-pop .pair img { width: 128px; height: 168px; object-fit: cover; border-radius: 18px; border: 3px solid var(--ink); }
.match-pop .pair img:first-child { transform: rotate(-7deg) translateX(14px); }
.match-pop .pair img:last-child { transform: rotate(7deg) translateX(-14px); }
.match-pop h2 { font-family: var(--serif); font-weight: 400; font-size: 40px; margin: 0 0 8px; color: #fff; }
.match-pop p { opacity: .75; margin: 0 0 30px; }
.match-pop .btn { max-width: 340px; }
.match-pop .btn + .btn { margin-top: 10px; }
.match-pop .btn.ghost { color: var(--bg); border-color: rgba(255, 255, 255, .25); }
:root[data-theme="dark"] .match-pop { background: #0B0907; color: var(--ink); }
:root[data-theme="dark"] .match-pop .btn.ghost { color: var(--ink); }

#toast:empty { display: none; }
#toast { position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top, 0px)); transform: translate(-50%, -140%); z-index: 100; background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 12px; font-size: 14px; font-weight: 500; transition: transform .3s cubic-bezier(.2, .8, .2, 1); max-width: calc(100% - 32px); box-shadow: var(--shadow); }
#toast.show { transform: translate(-50%, 0); }

/* ---------- admin ---------- */
.seg { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; height: 34px; padding: 0 14px; border-radius: 17px; background: var(--sunk); font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.seg button.on { background: var(--ink); color: var(--bg); }
.seg button .n { margin-left: 4px; color: var(--accent); font-weight: 700; }
.seg button.on .n { color: var(--accent-soft); }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi { padding: 14px 16px; }
.kpi .v { font-size: 26px; font-weight: 700; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.kpi .l { font-size: 12.5px; color: var(--muted); }
.kpi .d { font-size: 12px; color: var(--ok); font-weight: 600; }
.bars-chart { display: flex; align-items: flex-end; gap: 4px; height: 110px; padding: 14px 14px 0; }
.bars-chart div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.bars-chart i { width: 100%; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 2px; }
.bars-chart span { font-size: 9.5px; color: var(--muted); }
.bars-chart b { font-size: 10px; font-weight: 600; color: var(--ink-2); }
.urow { display: flex; align-items: center; gap: 12px; padding: 10px 14px; width: 100%; text-align: left; }
.urow + .urow { border-top: 1px solid var(--line); }
.urow .ava { width: 44px; height: 44px; }
.urow .tags { display: flex; gap: 6px; margin-top: 3px; flex-wrap: wrap; }
.tagx { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 6px; background: var(--sunk); color: var(--ink-2); }
.tagx.red { background: var(--accent-soft); color: var(--accent-2); }
.tagx.gold { background: var(--gold-soft); color: var(--gold); }
.tagx.blue { background: color-mix(in srgb, var(--blue) 15%, transparent); color: var(--blue); }
.verify-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.verify-pair img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; background: var(--sunk); }
.verify-pair figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; text-align: center; }
.admin-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.thumbs { display: flex; gap: 6px; overflow-x: auto; margin: 10px 0; }
.thumbs div { position: relative; flex: none; }
.thumbs img { width: 76px; height: 100px; object-fit: cover; border-radius: 10px; }
.thumbs button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; display: grid; place-items: center; }
.thumbs button svg { width: 14px; height: 14px; }
.amsg { padding: 8px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.amsg + .amsg { margin-top: 6px; }
.amsg small { color: var(--muted); display: block; font-size: 11.5px; }
.amsg.hl { border-color: var(--accent); }

.skeleton { background: var(--sunk); border-radius: 12px; animation: breathe 1.3s infinite; }

/* chat photos & premium nudges */
.msg.pic { padding: 4px; overflow: hidden; position: relative; }
.msg.pic img { display: block; max-width: 220px; max-height: 300px; border-radius: 14px; object-fit: cover; }
.msg.pic .t { position: absolute; right: 10px; bottom: 8px; margin: 0; padding: 1px 6px; border-radius: 8px; background: rgba(0,0,0,.45); color: #fff; opacity: 1; float: none; }
.msg.pic.locked { width: 200px; height: 240px; text-align: left; }
.msg.pic.locked img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; filter: blur(16px); transform: scale(1.25); }
.msg.pic.locked .lockover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #fff; font-weight: 600; font-size: 14px; background: rgba(20,14,10,.25); }
.lock-banner { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; margin-bottom: 10px; border-radius: 14px; background: var(--gold-soft); color: var(--ink); text-align: left; font-size: 14px; }
.lock-banner .i { color: var(--gold); }
.lock-banner b { color: var(--gold); }
.quota-out { margin-top: 12px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.quota-out .row { text-align: left; margin-bottom: 12px; }
.quota-out .row .i { color: var(--accent); }
.legal-in { padding-bottom: 30px; font-size: 15px; line-height: 1.6; }
.legal-in h1 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 0 0 4px; }
.legal-in h2 { font-size: 16.5px; margin: 24px 0 6px; }
.legal-in .upd { color: var(--muted); font-size: 13px; }
.legal-in ul { padding-left: 20px; } .legal-in li + li { margin-top: 6px; }
.legal-in a { color: var(--accent); }
button.link { font: inherit; font-weight: 600; color: var(--accent); padding: 0; }
