:root {
    --blue: #2450e6;
    --blue-dark: #102a88;
    --blue-soft: #edf2ff;
    --indigo: #192c83;
    --green: #18d765;
    --ink: #172033;
    --muted: #697386;
    --line: #e4e8f0;
    --surface: #ffffff;
    --background: #f6f8fc;
    --danger: #d12f46;
    --warning: #d97706;
    --shadow: 0 16px 50px rgba(25, 44, 131, .11);
    --radius: 18px;
    --header-height: 72px;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--background); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }

.site-main { min-height: calc(100vh - var(--header-height) - 64px); }
.site-header { position: sticky; top: 0; z-index: 40; height: var(--header-height); padding: 0 max(24px, calc((100vw - 1320px) / 2)); display: grid; grid-template-columns: 190px 1fr auto; align-items: center; gap: 30px; background: rgba(255,255,255,.92); border-bottom: 1px solid rgba(228,232,240,.9); backdrop-filter: blur(16px); }
.brand { display: flex; align-items: center; height: 48px; overflow: hidden; }
.brand img { width: 165px; height: auto; }
.main-nav { display: flex; align-items: stretch; height: 100%; gap: 8px; }
.main-nav a { display: flex; align-items: center; gap: 6px; padding: 0 15px; color: var(--muted); font-weight: 650; border-bottom: 3px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--blue); border-bottom-color: var(--blue); }
.nav-badge { min-width: 20px; height: 20px; border-radius: 999px; display: inline-flex; justify-content: center; align-items: center; padding: 0 6px; background: var(--blue); color: #fff; font-size: 11px; }
.header-profile { display: flex; align-items: center; gap: 12px; }
.header-avatar-link { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; font-weight: 650; }
.avatar { width: 44px; height: 44px; object-fit: cover; border-radius: 14px; background: var(--blue-soft); }
.avatar-small { width: 34px; height: 34px; border-radius: 11px; }
.icon-button, .text-button, .back-button { border: 0; background: transparent; color: var(--muted); }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; }
.icon-button:hover { background: var(--blue-soft); color: var(--blue); }
.text-button { padding: 8px 4px; }
.site-footer { min-height: 64px; padding: 20px max(24px, calc((100vw - 1200px) / 2)); display: flex; align-items: center; justify-content: center; gap: 22px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); background: #fff; }
.site-footer a { color: var(--muted); }
.site-footer strong { color: var(--danger); }

.primary-button, .secondary-button, .danger-button, .shuffle-button, .discover-filters button, .admin-filters button, .admin-action-form button, .report-card form button { min-height: 44px; border: 0; border-radius: 12px; padding: 10px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 750; transition: .18s ease; }
.primary-button { background: linear-gradient(135deg, var(--blue), #5536e8); color: #fff; box-shadow: 0 8px 22px rgba(36,80,230,.22); }
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(36,80,230,.28); }
.secondary-button { background: #fff; color: var(--blue); border: 1px solid var(--line); }
.secondary-button:hover { border-color: #aebded; background: var(--blue-soft); }
.danger-button { background: var(--danger); color: #fff; }
.danger-text-button { border: 0; background: transparent; color: var(--danger); padding: 10px; font-weight: 700; }
.wide-button { width: 100%; min-height: 54px; }
.eyebrow { display: block; margin-bottom: 6px; color: var(--blue); font-size: 12px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.page-heading { margin-bottom: 24px; display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.page-heading h1 { margin: 0; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.04em; }
.page-heading p { margin: 5px 0 0; color: var(--muted); }

.landing-page { background: radial-gradient(circle at 20% 10%, #eaf0ff 0, transparent 38%), radial-gradient(circle at 85% 80%, #eef0ff 0, transparent 34%), #f9faff; }
.landing-page .site-main { min-height: calc(100vh - 64px); }
.landing-shell { width: min(1180px, calc(100% - 40px)); min-height: calc(100vh - 64px); margin: auto; padding: 72px 0; display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: 80px; }
.landing-logo { width: 290px; margin: -80px 0 -65px -25px; }
.landing-copy h1 { margin: 10px 0 24px; font-size: clamp(46px, 6vw, 78px); line-height: 1.02; letter-spacing: -.06em; }
.landing-copy > p { max-width: 670px; color: var(--muted); font-size: 19px; }
.landing-points { margin-top: 28px; display: grid; gap: 10px; color: #46516a; }
.landing-points span::first-letter { color: var(--green); }
.login-card { padding: 38px; border-radius: 26px; background: rgba(255,255,255,.92); border: 1px solid rgba(228,232,240,.9); box-shadow: var(--shadow); }
.login-card h2 { margin: 18px 0 8px; font-size: 28px; }
.login-card > p { margin: 0 0 26px; color: var(--muted); }
.age-pill, .step-pill { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: #fff0f2; color: var(--danger); font-size: 12px; font-weight: 850; }
.setup-notice { display: grid; gap: 6px; padding: 16px; border-radius: 13px; background: #fff8e8; color: #8a5a00; }
.setup-notice span { font-size: 13px; }
.dev-login { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.dev-login label { display: block; margin-bottom: 7px; font-size: 12px; color: var(--muted); }
.inline-form { display: flex; gap: 8px; }
.inline-form input { min-width: 0; flex: 1; }

input, select, textarea { width: 100%; border: 1px solid #d8deea; border-radius: 11px; background: #fff; color: var(--ink); padding: 11px 13px; outline: 0; transition: border .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: #7891e8; box-shadow: 0 0 0 4px rgba(36,80,230,.1); }
textarea { resize: vertical; }
.field { display: grid; gap: 7px; }
.field > span { font-size: 13px; font-weight: 750; }
.field small { color: var(--muted); font-size: 11px; }
.field.full { grid-column: 1 / -1; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.input-prefix { display: flex; align-items: center; border: 1px solid #d8deea; border-radius: 11px; background: #fff; overflow: hidden; }
.input-prefix:focus-within { border-color: #7891e8; box-shadow: 0 0 0 4px rgba(36,80,230,.1); }
.input-prefix b { padding-left: 13px; color: var(--muted); }
.input-prefix input { border: 0; box-shadow: none; }
.form-errors { margin: 0 0 20px; padding: 14px 18px; border: 1px solid #f0b8c0; border-radius: 13px; background: #fff1f3; color: #9e1f34; }
.form-errors ul { margin: 0; padding-left: 20px; }
.flash { position: fixed; top: 85px; right: 22px; z-index: 90; max-width: 420px; padding: 13px 18px; border-radius: 12px; box-shadow: var(--shadow); animation: slide-in .25s ease; }
.flash-success { background: #eafbef; color: #0c7137; border: 1px solid #b6edc8; }
@keyframes slide-in { from { opacity: 0; transform: translateY(-8px); } }

.onboarding-shell, .settings-page, .profile-page, .inbox-page, .discover-page, .admin-page, .legal-page { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 44px 0 70px; }
.onboarding-shell { width: min(920px, calc(100% - 36px)); }
.onboarding-header { text-align: center; }
.onboarding-header img { width: 220px; margin: -45px 0 -42px; }
.onboarding-header h1 { margin: 14px 0 5px; font-size: 40px; letter-spacing: -.04em; }
.onboarding-header p { margin: 0 0 30px; color: var(--muted); }
.onboarding-form { display: grid; gap: 22px; }
.form-section, .settings-card, .admin-card, .danger-zone { margin: 0; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 8px 30px rgba(25,44,131,.05); }
.form-section legend { padding: 0 8px; font-size: 18px; font-weight: 850; }
.form-section > p, .settings-card > p { margin-top: 0; color: var(--muted); }
.intention-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.intention-card { position: relative; min-height: 104px; padding: 14px; display: grid; grid-template-columns: auto 1fr auto; align-content: center; align-items: center; gap: 4px 9px; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; transition: .15s; }
.intention-card:hover { border-color: #a8b6ea; transform: translateY(-1px); }
.intention-card:has(> input:checked) { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); }
.intention-card > input { position: absolute; opacity: 0; pointer-events: none; }
.intention-icon { font-size: 24px; }
.intention-card > span:nth-of-type(2) { font-weight: 700; }
.intention-card > b { color: var(--danger); font-size: 11px; }
.primary-choice { grid-column: 1 / -1; margin-top: 6px; display: none; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; }
.intention-card:has(> input:checked) .primary-choice { display: flex; }
.primary-choice input { width: auto; }
.adult-intention { border-color: #f0c2c8; }
.selection-count { margin-top: 12px; text-align: right; color: var(--muted); font-size: 12px; }
.consent-box { padding: 18px; display: grid; gap: 11px; border-radius: 14px; background: #edf2ff; }
.consent-box label { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; }
.consent-box input { width: auto; margin-top: 3px; }

.discover-page { max-width: 1320px; }
.shuffle-button { background: var(--blue); color: #fff; }
.discover-filters { position: relative; z-index: 10; margin-bottom: 18px; padding: 12px; display: grid; grid-template-columns: minmax(220px, 1fr) 190px 190px auto; gap: 10px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 8px 28px rgba(25,44,131,.06); }
.discover-filters button { width: 100%; justify-content: space-between; background: #fff; border: 1px solid #d8deea; color: var(--ink); font-weight: 500; }
.filter-dropdown { position: relative; }
.filter-popover { position: absolute; top: calc(100% + 8px); right: 0; z-index: 20; width: 310px; max-height: 380px; overflow: auto; padding: 10px; display: grid; gap: 3px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.filter-popover label { padding: 8px; display: flex; align-items: center; gap: 9px; border-radius: 9px; font-size: 13px; cursor: pointer; }
.filter-popover label:hover { background: var(--blue-soft); }
.filter-popover input { width: auto; }
.toggle-filter { padding: 0 10px; display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 13px; font-weight: 700; }
.toggle-filter input { position: absolute; opacity: 0; }
.toggle-filter > span { width: 38px; height: 22px; position: relative; border-radius: 999px; background: #cbd2df; transition: .15s; }
.toggle-filter > span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .15s; }
.toggle-filter input:checked + span { background: var(--green); }
.toggle-filter input:checked + span::after { transform: translateX(16px); }
.discover-summary { margin: 0 4px 12px; display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.online-legend { display: flex; align-items: center; gap: 5px; }
.online-legend i, .online-dot { display: block; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2px #fff; }
.online-legend i { width: 9px; height: 9px; }
.user-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 12px; }
.user-tile { position: relative; aspect-ratio: .88; min-width: 0; padding: 0; border: 0; border-radius: 17px; overflow: hidden; background: #e7ebf5; box-shadow: 0 6px 18px rgba(25,44,131,.1); isolation: isolate; transition: transform .18s, box-shadow .18s; }
.user-tile:hover, .user-tile:focus-visible { z-index: 3; transform: translateY(-4px) scale(1.035); box-shadow: 0 14px 30px rgba(25,44,131,.2); outline: 3px solid rgba(36,80,230,.25); }
.user-tile img, .user-tile .avatar-initial { width: 100%; height: 100%; object-fit: cover; display: grid; place-items: center; color: #fff; font-size: clamp(20px, 3vw, 34px); font-weight: 850; }
.user-tile::after { content: ''; position: absolute; inset: 50% 0 0; z-index: 1; background: linear-gradient(transparent, rgba(7,16,47,.83)); pointer-events: none; }
.tile-label { position: absolute; z-index: 2; left: 9px; right: 7px; bottom: 7px; color: #fff; text-align: left; overflow: hidden; }
.tile-label strong, .tile-label small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-label strong { font-size: 11px; }
.tile-label small { opacity: .82; font-size: 9px; }
.user-tile .online-dot { position: absolute; z-index: 4; left: 8px; bottom: 34px; width: 12px; height: 12px; box-shadow: 0 0 0 3px #fff, 0 0 12px rgba(24,215,101,.8); }
.skeleton { animation: pulse 1.4s infinite ease-in-out; box-shadow: none; }
.skeleton div { width: 100%; height: 100%; background: linear-gradient(110deg, #e9edf5 30%, #f7f8fb 45%, #e9edf5 60%); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; }
@keyframes shimmer { to { background-position-x: -200%; } }
@keyframes pulse { 50% { opacity: .72; } }
.empty-state { padding: 70px 20px; text-align: center; color: var(--muted); }
.empty-state > span { font-size: 46px; }
.empty-state h2 { color: var(--ink); }
.profile-dialog { width: min(480px, calc(100% - 24px)); border: 0; border-radius: 22px; padding: 0; box-shadow: 0 30px 80px rgba(11,23,64,.3); }
.profile-dialog::backdrop { background: rgba(10,17,42,.55); backdrop-filter: blur(4px); }
.dialog-close { position: absolute; z-index: 2; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); font-size: 22px; }
.dialog-profile-cover { height: 180px; background: var(--blue-soft); overflow: hidden; }
.dialog-profile-cover img, .dialog-profile-cover .avatar-initial { width: 100%; height: 100%; object-fit: cover; display: grid; place-items: center; color: #fff; font-size: 62px; font-weight: 850; }
.dialog-profile-body { padding: 22px; }
.dialog-profile-body h2 { margin: 0; font-size: 28px; }
.dialog-profile-body > strong { color: var(--blue); }
.dialog-actions { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.profile-page { max-width: 900px; }
.profile-hero { padding: 36px; display: grid; grid-template-columns: 220px 1fr; gap: 36px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.profile-avatar-wrap, .avatar-wrap { position: relative; display: inline-flex; }
.profile-avatar { width: 220px; height: 220px; border-radius: 28px; }
.profile-avatar-wrap .online-dot { position: absolute; left: 10px; bottom: 12px; width: 20px; height: 20px; box-shadow: 0 0 0 5px #fff; }
.country-chip { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 750; }
.profile-details h1 { margin: 11px 0 0; font-size: 38px; letter-spacing: -.04em; }
.profile-details > strong { color: var(--blue); }
.profile-details > p { color: var(--muted); }
.intention-badges { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 7px; }
.intention-badges span { padding: 7px 10px; border-radius: 999px; background: #f2f4f8; font-size: 12px; }
.intention-badges span.primary { background: var(--blue-soft); color: var(--blue); font-weight: 750; }
.profile-actions { margin-top: 18px; display: flex; gap: 10px; justify-content: center; }

.inbox-page { max-width: 930px; }
.conversation-list { display: grid; gap: 8px; }
.conversation-item { padding: 14px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 15px; background: #fff; color: var(--ink); transition: .15s; }
.conversation-item:hover { transform: translateX(3px); border-color: #b5c1ec; box-shadow: 0 8px 20px rgba(25,44,131,.07); }
.conversation-item .avatar-wrap .online-dot { position: absolute; left: -1px; bottom: 0; width: 11px; height: 11px; }
.conversation-copy { min-width: 0; }
.conversation-copy strong, .conversation-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-copy span { color: var(--muted); font-size: 13px; }
.conversation-meta { display: grid; justify-items: end; gap: 6px; color: var(--muted); font-size: 11px; }
.unread-count { min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 850; }
.list-loading { padding: 50px; text-align: center; color: var(--muted); }

.chat-page { width: min(920px, 100%); height: calc(100vh - var(--header-height)); margin: 0 auto; display: grid; grid-template-rows: auto auto 1fr auto auto; background: #fff; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.chat-header { min-height: 68px; padding: 10px 16px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.back-button { font-size: 24px; }
.chat-person { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.chat-person span > strong, .chat-person span > small { display: block; }
.chat-person small { color: var(--muted); font-size: 11px; }
.chat-person .online-dot { position: absolute; left: -1px; bottom: 0; width: 11px; height: 11px; }
.chat-actions { display: flex; gap: 5px; }
.chat-actions button { width: 38px; height: 38px; border: 0; border-radius: 10px; background: #f2f4f8; color: var(--muted); }
.connection-banner { padding: 7px; text-align: center; background: #fff8e8; color: #8a5a00; font-size: 11px; }
.message-list { min-height: 0; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; background: linear-gradient(rgba(246,248,252,.94), rgba(246,248,252,.94)), radial-gradient(#b7c4ee 1px, transparent 1px); background-size: auto, 18px 18px; }
.message-row { max-width: 76%; display: flex; gap: 6px; align-items: end; }
.message-row.mine { align-self: flex-end; flex-direction: row-reverse; }
.message-bubble { padding: 10px 12px 7px; border-radius: 15px 15px 15px 4px; background: #fff; border: 1px solid var(--line); box-shadow: 0 3px 10px rgba(25,44,131,.04); white-space: pre-wrap; overflow-wrap: anywhere; }
.message-row.mine .message-bubble { border: 0; border-radius: 15px 15px 4px 15px; background: var(--blue); color: #fff; }
.message-meta { margin-top: 4px; display: flex; gap: 5px; justify-content: flex-end; font-size: 9px; opacity: .68; }
.message-report { opacity: 0; width: 28px; height: 28px; border: 0; background: transparent; color: var(--muted); transition: .15s; }
.message-row:hover .message-report { opacity: 1; }
.typing-indicator { padding: 4px 20px; color: var(--muted); font-size: 11px; font-style: italic; }
.message-composer { padding: 12px 14px; display: flex; align-items: end; gap: 10px; border-top: 1px solid var(--line); }
.message-composer textarea { max-height: 140px; resize: none; }
.message-composer button { flex: 0 0 46px; height: 46px; border: 0; border-radius: 14px; background: var(--blue); color: #fff; font-size: 20px; }

.settings-page { max-width: 920px; }
.settings-form { display: grid; gap: 18px; }
.settings-card h2, .danger-zone h2, .admin-card h2 { margin-top: 0; }
.avatar-upload { margin-bottom: 24px; display: flex; align-items: center; gap: 18px; }
.avatar-upload label { display: grid; gap: 4px; }
.avatar-upload input { padding: 8px; }
.switch-row { padding: 15px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); }
.switch-row:last-child { border-bottom: 0; }
.switch-row strong, .switch-row small { display: block; }
.switch-row small { color: var(--muted); }
.switch-row input { width: 20px; height: 20px; }
.danger-zone { margin-top: 28px; border-color: #f0c4ca; background: #fff8f9; }
.danger-zone p { color: var(--muted); }
.danger-zone form { display: flex; gap: 10px; }
.danger-zone input { max-width: 300px; }

.admin-page { max-width: 1380px; }
.admin-nav { margin-bottom: 30px; padding: 8px; display: flex; gap: 4px; border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow-x: auto; }
.admin-nav a { padding: 9px 14px; border-radius: 9px; color: var(--muted); font-weight: 700; white-space: nowrap; }
.admin-nav a:hover { background: var(--blue-soft); color: var(--blue); }
.stats-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.stats-grid article { padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.stats-grid span, .stats-grid strong { display: block; }
.stats-grid span { color: var(--muted); font-size: 11px; }
.stats-grid strong { margin-top: 5px; font-size: 28px; }
.stats-grid article.warning { border-color: #f6cf97; background: #fffbf2; }
.admin-columns { margin-top: 18px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
.card-heading { display: flex; justify-content: space-between; align-items: center; }
.compact-list { display: grid; }
.compact-list a { padding: 10px 0; display: grid; color: var(--ink); border-bottom: 1px solid var(--line); }
.compact-list span, .compact-list small { color: var(--muted); font-size: 11px; }
.intention-stats { display: grid; gap: 8px; }
.intention-stats div { display: flex; justify-content: space-between; gap: 10px; }
.admin-filters { margin-bottom: 14px; display: grid; grid-template-columns: 1fr 190px auto; gap: 8px; }
.admin-filters button, .admin-action-form button, .report-card form button { background: var(--blue); color: #fff; }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.admin-table th, .admin-table td { padding: 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.admin-table th { color: var(--muted); background: #f9fafc; }
.table-user { min-width: 230px; display: flex; gap: 9px; }
.table-user strong, .table-user small { display: block; }
.table-user small { color: var(--muted); }
.status { display: inline-flex; padding: 4px 8px; border-radius: 999px; background: #eef1f6; font-size: 10px; font-weight: 850; }
.status-active, .status-resolved { background: #e9fbee; color: #0d7939; }
.status-suspended, .status-reviewing { background: #fff5dd; color: #986100; }
.status-banned, .status-open { background: #fff0f2; color: #a82138; }
.online-inline { display: block; margin-top: 5px; color: #0a9d4a; font-size: 10px; }
.admin-action-form { min-width: 280px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 5px; }
.admin-action-form input, .admin-action-form select { padding: 7px; font-size: 11px; }
.admin-action-form button { min-height: 36px; padding: 6px 10px; font-size: 11px; }
.tab-row { margin-bottom: 16px; display: flex; gap: 5px; overflow-x: auto; }
.tab-row a { padding: 8px 12px; border-radius: 9px; color: var(--muted); background: #fff; border: 1px solid var(--line); }
.tab-row a.active { background: var(--blue); color: #fff; }
.report-stack { display: grid; gap: 12px; }
.report-card { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.report-card header, .report-parties { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.report-card header > div { display: flex; align-items: center; gap: 8px; }
.report-card header small, .report-parties { color: var(--muted); font-size: 11px; }
.report-card blockquote { margin: 14px 0; padding: 15px; border-left: 4px solid var(--danger); background: #fff7f8; white-space: pre-wrap; }
.report-card blockquote strong { display: block; margin-bottom: 6px; }
.report-card form { display: grid; gap: 9px; }
.report-card form > div { display: flex; gap: 7px; }
.admin-settings-form { margin-bottom: 18px; }

.legal-page { max-width: 820px; }
.legal-page h1 { font-size: 42px; letter-spacing: -.04em; }
.legal-page h2 { margin-top: 34px; }
.legal-page p, .legal-page li { color: #4f5b72; }
.error-page { min-height: 70vh; padding: 80px 20px; display: grid; place-items: center; align-content: center; text-align: center; }
.error-page > span { font-size: 72px; font-weight: 900; color: #dce3fa; }
.error-page h1 { margin: 0; font-size: 36px; }
.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: grid; gap: 8px; }
.toast { max-width: 390px; padding: 12px 16px; border-radius: 12px; background: var(--ink); color: #fff; box-shadow: var(--shadow); animation: slide-in .2s ease; }
.toast.error { background: var(--danger); }
.toast.success { background: #08763a; }
.toast.incoming-message { cursor: pointer; border-left: 4px solid #59df8b; background: #12306f; }
.toast.incoming-message::before { content: 'Yeni mesaj'; display: block; margin-bottom: 3px; color: #9ef0bb; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.toast.incoming-message:hover { transform: translateY(-1px); }

@media (max-width: 1100px) {
    .user-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
    .site-header { grid-template-columns: 160px 1fr auto; gap: 10px; }
    .header-avatar-link span { display: none; }
}
@media (max-width: 820px) {
    :root { --header-height: 64px; }
    .site-header { padding: 0 12px; grid-template-columns: 120px 1fr auto; }
    .brand img { width: 120px; }
    .main-nav { justify-content: center; }
    .main-nav a { padding: 0 8px; font-size: 12px; }
    .header-profile .icon-button, .header-profile .header-avatar-link { display: none; }
    .landing-shell { padding: 40px 0; grid-template-columns: 1fr; gap: 35px; }
    .landing-copy { text-align: center; }
    .landing-copy > p { margin-inline: auto; }
    .landing-points { justify-content: center; }
    .login-card { width: min(450px, 100%); margin: auto; }
    .discover-filters { grid-template-columns: 1fr 1fr; }
    .user-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
    .intention-grid { grid-template-columns: repeat(2, 1fr); }
    .profile-hero { grid-template-columns: 160px 1fr; }
    .profile-avatar { width: 160px; height: 160px; }
    .admin-columns { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .site-footer { flex-wrap: wrap; gap: 10px 18px; }
}
@media (max-width: 560px) {
    .site-header { grid-template-columns: 100px 1fr auto; }
    .brand img { width: 100px; }
    .main-nav a { font-size: 11px; padding: 0 5px; }
    .landing-shell, .onboarding-shell, .settings-page, .profile-page, .inbox-page, .discover-page, .admin-page, .legal-page { width: min(100% - 24px, 1240px); }
    .landing-copy h1 { font-size: 42px; }
    .landing-logo { width: 240px; }
    .login-card { padding: 24px; }
    .form-grid, .discover-filters { grid-template-columns: 1fr; }
    .intention-grid { grid-template-columns: 1fr; }
    .user-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
    .user-tile { border-radius: 12px; }
    .tile-label { left: 6px; right: 4px; bottom: 5px; }
    .tile-label small { display: none; }
    .user-tile .online-dot { left: 6px; bottom: 27px; width: 9px; height: 9px; box-shadow: 0 0 0 2px #fff; }
    .filter-popover { position: fixed; left: 12px; right: 12px; top: 138px; width: auto; }
    .profile-hero { padding: 24px; grid-template-columns: 1fr; text-align: center; }
    .profile-avatar-wrap { margin: auto; }
    .intention-badges, .profile-actions { justify-content: center; flex-wrap: wrap; }
    .dialog-actions { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-filters { grid-template-columns: 1fr; }
    .danger-zone form { flex-direction: column; }
    .site-footer { padding-bottom: 86px; }
    .chat-page { height: calc(100vh - var(--header-height)); border: 0; }
    .message-list { padding: 12px; }
    .message-row { max-width: 88%; }
}
