/* =========================================================================
   RND — Premium Dark design system
   Tokens → base → components → layout → pages → responsive
   ========================================================================= */
:root {
  --bg: #090A12;
  --bg-2: #111323;
  --card: #171A2E;
  --elevated: #1D2138;
  --elevated-2: #252A47;
  --pink: #F43F93;
  --pink-soft: #FF7FB6;
  --purple: #9B5CF6;
  --violet: #A855F7;
  --text: #F8F7FF;
  --muted: #A5A7C3;
  --faint: #6F7294;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --success: #4ADE9B;
  --warning: #FBBF4A;
  --danger: #FF6B7A;
  --info: #5BC2FF;
  --gradient: linear-gradient(135deg, #F43F93 0%, #A855F7 100%);
  --gradient-soft: linear-gradient(135deg, rgba(244, 63, 147, 0.16), rgba(168, 85, 247, 0.16));
  --glass: rgba(17, 19, 35, 0.78);
  --glass-strong: rgba(23, 26, 46, 0.97);
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
  --shadow: 0 14px 38px rgba(0, 0, 0, 0.42);
  --shadow-pop: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --glow: 0 10px 28px rgba(244, 63, 147, 0.32);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;
  --topbar: 64px;
  --bottombar: 66px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: dark; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6;
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background-image:
    radial-gradient(900px 520px at 85% -8%, rgba(155, 92, 246, 0.13), transparent 62%),
    radial-gradient(760px 460px at -5% 8%, rgba(244, 63, 147, 0.09), transparent 60%);
  background-repeat: no-repeat;
}
img, svg, video, canvas { max-width: 100%; display: block; }
a { color: var(--pink-soft); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 var(--space-3); line-height: 1.18; font-weight: 750; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 0.98rem; }
p { margin: 0 0 var(--space-4); }
ul, ol { margin: 0 0 var(--space-4); padding-left: 1.2rem; }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--space-5) 0; }
::selection { background: rgba(168, 85, 247, 0.45); }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--pink); color: #fff; padding: 8px 16px; border-radius: 10px; z-index: 300; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--space-4); }
.container-narrow { max-width: 760px; }
.container-form { max-width: 520px; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.center { text-align: center; }
.stack > * + * { margin-top: var(--space-4); }
.row { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; }
.row-between { justify-content: space-between; }
.grow { flex: 1 1 auto; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.desktop-only { display: inline-flex; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.025em; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; filter: drop-shadow(0 4px 10px rgba(244, 63, 147, 0.35)); }
.brand-short { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 14px;
  padding: 12px 20px; font: inherit; font-weight: 650; font-size: 0.95rem; line-height: 1.2; cursor: pointer; text-decoration: none;
  transition: transform 0.14s var(--ease), background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease, filter 0.18s ease;
  min-height: 46px; color: var(--text); background: transparent; -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: var(--glow); }
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 14px 34px rgba(244, 63, 147, 0.4); transform: translateY(-1px); }
.btn-secondary { background: var(--elevated); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--border-strong); background: var(--elevated-2); }
.btn-outline { border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--pink); color: var(--pink-soft); }
.btn-danger { background: rgba(255, 107, 122, 0.1); border-color: rgba(255, 107, 122, 0.4); color: var(--danger); }
.btn-danger:hover { background: rgba(255, 107, 122, 0.2); }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.btn-sm { padding: 8px 14px; min-height: 38px; font-size: 0.85rem; border-radius: 12px; }
.btn-lg { padding: 12px 24px; font-size: 1rem; min-height: 48px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-icon { width: 44px; min-height: 44px; padding: 0; border-radius: 50%; }
.btn[disabled], .btn.is-loading { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
.spinner { width: 1em; height: 1em; border: 2px solid rgba(255, 255, 255, 0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Forms ---------- */
.field { margin-bottom: var(--space-3); }
.field > label, .label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 7px; color: #DCDDF0; }
.required::after { content: " *"; color: var(--pink-soft); }
.hint { color: var(--muted); font-size: 0.82rem; margin-top: 6px; }
.input, .select, .textarea {
  width: 100%; background: var(--bg-2); color: var(--text); border: 1px solid var(--border-strong); border-radius: 12px; padding: 9px 12px;
  font: inherit; min-height: 42px; transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.input:hover, .select:hover, .textarea:hover { border-color: rgba(255, 255, 255, 0.26); }
.textarea { min-height: 96px; resize: vertical; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23A5A7C3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.select option { background: var(--card); color: var(--text); }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--purple); background: #0F1120; box-shadow: 0 0 0 4px rgba(155, 92, 246, 0.22); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(255, 107, 122, 0.15); }
.field-error { color: var(--danger); font-size: 0.85rem; margin-top: 6px; display: flex; gap: 6px; align-items: flex-start; }
.input-group { position: relative; }
.input-group .input { padding-right: 44px; }
.input-toggle { position: absolute; right: 3px; top: 3px; width: 36px; height: 36px; border: 0; background: transparent; color: var(--muted); border-radius: 10px; cursor: pointer; }
.input-toggle:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.field > label.check, .field > label.switch { display: flex; margin-bottom: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--pink); flex: none; }
.form-error { background: rgba(255, 107, 122, 0.1); border: 1px solid rgba(255, 107, 122, 0.38); color: #FFC8CE; border-radius: 14px; padding: 12px 14px; margin-bottom: var(--space-4); font-size: 0.92rem; }
.honeypot { position: absolute; left: -9999px; height: 0; width: 0; overflow: hidden; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.92rem; font-weight: 600; min-height: 46px; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { width: 44px; height: 26px; border-radius: 999px; background: var(--elevated-2); border: 1px solid var(--border-strong); position: relative; transition: background 0.2s ease, border-color 0.2s ease; flex: none; }
.switch-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 0.2s var(--ease); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); }
.switch input:checked + .switch-track { background: var(--gradient); border-color: transparent; }
.switch input:checked + .switch-track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--purple); outline-offset: 2px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }

/* ---------- Surfaces ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-5); box-shadow: var(--shadow-sm); min-width: 0; }
.card-flush { padding: 0; overflow: hidden; }
.card h3:first-child, .card h2:first-child { margin-top: 0; }
.card-title { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }
.card-title h2, .card-title h3 { margin: 0; font-size: 1.1rem; }
.card-premium { background: linear-gradient(160deg, rgba(244, 63, 147, 0.13), rgba(155, 92, 246, 0.13)), var(--card); border-color: rgba(244, 63, 147, 0.32); }
a.card:hover, a.metric:hover { text-decoration: none; border-color: var(--border-strong); }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.73rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; background: var(--elevated); color: var(--muted); border: 1px solid var(--border); white-space: nowrap; letter-spacing: 0.01em; }
.badge-success { color: var(--success); border-color: rgba(74, 222, 155, 0.35); background: rgba(74, 222, 155, 0.09); }
.badge-warning { color: var(--warning); border-color: rgba(251, 191, 74, 0.35); background: rgba(251, 191, 74, 0.09); }
.badge-danger { color: var(--danger); border-color: rgba(255, 107, 122, 0.35); background: rgba(255, 107, 122, 0.09); }
.badge-pink { color: var(--pink-soft); border-color: rgba(244, 63, 147, 0.4); background: rgba(244, 63, 147, 0.1); }
.verified-badge { color: var(--info); margin-left: 5px; font-size: 0.85em; }

.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--gradient); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; overflow: hidden; flex: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 72px; height: 72px; font-size: 1.6rem; }
.avatar-sm { width: 36px; height: 36px; font-size: 0.9rem; }

.progress { height: 8px; background: var(--elevated); border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--gradient); border-radius: 999px; transition: width 0.5s var(--ease); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 90; background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); border-bottom: 1px solid var(--border); }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--topbar); gap: var(--space-4); }
.nav-links { display: flex; align-items: center; gap: var(--space-5); }
.nav-links a { color: var(--muted); font-weight: 550; font-size: 0.94rem; transition: color 0.15s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: var(--space-2); }
.nav-toggle { display: none; }
.mobile-drawer { display: none; }

.app-nav { display: flex; gap: 2px; padding: 4px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); border-radius: 16px; }
.app-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; color: var(--muted); font-weight: 600; font-size: 0.9rem; position: relative; transition: color 0.15s ease, background 0.15s ease; }
.app-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); text-decoration: none; }
.app-nav a[aria-current="page"] { color: #fff; background: var(--elevated-2); box-shadow: inset 0 -2px 0 var(--pink); }
.app-nav a[aria-current="page"] i { color: var(--pink-soft); }
.count-dot { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--pink); color: #fff; font-size: 0.68rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--bg-2); }

.icon-btn { position: relative; width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); cursor: pointer; font-size: 1rem; transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease; }
.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.09); border-color: var(--border-strong); text-decoration: none; }
.icon-btn .count-dot { position: absolute; top: -4px; right: -4px; }
.icon-btn .dot { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 2px var(--bg-2), 0 0 10px rgba(244, 63, 147, 0.7); }

.menu { position: relative; }
.menu-trigger { display: inline-flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); color: var(--text); font: inherit; font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease; min-height: 42px; }
.menu-trigger:hover, .menu-trigger[aria-expanded="true"] { background: rgba(255, 255, 255, 0.09); border-color: var(--border-strong); }
.menu-trigger .avatar { width: 34px; height: 34px; font-size: 0.9rem; }
.menu-trigger .chev { font-size: 0.7rem; color: var(--muted); transition: transform 0.2s var(--ease); }
.menu-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }
.menu-name { max-width: 130px; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: 280px; background: var(--glass-strong); -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid var(--border-strong); border-radius: 20px; padding: 8px; box-shadow: var(--shadow-pop); z-index: 120; transform-origin: top right; animation: pop-in 0.18s var(--ease);
}
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px) scale(0.97); } to { opacity: 1; transform: none; } }
.menu-head { display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 4px; border-radius: 14px; background: var(--gradient-soft); border: 1px solid var(--border); }
.menu-head .avatar { width: 46px; height: 46px; }
.menu-head strong { display: block; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-head .badge { margin-top: 4px; }
.menu-head > div { min-width: 0; }
.menu-panel a, .menu-panel button { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 12px; background: none; border: 0; color: var(--text); font: inherit; font-size: 0.92rem; font-weight: 500; cursor: pointer; transition: background 0.14s ease; }
.menu-panel a i, .menu-panel button i { width: 20px; text-align: center; color: var(--muted); transition: color 0.14s ease; }
.menu-panel a:hover, .menu-panel button:hover, .menu-panel a:focus-visible, .menu-panel button:focus-visible { background: rgba(255, 255, 255, 0.07); text-decoration: none; outline: none; }
.menu-panel a:hover i, .menu-panel button:hover i { color: var(--pink-soft); }
.menu-panel .menu-danger:hover { background: rgba(255, 107, 122, 0.12); }
.menu-panel .menu-danger:hover i { color: var(--danger); }
.menu-sep { height: 1px; background: var(--border); margin: 6px 4px; }

/* ---------- Bottom nav ---------- */
.bottom-nav { display: none; }

/* ---------- Page scaffolding ---------- */
main { flex: 1 0 auto; min-width: 0; }
.page { padding: var(--space-6) 0 var(--space-8); }
.page-head { margin-bottom: var(--space-5); }
.page-head h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: 4px; }
.page-head p { color: var(--muted); }
.section { padding: var(--space-8) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.section-head { max-width: 640px; margin: 0 auto var(--space-6); text-align: center; }
.eyebrow { color: var(--pink-soft); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: var(--space-2); }

/* ---------- Public / marketing ---------- */
.hero { position: relative; padding: var(--space-8) 0 var(--space-7); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 620px; height: 620px; background: radial-gradient(circle, rgba(155, 92, 246, 0.26), transparent 65%); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: auto auto -30% -10%; width: 560px; height: 560px; background: radial-gradient(circle, rgba(244, 63, 147, 0.18), transparent 65%); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-7); align-items: center; }
.hero h1 { margin-bottom: var(--space-4); }
.hero-lead { font-size: 1.15rem; color: var(--muted); max-width: 520px; }
.hero-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; margin: var(--space-5) 0 var(--space-4); }
.hero-note { display: flex; gap: var(--space-4); flex-wrap: wrap; color: var(--muted); font-size: 0.88rem; }
.hero-note i { color: var(--success); margin-right: 6px; }
.hero-art { position: relative; min-height: 460px; display: flex; align-items: center; justify-content: center; }
.hero-heart { width: 210px; height: 210px; position: absolute; top: 4%; right: 6%; filter: drop-shadow(0 18px 30px rgba(244, 63, 147, 0.38)); animation: float 6s ease-in-out infinite; z-index: 2; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-12px) rotate(3deg); } }
.demo-card { position: relative; width: min(300px, 78%); background: var(--card); border: 1px solid var(--border-strong); border-radius: 28px; padding: 14px; box-shadow: var(--shadow); transform: rotate(-4deg); }
.demo-photo { aspect-ratio: 4 / 4.4; border-radius: 20px; background: linear-gradient(160deg, #3a2a5e, #7a3a78 55%, #c4467e); position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.demo-photo::before { content: ""; position: absolute; width: 96px; height: 96px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); top: 20%; left: 50%; transform: translateX(-50%); }
.demo-photo::after { content: ""; position: absolute; width: 190px; height: 130px; border-radius: 95px 95px 0 0; background: rgba(255, 255, 255, 0.13); bottom: -12px; left: 50%; transform: translateX(-50%); }
.demo-meta { padding: 12px 6px 4px; }
.demo-meta strong { font-size: 1.1rem; }
.demo-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.demo-actions { display: flex; justify-content: center; gap: 16px; margin-top: 12px; }
.demo-actions span { width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--elevated); border: 1px solid var(--border-strong); }
.demo-actions span:last-child { background: var(--gradient); border: 0; }
.demo-match { position: absolute; left: -2%; bottom: 8%; background: var(--glass-strong); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--border-strong); border-radius: 18px; padding: 12px 16px; box-shadow: var(--shadow); transform: rotate(3deg); z-index: 3; font-size: 0.9rem; max-width: 220px; }
.demo-match strong { display: block; color: var(--pink-soft); }

.feature { padding: var(--space-5); border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); transition: transform 0.2s var(--ease), border-color 0.2s ease; }
.feature:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.feature-icon { width: 48px; height: 48px; border-radius: 15px; background: var(--gradient-soft); border: 1px solid rgba(244, 63, 147, 0.25); color: var(--pink-soft); display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: var(--space-3); }
.step { display: flex; gap: var(--space-4); align-items: flex-start; }
.step-number { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--gradient); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; box-shadow: var(--glow); }
.plan-card { display: flex; flex-direction: column; gap: var(--space-3); position: relative; }
.plan-card.featured { border-color: rgba(244, 63, 147, 0.55); box-shadow: 0 0 0 1px rgba(244, 63, 147, 0.25), var(--shadow); }
.plan-price { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; }
.plan-price small { font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.plan-features { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.plan-features li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.93rem; }
.plan-features i { color: var(--success); margin-top: 5px; font-size: 0.8rem; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 4px 18px; margin-bottom: var(--space-3); transition: border-color 0.15s ease; }
.faq details[open] { border-color: var(--border-strong); }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "\f067"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--pink-soft); font-size: 0.8rem; }
.faq details[open] summary::after { content: "\f068"; }
.faq p { color: var(--muted); padding-bottom: 14px; }
.cta-band { background: var(--gradient); border-radius: var(--radius-lg); padding: var(--space-7) var(--space-5); text-align: center; box-shadow: var(--glow); }
.cta-band p { color: rgba(255, 255, 255, 0.92); }
.cta-band .btn { background: #fff; color: #7a2b6a; box-shadow: none; }
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { font-size: 1.3rem; margin-top: var(--space-6); }
.prose p, .prose li { color: #D3D5E8; }

.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: var(--space-7) 0 var(--space-5); margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--space-6); }
.footer-grid h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--text); font-size: 0.93rem; }
.footer-bottom { margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; color: var(--muted); font-size: 0.85rem; }

/* ---------- Auth & onboarding ---------- */
.auth-wrap { min-height: calc(100vh - var(--topbar)); min-height: calc(100dvh - var(--topbar)); display: flex; align-items: center; padding: var(--space-6) 0; }
.auth-card { width: 100%; background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%), var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow); }
.auth-card h1 { font-size: clamp(1.5rem, 4vw, 2rem); }
.stepper { display: flex; gap: var(--space-2); margin-bottom: var(--space-5); }
.stepper li { flex: 1; list-style: none; text-align: center; font-size: 0.76rem; color: var(--muted); font-weight: 600; }
.stepper ol, ol.stepper { padding: 0; }
.stepper .bar { height: 5px; border-radius: 999px; background: var(--elevated-2); margin-bottom: 7px; }
.stepper .done .bar, .stepper .current .bar { background: var(--gradient); }
.stepper .current { color: var(--text); }
.code-input { text-align: center; font-size: 1.8rem; letter-spacing: 0.5em; font-weight: 700; padding-left: 0.5em; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.02); color: var(--text); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 0.86rem; cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease; }
.chip:hover { border-color: var(--pink); }
.chip[aria-pressed="true"] { background: rgba(244, 63, 147, 0.18); border-color: var(--pink); color: #fff; }
.chip-static { cursor: default; }
.photo-drop { border: 2px dashed var(--border-strong); border-radius: var(--radius); padding: var(--space-5); text-align: center; color: var(--muted); cursor: pointer; background: var(--bg-2); display: block; transition: border-color 0.15s ease, background 0.15s ease; }
.photo-drop:hover { border-color: var(--pink); background: rgba(244, 63, 147, 0.05); }
.photo-preview { width: 100%; max-width: 240px; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); margin: 0 auto var(--space-3); border: 1px solid var(--border-strong); }
.photo-preview-cover { max-width: 100%; aspect-ratio: 16 / 7; }
.suggestions { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; gap: 8px; }
.suggestions button { width: 100%; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border-strong); background: var(--bg-2); color: var(--text); font: inherit; cursor: pointer; }
.suggestions button:hover, .suggestions button[aria-pressed="true"] { border-color: var(--pink); }

/* ---------- Dashboard & lists ---------- */
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-value { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.stat-label { color: var(--muted); font-size: 0.84rem; }
.dash-grid { display: grid; grid-template-columns: 2fr 1fr; gap: var(--space-4); align-items: start; }
.dash-main, .dash-side { display: grid; gap: var(--space-4); min-width: 0; }
.mini-profiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); }
.mini-profile { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--elevated); display: block; color: #fff; transition: transform 0.2s var(--ease); }
.mini-profile:hover { transform: translateY(-2px); text-decoration: none; }
.mini-profile { background: linear-gradient(160deg, #2a2350, #5a2d6e 60%, #8a3270); }
.mini-profile img { width: 100%; height: 100%; object-fit: cover; }
.mini-profile .photo-fallback { position: absolute; inset: 0 0 30% 0; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; font-weight: 800; color: rgba(255, 255, 255, 0.28); }
.mini-profile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 9px; background: linear-gradient(transparent, rgba(9, 10, 18, 0.85)); font-size: 0.84rem; font-weight: 650; }
.list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.list-item { display: flex; align-items: center; gap: var(--space-3); padding: 10px; border-radius: 14px; color: var(--text); transition: background 0.15s ease; }
.list-item:hover { background: rgba(255, 255, 255, 0.045); text-decoration: none; }
.list-item .grow { min-width: 0; }

/* ---------- Notices, empty states, skeletons ---------- */
.notice { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4); border-radius: 16px; background: rgba(155, 92, 246, 0.1); border: 1px solid rgba(155, 92, 246, 0.32); }
.notice i { margin-top: 4px; color: var(--purple); }
.notice-warning { background: rgba(251, 191, 74, 0.08); border-color: rgba(251, 191, 74, 0.35); }
.notice-warning i { color: var(--warning); }
.notice-danger { background: rgba(255, 107, 122, 0.08); border-color: rgba(255, 107, 122, 0.38); }
.notice-danger i { color: var(--danger); }
.notice-success { background: rgba(74, 222, 155, 0.08); border-color: rgba(74, 222, 155, 0.35); }
.notice-success i { color: var(--success); }

.empty { text-align: center; padding: var(--space-7) var(--space-4); color: var(--muted); max-width: 460px; margin-inline: auto; }
.empty > i { width: 68px; height: 68px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem; color: var(--pink-soft); background: var(--gradient-soft); border: 1px solid rgba(244, 63, 147, 0.25); margin-bottom: var(--space-4); }
.empty h3 { color: var(--text); font-size: 1.25rem; }
.empty p { max-width: 38ch; margin-inline: auto; }
.empty .btn { margin-top: var(--space-2); }
.empty-actions { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; margin-top: var(--space-2); }
.empty-art { width: 200px; height: 200px; margin: 0 auto var(--space-3); }
.empty-art svg { width: 100%; height: 100%; }
.skeleton { background: linear-gradient(90deg, var(--card) 25%, var(--elevated) 50%, var(--card) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }
.skeleton-card { aspect-ratio: 3 / 4.7; border: 1px solid var(--border); }

/* ---------- Discover ---------- */
.discover-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-4); }
.discover-head h1 { margin-bottom: 6px; font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.nearby { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.92rem; }
.nearby .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(74, 222, 155, 0.6); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(74, 222, 155, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 155, 0); } }
.nearby strong { color: var(--text); font-weight: 750; }
.head-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: center; }
.filters { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-5); align-items: center; padding: 10px 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-radius: 18px; }
.filters .field { margin: 0; min-width: 0; }
.filter-select { position: relative; display: flex; align-items: center; gap: 10px; flex: 0 1 280px; }
.filter-select label { font-size: 0.78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; margin: 0; }
.filter-select .select { min-height: 42px; padding-top: 8px; padding-bottom: 8px; border-radius: 12px; }
.filters .filter-link { margin-left: auto; }

.discover-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--space-4); }
.profile-card { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: opacity 0.25s ease, transform 0.25s var(--ease), border-color 0.2s ease, box-shadow 0.2s ease; }
.profile-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.profile-card.is-leaving { opacity: 0; transform: scale(0.94) translateY(8px); }
.profile-card-photo { position: relative; aspect-ratio: 4 / 4.8; background: linear-gradient(160deg, #2a2350, #5a2d6e 60%, #8a3270); display: block; overflow: hidden; color: #fff; }
.profile-card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.profile-card:hover .profile-card-photo img { transform: scale(1.04); }
.profile-card-photo:hover { text-decoration: none; }
.profile-card-photo .photo-fallback { position: absolute; inset: 0 0 38% 0; display: flex; align-items: center; justify-content: center; font-size: 4rem; font-weight: 800; color: rgba(255, 255, 255, 0.28); }
.profile-card-photo::after { content: ""; position: absolute; inset: 40% 0 0 0; background: linear-gradient(to top, rgba(9, 10, 18, 0.92) 0%, rgba(9, 10, 18, 0.55) 45%, transparent 100%); pointer-events: none; }
.profile-card-photo .badge { position: absolute; top: 12px; left: 12px; z-index: 2; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); background: rgba(9, 10, 18, 0.6); }
.profile-card-overlay { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.profile-card-overlay h3 { margin: 0; font-size: 1.28rem; letter-spacing: -0.02em; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5); }
.profile-card-overlay .where { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; color: rgba(248, 247, 255, 0.86); }
.profile-card-body { padding: var(--space-4) var(--space-4) var(--space-2); display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.profile-card-body h3 { margin: 0; font-size: 1.1rem; }
.profile-card-body p { overflow-wrap: anywhere; }
.profile-card-body .chips .badge { background: rgba(155, 92, 246, 0.1); border-color: rgba(155, 92, 246, 0.25); color: #D8C6FF; }
.profile-card-actions { display: flex; gap: var(--space-3); padding: var(--space-3) var(--space-4) var(--space-4); justify-content: center; }
.profile-card-actions .btn { flex: 1; }
.profile-card-actions .btn-icon { flex: 0 0 48px; width: 48px; }
.profile-card-actions .btn-round { flex: 0 0 auto; width: 58px; height: 58px; min-height: 58px; padding: 0; border-radius: 50%; font-size: 1.25rem; }
.profile-card-actions .btn-round.btn-secondary { color: var(--muted); }
.profile-card-actions .btn-round.btn-secondary:hover { color: var(--danger); border-color: rgba(255, 107, 122, 0.5); }
.profile-card-actions .btn-round.btn-primary:hover { transform: translateY(-2px) scale(1.04); }
.profile-card-actions.has-two { justify-content: center; gap: var(--space-5); }

.discover-state { min-height: 120px; }

.profile-hero { border-radius: var(--radius-lg); overflow: hidden; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.profile-cover { height: 210px; background: var(--gradient); position: relative; }
.profile-cover img { width: 100%; height: 100%; object-fit: cover; }
.profile-main { padding: 0 var(--space-5) var(--space-5); }
.profile-photo { width: 132px; height: 132px; border-radius: 50%; border: 5px solid var(--card); margin-top: -66px; position: relative; background: var(--elevated); object-fit: cover; box-shadow: var(--shadow); }
.theme-rose .profile-cover { background: linear-gradient(135deg, #F43F93, #9B5CF6); }
.theme-aurora .profile-cover { background: linear-gradient(135deg, #22d3a6, #6d8bff); }
.theme-midnight .profile-cover { background: linear-gradient(135deg, #1b2450, #5b3fa8); }
.theme-sunset .profile-cover { background: linear-gradient(135deg, #ff8a4f, #F43F93); }
.theme-ocean .profile-cover { background: linear-gradient(135deg, #2bb3ff, #3b5bff); }

/* ---------- Messages ---------- */
.inbox { display: grid; grid-template-columns: 350px 1fr; gap: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; height: calc(100vh - var(--topbar) - 96px); height: calc(100dvh - var(--topbar) - 96px); min-height: 460px; box-shadow: var(--shadow-sm); }
.inbox-list { border-right: 1px solid var(--border); overflow-y: auto; background: rgba(0, 0, 0, 0.1); min-width: 0; }
.inbox-item { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--text); position: relative; transition: background 0.15s ease; }
.inbox-item:hover { background: rgba(255, 255, 255, 0.04); text-decoration: none; }
.inbox-item.active { background: var(--elevated); }
.inbox-item.active::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 4px 4px 0; background: var(--gradient); }
.inbox-item .preview { color: var(--muted); font-size: 0.85rem; }
.thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.thread-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); }
.thread-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; }
.bubble { max-width: min(78%, 480px); padding: 10px 14px; border-radius: 20px 20px 20px 6px; background: var(--elevated); align-self: flex-start; overflow-wrap: anywhere; white-space: pre-wrap; }
.bubble.mine { align-self: flex-end; background: var(--gradient); color: #fff; border-radius: 20px 20px 6px 20px; }
.bubble time { display: block; font-size: 0.7rem; opacity: 0.7; margin-top: 4px; }
.bubble.failed { outline: 2px solid var(--danger); }
.bubble.sending { opacity: 0.65; }
.thread-compose { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--border); align-items: flex-end; background: rgba(255, 255, 255, 0.02); }
.thread-compose .textarea { min-height: 46px; max-height: 140px; resize: none; border-radius: 22px; padding: 11px 18px; }
.back-link { display: none; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); -webkit-overflow-scrolling: touch; }
table.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th { text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--bg-2); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; height: 56px; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.pager { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); margin-top: var(--space-4); flex-wrap: wrap; color: var(--muted); font-size: 0.88rem; }

/* ---------- Toasts & modals ---------- */
.toast-region { position: fixed; z-index: 400; right: 16px; top: calc(var(--topbar) + 12px); display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--glass-strong); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--border-strong); box-shadow: var(--shadow-pop); animation: toast-in 0.28s var(--ease); font-size: 0.93rem; }
.toast i { margin-top: 3px; }
.toast-success { border-color: rgba(74, 222, 155, 0.45); }
.toast-success i { color: var(--success); }
.toast-error { border-color: rgba(255, 107, 122, 0.5); }
.toast-error i { color: var(--danger); }
.toast-info i { color: var(--purple); }
.toast button { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0 0 0 8px; font-size: 1.1rem; line-height: 1; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px) scale(0.98); } to { opacity: 1; transform: none; } }

.modal-backdrop { position: fixed; inset: 0; background: rgba(5, 6, 12, 0.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); z-index: 300; display: flex; align-items: center; justify-content: center; padding: var(--space-4); overflow-y: auto; animation: fade-in 0.18s ease; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal { width: min(500px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--card); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-pop); animation: modal-in 0.24s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }
.modal h2 { font-size: 1.3rem; }
.modal-actions { display: flex; justify-content: flex-end; gap: var(--space-3); margin-top: var(--space-4); flex-wrap: wrap; }
.modal-actions.is-centered { justify-content: center; }
.modal-logo { width: 96px; height: 96px; margin: 0 auto 12px; filter: drop-shadow(0 10px 24px rgba(244, 63, 147, 0.45)); }

/* ---------- Verification & media ---------- */
.camera-box { position: relative; background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; max-width: 420px; margin: 0 auto; }
.camera-box video, .camera-box canvas, .camera-box img { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.camera-box .overlay-guide { position: absolute; inset: 12% 18%; border: 2px dashed rgba(255, 255, 255, 0.55); border-radius: 50%; pointer-events: none; }
.challenge { background: var(--gradient-soft); border: 1px solid rgba(244, 63, 147, 0.4); border-radius: 16px; padding: 12px 16px; text-align: center; font-weight: 700; }
.crop-stage { position: relative; width: min(100%, 360px); margin: 0 auto; background: #000; border-radius: 16px; overflow: hidden; touch-action: none; cursor: grab; }
.crop-stage canvas { width: 100%; display: block; }

/* ---------- Admin ---------- */
.admin-shell { display: grid; grid-template-columns: 262px 1fr; min-height: 100vh; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; background: var(--bg-2); border-right: 1px solid var(--border); padding: var(--space-4); }
.admin-brand { padding: 4px 8px var(--space-4); border-bottom: 1px solid var(--border); margin-bottom: var(--space-3); }
.admin-brand small { display: block; color: var(--pink-soft); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.66rem; margin-top: 2px; }
.admin-group { margin-bottom: var(--space-4); }
.admin-group h4 { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--faint); padding: 0 10px; margin-bottom: 6px; }
.admin-group a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; color: var(--muted); font-size: 0.9rem; font-weight: 500; transition: background 0.15s ease, color 0.15s ease; }
.admin-group a:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); text-decoration: none; }
.admin-group a[aria-current="page"] { background: var(--elevated); color: var(--text); box-shadow: inset 3px 0 0 var(--pink); }
.admin-group a i { width: 18px; text-align: center; }
.admin-scrim { display: none; }
.admin-main { min-width: 0; display: flex; flex-direction: column; }
.admin-topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: var(--space-3); height: var(--topbar); padding: 0 var(--space-5); background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.admin-topbar h1 { font-size: 1.1rem; margin: 0; letter-spacing: -0.015em; }
.admin-content { padding: var(--space-5); flex: 1; min-width: 0; }
.admin-menu-button { display: none; }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--space-4); margin-bottom: var(--space-5); }
.metric { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-4); box-shadow: var(--shadow-sm); transition: border-color 0.15s ease; min-width: 0; }
.metric .stat-value { font-size: 1.6rem; }
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-4); align-items: start; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 10px 16px; font-size: 0.92rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: var(--space-3); }
.photo-tile { background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.photo-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.photo-tile div { padding: 10px; font-size: 0.82rem; }
.status-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; background: var(--muted); }
.status-ok { background: var(--success); box-shadow: 0 0 8px rgba(74, 222, 155, 0.5); }
.status-warn { background: var(--warning); }
.status-error { background: var(--danger); }
.matrix { font-size: 0.82rem; }
.matrix td, .matrix th { text-align: center; }
.matrix td:first-child, .matrix th:first-child { text-align: left; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: var(--space-4); flex-wrap: wrap; }
.tabs a { padding: 10px 16px; color: var(--muted); border-bottom: 2px solid transparent; font-weight: 600; }
.tabs a[aria-current="page"] { color: var(--text); border-color: var(--pink); }
.tabs a:hover { text-decoration: none; color: var(--text); }
.code-block { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.88rem; overflow-wrap: anywhere; user-select: all; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions, .hero-note { justify-content: center; }
  .hero-art { min-height: 400px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid, .split { grid-template-columns: 1fr; }
  .app-nav a span.label { display: none; }
  .app-nav a { padding: 9px 14px; }
  .inbox { grid-template-columns: 300px 1fr; }
}

@media (max-width: 820px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: fixed; z-index: 220; inset: 0 auto 0 0; width: min(300px, 86vw); transform: translateX(-100%); transition: transform 0.24s var(--ease); }
  .admin-sidebar.open { transform: none; box-shadow: var(--shadow-pop); }
  .admin-sidebar.open ~ .admin-scrim { display: block; position: fixed; inset: 0; z-index: 210; background: rgba(5, 6, 12, 0.6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
  .admin-menu-button { display: inline-flex; }
  .admin-topbar { padding: 0 var(--space-4); }
  .admin-content { padding: var(--space-4); }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 10px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
  .metric { padding: var(--space-3); }
  .metric .stat-value { font-size: 1.35rem; }
}

@media (max-width: 760px) {
  :root { --topbar: 58px; }
  .brand-full { display: none; }
  .brand-short { display: inline; }
  .brand img { width: 32px; height: 32px; }
  .nav-links, .desktop-only { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-drawer { display: block; border-top: 1px solid var(--border); background: var(--bg-2); padding: var(--space-3) var(--space-4) var(--space-4); }
  .mobile-drawer a { display: block; padding: 13px 4px; color: var(--text); border-bottom: 1px solid var(--border); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: var(--space-7) 0; }
  .hero { padding: var(--space-6) 0; }
  .hero-heart { width: 130px; height: 130px; right: 2%; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .auth-card { padding: var(--space-5) var(--space-4); }
  .card { padding: var(--space-4); border-radius: 16px; }

  .menu-trigger { padding: 3px; gap: 0; }
  .menu-trigger .chev, .menu-trigger .menu-name { display: none; }
  .menu-panel { position: fixed; left: var(--space-3); right: var(--space-3); top: calc(var(--topbar) + 8px); width: auto; max-height: calc(100vh - var(--topbar) - var(--bottombar) - 28px); max-height: calc(100dvh - var(--topbar) - var(--bottombar) - 28px - var(--safe-bottom)); overflow-y: auto; transform-origin: top center; }
  .menu-panel a, .menu-panel button { padding: 12px; }

  .app-nav { display: none; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    height: calc(var(--bottombar) + var(--safe-bottom)); padding: 0 6px var(--safe-bottom);
    background: var(--glass-strong); -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%); border-top: 1px solid var(--border);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
  }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 0.68rem; color: var(--muted); position: relative; font-weight: 650; letter-spacing: 0.01em; -webkit-tap-highlight-color: transparent; min-width: 0; transition: color 0.15s ease; }
  .bottom-nav a:hover { text-decoration: none; }
  .bn-icon { width: 46px; height: 28px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.08rem; transition: background 0.22s var(--ease), transform 0.22s var(--ease); position: relative; }
  .bottom-nav a:active .bn-icon { transform: scale(0.92); }
  .bottom-nav a[aria-current="page"] { color: var(--text); }
  .bottom-nav a[aria-current="page"] .bn-icon { background: var(--gradient-soft); box-shadow: inset 0 0 0 1px rgba(244, 63, 147, 0.3); }
  .bottom-nav a[aria-current="page"] .bn-icon i { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .bottom-nav a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 50%; width: 22px; height: 3px; margin-left: -11px; border-radius: 0 0 4px 4px; background: var(--gradient); box-shadow: 0 2px 10px rgba(244, 63, 147, 0.6); }
  .bottom-nav .count-dot { position: absolute; top: -5px; right: -2px; box-shadow: 0 0 0 2px var(--bg-2); }
  body.has-bottom-nav { padding-bottom: calc(var(--bottombar) + var(--safe-bottom)); }
  body.has-bottom-nav .toast-region { top: calc(var(--topbar) + 8px); }

  .page { padding: var(--space-5) 0 var(--space-7); }
  .mini-profiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inbox { grid-template-columns: 1fr; height: calc(100vh - var(--topbar) - var(--bottombar) - var(--safe-bottom) - 24px); height: calc(100dvh - var(--topbar) - var(--bottombar) - var(--safe-bottom) - 24px); border-radius: 18px; }
  .inbox.has-thread .inbox-list { display: none; }
  .inbox:not(.has-thread) .thread { display: none; }
  .back-link { display: inline-flex; }
  .toast-region { left: 16px; right: 16px; width: auto; }
  .profile-cover { height: 150px; }
  .table td, .table th { padding: 10px; }
  .discover-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--space-3); }
  .modal-actions .btn { flex: 1; }
  .modal-backdrop { align-items: flex-end; padding: 0; }
  .modal { width: 100%; border-radius: 24px 24px 0 0; padding-bottom: calc(var(--space-5) + var(--safe-bottom)); animation: sheet-in 0.28s var(--ease); }
  @keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

  .discover-head { align-items: flex-start; }
  .filters { padding: 10px; gap: var(--space-2); }
  .filter-select { flex: 1 1 100%; }
  .filters .filter-link { margin-left: 0; }
  .profile-card-photo { aspect-ratio: 3 / 4; }
  .profile-card-overlay { padding: 12px; }
  .profile-card-overlay h3 { font-size: 1.05rem; }
  .profile-card-body { padding: var(--space-3) var(--space-3) var(--space-1); }
  .profile-card-actions { padding: var(--space-2) var(--space-3) var(--space-3); gap: var(--space-3); }
  .profile-card-actions .btn-icon { flex: 0 0 48px; width: 48px; }
.profile-card-actions .btn-round { width: 52px; height: 52px; min-height: 52px; }
}

@media (max-width: 400px) {
  .container { padding: 0 14px; }
  .discover-grid { grid-template-columns: minmax(0, 1fr); }
  .profile-card-photo { aspect-ratio: 4 / 4.6; }
  .head-actions .btn { flex: 1 1 auto; }
  h1 { font-size: 1.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* =========================================================================
   Flat surfaces, notifications panel, album, home feed, comments
   (member area is flat: spacing and hairlines instead of boxes; admin keeps its boxed cards)
   ========================================================================= */
.card { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: var(--space-4) 0; }
.card-flush { padding: 0; }
.card-premium { background: var(--gradient-soft); border: 1px solid rgba(244, 63, 147, 0.32); border-radius: var(--radius); padding: var(--space-4); }
.dash-grid { gap: var(--space-6); }
.dash-main, .dash-side { gap: 0; }
.dash-main > * + *, .dash-side > * + * { border-top: 1px solid var(--border); margin-top: var(--space-3); padding-top: var(--space-3); }
.dash-side > .card-premium { border-top: 1px solid rgba(244, 63, 147, 0.32); margin-top: var(--space-4); padding-top: var(--space-4); }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-bottom: var(--space-3); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.metric { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: var(--space-4) var(--space-4) var(--space-4) 0; }
.metric + .metric { border-left: 1px solid var(--border); padding-left: var(--space-4); }
a.card:hover, a.metric:hover { border-color: var(--border); }
.auth-card { background: transparent; border: 0; box-shadow: none; padding: var(--space-5) 0; }
.profile-hero { background: transparent; border: 0; box-shadow: none; }
.profile-main { padding-left: 0; padding-right: 0; }
.profile-photo { border-color: var(--bg); }
.filters { background: transparent; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 10px 0; }
.faq details { background: transparent; border-width: 0 0 1px; border-radius: 0; padding: 4px 0; }
.list-item { border-radius: 0; padding: 12px 0; border-bottom: 1px solid var(--border); }
.list-item:hover { background: transparent; }
.list > .list-item:last-child { border-bottom: 0; }
.album-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: var(--space-3); font-weight: 650; font-size: 0.9rem; color: var(--pink-soft); }
.album-link { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: var(--space-3) 0; margin-bottom: var(--space-3); border-bottom: 1px solid var(--border); color: var(--text); font-weight: 650; }
.album-link:hover { text-decoration: none; }
.badge-purple { color: #D5BCFF; border-color: rgba(155, 92, 246, 0.4); background: rgba(155, 92, 246, 0.14); }

.admin-shell .card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-5); box-shadow: var(--shadow-sm); }
.admin-shell .card-premium { background: var(--gradient-soft); }
.admin-shell .metric { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-4); box-shadow: var(--shadow-sm); }
.admin-shell .metric + .metric { padding-left: var(--space-4); }
.admin-shell .metric-grid { gap: var(--space-4); border: 0; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.admin-shell .list-item { padding: 10px; border-bottom: 0; border-radius: 14px; }

/* ---------- Tabs ---------- */
.tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: var(--space-4); }
.tabs a { flex: 0 1 auto; min-height: 46px; padding: 0 var(--space-5); display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 650; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--pink); }
.tab-count { font-size: 0.78rem; color: var(--faint); font-weight: 600; }
.tabs a[aria-current="page"] .tab-count { color: var(--pink-soft); }
.nearby-intro { margin: 0 0 var(--space-4); font-size: 0.92rem; }
.nearby-card { text-decoration: none; }
.nearby-card .profile-card-photo { aspect-ratio: 4 / 5; }
.rel-chip { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 4px 11px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; color: #fff; }
.rel-matched { background: #7A33D1; }
.rel-likedyou { background: #D61F73; }
.rel-youliked { background: rgba(9, 10, 18, 0.78); color: #D6D7EA; }

/* ---------- Notifications ---------- */
.bell-count { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: #D61F73; color: #fff; font-size: 0.68rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--bg-2); }
.notif-scrim { position: fixed; inset: 0; z-index: 110; background: rgba(9, 10, 18, 0.6); }
.notif-panel { position: fixed; z-index: 120; top: calc(var(--topbar) + 8px); right: 16px; width: min(420px, calc(100vw - 32px)); max-height: min(640px, calc(100vh - var(--topbar) - 24px)); display: flex; flex-direction: column; background: var(--glass-strong); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid var(--border-strong); border-radius: 22px; box-shadow: var(--shadow-pop); overflow: hidden; }
.notif-panel-handle { display: none; }
.notif-panel-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: 18px 20px 4px; }
.notif-panel-head h2 { margin: 0; font-size: 1.25rem; }
.notif-link { border: 0; background: none; padding: 8px 0; min-height: 44px; color: var(--pink-soft); font: inherit; font-size: 0.9rem; font-weight: 650; cursor: pointer; }
.notif-filters { display: flex; gap: 8px; padding: 4px 20px 12px; flex-wrap: wrap; }
.notif-filters .chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.notif-panel-list { flex: 1; min-height: 120px; overflow-y: auto; border-top: 1px solid var(--border); overscroll-behavior: contain; }
.notif-all { display: block; padding: 14px 20px; text-align: center; font-weight: 650; font-size: 0.9rem; border-top: 1px solid var(--border); }
.notif-group { margin: 0; padding: 14px 20px 6px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); font-weight: 700; }
.notif-row { display: flex; align-items: center; gap: 14px; padding: 12px 20px; color: var(--text); position: relative; }
.notif-row:hover { background: rgba(255, 255, 255, 0.04); text-decoration: none; }
.notif-row.is-unread { background: rgba(244, 63, 147, 0.08); }
.notif-avatar { position: relative; width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--gradient); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.notif-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.notif-avatar.notif-system { background: rgba(74, 222, 155, 0.14); color: var(--success); font-size: 1.1rem; }
.notif-badge { position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--glass-strong); background: #D61F73; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 0.55rem; }
.notif-photo_comment, .notif-message { background: #8B3FE0; }
.notif-match { background: #7A33D1; }
.notif-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.notif-title { font-size: 0.92rem; line-height: 1.4; font-weight: 600; }
.notif-body { font-size: 0.86rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-time { font-size: 0.78rem; color: var(--muted); }
.notif-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pink); flex: none; }
.notif-empty { padding: var(--space-6) 20px; text-align: center; color: var(--muted); }
.notif-list .notif-row { padding-left: 0; padding-right: 0; }
.notif-list .notif-group { padding-left: 0; }
.notif-list .notif-row.is-unread { background: transparent; }
body.notif-open { overflow: hidden; }

/* ---------- Home feed ---------- */
.container-feed { max-width: 520px; }
.post { padding-bottom: var(--space-4); margin-bottom: var(--space-4); border-bottom: 1px solid var(--border); }
.post-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 56px; }
.post-who { display: flex; align-items: center; gap: 12px; color: var(--text); min-width: 0; }
.post-who:hover { text-decoration: none; }
.post-name { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.post-name small { color: var(--muted); font-size: 0.8rem; }
.post-photo { display: block; position: relative; border-radius: 20px; overflow: hidden; background: linear-gradient(160deg, #2a2350, #5a2d6e 60%, #8a3270); aspect-ratio: 4 / 5; }
.post-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-photo .photo-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 5rem; font-weight: 800; color: rgba(255, 255, 255, 0.25); }
.post-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; color: #fff; font-size: 0.95rem; background: linear-gradient(transparent, rgba(9, 10, 18, 0.78)); }
.post-actions { display: flex; align-items: center; gap: 4px; min-height: 56px; }
.post-act { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 10px; border: 0; background: none; color: var(--text); font: inherit; font-weight: 650; font-size: 0.92rem; cursor: pointer; border-radius: 12px; }
.post-act i { font-size: 1.35rem; }
.post-act.is-on { color: var(--pink-soft); }
.post-act.is-on i { color: var(--pink); }
.post-act:hover { background: rgba(255, 255, 255, 0.05); }
.post-more { border: 0; background: none; padding: 4px 0 0; color: var(--muted); font: inherit; font-size: 0.88rem; cursor: pointer; }
.feed-more { text-align: center; padding: var(--space-3) 0 var(--space-5); }

/* ---------- Album ---------- */
.album-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: var(--space-4) 0 var(--space-5); }
.album-item { position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: var(--elevated); }
.album-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.album-pos { position: absolute; top: 6px; left: 6px; min-width: 24px; height: 24px; padding: 0 8px; border-radius: 999px; background: rgba(9, 10, 18, 0.78); color: #fff; font-size: 0.72rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.album-move { position: absolute; top: 4px; right: 4px; display: flex; gap: 4px; flex-direction: column; }
.album-icon { width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(9, 10, 18, 0.78); color: #fff; cursor: pointer; font-size: 0.75rem; display: inline-flex; align-items: center; justify-content: center; }
.album-icon:disabled { opacity: 0.35; cursor: default; }
.album-delete:hover { background: #B3263A; }
.album-feed { position: absolute; left: 6px; right: 6px; bottom: 6px; height: 32px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(9, 10, 18, 0.82); color: #D6D7EA; font: inherit; font-size: 0.74rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.album-feed.is-on { background: #D61F73; border-color: transparent; color: #fff; }
.album-add { aspect-ratio: 3 / 4; border-radius: 14px; border: 1.5px dashed var(--border-strong); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--text); font-weight: 650; font-size: 0.85rem; cursor: pointer; }
.album-add i { color: var(--pink-soft); font-size: 1.4rem; }
.album-add:hover { border-color: var(--pink); }
.album-view { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-bottom: var(--space-4); }
.album-tile { position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--elevated); cursor: pointer; }
.album-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s var(--ease); }
.album-tile:hover img { transform: scale(1.05); }
.album-total { font-size: 0.9rem; font-weight: 500; }
.setting-rows { border-top: 1px solid var(--border); }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) 0; border-bottom: 1px solid var(--border); }
.setting-row .switch { min-height: 0; flex: none; }

/* ---------- Comment sheet and photo viewer ---------- */
body.sheet-open { overflow: hidden; }
.sheet-scrim { position: fixed; inset: 0; z-index: 130; background: rgba(9, 10, 18, 0.65); }
.sheet { position: fixed; z-index: 140; left: 50%; bottom: 0; transform: translateX(-50%); width: min(520px, 100vw); height: min(640px, 82vh); display: flex; flex-direction: column; background: #141728; border: 1px solid var(--border-strong); border-bottom: 0; border-radius: 24px 24px 0 0; padding-bottom: var(--safe-bottom); }
.sheet-handle { width: 40px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.25); margin: 10px auto 4px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 16px 8px; }
.sheet-head h2 { margin: 0; font-size: 1.1rem; }
.sheet-list { flex: 1; overflow-y: auto; padding: 14px 16px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 18px; overscroll-behavior: contain; }
.comment { display: flex; gap: 12px; }
.comment-body { flex: 1; min-width: 0; }
.comment-head { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; flex-wrap: wrap; }
.comment-head .muted { color: var(--faint); }
.comment-text { margin: 2px 0 0; font-size: 0.94rem; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-wrap; }
.comment-note { margin: 4px 0 0; font-size: 0.8rem; color: var(--warning); }
.comment-actions { display: flex; gap: 16px; }
.comment-link { border: 0; background: none; padding: 6px 0; color: var(--faint); font: inherit; font-size: 0.8rem; cursor: pointer; }
.comment-link:hover { color: var(--text); }
.comment-empty { text-align: center; color: var(--muted); padding: var(--space-5) var(--space-4); }
.sheet-compose { padding: 12px 16px 16px; border-top: 1px solid var(--border); }
.sheet-field { display: flex; gap: 10px; align-items: center; }
.sheet-field .input { border-radius: 999px; }
.sheet-field .input.is-invalid { border-color: var(--danger); }
.sheet-field .btn-icon { flex: none; width: 46px; height: 46px; border-radius: 50%; padding: 0; }
.sheet-error { margin-top: 10px; font-size: 0.86rem; line-height: 1.4; color: #FF8E9A; }
.lightbox { position: fixed; inset: 0; z-index: 135; background: rgba(5, 6, 12, 0.94); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-3); padding: 64px 16px 24px; }
.lightbox-close { position: absolute; top: 14px; right: 14px; }
.lightbox-img { max-width: min(100%, 720px); max-height: calc(100vh - 220px); max-height: calc(100dvh - 220px); object-fit: contain; border-radius: 16px; }
.lightbox-bar { width: min(100%, 720px); }
.lightbox-caption { margin: 0; font-size: 0.95rem; }
.lightbox .post-actions { min-height: 48px; }

/* ---------- Forms: address ---------- */
.privacy-note { display: flex; gap: 12px; align-items: flex-start; margin-bottom: var(--space-4); color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.privacy-note i { color: #B58AF8; margin-top: 3px; }
.stack-fields .field + .field { margin-top: 0; }
.input-readonly { background: var(--card); color: var(--muted); }

/* ---------- Admin comment filter ---------- */
.admin-lead { max-width: 680px; margin-top: 0; }
.filter-layout { display: flex; gap: var(--space-6); align-items: flex-start; flex-wrap: wrap; }
.filter-main { flex: 2 1 520px; min-width: 0; }
.filter-side { flex: 1 1 300px; min-width: 0; }
.filter-add { display: flex; gap: var(--space-3); align-items: flex-end; flex-wrap: wrap; padding-bottom: var(--space-4); border-bottom: 1px solid var(--border); margin-bottom: var(--space-4); }
.filter-add .field { margin: 0; }
.filter-add .grow { flex: 1 1 200px; }
.filter-side h2 { font-size: 1.05rem; margin-top: 0; }
.test-result { margin-top: var(--space-3); padding: 12px 14px; border-radius: 12px; font-size: 0.9rem; line-height: 1.45; }
.test-block { background: rgba(255, 107, 122, 0.1); border: 1px solid rgba(255, 107, 122, 0.35); color: #FFB3BB; }
.test-hold { background: rgba(251, 191, 74, 0.1); border: 1px solid rgba(251, 191, 74, 0.35); color: #FBD58B; }
.test-allow { background: rgba(74, 222, 155, 0.08); border: 1px solid rgba(74, 222, 155, 0.35); color: #A7F0CE; }
.filter-side .setting-rows { margin-top: var(--space-5); }
.masked-word { display: inline-flex; align-items: center; gap: 12px; letter-spacing: 0.1em; }
.table-actions { text-align: right; white-space: nowrap; }
.held-body { max-width: 360px; overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .card { padding: var(--space-4) 0; border-radius: 0; }
  .admin-shell .card { padding: var(--space-4); border-radius: 16px; }
  .dash-grid { gap: 0; }
  .dash-side > * { margin-top: var(--space-3); }
  .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-shell .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric { padding: var(--space-3) var(--space-2) var(--space-3) 0; }
  .metric + .metric { padding-left: var(--space-3); }
  .tabs a { flex: 1; justify-content: center; padding: 0 var(--space-3); }
  .notif-panel { top: 72px; left: 0; right: 0; bottom: 0; width: auto; max-height: none; border-radius: 24px 24px 0 0; border-bottom: 0; }
  .notif-panel-handle { display: block; width: 40px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.25); margin: 10px auto 0; }
  .notif-all { padding-bottom: calc(14px + var(--safe-bottom)); }
  .sheet { width: 100vw; height: 78vh; }
  .filter-layout { gap: var(--space-5); }
}

/* ---------- One-time code boxes ---------- */
.otp-card { text-align: center; }
.otp-title { margin: var(--space-2) 0 var(--space-2); font-size: clamp(1.8rem, 6vw, 2.2rem); }
.otp-lead { color: var(--muted); margin: 0 0 var(--space-5); line-height: 1.5; overflow-wrap: anywhere; }
.otp-lead strong { color: var(--text); }
.otp { display: flex; justify-content: center; gap: 8px; margin-bottom: var(--space-3); }
.otp-box { flex: 1 1 0; min-width: 0; max-width: 56px; height: 58px; padding: 0; text-align: center; font: inherit; font-size: 1.5rem; font-weight: 700; color: var(--text); background: var(--elevated); border: 1.5px solid var(--border-strong); border-radius: 16px; caret-color: var(--pink); transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, transform 0.15s ease; }
.otp-box::placeholder { color: rgba(165, 167, 195, 0.4); font-size: 1.2rem; }
.otp-box:focus { outline: none; border-color: var(--purple); background: var(--card); box-shadow: 0 0 0 4px rgba(155, 92, 246, 0.22); transform: translateY(-1px); }
.otp-box.is-filled { border-color: rgba(244, 63, 147, 0.55); }
.otp.is-invalid .otp-box { border-color: var(--danger); animation: otp-shake 0.35s; }
@keyframes otp-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.otp-field .field-error { justify-content: center; }
.otp-resend { margin: var(--space-4) 0 var(--space-2); min-height: 40px; display: flex; align-items: center; justify-content: center; }
.otp-timer { margin: 0; color: var(--muted); font-weight: 600; font-size: 0.92rem; }
.otp-timer strong { color: var(--pink-soft); font-variant-numeric: tabular-nums; }
.otp-resend-btn { border: 0; background: none; color: var(--pink-soft); font: inherit; font-weight: 700; font-size: 0.95rem; cursor: pointer; padding: 10px 14px; border-radius: 12px; }
.otp-resend-btn:hover { background: rgba(255, 255, 255, 0.05); }
.otp-resend-btn[disabled] { opacity: 0.5; cursor: default; }
.otp-help { display: flex; gap: 10px; align-items: flex-start; text-align: left; margin: var(--space-3) 0 0; padding-top: var(--space-3); border-top: 1px solid var(--border); color: var(--muted); font-size: 0.88rem; line-height: 1.5; }
.otp-help i { color: #B58AF8; margin-top: 3px; }
.otp-help strong { color: var(--text); }
@media (max-width: 400px) { .otp { gap: 6px; } .otp-box { height: 52px; font-size: 1.35rem; border-radius: 14px; } }
