/* Hello Beijo — mobile first. Light theme, rose accent. */
:root {
  --bg: #fbf7f6;
  --surface: #ffffff;
  --text: #1f1a1d;
  --muted: #6f6469;
  --line: #eee4e6;
  --primary: #e11d48;
  --primary-2: #f43f5e;
  --primary-soft: #ffe4e9;
  --ok: #059669;
  --ok-soft: #d1fae5;
  --danger: #dc2626;
  --shadow: 0 10px 30px rgba(60, 20, 30, .10);
  --radius: 18px;
  --tabbar: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0 0 .6em; }
a { color: var(--primary); text-decoration: none; }
a.plain { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: .82rem; margin: 0; }
.center { text-align: center; }
.right { text-align: right; display: block; }

.ic { width: 22px; height: 22px; flex: none; }
.ic.big { width: 54px; height: 54px; color: var(--primary); stroke-width: 1.6; }
.flag { width: 22px; height: 16px; vertical-align: -2px; flex: none; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.brand-heart { width: 26px; height: 26px; color: #fff; fill: #fff; stroke: none; background: linear-gradient(160deg, var(--primary-2), var(--primary)); border-radius: 9px; padding: 5px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px;
  padding: 11px 20px; font-weight: 700; font-size: .95rem; background: var(--surface); color: var(--text); text-decoration: none; position: relative;
  transition: transform .1s, background .15s, box-shadow .15s;
}
.btn:active { transform: scale(.97); }
.btn .ic { width: 18px; height: 18px; }
.btn.primary { background: linear-gradient(160deg, var(--primary-2), var(--primary)); color: #fff; box-shadow: 0 6px 16px rgba(225, 29, 72, .28); }
.btn.ghost { background: transparent; border: 1.5px solid var(--line); }
.btn.ghost:hover { background: var(--surface); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.link { background: none; color: var(--muted); font-weight: 600; }
.btn.block { display: flex; width: 100%; }
.btn.sm { padding: 7px 14px; font-size: .88rem; }
.btn.lg { padding: 15px 26px; font-size: 1.02rem; }
.btn:disabled { opacity: .6; cursor: default; }
.btn.loading { color: transparent !important; }
.btn.loading::after { content: ''; position: absolute; width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.ghost.loading::after { border-color: var(--line); border-top-color: var(--primary); }
.icon-btn { background: none; border: 0; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--text); }
.icon-btn:hover { background: var(--bg); }
.row-end { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.row-center { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.stack { display: grid; gap: 10px; margin-top: 18px; }

.spinner { width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; margin: 60px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.form input:not([type=radio]):not([type=checkbox]), .form select, .form textarea {
  width: 100%; border: 1.5px solid var(--line); background: var(--surface); border-radius: 12px; padding: 12px 14px; font-weight: 500; font-size: 1rem; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--primary-2); box-shadow: 0 0 0 4px var(--primary-soft); }
.form textarea { resize: vertical; min-height: 96px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 600; font-size: .9rem; margin-bottom: 8px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex !important; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { padding: 9px 15px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; font-size: .9rem; transition: all .15s; }
.chip input:checked + span { background: var(--primary-soft); border-color: var(--primary-2); color: var(--primary); }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px var(--primary-soft); }
.check { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px !important; font-weight: 500 !important; }
.check input { width: 20px; height: 20px; accent-color: var(--primary); margin-top: 1px; flex: none; }
.two { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; }
.age-range { display: flex; align-items: center; gap: 10px; }
.age-range input { width: 84px !important; text-align: center; }
.form-error { background: #fee2e2; color: #991b1b; padding: 10px 14px; border-radius: 12px; font-weight: 600; font-size: .9rem; }
.notice { display: flex; gap: 12px; align-items: flex-start; background: var(--primary-soft); border-radius: 14px; padding: 14px; }
.notice .ic { color: var(--primary); }
.notice p { margin: 0; }

.country-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.country-pick legend { grid-column: 1 / -1; }
.country-opt { cursor: pointer; }
.country-opt input { position: absolute; opacity: 0; }
.country-opt > span { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 14px 10px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); height: 100%; transition: all .15s; }
.country-opt .flag { width: 40px; height: 29px; margin-bottom: 4px; }
.country-opt b { font-size: .92rem; }
.country-opt small { color: var(--muted); font-weight: 500; font-size: .78rem; }
.country-opt input:checked + span { border-color: var(--primary-2); background: var(--primary-soft); box-shadow: 0 0 0 3px var(--primary-soft); }
.country-opt input:focus-visible + span { box-shadow: 0 0 0 3px var(--primary-soft); }

/* ---------- Language switch ---------- */
.lang-switch { display: inline-flex; background: var(--bg); border: 1.5px solid var(--line); border-radius: 999px; padding: 2px; }
.lang-switch button { border: 0; background: none; padding: 4px 10px; border-radius: 999px; font-weight: 700; font-size: .78rem; color: var(--muted); }
.lang-switch button.on { background: var(--surface); color: var(--primary); box-shadow: 0 1px 4px rgba(0,0,0,.08); }

/* ---------- Visitor pages ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; max-width: 980px; margin: 0 auto; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.landing { min-height: 100%; background: radial-gradient(1000px 500px at 50% -10%, #ffe1e7 0%, transparent 70%), var(--bg); }
.hero { text-align: center; padding: 34px 16px 30px; max-width: 680px; margin: 0 auto; }
.hero h1 { font-size: clamp(1.9rem, 6.5vw, 3rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 14px; }
.hero .lead { font-size: 1.1rem; color: var(--muted); max-width: 520px; margin: 0 auto 26px; }
.hero-cta { display: flex; flex-direction: column; gap: 10px; max-width: 340px; margin: 0 auto; }
.bridge { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 24px; }
.bridge .flag { width: 54px; height: 39px; border-radius: 6px; box-shadow: var(--shadow); }
.bridge-line { width: 36px; height: 2px; background: repeating-linear-gradient(90deg, var(--primary-2) 0 6px, transparent 6px 11px); }
.bridge-heart { width: 44px; height: 44px; fill: var(--primary); stroke: none; color: var(--primary); animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.15); } 30% { transform: scale(1); } 45% { transform: scale(1.1); } }
.steps { max-width: 640px; margin: 0 auto; padding: 20px 16px; }
.steps h2 { text-align: center; font-size: 1.4rem; margin-bottom: 18px; }
.steps ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { display: flex; gap: 14px; background: var(--surface); padding: 16px; border-radius: var(--radius); box-shadow: 0 2px 10px rgba(60,20,30,.05); }
.steps li p { margin: 4px 0 0; color: var(--muted); font-size: .93rem; }
.step-n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-weight: 800; }
.safety-note { display: flex; gap: 14px; max-width: 608px; margin: 10px auto 0; padding: 16px; border-radius: var(--radius); background: var(--ok-soft); color: #065f46; }
.safety-note p { margin: 4px 0 0; font-size: .93rem; }
.safety-note .ic { color: var(--ok); }
.foot { text-align: center; color: var(--muted); font-size: .82rem; padding: 34px 16px 30px; }
@media (min-width: 600px) { .hero-cta { flex-direction: row; justify-content: center; max-width: none; } .hero { padding-top: 60px; } }

.auth { min-height: 100%; background: radial-gradient(900px 420px at 50% -10%, #ffe1e7 0%, transparent 70%), var(--bg); padding-bottom: 30px; }
.auth-card { background: var(--surface); max-width: 440px; margin: 10px auto 0; padding: 26px 20px; border-radius: 22px; box-shadow: var(--shadow); }
@media (max-width: 480px) { .auth-card { margin: 4px 12px 0; } }
.auth-card h1 { font-size: 1.5rem; margin-bottom: 18px; }
.auth-alt { text-align: center; margin-top: 18px; color: var(--muted); }
.link { font-weight: 600; font-size: .9rem; }

/* ---------- App shell ---------- */
.shell { height: 100dvh; display: flex; flex-direction: column; max-width: 520px; margin: 0 auto; background: var(--surface); position: relative; }
@media (min-width: 560px) { body { background: #f3ecea; } .shell { box-shadow: 0 0 40px rgba(60,20,30,.08); } }
.appbar { flex: none; height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid var(--line); }
.appbar-route { display: flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 700; }
#main { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
.tabbar { flex: none; display: flex; border-top: 1px solid var(--line); padding-bottom: var(--safe-bottom); background: var(--surface); }
.tabbar a { flex: 1; height: var(--tabbar); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: .74rem; font-weight: 700; position: relative; }
.tabbar a.on { color: var(--primary); }
.tabbar a.on .ic { fill: var(--primary-soft); }
.badge { position: absolute; top: 8px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--primary); color: #fff; font-style: normal; font-size: .7rem; display: grid; place-items: center; border: 2px solid var(--surface); }
body.in-chat .appbar, body.in-chat .tabbar { display: none; }
body.in-chat #main { overflow: hidden; }

.page { padding: 16px 16px 30px; }
.sec { font-size: 1rem; margin: 22px 0 10px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.sec small { color: var(--muted); font-weight: 500; font-size: .8rem; }
.page > .sec:first-child { margin-top: 4px; }
.empty { text-align: center; padding: 50px 24px; display: grid; justify-items: center; gap: 6px; }
.empty .btn { margin-top: 12px; }
.missing { text-align: left; margin: 4px 0 0; padding-left: 20px; font-weight: 600; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: .78rem; }
.tag .ic { width: 14px; height: 14px; }
.tag.ok { background: var(--ok-soft); color: var(--ok); }

/* ---------- Discover ---------- */
.discover { height: 100%; display: flex; flex-direction: column; padding: 12px 12px 0; }
.deck { flex: 1; position: relative; min-height: 380px; }
.card { position: absolute; inset: 0; border-radius: 22px; overflow: hidden; background: #2a2226; box-shadow: var(--shadow); touch-action: pan-y; user-select: none; transition: transform .26s ease, opacity .26s ease; --yes: 0; --no: 0; }
.card.behind { transform: scale(.95) translateY(10px); opacity: .7; }
.card.gone.to-right { transform: translateX(130%) rotate(18deg); opacity: 0; }
.card.gone.to-left { transform: translateX(-130%) rotate(-18deg); opacity: 0; }
.card-photos { position: absolute; inset: 0; }
.card-photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; }
.card-photos img.on { opacity: 1; }
.bars { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; }
.bars i { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.4); }
.bars i.on { background: #fff; }
.stamp { position: absolute; top: 36px; padding: 6px 14px; border: 4px solid; border-radius: 10px; font-weight: 800; font-size: 1.6rem; letter-spacing: .05em; }
.stamp.yes { left: 22px; color: #22c55e; transform: rotate(-14deg); opacity: var(--yes); }
.stamp.no { right: 22px; color: #f43f5e; transform: rotate(14deg); opacity: var(--no); }
.card-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 18px 16px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.78)); pointer-events: none; }
.card-info h2 { font-size: 1.6rem; display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.card-info p { margin: 0; display: flex; align-items: center; gap: 4px; opacity: .92; font-weight: 500; }
.card-info .ic { width: 16px; height: 16px; }
.card-info .tag { background: rgba(255,255,255,.2); color: #fff; backdrop-filter: blur(6px); }
.card-bio { margin-top: 6px !important; display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .92rem; }
.card-info .more { pointer-events: auto; margin-top: 10px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); color: #fff; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .82rem; backdrop-filter: blur(6px); }
.deck-actions { flex: none; display: flex; justify-content: center; gap: 28px; padding: 14px 0 16px; }
.round { width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--surface); box-shadow: 0 6px 20px rgba(60,20,30,.14); display: grid; place-items: center; transition: transform .12s; }
.round:active { transform: scale(.9); }
.round:disabled { opacity: .4; }
.round .ic { width: 30px; height: 30px; stroke-width: 2.6; }
.round.nope { color: #9a8f94; }
.round.like { color: #fff; background: linear-gradient(160deg, var(--primary-2), var(--primary)); }
.round.like .ic { fill: #fff; stroke: none; }

/* ---------- Modal, sheets ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(20, 10, 14, .5); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; animation: fade .15s; }
.modal { background: var(--surface); border-radius: 22px; padding: 22px 20px; width: 100%; max-width: 420px; max-height: 92dvh; overflow-y: auto; animation: rise .2s ease-out; }
.modal h3 { font-size: 1.15rem; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(20px); opacity: 0; } }
@keyframes drop { from { transform: translateY(-12px); opacity: 0; } }
@media (max-width: 600px) {
  .modal-back:has(.sheet), .modal-back:has(.action-sheet) { align-items: flex-end; padding: 0; }
  .modal.sheet, .modal.action-sheet { border-radius: 22px 22px 0 0; max-height: 94dvh; padding-bottom: calc(16px + var(--safe-bottom)); }
}
.modal.sheet { padding: 0; max-width: 480px; position: relative; }
.sheet-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #fff; display: grid; place-items: center; }
.sheet-photos { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; background: #2a2226; }
.sheet-photos img { flex: none; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; scroll-snap-align: start; }
.sheet-body { padding: 18px 20px 20px; }
.sheet-body h2 { display: flex; align-items: center; gap: 8px; font-size: 1.5rem; }
.sheet-body h4 { margin-top: 16px; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.sheet-body .muted { display: flex; align-items: center; gap: 4px; }
.sheet-body .muted .ic { width: 16px; height: 16px; }
.bio { white-space: pre-wrap; }
.sheet-actions { display: flex; justify-content: center; gap: 28px; margin-top: 20px; }
.menu-list { display: grid; gap: 4px; }
.menu-list button { display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 14px 10px; border-radius: 12px; font-weight: 600; text-align: left; }
.menu-list button:hover { background: var(--bg); }
.menu-list button.danger { color: var(--danger); }
.menu-list button:last-child { justify-content: center; color: var(--muted); }

.match-modal { text-align: center; background: linear-gradient(170deg, #fff 40%, var(--primary-soft)); }
.match-pop h2 { font-size: 2rem; font-weight: 800; color: var(--primary); margin-top: 6px; }
.match-pop .btn { margin-top: 10px; }
.match-photos { display: flex; justify-content: center; align-items: center; margin: 12px 0 8px; }
.match-photos img { width: 108px; height: 108px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: var(--shadow); background: var(--line); }
.match-photos img:first-child { transform: rotate(-8deg); margin-right: -14px; }
.match-photos img:last-child { transform: rotate(8deg); margin-left: -14px; }
.match-heart { position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 50%; background: var(--primary); display: grid; place-items: center; box-shadow: var(--shadow); }
.match-heart .ic { fill: #fff; stroke: none; color: #fff; }

/* ---------- Toast ---------- */
#toast-root { position: fixed; left: 0; right: 0; top: calc(12px + env(safe-area-inset-top, 0px)); display: grid; justify-items: center; gap: 8px; z-index: 60; pointer-events: none; padding: 0 16px; }
.toast { background: #2a2226; color: #fff; padding: 11px 18px; border-radius: 14px; font-weight: 600; font-size: .92rem; box-shadow: var(--shadow); animation: drop .2s; transition: opacity .3s; max-width: 440px; }
.toast.ok { background: #065f46; }
.toast.err { background: #991b1b; }
.toast.out { opacity: 0; }

/* ---------- Matches list ---------- */
.avatar { width: 54px; height: 54px; border-radius: 50%; overflow: hidden; flex: none; background: var(--line); display: grid; place-items: center; color: var(--muted); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 76px; height: 76px; }
.avatar.xl { width: 120px; height: 120px; }
.avatar.ring { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--primary-2); }
.new-matches { display: flex; gap: 16px; overflow-x: auto; padding: 6px 4px 10px; }
.nm { display: grid; justify-items: center; gap: 6px; color: var(--text); font-weight: 700; font-size: .85rem; }
.talks { display: grid; grid-template-columns: minmax(0, 1fr); }
.talk { display: flex; align-items: center; gap: 12px; padding: 10px 4px; color: var(--text); border-bottom: 1px solid var(--line); }
.talk-main { flex: 1; min-width: 0; }
.talk-top { display: flex; align-items: center; gap: 6px; }
.talk-top .flag { width: 18px; height: 13px; }
.talk-top time { margin-left: auto; color: var(--muted); font-size: .78rem; }
.talk p { margin: 2px 0 0; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .92rem; }
.talk.unread p { color: var(--text); font-weight: 700; }
.count { background: var(--primary); color: #fff; min-width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; font-size: .75rem; font-weight: 800; padding: 0 6px; }

/* ---------- Chat ---------- */
.chat { height: 100%; display: flex; flex-direction: column; }
.chat-head { flex: none; display: flex; align-items: center; gap: 4px; padding: 6px 8px; border-bottom: 1px solid var(--line); background: var(--surface); }
.chat-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 0; background: none; text-align: left; padding: 4px; }
.chat-who .avatar { width: 40px; height: 40px; }
.chat-who > span:last-child { min-width: 0; }
.chat-who small { display: block; color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-body { flex: 1; overflow-y: auto; padding: 12px 12px 6px; display: flex; flex-direction: column; gap: 4px; background: var(--bg); }
.chat-tip { display: flex; gap: 8px; align-items: flex-start; font-size: .8rem; color: #065f46; background: var(--ok-soft); padding: 9px 12px; border-radius: 12px; margin-bottom: 8px; }
.chat-tip .ic { width: 16px; height: 16px; color: var(--ok); margin-top: 1px; }
.chat-start { text-align: center; display: grid; justify-items: center; gap: 8px; margin: 30px 0; color: var(--muted); }
.day { align-self: center; font-size: .74rem; color: var(--muted); font-weight: 700; margin: 10px 0 4px; }
.day::first-letter { text-transform: uppercase; }
.msg { max-width: 78%; align-self: flex-start; background: var(--surface); padding: 8px 12px 6px; border-radius: 18px 18px 18px 6px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg time { display: block; text-align: right; font-size: .68rem; color: var(--muted); margin-top: 2px; }
.msg.mine { align-self: flex-end; background: linear-gradient(160deg, var(--primary-2), var(--primary)); color: #fff; border-radius: 18px 18px 6px 18px; }
.msg.mine time { color: rgba(255,255,255,.8); }
.seen { align-self: flex-end; font-size: .72rem; color: var(--muted); margin-right: 4px; }
.chat-input { flex: none; display: flex; align-items: flex-end; gap: 8px; padding: 8px 10px calc(8px + var(--safe-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.chat-input textarea { flex: 1; resize: none; border: 1.5px solid var(--line); border-radius: 22px; padding: 10px 16px; max-height: 120px; outline: none; font-size: 1rem; background: var(--bg); }
.chat-input textarea:focus { border-color: var(--primary-2); }
.send { flex: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: linear-gradient(160deg, var(--primary-2), var(--primary)); color: #fff; display: grid; place-items: center; }
.send .ic { width: 20px; height: 20px; }
.chat-ended { flex: none; text-align: center; padding: 16px; color: var(--muted); font-weight: 600; border-top: 1px solid var(--line); padding-bottom: calc(16px + var(--safe-bottom)); }

/* ---------- Profile ---------- */
.me-card { text-align: center; display: grid; justify-items: center; gap: 4px; padding: 14px 0 6px; }
.me-card .avatar { margin-bottom: 8px; box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--primary-soft); }
.me-card h2 { display: flex; align-items: center; gap: 8px; font-size: 1.4rem; margin: 0; }
.me-card .row-center { margin-top: 12px; }
.list { margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.list-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; background: var(--surface); border: 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 600; }
.list-item:last-child { border-bottom: 0; }
.list-item span { flex: 1; }
.list-item .ic { color: var(--muted); }
button.list-item:hover { background: var(--bg); }
.list + .hint { margin-top: 16px; }

.welcome { display: flex; gap: 12px; background: var(--primary-soft); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 8px; }
.welcome .ic { color: var(--primary); }
.welcome p { margin: 4px 0 0; font-size: .92rem; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ph { position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: var(--bg); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph.empty { border: 1.5px dashed var(--line); }
.ph.add { display: grid; place-content: center; justify-items: center; gap: 4px; border: 1.5px dashed var(--primary-2); color: var(--primary); font-weight: 700; font-size: .8rem; cursor: pointer; background: var(--primary-soft); }
.ph.add.loading > * { visibility: hidden; }
.ph.add.loading::after { content: ''; position: absolute; inset: 0; margin: auto; width: 26px; height: 26px; border: 3px solid #fff; border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
.ph-main { position: absolute; left: 6px; bottom: 6px; background: var(--primary); color: #fff; font-size: .7rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.ph-btn { position: absolute; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(0,0,0,.5); color: #fff; display: grid; place-items: center; }
.ph-btn .ic { width: 16px; height: 16px; }
.ph-btn.del { top: 6px; right: 6px; }
.ph-btn.star { left: 6px; bottom: 6px; }
.edit .form { margin-top: 4px; }
.edit .form > .sec { margin-bottom: 0; }
.save-bar { position: sticky; bottom: 0; padding: 12px 0 4px; background: linear-gradient(transparent, var(--surface) 30%); }

/* ---------- Safety (stage 2) ---------- */
.grow { flex: 1; }
.small { font-size: .82rem; }
.page-title { font-size: 1.35rem; margin: 10px 0 12px; }
.verified { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #2563eb; color: #fff; vertical-align: middle; flex: none; }
.verified .ic { width: 13px; height: 13px; stroke-width: 3.2; }
.verified.on-photo { box-shadow: 0 0 0 2px rgba(255,255,255,.9); }
.verified.xl { width: 72px; height: 72px; }
.verified.xl .ic { width: 40px; height: 40px; }
.report-link { display: flex; align-items: center; gap: 6px; margin: 22px auto 0; color: var(--danger); font-size: .9rem; }
.report-link .ic { width: 16px; height: 16px; }
.reasons { display: grid; gap: 6px; }
.reason { cursor: pointer; }
.reason input { position: absolute; opacity: 0; }
.reason span { display: block; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 600; font-size: .92rem; }
.reason input:checked + span { border-color: var(--danger); background: #fee2e2; color: #991b1b; }
.reason input:focus-visible + span { box-shadow: 0 0 0 3px #fee2e2; }
.msg-warn { align-self: stretch; display: flex; gap: 8px; align-items: flex-start; background: #fef3c7; color: #78350f; border: 1px solid #fcd34d; padding: 10px 12px; border-radius: 12px; font-size: .84rem; margin: 2px 0 6px; }
.msg-warn .ic { width: 18px; height: 18px; color: #d97706; flex: none; margin-top: 1px; }
.msg-tip { align-self: center; text-align: center; color: var(--muted); font-size: .78rem; max-width: 300px; margin: 4px 0 8px; }
.linkish { border: 0; background: none; padding: 0; color: #b45309; font-weight: 800; text-decoration: underline; }
.verify-cta { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 14px 16px; border-radius: var(--radius); background: #eff6ff; color: #1e3a8a; border: 1px solid #bfdbfe; }
.verify-cta .ic { color: #2563eb; }
.verify-cta p { margin: 3px 0 0; font-size: .88rem; color: #1e40af; }
.list-item.danger, .list-item.danger .ic { color: var(--danger); }
a.list-item { color: var(--text); }
.list + .list { margin-top: 14px; }
.verify h2 { margin-top: 14px; }
.pose { display: flex; align-items: center; gap: 16px; padding: 16px 18px; margin: 14px 0; border-radius: var(--radius); background: var(--primary-soft); font-size: 1.05rem; }
.pose-emoji { font-size: 3rem; line-height: 1; }
.checklist { padding-left: 20px; margin: 0 0 12px; color: var(--muted); }
.checklist li { margin: 3px 0; }
.verify .btn.block { margin-top: 18px; }

.legal-page { background: var(--bg); }
.legal { max-width: 720px; margin: 0 auto; padding: 8px 18px 20px; }
.legal h1 { font-size: 1.7rem; margin: 14px 0 8px; }
.legal h3 { font-size: 1.05rem; margin: 22px 0 6px; }
.legal p, .legal li { color: #3d3438; }
.legal ul { padding-left: 20px; }
.legal.in-modal { padding: 20px 20px 10px; }
.legal-sheet { max-width: 640px; }
.sheet-close.dark { background: var(--bg); color: var(--text); }
.foot a { color: var(--muted); font-weight: 600; }
.foot div { margin-top: 8px; }

/* ---------- Translation, filters, switches (stage 3) ---------- */
.deck-actions { align-items: center; }
.round.small { width: 48px; height: 48px; position: relative; color: var(--muted); }
.round.small .ic { width: 22px; height: 22px; stroke-width: 2.2; }
.round.small .badge { top: -2px; left: auto; right: -2px; }
.msg-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 2px; }
.msg-foot time { margin: 0; }
.tr-btn { border: 0; background: none; padding: 0; margin-right: auto; color: var(--primary); font-weight: 700; font-size: .72rem; }
.msg .tr { display: flex; gap: 6px; margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line); color: #4b3f45; font-size: .95rem; }
.msg .tr .ic { width: 15px; height: 15px; color: var(--primary); margin-top: 3px; }
.sheet-body .tr-btn { font-size: .85rem; }
.tr-google { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-weight: 700; font-size: .8rem; color: var(--primary); }
.tr-google .ic { width: 15px; height: 15px; }
.msg .tr-google { display: flex; padding-top: 6px; border-top: 1px dashed var(--line); }
.sheet-body .bio.tr { display: flex; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); color: #4b3f45; }
.sheet-body .bio.tr .ic { width: 16px; height: 16px; color: var(--primary); margin-top: 3px; }
.switch { appearance: none; -webkit-appearance: none; flex: none; width: 46px; height: 28px; border-radius: 999px; background: #d9cfd2; position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.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 .15s; }
.switch:checked { background: var(--primary); }
.switch:checked::after { transform: translateX(18px); }
.switch:focus-visible { outline: 3px solid var(--primary-soft); }
label.list-item { cursor: pointer; }
.switch-row { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0; }
.switch-row span { display: grid; gap: 2px; }
.switch-row small { color: var(--muted); font-weight: 500; font-size: .8rem; }
.chips.states { max-height: 180px; overflow-y: auto; padding: 2px; }
.chips.states .chip span { padding: 6px 11px; font-size: .82rem; }
.title-ic { display: flex; align-items: center; gap: 8px; }
legend .flag { width: 18px; height: 13px; }

/* ---------- Ads (stage 4) ---------- */
.ad-slot { margin: 18px 0 6px; }
.landing .ad-slot, .legal-page .ad-slot { max-width: 608px; margin: 20px auto 0; padding: 0 16px; }
.ad-label { display: inline-block; font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ad-own { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); }
.ad-own img { width: 92px; height: 92px; object-fit: cover; border-radius: 10px; flex: none; background: var(--bg); }
.ad-text { display: grid; gap: 2px; min-width: 0; }
.ad-text b { font-size: .98rem; }
.ad-text > span:not(.ad-label):not(.ad-more) { color: var(--muted); font-size: .86rem; }
.ad-more { color: var(--primary); font-weight: 800; font-size: .84rem; margin-top: 2px; }
.ad-google { border: 1px solid var(--line); border-radius: 14px; padding: 8px; background: var(--surface); min-height: 100px; }
/* Sponsored card in Discover */
.ad-card { background: var(--surface); display: flex; }
.ad-card .ad-own { flex: 1; flex-direction: column; align-items: stretch; border: 0; border-radius: 0; padding: 0; }
.ad-card .ad-own img { width: 100%; height: 0; flex: 1 1 auto; min-height: 0; object-fit: cover; border-radius: 0; }
.ad-card .ad-text { padding: 16px 18px 20px; }
.ad-card .ad-text b { font-size: 1.3rem; }
.ad-card .ad-more { display: inline-block; margin-top: 10px; padding: 10px 18px; border-radius: 999px; background: var(--primary); color: #fff; justify-self: start; }
.ad-card .ad-google { flex: 1; border: 0; border-radius: 0; display: grid; align-content: center; }
/* Panel */
.ad-list { margin-top: 12px; }
.ad-row { display: flex; gap: 12px; align-items: flex-start; }
.ad-row > img, .ad-noimg { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; flex: none; background: var(--bg); }
.ad-row p { margin: 2px 0; }
.ad-row-actions { display: flex; align-items: center; gap: 2px; flex: none; }
.ad-image-pick { display: grid !important; place-items: center; gap: 4px; min-height: 120px; border: 1.5px dashed var(--line); border-radius: 14px; color: var(--muted); cursor: pointer; overflow: hidden; background: var(--bg); }
.ad-image-pick img { width: 100%; max-height: 220px; object-fit: cover; }
#adsense .small .ic { width: 15px; height: 15px; color: var(--ok); vertical-align: -3px; }

/* ---------- Moderation panel ---------- */
.admin { min-height: 100vh; background: var(--bg); }
.legal-page { min-height: 100vh; }
.admin-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.admin-tag { background: #1f1a1d; color: #fff; font-size: .72rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.admin-nav { display: flex; gap: 4px; overflow-x: auto; padding: 8px 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.admin-nav a { position: relative; display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 700; font-size: .88rem; white-space: nowrap; }
.admin-nav a .ic { width: 18px; height: 18px; }
.admin-nav a.on { background: var(--primary-soft); color: var(--primary); }
.admin-nav .badge { position: static; border: 0; margin-left: 2px; }
.admin-main { max-width: 860px; margin: 0 auto; padding: 8px 16px 40px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.tile { display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.tile b { font-size: 1.7rem; letter-spacing: -.02em; }
.tile span { color: var(--muted); font-size: .84rem; font-weight: 600; }
.tile.warn { border-color: #fca5a5; background: #fef2f2; }
.tile.warn b { color: var(--danger); }
.acard { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; }
.acard h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 12px 0 6px; }
.acard-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.acard-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.acard-actions.big { margin-top: 24px; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.pill .ic { width: 13px; height: 13px; }
.pill.bad { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.pill.warn { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.chips-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.chips-row:empty { display: none; }
.user-line { display: flex; gap: 12px; align-items: flex-start; padding: 10px 4px; color: var(--text); border-bottom: 1px solid var(--line); }
.acard .user-line { border-bottom: 0; padding: 0; }
.user-line .avatar { width: 46px; height: 46px; }
.user-line .flag { width: 18px; height: 13px; }
.photo-strip { display: flex; gap: 6px; overflow-x: auto; margin-top: 10px; }
.photo-strip img { width: 84px; height: 112px; object-fit: cover; border-radius: 10px; flex: none; background: var(--bg); }
blockquote { margin: 10px 0; padding: 10px 14px; border-left: 3px solid var(--line); background: var(--bg); border-radius: 0 10px 10px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
blockquote.flagged { border-left-color: #f59e0b; background: #fffbeb; }
.convo { margin-top: 10px; display: grid; gap: 6px; max-height: 360px; overflow-y: auto; padding: 10px; background: var(--bg); border-radius: 12px; }
.cmsg { max-width: 85%; padding: 6px 10px; border-radius: 12px; background: var(--surface); justify-self: end; }
.cmsg.them { justify-self: start; background: #fdf2f8; }
.cmsg.flagged { outline: 2px solid #f59e0b; }
.cmsg small { color: var(--muted); font-size: .7rem; }
.cmsg p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 3px; margin-bottom: 14px; }
.seg a { padding: 6px 14px; border-radius: 8px; color: var(--muted); font-weight: 700; font-size: .88rem; }
.seg a.on { background: var(--primary-soft); color: var(--primary); }
.verify-compare { display: grid; grid-template-columns: 160px 1fr; gap: 12px; margin-top: 12px; align-items: start; }
.verify-compare figure { margin: 0; }
.verify-compare figure img { width: 160px; height: 213px; object-fit: cover; border-radius: 12px; background: var(--bg); border: 3px solid #2563eb; }
.verify-compare figcaption { font-size: .8rem; font-weight: 700; margin-top: 4px; }
.verify-compare .photo-strip { margin-top: 0; flex-wrap: wrap; }
@media (max-width: 480px) { .verify-compare { grid-template-columns: 1fr; } }
.search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 0 12px; margin-bottom: 10px; }
.search .ic { color: var(--muted); width: 18px; height: 18px; }
.search input { flex: 1; border: 0; outline: none; padding: 12px 0; background: none; }
.user-head { display: flex; gap: 14px; align-items: center; margin: 14px 0; }
.user-head h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 1.3rem; margin: 0 0 2px; }
.user-head p { margin: 0 0 6px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--muted); }
.kv b { text-align: right; overflow-wrap: anywhere; }
