:root {
    color-scheme: dark;
    --canvas: #121826;
    --card: #1e293b;
    --line: #334155;
    --sky: #38bdf8;
    --mint: #2dd4bf;
    --coral: #f87171;
    --amber: #fbbf24;
    --text: #f8fafc;
    --muted: #94a3b8;
    --stage: #070b14;
}

* { box-sizing: border-box; }
[x-cloak] { display: none !important; }
html, body { margin: 0; min-height: 100%; overflow: hidden; }
html, body, .app, .screen, .welcome, .radar, .chat, .searching, .banned, .messages, .filters, .legal-card, .avatar-row {
    scrollbar-width: none;
}
*::-webkit-scrollbar { width: 0; height: 0; display: none; }
body {
    font-family: Manrope, "Segoe UI", sans-serif;
    background: var(--stage);
    color: var(--text);
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--mint); text-decoration: none; font-weight: 700; }
.stage { min-height: 100dvh; }
.app {
    width: min(100%, 430px);
    min-height: 100dvh;
    margin: 0 auto;
    background: var(--canvas);
    position: relative;
    display: flex;
    flex-direction: column;
}
.screen {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 28px 22px calc(22px + env(safe-area-inset-bottom));
}
.welcome, .radar, .chat, .searching, .banned {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
}
.welcome { overflow-y: auto; }
.splash {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    color: var(--muted);
}
.logo svg { width: 84px; height: 52px; display: block; margin: 0 auto; }
.welcome { padding-top: 54px; }
.brand { text-align: center; }
.brand h1, h2 {
    margin: 18px 0 0;
    font-size: 34px;
    line-height: 1.15;
    letter-spacing: -0.04em;
    font-weight: 800;
}
.age-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 28px 0 34px;
}
.age-badge {
    border: 1.5px solid rgba(45, 212, 191, .85);
    color: var(--mint);
    border-radius: 10px;
    padding: 6px 8px;
    font-weight: 800;
    letter-spacing: .02em;
}
.age-copy { color: #cbd5e1; font-weight: 650; font-size: 15px; line-height: 1.25; }
.check-row {
    width: 100%;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    text-align: left;
    background: transparent;
    border: 0;
    padding: 8px 2px;
    color: #e2e8f0;
    font-size: 15px;
    line-height: 1.45;
}
.box {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    margin-top: 1px;
    border-radius: 6px;
    border: 1.5px solid #cbd5e1;
    display: grid;
    place-items: center;
    color: transparent;
}
.box.on { background: var(--sky); border-color: var(--sky); color: #082f49; }
.box svg { width: 16px; height: 16px; }
.agree { font-weight: 500; }
.fine { color: var(--muted); font-size: 12.5px; line-height: 1.45; margin: 4px 2px 18px; }
.fine.center, .center { text-align: center; }
.loc-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 16px 16px 14px;
}
.loc-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.loc-title { font-weight: 800; font-size: 16px; }
.loc-rec { color: var(--mint); font-weight: 700; font-size: 14px; margin-top: 2px; }
.loc-card p { margin: 10px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.switch {
    width: 52px;
    height: 30px;
    border-radius: 999px;
    border: 0;
    background: #334155;
    padding: 3px;
    display: flex;
    align-items: center;
}
.switch span {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    display: block;
    transform: translateX(0);
    transition: transform .18s ease;
}
.switch.on { background: var(--mint); }
.switch.on span { transform: translateX(22px); }
.grow { flex: 1; min-height: 28px; }
.cta {
    width: 100%;
    border: 0;
    border-radius: 999px;
    background: var(--mint);
    color: #042f2e;
    font-weight: 800;
    font-size: 17px;
    padding: 16px 18px;
    box-shadow: 0 10px 30px rgba(45, 212, 191, .18);
}
.cta:disabled { background: #1e293b; color: #64748b; box-shadow: none; cursor: not-allowed; }
.pad { gap: 12px; height: 100dvh; max-height: 100dvh; overflow-y: auto; }
.eyebrow { margin: 12px 0 0; color: var(--mint); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.lede { color: var(--muted); line-height: 1.5; margin: 0; }
.card, .warn, .filters {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 14px;
}
.name-card { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.kicker { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.user-name { font-weight: 800; font-size: 18px; }
.muted { color: var(--muted); font-size: 13px; }
.ghost, .text-btn {
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 700;
}
.ghost:disabled, .text-btn:disabled { opacity: .4; cursor: not-allowed; }
.ghost.wide { width: 100%; }
.warn { border-color: rgba(251, 191, 36, .45); background: rgba(251, 191, 36, .08); display: grid; gap: 6px; }
.warn strong { color: var(--amber); }
.warn span, .notify span { color: #e2e8f0; font-size: 14px; line-height: 1.45; }
.gender-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gender, .chip {
    border: 1px solid var(--line);
    background: #162033;
    border-radius: 14px;
    padding: 12px 8px;
    font-weight: 700;
}
.gender.picked, .chip.on { border-color: var(--mint); color: var(--mint); background: rgba(45, 212, 191, .08); }
.avatar-row { display: flex; gap: 8px; overflow-x: auto; padding-top: 8px; }
.avatar {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    border: 2px solid transparent;
    background: transparent;
    padding: 0;
    flex: 0 0 auto;
}
.avatar.picked { border-color: var(--mint); }
.avatar svg, .who svg { width: 100%; height: 100%; display: block; }
.notify { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 13px; }
.topbar, .chat-head {
    display: flex;
    align-items: center;
    gap: 10px;
}
.top-actions { display: flex; flex-direction: column; align-items: flex-end; flex: 0 0 auto; }
.top-actions .text-btn { padding: 2px 4px; font-size: 13px; }
.who { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%; overflow: hidden; background: #fff7f1; }
.who-btn { border: 2px solid transparent; padding: 0; }
.who-btn:focus-visible, .avatar-pop .avatar.picked { border-color: var(--mint); }
.avatar-pop { padding: 0 14px 8px; }
.who-copy { flex: 1; min-width: 0; }
.who-copy .user-name { font-size: 16px; }
.partner-meta { display: flex; align-items: center; gap: 8px; min-width: 0; margin-top: 2px; }
.where { color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge {
    display: inline-flex;
    margin-top: 4px;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 800;
    background: rgba(56, 189, 248, .15);
    color: var(--sky);
}
.badge.female { background: rgba(45, 212, 191, .15); color: var(--mint); }
.badge.other { background: rgba(251, 191, 36, .15); color: var(--amber); }
.text-btn { border: 0; padding: 8px; color: var(--sky); }
.radar { padding-bottom: 12px; }
.radar-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
}
.orb {
    width: min(210px, 34dvh);
    height: min(210px, 34dvh);
    position: relative;
    display: grid;
    place-items: center;
}
.orb span {
    position: absolute;
    inset: 20px;
    border: 1px solid rgba(56, 189, 248, .35);
    border-radius: 50%;
    animation: radar 3.4s ease-out infinite;
}
.orb span:nth-child(2) { inset: 48px; animation-delay: .6s; }
.orb span:nth-child(3) { inset: 74px; animation-delay: 1.2s; }
.orb strong { font-size: 42px; z-index: 1; }
@keyframes radar {
    0% { transform: scale(.75); opacity: .2; }
    70% { opacity: .9; }
    100% { transform: scale(1.08); opacity: .15; }
}
.nearby-copy { margin: 0 0 4px; font-weight: 700; }
.filters { display: grid; gap: 10px; margin-top: auto; max-height: 54dvh; overflow-y: auto; }
.chips { display: flex; gap: 8px; }
.chip { flex: 1; }
.slider-head { display: flex; justify-content: space-between; align-items: center; }
.slider { width: 100%; accent-color: var(--mint); }
.searching { align-items: center; justify-content: center; text-align: center; gap: 14px; }
.chat { padding: 0 0 calc(10px + env(safe-area-inset-bottom)); gap: 0; }
.chat-head { padding: 12px 14px; border-bottom: 1px solid rgba(51, 65, 85, .7); }
.typing { color: var(--mint); font-size: 12px; font-weight: 700; }
.typing-bubble { display: flex; gap: 5px; align-items: center; min-height: 18px; }
.typing-bubble span { width: 7px; height: 7px; border-radius: 50%; background: #2DD4BF; opacity: .3; animation: typing-dot 1.1s infinite; }
.typing-bubble span:nth-child(2) { animation-delay: .15s; }
.typing-bubble span:nth-child(3) { animation-delay: .3s; }
@keyframes typing-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
.danger { color: var(--coral) !important; border-color: rgba(248, 113, 113, .4); }
.messages { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 8px; }
.ephemeral { color: var(--muted); text-align: center; font-size: 14px; line-height: 1.5; margin: auto 10px; }
.bubble-row { display: flex; }
.bubble-row.mine { justify-content: flex-end; }
.bubble {
    max-width: 78%;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px 16px 16px 6px;
    padding: 8px 10px;
}
.bubble.mine { background: rgba(45, 212, 191, .16); border-color: rgba(45, 212, 191, .35); border-radius: 16px 16px 6px 16px; }
.bubble p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.bubble time { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.shot { position: relative; border: 0; padding: 0; background: transparent; border-radius: 12px; overflow: hidden; }
.shot img { width: 180px; max-width: 100%; display: block; filter: blur(16px) brightness(.7); transform: scale(1.08); }
.shot.open img { filter: none; transform: none; }
.shot span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 13px;
}
.composer {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 8px 12px 0;
}
.composer input[type="text"] {
    flex: 1;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 12px 14px;
    outline: none;
    font-size: 16px;
}
button.icon-btn { padding: 0; cursor: pointer; }
.icon-btn, .send {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--card);
    display: grid;
    place-items: center;
    position: relative;
}
.send { background: var(--mint); color: #042f2e; border: 0; }
.icon-btn.danger { color: var(--coral); }
.icon-btn.file-btn { width: 36px; height: 36px; }
.icon-btn svg, .send svg { width: 20px; height: 20px; }
.icon-btn.file-btn svg { width: 18px; height: 18px; }
.icon-btn input { position: absolute; inset: 0; opacity: 0; }
.chat .fine { padding: 6px 16px 8px; }
.ad { display: block; overflow: hidden; background: #0f172a; }
.ad img, .ad video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad.banner { height: 72px; border-radius: 16px; margin-top: 12px; }
.ad.compact { height: 56px; }
.lock {
    width: max-content;
    color: var(--coral);
    border: 1px solid rgba(248, 113, 113, .5);
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 800;
}
.toast {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 24px;
    background: #0f172a;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 14px;
    z-index: 5;
}
.toast.bad { border-color: rgba(248, 113, 113, .6); }
.legal {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, .72);
    z-index: 6;
    display: flex;
    align-items: flex-end;
}
.legal-card {
    background: var(--canvas);
    border-top: 1px solid var(--line);
    border-radius: 22px 22px 0 0;
    max-height: 86dvh;
    width: 100%;
    overflow: auto;
    padding: 16px 16px 28px;
}
.legal-card header { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.legal-card h2 { font-size: 22px; margin: 0; }
.legal-card header button { border: 0; background: transparent; color: var(--mint); font-weight: 800; }
.legal-card article { color: #cbd5e1; line-height: 1.55; font-size: 14px; }
.legal-card h2 + article, .legal-card article h2 { margin-top: 18px; font-size: 16px; }
.page-links { display: grid; gap: 10px; margin-top: 16px; }
.page-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    background: var(--card);
    border-radius: 16px;
    padding: 14px 16px;
    color: var(--text);
    font-weight: 700;
}
.page-link span:last-child { color: var(--mint); font-size: 13px; }
.legal-page {
    background: var(--canvas);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 22px 20px 40px;
    line-height: 1.55;
}
.legal-page h1 { font-size: 28px; margin: 8px 0 12px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 8px; }
.legal-nav a {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--text);
    background: var(--card);
    font-size: 13px;
}
.legal-nav a.active { border-color: var(--mint); color: var(--mint); }
.banned h2 { font-size: 28px; }

.admin-body { background: var(--stage); color: var(--text); font-family: Manrope, sans-serif; margin: 0; }
.admin-shell { max-width: 1080px; margin: 0 auto; padding: 28px 20px 60px; }
.admin-nav { display: flex; gap: 16px; align-items: center; margin-bottom: 22px; }
.admin-nav a, .admin-nav button { color: var(--muted); background: none; border: 0; font-weight: 700; text-decoration: none; }
.admin-nav a.active, .admin-nav a:hover { color: var(--mint); }
.admin-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin-bottom: 16px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.stats strong { display: block; font-size: 28px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
input[type="text"], input[type="email"], input[type="password"], input[type="url"], select, textarea {
    width: 100%;
    background: #0f172a;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 12px;
    color: var(--text);
}
label.field { display: grid; gap: 6px; margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.admin-actions { display: flex; gap: 8px; align-items: center; }
.login-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(100%, 420px); }
.error { color: var(--coral); font-size: 14px; }
.status { color: var(--mint); }
