/* ==========================================================================
   WATOKO application styles
   Palette: indigo/violet primary, coral + mint accents, warm amber highlights.
   Layout: desktop sidebar + feed + discovery rail; mobile app shell with
   top bar and bottom tab navigation.
   ========================================================================== */

:root {
    --brand: #6d5efc;
    --brand-2: #8b5cf6;
    --brand-3: #a855f7;
    --brand-rgb: 109, 94, 252;
    --brand-2-rgb: 139, 92, 246;
    --brand-3-rgb: 168, 85, 247;
    --coral: #ff6b8b;
    --mint: #21d4b4;
    --amber: #f6b73c;
    --sky: #38bdf8;
    --ink: #14162b;
    --ink-2: #474d6b;
    --muted: #878da8;
    --bg: #f4f5fb;
    --bg-soft: #eef0fa;
    --surface: #ffffff;
    --surface-2: #f8f9ff;
    --border: #e7e9f5;
    --border-strong: #d9dcec;
    --shadow-sm: 0 1px 2px rgba(20, 22, 43, .05), 0 6px 18px rgba(20, 22, 43, .05);
    --shadow-md: 0 14px 40px rgba(20, 22, 43, .10);
    --shadow-lg: 0 30px 70px rgba(30, 25, 90, .18);
    --grad-brand: linear-gradient(135deg, #6d5efc 0%, #a855f7 52%, #ff6b8b 100%);
    --grad-mint: linear-gradient(135deg, #21d4b4, #38bdf8);
    --grad-sunset: linear-gradient(135deg, #ff9f6b, #ff6b8b 55%, #a855f7);
    --grad-glass: linear-gradient(135deg, rgba(255,255,255,.72), rgba(255,255,255,.38));
    --radius: 20px;
    --radius-sm: 14px;
    --radius-xs: 10px;
    --sidebar: 264px;
    --rail: 336px;
    --topbar: 64px;
    --bottomnav: 68px;
    --font: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: "Inter", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --ease: cubic-bezier(.22, .68, 0, 1);
}

/* --------------------------------------------------------------------------
   Color palettes (6). Selected via html[data-palette]; dark mode overrides
   the surface tokens below further down.
   -------------------------------------------------------------------------- */
html[data-palette="violet"] {
    --brand: #6d5efc;
    --brand-2: #8b5cf6;
    --brand-3: #a855f7;
    --brand-rgb: 109, 94, 252;
    --brand-2-rgb: 139, 92, 246;
    --brand-3-rgb: 168, 85, 247;
    --grad-brand: linear-gradient(135deg, #6d5efc 0%, #a855f7 52%, #ff6b8b 100%);
}

html[data-palette="ocean"] {
    --brand: #2563eb;
    --brand-2: #3b82f6;
    --brand-3: #06b6d4;
    --brand-rgb: 37, 99, 235;
    --brand-2-rgb: 59, 130, 246;
    --brand-3-rgb: 6, 182, 212;
    --grad-brand: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #06b6d4 100%);
    --bg: #f3f7fd;
    --bg-soft: #eaf1fb;
    --surface-2: #f7faff;
}

html[data-palette="emerald"] {
    --brand: #059669;
    --brand-2: #10b981;
    --brand-3: #14b8a6;
    --brand-rgb: 5, 150, 105;
    --brand-2-rgb: 16, 185, 129;
    --brand-3-rgb: 20, 184, 166;
    --grad-brand: linear-gradient(135deg, #047857 0%, #10b981 52%, #2dd4bf 100%);
    --bg: #f2f8f5;
    --bg-soft: #e9f4ef;
    --surface-2: #f7fbf9;
}

html[data-palette="sunset"] {
    --brand: #d94a64;
    --brand-2: #ef6a4c;
    --brand-3: #f59e0b;
    --brand-rgb: 217, 74, 100;
    --brand-2-rgb: 239, 106, 76;
    --brand-3-rgb: 245, 158, 11;
    --grad-brand: linear-gradient(135deg, #be2f55 0%, #ef6a4c 55%, #f5b36b 100%);
    --bg: #fdf5f1;
    --bg-soft: #fbece6;
    --surface-2: #fdf9f6;
}

html[data-palette="graphite"] {
    --brand: #334155;
    --brand-2: #475569;
    --brand-3: #64748b;
    --brand-rgb: 51, 65, 85;
    --brand-2-rgb: 71, 85, 105;
    --brand-3-rgb: 100, 116, 139;
    --grad-brand: linear-gradient(135deg, #1e293b 0%, #475569 55%, #94a3b8 100%);
    --bg: #f5f6f8;
    --bg-soft: #eef0f3;
    --surface-2: #f8f9fb;
}

html[data-palette="royal"] {
    --brand: #4338ca;
    --brand-2: #6d28d9;
    --brand-3: #a21caf;
    --brand-rgb: 67, 56, 202;
    --brand-2-rgb: 109, 40, 217;
    --brand-3-rgb: 162, 28, 175;
    --grad-brand: linear-gradient(135deg, #3730a3 0%, #6d28d9 55%, #c026d3 100%);
    --bg: #f4f4fc;
    --bg-soft: #ececf9;
    --surface-2: #f9f9fe;
}

[data-theme="dark"] {
    --ink: #eef0ff;
    --ink-2: #c0c5dd;
    --muted: #8e94b3;
    --bg: #0a0c17;
    --bg-soft: #101323;
    --surface: #141829;
    --surface-2: #191e33;
    --border: #252b45;
    --border-strong: #333a5b;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .28);
    --shadow-md: 0 18px 50px rgba(0, 0, 0, .42);
    --shadow-lg: 0 40px 90px rgba(0, 0, 0, .55);
    --grad-glass: linear-gradient(135deg, rgba(24, 28, 48, .85), rgba(16, 19, 35, .65));
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(600px 420px at 8% -4%, rgba(var(--brand-rgb), .10), transparent 62%),
        radial-gradient(520px 380px at 100% 0%, rgba(255, 107, 139, .08), transparent 60%),
        radial-gradient(620px 420px at 60% 110%, rgba(33, 212, 180, .07), transparent 65%);
    z-index: -1;
}

h1, h2, h3, h4 {
    font-family: var(--font);
    color: var(--ink);
    line-height: 1.22;
    margin: 0;
    letter-spacing: -.015em;
}

h1 { font-size: clamp(1.55rem, 2.6vw, 2rem); font-weight: 800; }
h2 { font-size: 1.18rem; font-weight: 700; }
h3 { font-size: 1.02rem; font-weight: 700; }

p { margin: 0 0 .7em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand-2); }

img { max-width: 100%; }
button { font: inherit; color: inherit; }
input, textarea, select, button { font-family: inherit; }

::selection { background: rgba(var(--brand-rgb), .22); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 20px; border: 3px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

:focus-visible { outline: 3px solid rgba(var(--brand-rgb), .45); outline-offset: 2px; }

.skip-link {
    position: fixed;
    top: -60px; left: 16px;
    z-index: 200;
    background: var(--brand); color: #fff;
    padding: 10px 16px; border-radius: 0 0 12px 12px;
    transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

.is-hidden { display: none !important; }
.w-100 { width: 100%; }
.muted { color: var(--muted); }
.muted-note { color: var(--muted); font-size: .82rem; display: inline-flex; align-items: center; gap: .4rem; }
.inline-form { display: inline-flex; margin: 0; }

/* --------------------------------------------------------------------------
   Shell
   -------------------------------------------------------------------------- */
.app-shell {
    display: grid;
    grid-template-columns: var(--sidebar) minmax(0, 1fr) var(--rail);
    gap: 30px;
    max-width: 1460px;
    margin: 0 auto;
    padding: 0 26px;
}
.app-shell-wide { grid-template-columns: var(--sidebar) minmax(0, 1fr); max-width: 1280px; }
.app-shell-full {
    grid-template-columns: var(--sidebar) minmax(0, 1fr);
    max-width: 1720px;
    padding: 0 clamp(20px, 2.4vw, 44px);
}

.main { min-width: 0; padding: 30px 0 60px; }
.main-inner { width: 100%; max-width: 720px; margin: 0 auto; }
.app-shell-wide .main-inner { max-width: 1040px; }
.app-shell-full .main-inner { max-width: none; }

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 26px 4px 22px;
    overflow-y: auto;
    scrollbar-width: none;
}
.sidebar::-webkit-scrollbar { display: none; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    padding: 0 8px;
}
.brand:hover { color: var(--ink); }
.brand-mark {
    width: 44px; height: 44px;
    border-radius: 15px;
    background: var(--grad-brand);
    color: #fff;
    font-family: var(--font);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -.06em;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 24px rgba(var(--brand-rgb), .38);
    flex-shrink: 0;
    text-transform: lowercase;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font); font-size: 1.18rem; font-weight: 800; letter-spacing: -.02em; }
.brand-text small { color: var(--muted); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; }
.brand-compact { gap: 10px; }
.brand-compact .brand-mark { width: 36px; height: 36px; border-radius: 12px; font-size: .95rem; }
.brand-compact strong { font-family: var(--font); font-weight: 800; font-size: 1.05rem; }
.brand-light, .brand-light:hover { color: #fff; }

.side-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.nav-link {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 11px 14px;
    border-radius: 14px;
    color: var(--ink-2);
    font-weight: 600;
    font-size: .93rem;
    position: relative;
    transition: background .22s var(--ease), color .22s var(--ease), transform .22s var(--ease);
}
.nav-link i { font-size: 1.18rem; width: 22px; text-align: center; transition: transform .22s var(--ease); }
.nav-link:hover { background: var(--surface); color: var(--brand); transform: translateX(2px); box-shadow: var(--shadow-sm); }
.nav-link:hover i { transform: scale(1.12); }
.nav-link.is-active {
    background: linear-gradient(120deg, rgba(var(--brand-rgb), .13), rgba(var(--brand-3-rgb), .10));
    color: var(--brand);
}
.nav-link.is-active::before {
    content: "";
    position: absolute;
    left: -4px; top: 50%;
    width: 4px; height: 22px;
    border-radius: 4px;
    background: var(--grad-brand);
    transform: translateY(-50%);
}
.nav-admin { color: var(--coral); }
.nav-badge {
    margin-left: auto;
    background: var(--grad-brand);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    min-width: 20px;
    padding: 1px 6px;
    border-radius: 20px;
    text-align: center;
}

.btn-compose-side { margin-top: 6px; justify-content: center; padding: 13px; border-radius: 14px; }

.side-user {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 10px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.side-user-link { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 0 100%; color: var(--ink); }
.side-user > .icon-btn:first-of-type { margin-left: auto; }
.side-user-link:hover { color: var(--ink); }
.side-user-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.side-user-meta strong { font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user-meta small { color: var(--muted); font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-guest { margin-top: auto; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); display: grid; gap: 8px; }
.side-guest p { font-size: .84rem; color: var(--ink-2); }
.side-guest-tools { display: flex; align-items: center; justify-content: center; gap: 6px; }

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 38px; height: 38px;
    border: 0;
    background: transparent;
    color: var(--ink-2);
    border-radius: 12px;
    cursor: pointer;
    transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
    flex-shrink: 0;
}
.icon-btn:hover { background: var(--bg-soft); color: var(--brand); transform: translateY(-1px); }
.icon-btn i { font-size: 1.08rem; }

.mobile-topbar, .mobile-tabs { display: none; }

/* --------------------------------------------------------------------------
   Right rail
   -------------------------------------------------------------------------- */
.rail { position: sticky; top: 0; height: 100vh; padding: 26px 0; overflow: hidden; }
.rail-scroll { height: 100%; overflow-y: auto; padding: 4px 4px 24px; display: flex; flex-direction: column; gap: 18px; scrollbar-width: none; }
.rail-scroll::-webkit-scrollbar { display: none; }

.rail-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 6px 6px 6px 14px;
    box-shadow: var(--shadow-sm);
}
.rail-search i { color: var(--muted); }
.rail-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); outline: none; font-size: .88rem; padding: 8px 0; }

.rail-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow-sm);
}
.rail-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.rail-card-head h2 { font-size: .96rem; display: inline-flex; align-items: center; gap: 8px; }
.rail-card-head h2 i { color: var(--coral); }
.rail-card-head a { font-size: .76rem; font-weight: 600; }

.trend-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: trend; }
.trend-list li a {
    display: flex;
    flex-direction: column;
    padding: 9px 10px;
    border-radius: 12px;
    color: var(--ink);
    transition: background .2s var(--ease), transform .2s var(--ease);
}
.trend-list li a:hover { background: var(--surface-2); transform: translateX(2px); }
.trend-name { font-weight: 700; font-size: .9rem; }
.trend-count { color: var(--muted); font-size: .74rem; }

.people-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.person-row { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 12px; transition: background .2s var(--ease); }
.person-row:hover { background: var(--surface-2); }
.person-main { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; color: var(--ink); }
.person-main:hover { color: var(--ink); }
.person-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.person-meta strong { font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person-meta small { color: var(--muted); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.rail-footer { display: flex; flex-wrap: wrap; gap: 10px 14px; padding: 4px 8px; color: var(--muted); font-size: .72rem; }
.rail-footer a { color: var(--muted); }
.rail-footer a:hover { color: var(--brand); }

/* --------------------------------------------------------------------------
   Buttons, badges, chips
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 13px;
    padding: 10px 18px;
    font-family: var(--font);
    font-weight: 700;
    font-size: .87rem;
    line-height: 1.2;
    cursor: pointer;
    color: var(--ink);
    background: var(--surface-2);
    transition: transform .18s var(--ease), box-shadow .22s var(--ease), background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
}
.btn i { font-size: 1.02em; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.99); }

.btn-brand {
    background: var(--grad-brand);
    color: #fff;
    box-shadow: 0 8px 22px rgba(var(--brand-rgb), .30);
}
.btn-brand:hover { color: #fff; box-shadow: 0 12px 30px rgba(var(--brand-rgb), .42); filter: saturate(1.08); }

.btn-soft {
    background: rgba(var(--brand-rgb), .09);
    color: var(--brand);
    border-color: rgba(var(--brand-rgb), .18);
}
.btn-soft:hover { background: rgba(var(--brand-rgb), .15); color: var(--brand); }

.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }

.btn-danger { background: linear-gradient(135deg, #ff5f7a, #e0355a); color: #fff; box-shadow: 0 8px 20px rgba(224, 53, 90, .3); }
.btn-danger:hover { color: #fff; filter: brightness(1.05); }

.btn-light { background: #fff; color: #3d2f8f; }
.btn-light:hover { color: #2a2070; box-shadow: var(--shadow-md); }
.btn-outline-light { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.45); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.22); color: #fff; }

.btn-lg { padding: 13px 24px; font-size: .95rem; border-radius: 15px; }
.btn-sm { padding: 7px 13px; font-size: .8rem; border-radius: 11px; }
.btn-xs { padding: 4px 10px; font-size: .74rem; border-radius: 9px; }
.btn-icon-label span { display: inline; }
.btn.icon-only { width: 38px; height: 38px; padding: 0; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 9px;
    border-radius: 20px;
    font-size: .69rem;
    font-weight: 700;
    background: var(--bg-soft);
    color: var(--ink-2);
    border: 1px solid var(--border);
    vertical-align: middle;
}
.badge-staff { background: linear-gradient(120deg, rgba(var(--brand-rgb),.14), rgba(255,107,139,.14)); color: var(--brand); border-color: rgba(var(--brand-rgb),.2); }
.badge-soft { background: rgba(33, 212, 180, .12); color: #0d9c83; border-color: rgba(33,212,180,.25); }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--ink-2);
    font-size: .76rem;
    font-weight: 600;
    transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
a.chip:hover { color: var(--brand); border-color: rgba(var(--brand-rgb),.3); transform: translateY(-1px); }
.chip.is-active { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(var(--brand-rgb),.3); }
.chip-soft { background: rgba(var(--brand-rgb),.08); border-color: rgba(var(--brand-rgb),.14); color: var(--brand); }
.chip-mint { background: rgba(33,212,180,.12); border-color: rgba(33,212,180,.25); color: #0b9b81; }
[data-theme="dark"] .chip-mint { color: #5ee8cf; }

.link-more { font-size: .8rem; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.link-back { font-size: .82rem; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; color: var(--muted); }
.link-back:hover { color: var(--brand); }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); font-size: .78rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.link-btn:hover { color: var(--brand); }
.link-danger:hover { color: #e0355a; }

/* --------------------------------------------------------------------------
   Avatars
   -------------------------------------------------------------------------- */
.avatar {
    position: relative;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: var(--avatar-bg, var(--grad-brand));
    color: #fff;
    flex-shrink: 0;
    overflow: visible;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.avatar-initials { font-family: var(--font); font-weight: 800; letter-spacing: -.02em; font-size: 38%; line-height: 1; }
.avatar-xs { width: 32px; height: 32px; }
.avatar-sm { width: 40px; height: 40px; }
.avatar-md { width: 48px; height: 48px; }
.avatar-lg { width: 64px; height: 64px; }
.avatar-xl { width: 96px; height: 96px; }
.avatar-hero { width: 132px; height: 132px; border: 4px solid var(--surface); box-shadow: var(--shadow-md); }
.avatar-online {
    position: absolute;
    right: 1px; bottom: 2px;
    width: 26%; height: 26%;
    min-width: 9px; min-height: 9px;
    background: var(--mint);
    border: 2px solid var(--surface);
    border-radius: 50%;
}

/* --------------------------------------------------------------------------
   Alerts, forms, panels
   -------------------------------------------------------------------------- */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    font-size: .87rem;
    margin-bottom: 18px;
    border: 1px solid transparent;
    animation: slideDown .35s var(--ease);
}
.alert > i { font-size: 1.1rem; margin-top: 1px; }
.alert span { flex: 1; }
.alert-success { background: rgba(33, 212, 180, .12); color: #0a7f69; border-color: rgba(33,212,180,.28); }
.alert-error { background: rgba(255, 107, 139, .12); color: #c22a4a; border-color: rgba(255,107,139,.3); }
.alert-warning { background: rgba(246, 183, 60, .14); color: #8f6100; border-color: rgba(246,183,60,.32); }
.alert-info { background: rgba(56, 189, 248, .12); color: #0369a1; border-color: rgba(56,189,248,.28); }
[data-theme="dark"] .alert-success { color: #6ff0d8; }
[data-theme="dark"] .alert-error { color: #ffa3b5; }
[data-theme="dark"] .alert-warning { color: #ffd784; }
[data-theme="dark"] .alert-info { color: #8bdcff; }
.alert-list { margin: 0; padding-left: 18px; flex: 1; }
.alert-close { background: none; border: 0; font-size: 1.2rem; line-height: 1; color: currentColor; opacity: .6; cursor: pointer; margin-left: auto; }
.alert-close:hover { opacity: 1; }

.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 24px;
}
.panel-head { margin-bottom: 18px; }
.panel-head h1, .panel-head h2 { display: inline-flex; align-items: center; gap: 9px; }
.panel-head h1 i, .panel-head h2 i { color: var(--brand); }
.panel-head p { color: var(--muted); font-size: .86rem; margin-top: 6px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: .82rem; font-weight: 700; color: var(--ink-2); }
.field input, .field textarea, .field select {
    width: 100%;
    border: 1px solid var(--border-strong);
    background: var(--surface-2);
    color: var(--ink);
    border-radius: 12px;
    padding: 11px 13px;
    font-size: .9rem;
    outline: none;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 84px; line-height: 1.6; }
.field input:focus, .field textarea:focus, .field select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .12);
    background: var(--surface);
}
.field-hint { color: var(--muted); font-size: .74rem; display: flex; justify-content: space-between; gap: 8px; }
.field-hint.is-inline { display: block; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.stack-form { display: grid; gap: 15px; }
.form-foot { display: flex; justify-content: flex-end; gap: 10px; padding-top: 4px; }

.input-icon { position: relative; display: block; }
.input-icon > i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .95rem; pointer-events: none; }
.input-icon input { padding-left: 38px; }
.input-icon.has-action input { padding-right: 44px; }
.input-action { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); cursor: pointer; width: 36px; height: 36px; border-radius: 10px; }
.input-action:hover { color: var(--brand); background: var(--bg-soft); }

.switch-line { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); cursor: pointer; }
.switch-line input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--brand); flex-shrink: 0; }
.switch-line span { font-size: .86rem; color: var(--ink-2); display: flex; flex-direction: column; gap: 2px; }
.switch-line strong { color: var(--ink); font-size: .87rem; }
.switch-line small { color: var(--muted); font-size: .76rem; }
.check-line { display: flex; align-items: flex-start; gap: 9px; font-size: .8rem; color: var(--ink-2); }
.check-line input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--brand); }

.strength-meter { display: block; height: 5px; border-radius: 6px; background: var(--bg-soft); overflow: hidden; margin-top: 4px; }
.strength-meter span { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--coral); transition: width .3s var(--ease), background .3s var(--ease); }
.strength-meter.is-medium span { width: 55%; background: var(--amber); }
.strength-meter.is-strong span { width: 100%; background: var(--mint); }
.strength-meter.is-weak span { width: 25%; background: var(--coral); }

.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------------------------------------------------
   Page headers, hero, sections
   -------------------------------------------------------------------------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head-compact { margin-bottom: 10px; }
.page-sub { color: var(--muted); font-size: .88rem; margin-top: 6px; max-width: 62ch; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 9px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 40px;
    align-items: center;
    padding: 26px 0 14px;
}
.hero-copy h1 { font-size: clamp(2.1rem, 4.6vw, 3.35rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 16px; }
.grad-text { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { color: var(--ink-2); font-size: 1.02rem; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-stats { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 26px; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font); font-size: 1.3rem; font-weight: 800; }
.hero-stats span { color: var(--muted); font-size: .76rem; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(33,212,180,.5); animation: pulse 2s infinite; }

.hero-visual { position: relative; min-height: 420px; display: grid; place-items: center; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .5; }
.hero-orb-a { width: 300px; height: 300px; background: rgba(var(--brand-rgb),.5); top: -30px; right: 10px; animation: float 9s ease-in-out infinite; }
.hero-orb-b { width: 240px; height: 240px; background: rgba(255,107,139,.42); bottom: 0; left: 0; animation: float 11s ease-in-out infinite reverse; }

.mock-phone {
    position: relative;
    width: min(300px, 82%);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 34px;
    padding: 16px;
    box-shadow: var(--shadow-lg);
    transform: rotate(-3deg);
    animation: float 8s ease-in-out infinite;
}
.mock-top { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.mock-top .brand-mark { width: 30px; height: 30px; border-radius: 10px; font-size: .76rem; }
.mock-pill { margin-left: auto; font-size: .6rem; font-weight: 700; color: #0b9b81; background: rgba(33,212,180,.14); padding: 3px 8px; border-radius: 20px; }
.mock-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--grad-sunset); color: #fff; font-size: .62rem; font-weight: 800; display: grid; place-items: center; }
.mock-story-row { display: flex; gap: 8px; margin-bottom: 14px; }
.mock-story { width: 42px; height: 42px; border-radius: 50%; background: var(--bg-soft); border: 2px solid var(--brand); display: grid; place-items: center; color: var(--brand); }
.ms-a { background: rgba(var(--brand-rgb),.14); }
.ms-b { background: var(--grad-sunset); border-color: var(--coral); }
.ms-c { background: var(--grad-mint); border-color: var(--mint); }
.ms-d { background: linear-gradient(135deg,#f6b73c,#ff9f6b); border-color: var(--amber); }
.mock-card { background: var(--surface-2); border-radius: 18px; padding: 12px; border: 1px solid var(--border); }
.mock-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.mock-card-head span:nth-child(2) { display: flex; flex-direction: column; line-height: 1.2; }
.mock-card-head strong { font-size: .72rem; }
.mock-card-head small { font-size: .58rem; color: var(--muted); }
.mock-like { margin-left: auto; color: var(--coral); font-size: .7rem; }
.mock-card p { font-size: .7rem; color: var(--ink-2); }
.mock-photo { height: 110px; border-radius: 12px; background: linear-gradient(135deg, #ffd7c2, #ff9f9f 40%, #a855f7 100%); margin: 8px 0; position: relative; overflow: hidden; }
.mock-photo::after { content: ""; position: absolute; width: 70px; height: 70px; border-radius: 50%; background: rgba(255,255,255,.35); top: 22px; left: 50%; transform: translateX(-50%); }
.mock-actions { display: flex; gap: 14px; font-size: .62rem; color: var(--muted); }
.mock-nearby { margin-top: 12px; display: flex; align-items: center; gap: 8px; font-size: .64rem; color: var(--ink-2); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 8px 10px; }
.mock-nearby i { color: var(--mint); }

.float-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    border-radius: 14px;
    padding: 9px 13px;
    font-size: .72rem;
    font-weight: 700;
    color: var(--ink-2);
    animation: float 7s ease-in-out infinite;
}
.float-chip i { color: var(--brand); }
.float-chip-a { top: 12%; left: -4%; }
.float-chip-b { bottom: 22%; right: -3%; animation-delay: .8s; }
.float-chip-b i { color: var(--coral); }
.float-chip-c { bottom: 2%; left: 4%; animation-delay: 1.6s; }
.float-chip-c i { color: var(--coral); }

.feature-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 30px 0 10px;
}
.feature {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(var(--brand-rgb),.25); }
.feature-icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: #fff; font-size: 1.1rem; flex-shrink: 0; }
.fi-violet { background: var(--grad-brand); }
.fi-coral { background: var(--grad-sunset); }
.fi-mint { background: var(--grad-mint); }
.fi-amber { background: linear-gradient(135deg, #f6b73c, #ff9f6b); }
.feature h3 { font-size: .88rem; margin-bottom: 3px; }
.feature p { color: var(--muted); font-size: .76rem; }

.section { margin-top: 34px; }
.section-tight { margin-top: 24px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.section-head h2 { display: inline-flex; align-items: center; gap: 9px; }
.section-head h2 i { color: var(--brand); }
.section-count { color: var(--muted); font-size: .78rem; font-weight: 600; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 9px; }
.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 9px 13px;
    color: var(--ink);
    font-size: .84rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    transition: transform .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.tag-pill small { color: var(--muted); font-size: .7rem; font-weight: 600; }
.tag-pill:hover { color: var(--brand); border-color: rgba(var(--brand-rgb),.3); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tag-cloud-lg .tag-pill { font-size: .95rem; padding: 12px 16px; }

.cta-band {
    margin-top: 40px;
    border-radius: 28px;
    background: var(--grad-brand);
    padding: 2px;
    box-shadow: var(--shadow-lg);
}
.cta-band-inner {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    padding: 44px 36px;
    text-align: center;
    background:
        radial-gradient(400px 200px at 15% 0%, rgba(255,255,255,.22), transparent 60%),
        radial-gradient(400px 220px at 90% 100%, rgba(33,212,180,.28), transparent 60%);
}
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 2rem); }
.cta-band p { color: rgba(255,255,255,.85); margin: 8px 0 20px; }
.cta-band .hero-actions { justify-content: center; margin-top: 0; }

/* --------------------------------------------------------------------------
   Feed & post cards
   -------------------------------------------------------------------------- */
.compose-prompt {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    box-shadow: var(--shadow-sm);
}
.compose-prompt-input {
    flex: 1;
    min-width: 0;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 11px 18px;
    color: var(--muted);
    font-size: .88rem;
    transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.compose-prompt-input:hover { border-color: rgba(var(--brand-rgb),.35); color: var(--ink-2); background: var(--surface); }
.compose-prompt-actions { display: flex; gap: 6px; }
.compose-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .74rem;
    font-weight: 700;
    color: var(--ink-2);
    padding: 7px 10px;
    border-radius: 10px;
    transition: background .2s var(--ease), color .2s var(--ease);
}
.compose-chip i { color: var(--mint); }
.compose-chip:nth-child(2) i { color: var(--coral); }
.compose-chip:nth-child(3) i { color: var(--brand); }
.compose-chip:hover { background: var(--surface-2); color: var(--brand); }

.story-strip { display: flex; gap: 14px; overflow-x: auto; padding: 18px 2px 6px; scrollbar-width: none; }
.story-strip::-webkit-scrollbar { display: none; }
.story { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; width: 78px; color: var(--ink); }
.story:hover { color: var(--brand); }
.story-ring {
    width: 70px; height: 70px;
    padding: 3px;
    border-radius: 50%;
    background: var(--grad-brand);
    display: grid;
    place-items: center;
    transition: transform .25s var(--ease);
}
.story:hover .story-ring { transform: scale(1.05); }
.story-ring .avatar { border: 2px solid var(--surface); }
.story-ring-add { background: var(--surface); border: 2px dashed var(--border-strong); color: var(--muted); font-size: 1.2rem; }
.story-name { font-size: .72rem; font-weight: 700; max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }

.feed-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 5px;
    margin: 18px 0 18px;
    box-shadow: var(--shadow-sm);
}
.feed-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border-radius: 11px;
    color: var(--ink-2);
    font-weight: 700;
    font-size: .83rem;
    transition: background .22s var(--ease), color .22s var(--ease);
}
.feed-tab:hover { color: var(--brand); background: var(--surface-2); }
.feed-tab.is-active { background: var(--grad-brand); color: #fff; box-shadow: 0 6px 16px rgba(var(--brand-rgb),.28); }
.feed-total { margin-left: auto; padding-right: 10px; color: var(--muted); font-size: .74rem; font-weight: 600; }

.feed-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.feed-list > * { min-width: 0; }

.post-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .28s var(--ease), border-color .28s var(--ease), transform .28s var(--ease);
    animation: fadeUp .45s var(--ease) both;
}
.post-card:hover { box-shadow: var(--shadow-md); border-color: rgba(var(--brand-rgb),.16); }
.post-head { display: flex; align-items: flex-start; gap: 10px; }
.post-author { display: flex; align-items: center; gap: 11px; flex: 1; min-width: 0; color: var(--ink); }
.post-author-avatar { display: block; flex-shrink: 0; color: inherit; }
.post-author-name { color: var(--ink); min-width: 0; }
.post-author-name:hover { color: var(--brand); }
.post-author-name strong { display: inline-block; max-width: 100%; vertical-align: bottom; }
.post-author-meta { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.post-author-line { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.post-author-line > a { min-width: 0; }
.post-author-line strong { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42vw; }
.post-visibility { color: var(--muted); font-size: .72rem; }
.post-subline { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; color: var(--muted); font-size: .74rem; }
.post-subline a { color: var(--muted); }
.post-subline a:hover { color: var(--brand); }
.post-location { display: inline-flex; align-items: center; gap: 3px; }
.post-location i { color: var(--coral); }
.post-distance { color: var(--mint); font-weight: 700; }

.post-menu { position: relative; flex-shrink: 0; }
.post-menu summary { list-style: none; cursor: pointer; }
.post-menu summary::-webkit-details-marker { display: none; }
.menu-panel {
    position: absolute;
    right: 0; top: 44px;
    min-width: 200px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    padding: 6px;
    z-index: 30;
    display: grid;
    gap: 2px;
    animation: popIn .18s var(--ease);
}
.menu-panel a, .menu-panel button {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 11px;
    border-radius: 9px;
    border: 0;
    background: none;
    color: var(--ink-2);
    font-size: .82rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    width: 100%;
}
.menu-panel a:hover, .menu-panel button:hover { background: var(--surface-2); color: var(--brand); }
.menu-panel form { margin: 0; }
.menu-danger:hover { color: #e0355a !important; }

.post-body { margin: 14px 0 4px; font-size: .95rem; line-height: 1.65; color: var(--ink); overflow-wrap: anywhere; }
.post-body a.hashtag, .hashtag { color: var(--brand); font-weight: 700; }
.post-body a.mention, .mention { color: var(--coral); font-weight: 700; }

.post-media { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; margin-top: 12px; border-radius: 16px; overflow: hidden; }
.media-count-1 { grid-template-columns: minmax(0, 1fr); }
.media-count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.media-count-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, 150px); }
.media-count-3 .media-item:first-child { grid-row: span 2; }
.media-count-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, 150px); }
.media-item { border: 0; padding: 0; background: var(--bg-soft); cursor: zoom-in; display: block; overflow: hidden; position: relative; min-width: 0; }
.media-count-1 .media-item { max-height: 480px; }
.media-count-2 .media-item, .media-count-3 .media-item, .media-count-4 .media-item { height: 150px; }
.media-count-1 .post-image { width: 100%; max-height: 480px; object-fit: cover; display: block; }
.post-image { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease), filter .4s var(--ease); }
.media-item:hover .post-image { transform: scale(1.035); filter: saturate(1.06); }

.post-actions { display: flex; align-items: center; gap: 4px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.post-actions form { margin: 0; }
.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 0;
    background: transparent;
    color: var(--ink-2);
    font-size: .8rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 11px;
    cursor: pointer;
    transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.action-btn:hover { background: var(--surface-2); color: var(--brand); transform: translateY(-1px); }
.action-btn i { font-size: 1.05rem; }
.action-like.is-active { color: var(--coral); }
.action-like.is-active i { animation: heartPop .4s var(--ease); }
.action-save.is-active { color: var(--brand); }
.action-share { margin-left: auto; }

.feed-more { display: flex; justify-content: center; margin-top: 22px; }

/* Empty states */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 54px 24px;
    background: var(--surface);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
    gap: 6px;
}
.empty-soft { background: transparent; border-style: dashed; }
.empty-icon {
    width: 74px; height: 74px;
    display: grid; place-items: center;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(var(--brand-rgb),.12), rgba(255,107,139,.12));
    color: var(--brand);
    font-size: 1.7rem;
    margin-bottom: 8px;
}
.empty-state h2 { font-size: 1.15rem; }
.empty-state p { color: var(--muted); max-width: 44ch; font-size: .87rem; }
.empty-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; justify-content: center; }
.empty-inline { display: flex; align-items: center; gap: 12px; padding: 20px; border-radius: 14px; background: var(--surface-2); color: var(--muted); font-size: .85rem; }
.empty-inline i { font-size: 1.3rem; color: var(--brand); }
.empty-inline p { margin: 0; }

/* --------------------------------------------------------------------------
   Comments
   -------------------------------------------------------------------------- */
.comments {
    margin-top: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}
.comments-head { margin-bottom: 14px; }
.comments-head h2 { display: inline-flex; align-items: center; gap: 8px; font-size: 1.02rem; }
.comments-head h2 i { color: var(--brand); }
.count-chip { background: var(--surface-2); border: 1px solid var(--border); padding: 0 8px; border-radius: 20px; font-size: .72rem; color: var(--ink-2); }

.comment-form { margin-bottom: 18px; }
.comment-form-row { display: flex; gap: 10px; align-items: flex-start; }
.comment-input-wrap { flex: 1; background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px; padding: 9px 12px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.comment-input-wrap:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(var(--brand-rgb),.1); }
.comment-input-wrap textarea { width: 100%; border: 0; background: transparent; color: var(--ink); resize: none; outline: none; font-size: .88rem; min-height: 44px; }
.comment-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.char-hint { color: var(--muted); font-size: .7rem; }
.reply-hint { font-size: .74rem; color: var(--brand); background: rgba(var(--brand-rgb),.08); border-radius: 8px; padding: 5px 9px; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.comments-cta { margin-bottom: 16px; }
.comment-list { display: grid; gap: 14px; }
.comment { display: flex; gap: 9px; }
.comment.depth-1, .comment.depth-2, .comment.depth-3 { margin-left: 46px; }
.comment.depth-2 { margin-left: 92px; }
.comment.depth-3 { margin-left: 138px; }
.comment-avatar { flex-shrink: 0; }
.comment-body { flex: 1; min-width: 0; }
.comment-bubble { background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px 15px 15px 15px; padding: 10px 13px; }
.comment-top { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; font-size: .74rem; color: var(--muted); margin-bottom: 3px; }
.comment-name { font-weight: 700; color: var(--ink); font-size: .82rem; }
.staff-tick { color: var(--brand); font-size: .72rem; }
.comment-dot { opacity: .5; }
.reply-tag { background: rgba(33,212,180,.14); color: #0b9b81; font-size: .64rem; font-weight: 700; padding: 0 6px; border-radius: 20px; }
.comment-text { font-size: .87rem; color: var(--ink); overflow-wrap: anywhere; }
.comment-actions { display: flex; gap: 12px; padding: 5px 6px 0; }
.comment-actions form { margin: 0; }

/* --------------------------------------------------------------------------
   User cards, discovery
   -------------------------------------------------------------------------- */
.user-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.user-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.user-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(var(--brand-rgb),.2); }
.user-card-avatar { flex-shrink: 0; }
.user-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.user-card-name { font-family: var(--font); font-weight: 700; color: var(--ink); font-size: .92rem; display: inline-flex; align-items: center; gap: 5px; }
.user-private { font-size: .7rem; color: var(--muted); }
.user-card-handle { color: var(--muted); font-size: .76rem; }
.user-card-bio { color: var(--ink-2); font-size: .78rem; margin: 4px 0 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.user-card-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; font-size: .73rem; color: var(--muted); }
.user-card-meta span { display: inline-flex; align-items: center; gap: 3px; }
.user-card-meta i { color: var(--coral); }
.user-card-cta { align-self: center; flex-shrink: 0; }
.user-strip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.user-strip::-webkit-scrollbar { display: none; }
.mini-person {
    flex: 0 0 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 12px;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.mini-person:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: var(--ink); }
.mini-person strong { font-size: .82rem; margin-top: 5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-person small { color: var(--muted); font-size: .7rem; }

.explore-search {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 6px 6px 6px 16px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 8px;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.explore-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(var(--brand-rgb),.1); }
.explore-search > i { color: var(--muted); }
.explore-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); outline: none; font-size: .93rem; padding: 9px 0; }

.tag-hero { display: flex; align-items: center; gap: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); margin-bottom: 20px; flex-wrap: wrap; }
.tag-hero-icon { width: 64px; height: 64px; border-radius: 20px; background: var(--grad-brand); color: #fff; display: grid; place-items: center; font-size: 1.8rem; box-shadow: 0 10px 24px rgba(var(--brand-rgb),.3); }
.tag-hero > div { flex: 1; min-width: 180px; }
.tag-hero .eyebrow { margin-bottom: 2px; }
.tag-hero h1 { font-size: 1.7rem; }

/* --------------------------------------------------------------------------
   Nearby
   -------------------------------------------------------------------------- */
.nearby-map {
    position: relative;
    height: 238px;
    border-radius: 24px;
    overflow: hidden;
    background:
        radial-gradient(280px 200px at 70% 20%, rgba(33,212,180,.25), transparent 60%),
        linear-gradient(135deg, #eef2ff, #e8fbff 45%, #fff0f6);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    margin-bottom: 18px;
}
[data-theme="dark"] .nearby-map { background: radial-gradient(280px 200px at 70% 20%, rgba(33,212,180,.18), transparent 60%), linear-gradient(135deg, #141a33, #101f2c 45%, #231528); }
.map-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(var(--brand-rgb),.09) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--brand-rgb),.09) 1px, transparent 1px); background-size: 34px 34px; }
.map-ring { position: absolute; border: 1.5px dashed rgba(var(--brand-rgb),.3); border-radius: 50%; left: 46%; top: 52%; transform: translate(-50%, -50%); }
.map-ring-a { width: 110px; height: 110px; }
.map-ring-b { width: 190px; height: 190px; }
.map-ring-c { width: 280px; height: 280px; }
.map-you {
    position: absolute; left: 46%; top: 52%; transform: translate(-50%, -50%);
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--grad-brand); color: #fff; display: grid; place-items: center;
    box-shadow: 0 0 0 6px rgba(var(--brand-rgb),.18), 0 8px 20px rgba(var(--brand-rgb),.35);
    animation: pulseSoft 3s infinite;
}
.map-pin { position: absolute; padding: 2px; background: var(--surface); border-radius: 50%; box-shadow: var(--shadow-md); }
.map-pin-1 { left: 64%; top: 24%; }
.map-pin-2 { left: 28%; top: 34%; }
.map-pin-3 { left: 76%; top: 62%; }
.map-pin-4 { left: 20%; top: 70%; }
.map-pin-5 { left: 52%; top: 80%; }
.map-legend { position: absolute; left: 14px; bottom: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 9px 13px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.map-legend strong { font-size: .8rem; }
.map-legend span { color: var(--muted); font-size: .7rem; }

.nearby-gate { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); text-align: center; }
.gate-icon { width: 68px; height: 68px; border-radius: 22px; background: var(--grad-mint); color: #fff; display: grid; place-items: center; font-size: 1.6rem; margin: 0 auto 14px; box-shadow: 0 12px 26px rgba(33,212,180,.3); }
.nearby-gate h2 { margin-bottom: 6px; }
.nearby-gate > p { color: var(--muted); max-width: 52ch; margin: 0 auto 18px; font-size: .86rem; }
.nearby-form { display: grid; gap: 12px; max-width: 520px; margin: 0 auto; text-align: left; }
.nearby-form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.fallback-details { margin-top: 18px; text-align: left; max-width: 520px; margin-left: auto; margin-right: auto; }
.fallback-details summary { cursor: pointer; color: var(--muted); font-size: .8rem; font-weight: 600; padding: 6px 0; }
.manual-geo { display: grid; gap: 10px; margin-top: 10px; padding: 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; }
.nearby-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.nearby-toolbar-group { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nearby-loc { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; font-size: .8rem; color: var(--ink-2); }
.nearby-loc i { color: var(--brand); }
.radius-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.radius-chips > .muted-note { margin-right: 3px; }
.nearby-toolbar-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.nearby-toolbar-actions form { margin: 0; }

/* --------------------------------------------------------------------------
   Profile
   -------------------------------------------------------------------------- */
.profile-hero {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.profile-cover { position: relative; height: clamp(190px, 20vw, 300px); overflow: hidden; background: var(--bg-soft); }
.profile-cover img { width: 100%; height: 100%; object-fit: cover; }
.profile-cover::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10, 8, 40, 0) 42%, rgba(10, 8, 40, .3));
    pointer-events: none;
}
.profile-cover-fallback { background: var(--grad-brand); }
.profile-cover-fallback::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(340px 200px at 18% 18%, rgba(255,255,255,.35), transparent 62%), radial-gradient(320px 220px at 86% 82%, rgba(33,212,180,.38), transparent 62%);
}
.cover-shine { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.1), transparent 38%); }
.profile-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 0 30px; margin-top: -70px; position: relative; z-index: 2; flex-wrap: wrap; }
.profile-avatar-wrap { flex-shrink: 0; }
.profile-avatar-wrap .avatar-hero { width: clamp(112px, 9vw, 150px); height: clamp(112px, 9vw, 150px); border-width: 5px; box-shadow: 0 18px 38px rgba(15, 12, 60, .22); }
.profile-actions { display: flex; align-items: center; gap: 8px; padding-bottom: 14px; margin-left: auto; flex-wrap: wrap; }
.profile-actions form { margin: 0; }
.profile-actions .btn { box-shadow: var(--shadow-sm); }
.profile-main {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, .85fr);
    gap: clamp(20px, 3vw, 44px);
    padding: 18px 30px 30px;
    align-items: start;
}
.profile-id { min-width: 0; }
.profile-id h1 { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: clamp(1.45rem, 2.1vw, 2rem); letter-spacing: -.02em; }
.profile-handle { color: var(--muted); font-size: .9rem; }
.profile-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.profile-bio { font-size: .92rem; color: var(--ink-2); max-width: 68ch; margin-top: 10px; line-height: 1.65; }
.profile-interests { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.profile-link { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 600; margin-top: 10px; margin-right: 14px; overflow-wrap: anywhere; }
.profile-stats {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
}
.profile-stats li { min-width: 0; }
.profile-stats .stat-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    height: 100%;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface-2);
    color: var(--ink);
    transition: border-color .22s var(--ease), transform .22s var(--ease), box-shadow .22s var(--ease), background .22s var(--ease);
}
a.stat-inner:hover { border-color: rgba(var(--brand-rgb), .26); background: var(--surface); transform: translateY(-2px); box-shadow: var(--shadow-sm); color: var(--ink); }
.stat-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(var(--brand-rgb), .1); color: var(--brand); font-size: 1rem; flex-shrink: 0; }
.profile-stats li:nth-child(2) .stat-ico { background: rgba(33, 212, 180, .12); color: #0b9b81; }
.profile-stats li:nth-child(3) .stat-ico { background: rgba(255, 107, 139, .12); color: #e0355a; }
.profile-stats li:nth-child(4) .stat-ico { background: rgba(246, 183, 60, .14); color: #c98a00; }
.stat-body { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.stat-body strong { font-family: var(--font); font-size: clamp(1.15rem, 1.5vw, 1.4rem); font-weight: 800; overflow: hidden; text-overflow: ellipsis; }
.stat-body > span { color: var(--muted); font-size: .72rem; font-weight: 600; margin-top: 2px; }
.stat-inner:hover strong { color: var(--brand); }

.profile-posts { margin-top: 30px; }
.profile-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 430px), 1fr));
    gap: 16px;
    align-items: stretch;
}
.profile-posts-grid > * { min-width: 0; }
.profile-posts-grid > .post-card { display: flex; flex-direction: column; height: 100%; }
.profile-posts-grid > .post-card .post-actions { margin-top: auto; }
.profile-posts-grid .media-count-1 .media-item { max-height: 360px; }
.profile-posts-grid .media-count-1 .post-image { max-height: 360px; }

.notice { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--brand); border-radius: 14px; padding: 16px 18px; margin-top: 18px; }
.notice i { font-size: 1.2rem; color: var(--brand); margin-top: 2px; }
.notice strong { font-size: .9rem; }
.notice p { color: var(--muted); font-size: .82rem; margin: 2px 0 0; }
.notice-warn { border-left-color: var(--coral); }
.notice-warn i { color: var(--coral); }

/* --------------------------------------------------------------------------
   Composer
   -------------------------------------------------------------------------- */
.composer-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: 22px; align-items: start; }
.panel.composer { position: relative; padding: clamp(20px, 2.2vw, 32px); overflow: hidden; }
.panel.composer::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--grad-brand); }
.composer-form { display: grid; gap: 18px; }
.composer-author { display: flex; align-items: center; gap: 12px; padding-bottom: 4px; }
.composer-author div { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.composer-author strong { font-size: .92rem; }
.composer-author small { color: var(--muted); font-size: .75rem; }
.composer-form textarea { min-height: 240px; font-size: 1rem; line-height: 1.65; }
.composer-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 16px; margin-top: 2px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.upload-zone { border: 1.5px dashed var(--border-strong); border-radius: 18px; background: var(--surface-2); transition: border-color .2s var(--ease), background .2s var(--ease); }
.upload-zone.is-dragover { border-color: var(--brand); background: rgba(var(--brand-rgb),.05); }
.upload-trigger { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 30px 20px; cursor: pointer; text-align: center; color: var(--ink-2); }
.upload-trigger i { font-size: 1.75rem; color: var(--brand); }
.upload-trigger strong { font-size: .88rem; }
.upload-trigger span { color: var(--muted); font-size: .74rem; }
.upload-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; padding: 0 12px 12px; }
.upload-preview:empty { display: none; }
.preview-thumb { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: var(--bg-soft); }
.preview-thumb img { width: 100%; height: 100%; object-fit: cover; }
.preview-thumb button { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: .8rem; cursor: pointer; display: grid; place-items: center; }
.geo-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.composer-aside { display: grid; gap: 14px; position: sticky; top: 20px; align-content: start; }
.tip-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.tip-card h2 { font-size: .92rem; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.tip-card h2 i { color: var(--amber); }
.tip-card ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: .82rem; display: grid; gap: 5px; }
.tip-card p { color: var(--ink-2); font-size: .82rem; }
.tip-card .btn { margin-top: 10px; }
.tip-mint { background: linear-gradient(150deg, rgba(33,212,180,.12), rgba(56,189,248,.08)); border-color: rgba(33,212,180,.25); }
.tip-mint h2 i { color: #0b9b81; }
.tip-tight { padding: 14px; }

/* --------------------------------------------------------------------------
   Messages / chat
   -------------------------------------------------------------------------- */
.messages-shell { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 18px; align-items: start; }
.messages-panel { padding: 0; overflow: hidden; }
.messages-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 22px 14px; margin: 0; }
.messages-head .eyebrow { margin-bottom: 4px; }
.messages-head h1 { font-size: 1.35rem; }
.messages-head .badge { white-space: nowrap; }
.messages-search { display: flex; align-items: center; gap: 8px; margin: 0 18px 12px; padding: 8px 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; }
.messages-search i { color: var(--muted); }
.messages-search input { flex: 1; border: 0; background: transparent; color: var(--ink); outline: none; font-size: .86rem; }
.conversation-list { list-style: none; margin: 0; padding: 0 8px 8px; max-height: 60vh; overflow-y: auto; }
.conversation-row a { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 14px; color: var(--ink); transition: background .2s var(--ease); }
.conversation-row a:hover { background: var(--surface-2); color: var(--ink); }
.conversation-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.conversation-top { display: flex; justify-content: space-between; gap: 10px; font-size: .86rem; }
.conversation-top strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-top time { color: var(--muted); font-size: .7rem; flex-shrink: 0; }
.conversation-bottom { display: flex; align-items: center; gap: 8px; }
.conversation-preview { flex: 1; min-width: 0; color: var(--muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.count-bubble { background: var(--grad-brand); color: #fff; border-radius: 20px; min-width: 19px; height: 19px; display: grid; place-items: center; font-size: .66rem; font-weight: 700; padding: 0 5px; flex-shrink: 0; }
.messages-foot { padding: 12px 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: .72rem; display: flex; align-items: center; gap: 7px; background: var(--surface-2); }
.messages-foot i { color: var(--mint); }
.messages-side { display: grid; gap: 14px; }

.chat-shell { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; align-items: start; }
.chat-panel { padding: 0; overflow: hidden; display: flex; flex-direction: column; height: calc(100vh - 90px); height: calc(100dvh - 90px); min-height: 420px; max-height: 760px; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface); }
.chat-person { display: flex; align-items: center; gap: 10px; color: var(--ink); flex: 1; min-width: 0; }
.chat-person span { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.chat-person strong { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-person small { color: var(--muted); font-size: .73rem; }
.chat-person:hover { color: var(--ink); }
.chat-thread { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); scroll-behavior: smooth; }
.chat-crypto { align-self: center; font-size: .7rem; color: var(--muted); background: var(--surface); border: 1px solid var(--border); padding: 5px 11px; border-radius: 20px; display: inline-flex; gap: 5px; align-items: center; }
.chat-crypto i { color: var(--mint); }
.chat-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); text-align: center; padding: 30px; }
.chat-empty .empty-icon { width: 58px; height: 58px; font-size: 1.3rem; }
.chat-row { display: flex; align-items: flex-end; gap: 7px; max-width: 82%; animation: fadeUp .3s var(--ease); }
.chat-row.is-mine { margin-left: auto; flex-direction: row-reverse; }
.chat-bubble { background: var(--surface); border: 1px solid var(--border); border-radius: 4px 16px 16px 16px; padding: 9px 13px; box-shadow: var(--shadow-sm); }
.chat-row.is-mine .chat-bubble { background: var(--grad-brand); border-color: transparent; color: #fff; border-radius: 16px 4px 16px 16px; }
.chat-bubble p { font-size: .87rem; margin: 0; overflow-wrap: anywhere; }
.chat-bubble time { display: block; font-size: .64rem; opacity: .6; margin-top: 3px; text-align: right; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); background: var(--surface); }
.chat-form textarea { flex: 1; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--ink); border-radius: 20px; padding: 10px 15px; resize: none; max-height: 130px; outline: none; font-size: .88rem; line-height: 1.4; }
.chat-form textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(var(--brand-rgb),.12); }
.btn-send { width: 43px; height: 43px; padding: 0; border-radius: 50%; flex-shrink: 0; }
.chat-side { display: grid; gap: 14px; }
.chat-side-person { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; text-align: center; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.chat-side-person h2 { font-size: 1.05rem; margin-top: 8px; }
.chat-side-person > span { color: var(--muted); font-size: .8rem; }
.chat-side-person .btn { margin-top: 10px; }
.chat-delete { display: flex; align-items: center; opacity: 0; transition: opacity .18s var(--ease); }
.chat-row:hover .chat-delete,
.chat-delete:focus-within { opacity: 1; }
.chat-delete button { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; transition: background .18s var(--ease), color .18s var(--ease); }
.chat-delete button:hover { background: rgba(244, 63, 94, .12); color: #e11d48; }
.chat-delete button:disabled { opacity: .45; cursor: default; }
.icon-danger:hover { color: #e11d48; background: rgba(244, 63, 94, .12); }

.blocked-box { margin: 4px 16px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); overflow: hidden; }
.blocked-box summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.blocked-box summary::-webkit-details-marker { display: none; }
.blocked-box summary::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s var(--ease); }
.blocked-box[open] summary::after { transform: rotate(-135deg); }
.blocked-list { list-style: none; margin: 0; padding: 2px 10px 10px; display: grid; gap: 2px; }
.blocked-list li { display: flex; align-items: center; gap: 10px; padding: 7px 6px; }
.blocked-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.blocked-meta strong { font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blocked-meta small { color: var(--muted); font-size: .72rem; }

@media (hover: none) {
    .chat-delete { opacity: 1; }
    .chat-delete button { width: 34px; height: 34px; }
}

/* --------------------------------------------------------------------------
   Notifications
   -------------------------------------------------------------------------- */
.notification-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.notification-row {
    display: flex;
    align-items: center;
    gap: 11px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 13px 14px;
    box-shadow: var(--shadow-sm);
    transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.notification-row:hover { transform: translateY(-2px); border-color: rgba(var(--brand-rgb),.2); }
.notification-row.is-unread { background: linear-gradient(120deg, rgba(var(--brand-rgb),.06), rgba(255,107,139,.05)); border-color: rgba(var(--brand-rgb),.22); }
.notification-icon { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; color: #fff; font-size: .98rem; flex-shrink: 0; }
.nt-like { background: linear-gradient(135deg, #ff6b8b, #ff9f6b); }
.nt-comment { background: linear-gradient(135deg, #38bdf8, #6d5efc); }
.nt-follow { background: linear-gradient(135deg, #21d4b4, #38bdf8); }
.nt-request { background: linear-gradient(135deg, #f6b73c, #ff9f6b); }
.nt-accepted { background: linear-gradient(135deg, #19c37d, #21d4b4); }
.nt-mention { background: var(--grad-brand); }
.notification-avatar { flex-shrink: 0; }
.notification-body { flex: 1; min-width: 0; }
.notification-body p { font-size: .85rem; margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }
.notification-body a { color: var(--ink); font-weight: 700; }
.notification-body time { color: var(--muted); font-size: .7rem; }
.notification-actions { display: flex; gap: 5px; flex-shrink: 0; flex-wrap: wrap; }
.notification-actions form { margin: 0; }
.notification-row .icon-btn { width: 32px; height: 32px; }

/* --------------------------------------------------------------------------
   Settings
   -------------------------------------------------------------------------- */
.settings-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 18px 22px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background:
        radial-gradient(420px 180px at 8% 0%, rgba(var(--brand-rgb), .1), transparent 65%),
        radial-gradient(380px 180px at 96% 100%, rgba(33, 212, 180, .1), transparent 65%),
        var(--surface);
    box-shadow: var(--shadow-sm);
}
.settings-summary-avatar { flex-shrink: 0; }
.settings-summary-id { flex: 1; min-width: 180px; }
.settings-summary-id h2 { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 1.2rem; letter-spacing: -.01em; }
.settings-summary-id h2 i { color: var(--brand); font-size: .95rem; }
.settings-summary-id p { color: var(--muted); font-size: .82rem; margin-top: 3px; overflow-wrap: anywhere; }
.settings-summary-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.settings-summary .btn { margin-left: auto; }

.settings-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; }
.settings-nav {
    position: sticky;
    top: 20px;
    display: grid;
    gap: 3px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px;
    box-shadow: var(--shadow-sm);
}
.settings-nav a { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 11px; color: var(--ink-2); font-size: .86rem; font-weight: 600; transition: background .2s var(--ease), color .2s var(--ease); }
.settings-nav a i { color: var(--muted); }
.settings-nav a:hover { background: var(--surface-2); color: var(--brand); }
.settings-nav a.is-active { background: linear-gradient(120deg, rgba(var(--brand-rgb),.12), rgba(168,85,247,.08)); color: var(--brand); }
.settings-nav a.is-active i { color: var(--brand); }
.settings-danger { color: #d63350 !important; }
.settings-content { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.settings-section { scroll-margin-top: 90px; padding: 26px; }
.settings-section .panel-head h2 { font-size: 1.06rem; }
.media-settings { display: grid; gap: 14px; }
.media-upload { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; flex-wrap: wrap; }
.media-preview { width: 70px; height: 70px; border-radius: 16px; overflow: hidden; background: var(--bg-soft); flex-shrink: 0; display: grid; place-items: center; }
.media-preview-round { border-radius: 50%; }
.media-preview-cover { width: 130px; height: 70px; border-radius: 12px; }
.media-preview img { width: 100%; height: 100%; object-fit: cover; }
.cover-mini { width: 100%; height: 100%; background: var(--grad-brand); display: block; }
.media-upload-body { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 4px; }
.media-upload-body strong { font-size: .86rem; }
.file-btn { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 700; color: var(--brand); cursor: pointer; background: rgba(var(--brand-rgb),.09); border: 1px solid rgba(var(--brand-rgb),.2); border-radius: 9px; padding: 5px 10px; width: fit-content; }
.file-btn input { display: none; }
.verify-banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(246,183,60,.12); border: 1px solid rgba(246,183,60,.3); margin-bottom: 16px; }
.verify-banner i { font-size: 1.3rem; color: #c98a00; }
.verify-banner strong { font-size: .86rem; }
.verify-banner p { color: var(--ink-2); font-size: .78rem; margin: 1px 0 0; }
.verify-banner.is-verified { background: rgba(33,212,180,.11); border-color: rgba(33,212,180,.28); }
.verify-banner.is-verified i { color: #0b9b81; }
.settings-danger-zone { border-color: rgba(255,107,139,.35); }
.settings-danger-zone .panel-head h2 i { color: var(--coral); }

@media (min-width: 1440px) {
    .settings-content { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: stretch; }
    .settings-content > .settings-section { display: flex; flex-direction: column; }
    .settings-content > .settings-section > .stack-form { flex: 1; }
    .settings-content > .settings-section .form-foot { margin-top: auto; }
    #section-foto .media-settings { flex: 1; justify-content: center; }
    .settings-content > .settings-section { grid-column: span 6; }
    #section-profil { grid-column: span 7; }
    #section-foto { grid-column: span 5; }
    #section-akun { grid-column: span 6; }
    #section-sandi { grid-column: span 6; }
    #section-privasi { grid-column: span 5; }
    #section-hapus { grid-column: span 7; }
}

/* --------------------------------------------------------------------------
   Auth
   -------------------------------------------------------------------------- */
.auth-body { background: var(--bg); }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-visual {
    position: relative;
    overflow: hidden;
    padding: 42px clamp(28px, 5vw, 64px);
    display: flex;
    flex-direction: column;
    gap: 26px;
    color: #fff;
    background: linear-gradient(150deg, #241a63 0%, #4c2bb8 40%, #7c3aed 68%, #c2418f 100%);
}
.auth-visual-glow { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; }
.auth-glow-a { width: 340px; height: 340px; background: rgba(33,212,180,.55); top: -80px; right: -60px; animation: float 10s ease-in-out infinite; }
.auth-glow-b { width: 300px; height: 300px; background: rgba(255,107,139,.5); bottom: 8%; left: -80px; animation: float 12s ease-in-out infinite reverse; }
.auth-visual-copy { position: relative; z-index: 1; margin-top: 6vh; max-width: 460px; }
.auth-visual-copy h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 12px; }
.auth-visual-copy p { color: rgba(255,255,255,.78); font-size: .95rem; }
.auth-features { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.auth-features li { display: flex; align-items: center; gap: 10px; font-size: .86rem; color: rgba(255,255,255,.9); }
.auth-features i { width: 30px; height: 30px; border-radius: 9px; background: rgba(255,255,255,.14); display: grid; place-items: center; font-size: .82rem; }
.auth-preview { position: relative; z-index: 1; margin-top: auto; display: grid; gap: 9px; max-width: 400px; }
.preview-card { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(10px); border-radius: 16px; padding: 10px 13px; animation: fadeUp .6s var(--ease) both; }
.preview-a { transform: translateX(0); }
.preview-b { transform: translateX(22px); animation-delay: .12s; }
.preview-c { transform: translateX(6px); animation-delay: .24s; }
.preview-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: .68rem; font-weight: 800; color: #fff; flex-shrink: 0; }
.pa-a { background: linear-gradient(135deg,#ff9f6b,#ff6b8b); }
.pa-b { background: linear-gradient(135deg,#21d4b4,#38bdf8); }
.pa-c { background: linear-gradient(135deg,#a855f7,#6d5efc); }
.preview-card div { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.preview-card strong { font-size: .76rem; }
.preview-card small { color: rgba(255,255,255,.7); font-size: .66rem; }
.preview-pill { font-size: .64rem; font-weight: 700; background: #fff; color: #4c2bb8; padding: 3px 9px; border-radius: 20px; }
.preview-heart { color: #ffb3c2; }
.preview-lock { color: #8ef0da; }
.auth-quote { position: relative; z-index: 1; color: rgba(255,255,255,.62); font-size: .78rem; font-style: italic; max-width: 380px; }

.auth-panel { display: flex; flex-direction: column; padding: 30px clamp(24px, 5vw, 70px); min-height: 100vh; }
.auth-panel-top { display: flex; align-items: center; justify-content: space-between; }
.auth-panel-inner { width: 100%; max-width: 430px; margin: auto; padding: 26px 0; }
.auth-panel-foot { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; color: var(--muted); font-size: .72rem; padding-top: 16px; }
.auth-panel-foot a { color: var(--muted); }
.auth-panel-foot a:hover { color: var(--brand); }

.auth-card { display: flex; flex-direction: column; gap: 18px; }
.auth-captcha { display: flex; justify-content: center; min-height: 78px; align-items: center; }
.auth-captcha > div { max-width: 100%; }
.auth-head h1 { font-size: clamp(1.6rem, 2.4vw, 2rem); }
.auth-head p { color: var(--muted); font-size: .88rem; margin-top: 6px; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.auth-row-end { justify-content: flex-end; }
.auth-switch { text-align: center; color: var(--muted); font-size: .85rem; }
.auth-switch a { font-weight: 700; }
.auth-security { display: flex; align-items: center; gap: 8px; justify-content: center; color: var(--muted); font-size: .7rem; border-top: 1px solid var(--border); padding-top: 14px; }
.auth-security i { color: var(--mint); }
.auth-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 13px; background: rgba(56,189,248,.1); border: 1px solid rgba(56,189,248,.22); color: var(--ink-2); font-size: .8rem; }
.auth-note i { color: #0284c7; margin-top: 2px; }
.auth-note-warn { background: rgba(246,183,60,.12); border-color: rgba(246,183,60,.3); }
.auth-note-warn i { color: #b47a00; }

/* --------------------------------------------------------------------------
   Errors
   -------------------------------------------------------------------------- */
.error-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background:
        radial-gradient(500px 360px at 20% 0%, rgba(var(--brand-rgb),.16), transparent 60%),
        radial-gradient(500px 360px at 100% 100%, rgba(255,107,139,.13), transparent 60%),
        var(--bg);
    padding: 30px 18px;
}
.error-shell { width: 100%; max-width: 560px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.error-card {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 42px 32px 36px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.error-orbs span { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .4; }
.error-orbs span:nth-child(1) { width: 180px; height: 180px; background: var(--brand); top: -70px; left: -50px; }
.error-orbs span:nth-child(2) { width: 160px; height: 160px; background: var(--coral); bottom: -60px; right: -40px; }
.error-orbs span:nth-child(3) { width: 120px; height: 120px; background: var(--mint); bottom: 20px; left: 10%; opacity: .25; }
.error-icon { position: relative; width: 76px; height: 76px; margin: 0 auto 8px; border-radius: 24px; background: var(--grad-brand); color: #fff; display: grid; place-items: center; font-size: 1.9rem; box-shadow: 0 14px 30px rgba(var(--brand-rgb),.35); }
.error-code { position: relative; display: block; font-family: var(--font); font-size: clamp(3rem, 9vw, 4.6rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-card h1 { position: relative; font-size: 1.35rem; margin: 8px 0 8px; }
.error-card p { position: relative; color: var(--muted); font-size: .88rem; max-width: 42ch; margin: 0 auto; }
.error-actions { position: relative; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.error-foot { color: var(--muted); font-size: .74rem; text-align: center; }

/* --------------------------------------------------------------------------
   Dialog, lightbox, toast
   -------------------------------------------------------------------------- */
.dialog { border: 0; padding: 0; background: transparent; max-width: 460px; width: calc(100% - 32px); }
.dialog::backdrop { background: rgba(12, 10, 35, .55); backdrop-filter: blur(4px); }
.dialog-card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 22px; box-shadow: var(--shadow-lg); display: grid; gap: 13px; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dialog-head h2 { font-size: 1.05rem; display: inline-flex; align-items: center; gap: 8px; }
.dialog-head h2 i { color: var(--coral); }
.dialog-sub { color: var(--muted); font-size: .82rem; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }

.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(8, 6, 25, .9); display: grid; place-items: center; padding: 30px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 94vw; max-height: 88vh; border-radius: 14px; box-shadow: var(--shadow-lg); }
.lightbox-close { position: absolute; top: 18px; right: 22px; background: rgba(255,255,255,.14); border: 0; color: #fff; font-size: 1.7rem; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; }

.toast-stack { position: fixed; right: 18px; bottom: 22px; z-index: 150; display: flex; flex-direction: column; gap: 8px; max-width: calc(100% - 36px); }
.toast {
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--border);
    border-left: 4px solid var(--brand);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 11px 15px;
    font-size: .84rem;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: toastIn .3s var(--ease);
}
.toast.is-error { border-left-color: var(--coral); }
.toast.is-success { border-left-color: var(--mint); }
.toast.is-leaving { animation: toastOut .25s var(--ease) forwards; }

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes popIn { from { opacity: 0; transform: scale(.96) translateY(-4px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-12px) rotate(-2deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(33,212,180,.5); } 70% { box-shadow: 0 0 0 9px rgba(33,212,180,0); } 100% { box-shadow: 0 0 0 0 rgba(33,212,180,0); } }
@keyframes pulseSoft { 0%, 100% { box-shadow: 0 0 0 6px rgba(var(--brand-rgb),.18), 0 8px 20px rgba(var(--brand-rgb),.35); } 50% { box-shadow: 0 0 0 14px rgba(var(--brand-rgb),.06), 0 8px 20px rgba(var(--brand-rgb),.35); } }
@keyframes heartPop { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

.feed-list .post-card:nth-child(2) { animation-delay: .04s; }
.feed-list .post-card:nth-child(3) { animation-delay: .08s; }
.feed-list .post-card:nth-child(4) { animation-delay: .12s; }
.feed-list .post-card:nth-child(5) { animation-delay: .16s; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1280px) {
    :root { --rail: 300px; }
    .app-shell { gap: 22px; padding: 0 20px; }
}

@media (max-width: 1200px) {
    .app-shell { grid-template-columns: var(--sidebar) minmax(0, 1fr); }
    .rail { display: none; }
    .feature-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .composer-layout { grid-template-columns: minmax(0, 1fr) minmax(280px, 320px); }
    .settings-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 18px; }
    .settings-content .field-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
    .app-shell, .app-shell-wide { display: block; max-width: 760px; padding: 0 16px; }
    .app-shell-full { display: block; max-width: none; padding: 0 16px; }
    .sidebar { display: none; }

    .mobile-topbar {
        position: fixed;
        top: 0; left: 0; right: 0;
        z-index: 80;
        height: var(--topbar);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: calc(8px + env(safe-area-inset-top)) 16px 8px;
        background: color-mix(in srgb, var(--surface) 86%, transparent);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border);
    }
    .mobile-actions { display: flex; align-items: center; gap: 2px; }
    .mobile-avatar { margin-left: 2px; }
    .has-dot { position: relative; }
    .dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); border: 2px solid var(--surface); }

    .main { padding: calc(var(--topbar) + 16px + env(safe-area-inset-top)) 0 calc(var(--bottomnav) + 40px + env(safe-area-inset-bottom)); }
    .main-inner { max-width: 100%; }

    .mobile-tabs {
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 90;
        height: calc(var(--bottomnav) + env(safe-area-inset-bottom));
        padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
        display: flex;
        align-items: flex-end;
        justify-content: space-around;
        background: color-mix(in srgb, var(--surface) 92%, transparent);
        backdrop-filter: blur(18px);
        border-top: 1px solid var(--border);
    }
    .tab {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        padding: 5px 0;
        color: var(--muted);
        font-size: .62rem;
        font-weight: 700;
        position: relative;
        border-radius: 12px;
        transition: color .2s var(--ease);
    }
    .tab i { font-size: 1.22rem; }
    .tab.is-active { color: var(--brand); }
    .tab .dot { top: 2px; right: calc(50% - 16px); border-color: var(--surface); }
    .tab-create { flex: 0 0 66px; margin-bottom: 6px; }
    .tab-fab {
        width: 52px; height: 52px;
        border-radius: 18px;
        background: var(--grad-brand);
        color: #fff;
        display: grid;
        place-items: center;
        font-size: 1.4rem;
        box-shadow: 0 10px 24px rgba(var(--brand-rgb),.4);
        transform: translateY(-10px) rotate(0deg);
        transition: transform .25s var(--ease), box-shadow .25s var(--ease);
    }
    .tab-create:hover .tab-fab { transform: translateY(-13px) scale(1.04); }

    .hero { grid-template-columns: 1fr; gap: 26px; padding-top: 8px; }
    .hero-visual { min-height: 360px; }
    .feature-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .composer-layout, .messages-shell, .chat-shell { grid-template-columns: 1fr; }
    .composer-aside { position: static; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
    .messages-side, .chat-side { display: none; }
    .chat-panel { height: calc(100vh - var(--topbar) - var(--bottomnav) - 56px); height: calc(100dvh - var(--topbar) - var(--bottomnav) - 56px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); max-height: none; }
    .conversation-list { max-height: none; }
    .messages-panel { display: flex; flex-direction: column; max-height: calc(100dvh - var(--topbar) - var(--bottomnav) - 56px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
    .conversation-list { overflow-y: auto; flex: 1; }
    .settings-layout { grid-template-columns: 1fr; }
    .settings-content { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .settings-content .field-grid { grid-template-columns: 1fr; }
    .settings-nav {
        position: sticky;
        top: calc(var(--topbar) + env(safe-area-inset-top));
        z-index: 40;
        display: flex;
        overflow-x: auto;
        gap: 4px;
        padding: 6px;
        scrollbar-width: none;
    }
    .settings-nav::-webkit-scrollbar { display: none; }
    .settings-nav a { white-space: nowrap; padding: 7px 10px; font-size: .76rem; }
    .settings-section { scroll-margin-top: calc(var(--topbar) + 70px); }
    .profile-main { grid-template-columns: minmax(0, 1fr); }
    .profile-posts-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
}

@media (min-width: 1025px) {
    .mobile-topbar, .mobile-tabs { display: none; }
}

@media (max-width: 720px) {
    body { font-size: 14.5px; }
    .page-head { margin-bottom: 16px; }
    .hero-copy h1 { font-size: 2rem; }
    .hero-visual { min-height: 330px; }
    .float-chip-a { left: 0; }
    .float-chip-b { right: 0; }
    .feature-strip { grid-template-columns: 1fr; }
    .feature { padding: 14px; }
    .user-grid { grid-template-columns: 1fr; }
    .field-grid { grid-template-columns: 1fr; }
    .compose-prompt { flex-wrap: wrap; }
    .compose-prompt-actions { width: 100%; justify-content: space-between; }
    .post-card { padding: 14px; border-radius: 18px; }
    .post-author-line strong { max-width: 46vw; }
    .action-label { display: none; }
    .post-actions { gap: 0; justify-content: space-between; }
    .action-btn { padding: 8px 10px; }
    .media-count-1 .media-item { max-height: 380px; }
    .media-count-3 { grid-template-rows: repeat(2, 118px); }
    .media-count-4 { grid-template-rows: repeat(2, 118px); }
    .media-count-2 .media-item, .media-count-3 .media-item, .media-count-4 .media-item { height: 118px; }
    .comments { padding: 16px; }
    .comment.depth-1, .comment.depth-2, .comment.depth-3 { margin-left: 30px; }
    .profile-cover { height: 156px; }
    .profile-bar { padding: 0 18px; margin-top: -54px; gap: 10px; }
    .profile-avatar-wrap .avatar-hero { width: 100px; height: 100px; border-width: 4px; }
    .profile-main { padding: 14px 18px 22px; gap: 18px; }
    .profile-id h1 { font-size: 1.45rem; }
    .profile-actions { width: 100%; justify-content: flex-start; padding-bottom: 0; }
    .profile-actions .btn { padding: 9px 14px; }
    .profile-stats { gap: 8px; }
    .stat-inner { padding: 11px 12px; }
    .stat-ico { width: 34px; height: 34px; font-size: .92rem; }
    .profile-posts { margin-top: 24px; }
    .settings-content { grid-template-columns: minmax(0, 1fr); }
    .settings-summary { padding: 16px; border-radius: 20px; }
    .settings-summary .btn { margin-left: 0; }
    .settings-section { padding: 20px; }
    .composer-form textarea { min-height: 200px; }
    .upload-trigger { padding: 24px 16px; }
    .panel { padding: 18px; border-radius: 18px; }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-visual { display: none; }
    .auth-panel { padding: 20px 18px 28px; min-height: 100vh; }
    .auth-panel-inner { padding: 18px 0; }
    .cta-band-inner { padding: 32px 20px; }
    .notification-row { flex-wrap: wrap; }
    .notification-body { flex: 1 1 60%; }
    .notification-actions { width: 100%; justify-content: flex-end; }
    .media-upload { flex-direction: column; align-items: flex-start; }
    .media-upload .btn { align-self: flex-end; }
    .toast-stack { left: 16px; right: 16px; bottom: calc(var(--bottomnav) + 14px); max-width: none; }
    .chat-panel { border-radius: 18px; }
    .messages-shell { gap: 14px; }
    .chat-head { padding: 10px 12px; gap: 8px; }
    .chat-thread { padding: 12px; gap: 8px; }
    .chat-row { max-width: 88%; }
    .chat-bubble { padding: 8px 12px; }
    .chat-bubble p { font-size: .9rem; }
    .chat-form { padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 6px; }
    .chat-form textarea { font-size: 16px; padding: 9px 14px; max-height: 110px; }
    .btn-send { width: 42px; height: 42px; }
    .chat-delete { opacity: 1; }
    .chat-delete button { width: 34px; height: 34px; }
    .conversation-list { padding: 0 6px 6px; }
    .conversation-row a { padding: 11px 10px; }
    .messages-head { padding: 18px 16px 12px; }
    .messages-search { margin: 0 12px 10px; }
    .messages-foot { padding: 10px 14px; }
    .blocked-box { margin: 4px 12px 12px; }
    .nearby-map { height: 200px; }
}

@media (max-width: 420px) {
    .app-shell { padding: 0 12px; }
    .brand-text small { display: none; }
    .story { width: 70px; }
    .story-ring { width: 62px; height: 62px; }
    .hero-stats { gap: 18px; }
    .post-author-line strong { max-width: 40vw; }
    .mobile-topbar { padding-left: 12px; padding-right: 12px; }
    .profile-cover { height: 136px; }
    .profile-bar { padding: 0 14px; margin-top: -48px; }
    .profile-avatar-wrap .avatar-hero { width: 88px; height: 88px; }
    .profile-main { padding: 12px 14px 18px; }
    .stat-ico { width: 30px; height: 30px; font-size: .85rem; }
    .stat-body strong { font-size: 1.05rem; }
    .settings-summary { gap: 12px; }
    .settings-section { padding: 16px; }
    .composer-form textarea { min-height: 180px; }
    .chat-row { max-width: 92%; }
    .chat-head { padding: 9px 10px; }
    .chat-person small { max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .messages-head h1 { font-size: 1.2rem; }
    .messages-shell { gap: 12px; }
    .chat-side-person { padding: 18px; }
    .blocked-list li { padding: 7px 2px; }
    .blocked-list .btn { padding: 5px 9px; font-size: .72rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}

/* --------------------------------------------------------------------------
   Account verification
   -------------------------------------------------------------------------- */
.verified-badge {
    color: #1d9bf0;
    font-size: .92em;
    vertical-align: -.08em;
    margin-left: 4px;
    filter: drop-shadow(0 2px 4px rgba(29, 155, 240, .28));
}
[data-theme="dark"] .verified-badge { color: #5ab4ff; }
.post-author-name .verified-badge,
.conversation-top .verified-badge,
.chat-person .verified-badge,
.person-meta .verified-badge,
.side-user-meta .verified-badge { margin-left: 3px; font-size: .82em; }

/* --------------------------------------------------------------------------
   Discovery layouts (feed, explore, search, nearby, tags, notifications)
   -------------------------------------------------------------------------- */
.feed-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.feed-main { min-width: 0; }
.feed-aside { display: none; min-width: 0; }
.feed-aside .rail-card,
.notif-aside .rail-card { position: static; }
.rail-cta h2 { display: flex; align-items: center; gap: 8px; font-size: .96rem; margin-bottom: 6px; }
.rail-cta h2 i { color: var(--brand); }
.rail-cta p { color: var(--muted); font-size: .8rem; margin-bottom: 12px; }

.post-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.post-grid > .post-card { height: 100%; }
.user-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.notif-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.notif-main { min-width: 0; }
.notif-aside { display: grid; gap: 14px; }
.notif-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.notif-links { display: grid; gap: 4px; }
.notif-links a { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 11px; color: var(--ink); font-size: .84rem; font-weight: 600; transition: background .2s var(--ease); }
.notif-links a:hover { background: var(--surface-2); color: var(--ink); }
.notif-links a i { color: var(--brand); }

.stat-chip {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px;
    border-radius: 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    min-width: 96px;
}
.stat-chip strong { font-size: 1.15rem; line-height: 1.1; }
.stat-chip span { font-size: .7rem; color: var(--muted); }

.page-head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tag-hero-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.tag-hero .verified-badge { margin-left: 4px; }
.mini-name { display: inline-flex; align-items: center; justify-content: center; gap: 3px; max-width: 100%; }
.mini-name .verified-badge { margin-left: 0; }

/* Tag directory */
.tags-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid var(--border);
    border-radius: 26px;
    margin-bottom: 24px;
    background:
        radial-gradient(420px 220px at 8% 0%, rgba(var(--brand-rgb), .14), transparent 62%),
        radial-gradient(360px 220px at 96% 100%, rgba(33, 212, 180, .12), transparent 60%),
        var(--surface);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.tags-hero-copy .eyebrow { margin-bottom: 6px; }
.tags-hero-copy h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: -.02em; margin-bottom: 8px; }
.tags-hero-copy > p { color: var(--muted); font-size: .9rem; max-width: 56ch; }
.tags-hero-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.tags-hero-cloud { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.tag-pill-hot { background: linear-gradient(135deg, rgba(var(--brand-rgb), .16), rgba(255, 107, 139, .12)); border-color: rgba(var(--brand-rgb), .28); }

.tag-directory { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.tag-group {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
}
.tag-letter { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--surface-2); color: var(--brand); font-weight: 800; font-size: 1.15rem; }
.tag-group-body h3 { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .9rem; margin-bottom: 10px; }
.tag-group-body h3 span { color: var(--muted); font-size: .72rem; font-weight: 600; }
.tag-group .tag-cloud { gap: 7px; }
.tag-group .tag-pill { padding: 6px 11px; font-size: .8rem; }

@media (min-width: 760px) {
    .tags-hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; }
    .user-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
    .feed-layout { grid-template-columns: minmax(0, 1fr) 318px; align-items: start; }
    .feed-aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 24px; }
    .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .notif-layout { grid-template-columns: minmax(0, 1fr) 300px; }
    .notif-aside { position: sticky; top: 24px; }
    .tag-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}

@media (max-width: 1024px) {
    .feed-layout .feed-tabs {
        position: sticky;
        top: calc(var(--topbar) + env(safe-area-inset-top));
        z-index: 9;
        margin-top: 8px;
        backdrop-filter: blur(14px);
    }
}

@media (max-width: 720px) {
    .tags-hero { border-radius: 20px; }
    .tag-group { grid-template-columns: 42px minmax(0, 1fr); padding: 14px; }
    .tag-letter { width: 38px; height: 38px; border-radius: 12px; font-size: 1rem; }
}

/* --------------------------------------------------------------------------
   Landing page v2
   -------------------------------------------------------------------------- */
.landing-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 40px;
    align-items: center;
    padding: clamp(22px, 4vw, 44px) clamp(18px, 3vw, 36px);
    margin: 14px 0 6px;
    border: 1px solid var(--border);
    border-radius: 30px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.landing-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.landing-blob { position: absolute; border-radius: 50%; filter: blur(72px); opacity: .32; }
.landing-blob.blob-a { width: 380px; height: 380px; background: rgba(var(--brand-rgb), .5); top: -150px; right: -70px; }
.landing-blob.blob-b { width: 300px; height: 300px; background: rgba(33, 212, 180, .45); bottom: -150px; left: -90px; }
.landing-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(var(--brand-rgb), .18) 1px, transparent 0);
    background-size: 26px 26px;
    -webkit-mask-image: linear-gradient(120deg, #000, transparent 70%);
    mask-image: linear-gradient(120deg, #000, transparent 70%);
    opacity: .55;
}
.landing-hero > :not(.landing-hero-bg) { position: relative; z-index: 1; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .72rem;
    font-weight: 700;
    color: var(--ink-2);
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 6px 11px;
    border-radius: 999px;
}
.hero-trust i { color: var(--brand); }

.mock-play { position: absolute; inset: 0; display: grid; place-items: center; }
.mock-play i {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .88);
    color: #6d5efc;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 22px rgba(20, 22, 43, .24);
}

.how-section { margin-top: 38px; }
.section-head-center { flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.section-head-center > div { max-width: 640px; }
.section-head-center h2 { justify-content: center; font-size: clamp(1.35rem, 2.6vw, 1.9rem); }
.eyebrow-center { justify-content: center; }
.section-lead { color: var(--muted); font-size: .9rem; margin-top: 8px; }

.how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.how-card {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 24px 22px 22px;
    box-shadow: var(--shadow-sm);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.how-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(var(--brand-rgb), .25); }
.how-card::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -80px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--brand-rgb), .12), transparent 70%);
    pointer-events: none;
}
.how-num {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.06em;
    color: var(--bg-soft);
}
[data-theme="dark"] .how-num { color: var(--surface-2); }
.how-icon { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: #fff; font-size: 1.2rem; margin-bottom: 16px; }
.how-card h3 { font-size: 1rem; margin-bottom: 6px; }
.how-card p { color: var(--muted); font-size: .83rem; }

/* --------------------------------------------------------------------------
   CMS pages (.prose)
   -------------------------------------------------------------------------- */
.cms-page { max-width: 880px; margin: 0 auto; padding: 4px 0 20px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .78rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--muted); font-weight: 600; }
.breadcrumbs a:hover { color: var(--brand); }
.cms-page-head { margin-bottom: 22px; }
.cms-page-head h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.02em; margin-bottom: 8px; }
.cms-page-lead { color: var(--ink-2); font-size: 1rem; max-width: 62ch; }
.cms-page-meta { color: var(--muted); font-size: .75rem; margin-top: 10px; }
.cms-page-body {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: clamp(20px, 4vw, 40px);
    box-shadow: var(--shadow-sm);
}
.prose { color: var(--ink-2); font-size: .94rem; line-height: 1.78; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); line-height: 1.3; margin: 1.6em 0 .6em; }
.prose h2 { font-size: 1.3rem; }
.prose h3 { font-size: 1.1rem; }
.prose h4 { font-size: 1rem; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre, .prose table, .prose figure { margin: 0 0 1.05em; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li { margin: .35em 0; }
.prose blockquote { border-left: 3px solid var(--brand); background: var(--surface-2); border-radius: 0 14px 14px 0; padding: 12px 18px; }
.prose img { max-width: 100%; height: auto; border-radius: 16px; display: block; }
.prose figure { text-align: center; }
.prose figcaption { color: var(--muted); font-size: .78rem; margin-top: 8px; }
.prose code { background: var(--bg-soft); border-radius: 6px; padding: 2px 6px; font-size: .86em; }
.prose pre { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 14px; padding: 16px; overflow: auto; }
.prose pre code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.prose th { background: var(--surface-2); color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 1.6em 0; }

/* --------------------------------------------------------------------------
   Ad zones
   -------------------------------------------------------------------------- */
.ad-zone { display: grid; gap: 14px; margin: 24px 0; }
.ad-zone:empty { display: none; }
.ad-zone-header { margin: 0 0 18px; }
.ad-zone-footer { margin: 24px 0 6px; }
.ad-zone-feed_inline,
.ad-zone-explore_inline,
.ad-zone-search_inline,
.ad-zone-post_below { margin: 16px 0; }
.ad-zone-explore_inline,
.ad-zone-search_inline { grid-column: 1 / -1; }

.ad-card {
    position: relative;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.ad-card-image a, .ad-card-image img { display: block; }
.ad-card-image img { width: 100%; height: auto; max-height: 320px; object-fit: cover; }
.ad-card-text { padding: 16px 18px; }
.ad-card-text p { margin: 0; font-size: .88rem; color: var(--ink-2); }
.ad-card-text a { color: var(--brand); font-weight: 600; }
.ad-card-html { padding: 16px; font-size: .88rem; overflow-wrap: break-word; }
.ad-card-html img, .ad-card-html iframe { max-width: 100%; }
.ad-card-html iframe { border: 0; display: block; margin: 0 auto; }
.ad-label {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(20, 22, 43, .55);
    padding: 3px 8px;
    border-radius: 999px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

/* --------------------------------------------------------------------------
   Google sign-in
   -------------------------------------------------------------------------- */
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-divider span { flex-shrink: 0; }
.btn-google { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--surface); color: var(--ink); border: 1px solid var(--border-strong); }
.btn-google:hover { background: var(--surface-2); border-color: rgba(var(--brand-rgb), .4); color: var(--ink); transform: translateY(-1px); }
.google-icon { width: 18px; height: 18px; flex-shrink: 0; }

/* --------------------------------------------------------------------------
   Video media & uploads
   -------------------------------------------------------------------------- */
.media-video { cursor: default; background: #000; }
.media-video video { width: 100%; height: 100%; display: block; background: #000; object-fit: cover; }
.media-count-1.has-video .media-video video { max-height: 480px; object-fit: contain; }
.media-count-2 .media-video video,
.media-count-3 .media-video video,
.media-count-4 .media-video video { height: 150px; }
.upload-zone-video .upload-trigger i { color: var(--coral); }

.upload-thumb,
.preview-thumb {
    position: relative;
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--bg-soft);
    border: 1px solid var(--border);
}
.upload-thumb img,
.upload-thumb video,
.preview-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.upload-thumb figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 4px 7px;
    font-size: .58rem;
    color: #fff;
    background: linear-gradient(transparent, rgba(0, 0, 0, .68));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.upload-thumb-video::after {
    content: "▶";
    position: absolute;
    top: 6px;
    left: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    font-size: .55rem;
    padding-left: 1px;
}
.upload-zone.is-dragging { border-color: var(--brand); background: rgba(var(--brand-rgb), .05); }

/* --------------------------------------------------------------------------
   Sidebar/footer extras
   -------------------------------------------------------------------------- */
.nav-divider { display: block; height: 1px; margin: 10px 8px; background: var(--border); }
.site-footer {
    margin-top: 32px;
    padding: 22px 4px 12px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}
.site-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.site-footer-links a { color: var(--muted); font-size: .78rem; font-weight: 600; }
.site-footer-links a:hover { color: var(--brand); }
.site-footer-copy { color: var(--muted); font-size: .72rem; margin: 0; }

/* --------------------------------------------------------------------------
   Responsive tuning for the new blocks
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .landing-hero { grid-template-columns: minmax(0, 1fr); gap: 30px; text-align: center; }
    .landing-hero .hero-copy { display: flex; flex-direction: column; align-items: center; }
    .landing-hero .hero-lead, .landing-hero .hero-stats { justify-content: center; }
    .landing-hero .hero-actions, .landing-hero .hero-trust { justify-content: center; }
    .landing-hero .hero-visual { min-height: 380px; }
    .how-grid { grid-template-columns: minmax(0, 1fr); }
    .how-card { padding: 20px 18px; }
}

@media (max-width: 720px) {
    .landing-hero { border-radius: 22px; padding: 22px 16px; margin-top: 8px; }
    .landing-hero .hero-visual { min-height: 330px; }
    .landing-blob { filter: blur(56px); opacity: .26; }
    .hero-trust { gap: 6px; }
    .hero-trust span { font-size: .68rem; padding: 5px 9px; }
    .cms-page-body { border-radius: 18px; }
    .ad-card-image img { max-height: 220px; }
    .section-head-center h2 { text-align: center; }
}

/* --------------------------------------------------------------------------
   Post permalink
   -------------------------------------------------------------------------- */
.post-page .main-inner { max-width: 1040px; }

.post-page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 2px 0 14px; }
.post-page-head .link-back {
    margin-bottom: 0;
    padding: 7px 13px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.post-page-head .link-back:hover { color: var(--brand); border-color: rgba(var(--brand-rgb), .3); transform: translateY(-1px); }
.post-page-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: .72rem;
    font-weight: 700;
}
.post-page-chip i { color: var(--brand); }

.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.post-main { min-width: 0; }

.post-aside { position: sticky; top: 24px; display: grid; gap: 16px; }
.post-aside-card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 20px; box-shadow: var(--shadow-sm); }
.post-aside-label { margin: 0 0 14px; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.post-author-card-head { display: flex; align-items: center; gap: 12px; }
.post-author-card-avatar { flex-shrink: 0; display: block; border-radius: 50%; }
.post-author-card-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.post-author-card-name { display: inline-flex; align-items: center; gap: 4px; min-width: 0; color: var(--ink); font-size: .95rem; font-weight: 700; }
.post-author-card-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-author-card-name:hover, .post-author-card-handle:hover { color: var(--brand); }
.post-author-card-handle { color: var(--muted); font-size: .78rem; }
.post-author-card-bio { margin: 14px 0 0; color: var(--ink-2); font-size: .84rem; line-height: 1.6; overflow-wrap: anywhere; }
.post-author-card-location { display: flex; align-items: center; gap: 5px; margin: 10px 0 0; color: var(--muted); font-size: .78rem; }
.post-author-card-location i { color: var(--coral); }
.post-aside-card .btn { margin-top: 16px; }
.post-share-note { margin: -4px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.55; }

.post-detail .post-card { padding: clamp(18px, 2.2vw, 26px); border-radius: 26px; animation: none; }
.post-detail .post-card:hover { border-color: var(--border); box-shadow: var(--shadow-sm); }
.post-detail .post-head { gap: 12px; }
.post-detail .post-author-line strong { font-size: .98rem; }
.post-detail .post-body { margin-top: 16px; font-size: 1.02rem; line-height: 1.72; }
.post-detail .post-media { margin-top: 16px; border-radius: 18px; }
.post-detail .media-count-1 .media-item, .post-detail .media-count-1 .post-image { max-height: 560px; }
.post-detail .post-actions { margin-top: 18px; padding-top: 14px; }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 2px 0; }
.post-tags a {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--ink-2);
    font-size: .76rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.post-tags a i { color: var(--brand); }
.post-tags a:hover { color: var(--brand); border-color: rgba(var(--brand-rgb), .3); transform: translateY(-1px); }

.post-page .comments { margin-top: 20px; padding: clamp(18px, 2.2vw, 26px); background: var(--surface); border: 1px solid var(--border); border-radius: 26px; box-shadow: var(--shadow-sm); }
.post-page .comments-head h2 { font-size: 1.06rem; }
.post-page .empty-inline { background: var(--surface-2); }
.post-page .ad-zone { margin: 20px 0 0; }

@media (max-width: 1100px) {
    .post-layout { grid-template-columns: minmax(0, 1fr); }
    .post-aside { display: none; }
    .post-page .main-inner { max-width: 760px; }
}

@media (max-width: 720px) {
    .post-page-head { margin-bottom: 12px; }
    .post-page-head .link-back, .post-page-chip { padding: 6px 10px; font-size: .72rem; }
    .post-detail .post-card { padding: 16px; border-radius: 20px; }
    .post-detail .post-body { font-size: .96rem; line-height: 1.66; }
    .post-detail .post-actions { gap: 2px; }
    .post-detail .action-btn { padding: 8px 9px; }
    .post-page .comments { padding: 16px; border-radius: 20px; }
    .post-page .comment.depth-1 { margin-left: 20px; }
    .post-page .comment.depth-2, .post-page .comment.depth-3 { margin-left: 34px; }
    .post-page .comments-cta .btn { width: 100%; justify-content: center; }
    .post-page .ad-zone { margin-top: 16px; }
}

@media (max-width: 420px) {
    .post-detail .action-label { display: none; }
    .post-detail .action-btn { gap: 5px; }
    .post-page .comment.depth-2, .post-page .comment.depth-3 { margin-left: 22px; }
}

/* ==========================================================================
   Stores / WA shop
   ========================================================================== */
.store-page .main-inner { max-width: 1040px; }
.store-page-head { align-items: flex-start; flex-wrap: wrap; }
.store-page-head .page-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.store-explore {
    background:
        radial-gradient(460px 240px at 8% 0%, rgba(var(--brand-rgb), .14), transparent 65%),
        radial-gradient(380px 220px at 94% 10%, rgba(33, 212, 180, .12), transparent 60%),
        var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: 14px;
    margin-bottom: 22px;
}

.store-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 6px 6px 6px 16px;
}
.store-search > i { color: var(--muted); }
.store-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    outline: none;
    font-size: .92rem;
    padding: 10px 0;
}
.store-search .btn { flex: 0 0 auto; }

.store-cat-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 6px;
    scrollbar-width: none;
}
.store-cat-scroll::-webkit-scrollbar { display: none; }
.store-cat {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 8px 13px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--ink-2);
    font-size: .8rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all .2s var(--ease);
}
.store-cat i { color: var(--brand); font-size: .9rem; }
.store-cat:hover { border-color: rgba(var(--brand-rgb), .35); color: var(--brand); transform: translateY(-1px); }
.store-cat.is-active { background: var(--grad-brand); border-color: transparent; color: #fff; box-shadow: 0 10px 22px rgba(var(--brand-rgb), .28); }
.store-cat.is-active i { color: #fff; }
.store-cat-count { font-size: .68rem; padding: 1px 6px; border-radius: 999px; background: rgba(var(--brand-rgb), .1); }
.store-cat.is-active .store-cat-count { background: rgba(255, 255, 255, .22); }

.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 18px; }
.store-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.store-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(var(--brand-rgb), .22); }
.store-card-cover {
    position: relative;
    height: 116px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4b3bb3, #7c4ee0 55%, #d357a2);
    overflow: hidden;
}
.store-card-glow {
    position: absolute;
    inset: -40% -10% auto auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .34), transparent 68%);
}
.store-card-cover img {
    position: relative;
    width: 66px;
    height: 66px;
    border-radius: 19px;
    object-fit: cover;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 14, 40, .3);
}
.store-card-initial {
    position: relative;
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    border-radius: 19px;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .34);
    color: #fff;
    font-family: var(--font);
    font-weight: 800;
    font-size: 1.5rem;
    backdrop-filter: blur(8px);
}
.store-card-body { display: flex; flex-direction: column; gap: 7px; padding: 15px 16px 16px; flex: 1; }
.store-card-name { font-size: 1.02rem; line-height: 1.3; }
.store-card-name a { color: var(--ink); }
.store-card-name a:hover { color: var(--brand); }
.store-card-tagline {
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.35em;
}
.store-card-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.store-card-meta .chip { font-size: .68rem; padding: 4px 8px; }
.store-card-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.store-card-owner { font-size: .76rem; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }

.store-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.store-page-count { color: var(--muted); font-size: .82rem; }

.store-seo-copy {
    max-width: 780px;
    margin: 30px auto 0;
    padding: 22px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    color: var(--ink-2);
    font-size: .9rem;
    line-height: 1.7;
}
.store-seo-copy h2 { font-size: 1.12rem; margin-bottom: 8px; }
.store-seo-copy p + p { margin-top: 8px; }
.store-seo-compact { margin-top: 24px; }

/* Storefront */
.store-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: .78rem;
    color: var(--muted);
    margin-bottom: 14px;
}
.store-breadcrumb a { color: var(--ink-2); display: inline-flex; align-items: center; gap: 5px; }
.store-breadcrumb a:hover { color: var(--brand); }
.store-breadcrumb span:last-child { color: var(--ink); font-weight: 600; }

.store-hero {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: clamp(20px, 3vw, 32px);
    background: linear-gradient(135deg, #171a36 0%, #30256d 52%, #6d3fa8 100%);
    color: #fff;
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
}
.store-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(420px 260px at 88% -10%, rgba(255, 107, 139, .34), transparent 66%),
        radial-gradient(360px 240px at 12% 110%, rgba(33, 212, 180, .22), transparent 64%);
    pointer-events: none;
}
.store-hero-main {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
}
.store-hero-logo {
    width: 96px;
    height: 96px;
    border-radius: 26px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 16px 38px rgba(8, 7, 28, .4);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}
.store-hero-logo img { width: 100%; height: 100%; object-fit: cover; }
.store-hero-logo-fallback span {
    font-family: var(--font);
    font-weight: 800;
    font-size: 2.1rem;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.store-hero-id { min-width: 0; }
.store-hero-id .eyebrow { color: rgba(255, 255, 255, .72); }
.store-hero-id h1 { color: #fff; font-size: clamp(1.45rem, 2.8vw, 2.1rem); margin: 4px 0 2px; }
.store-hero-id h1 .verified-badge { color: #7fd4ff; }
.store-hero-tagline { color: rgba(255, 255, 255, .82); font-size: .94rem; margin: 4px 0 0; }
.store-hero-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.store-hero-chips .chip {
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
    font-size: .72rem;
    padding: 5px 10px;
    backdrop-filter: blur(6px);
}
.store-hero-chips .chip:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.store-hero-actions { display: flex; flex-direction: column; gap: 8px; min-width: 190px; }
.store-hero-actions .btn { justify-content: center; }
.store-hero-actions .btn-soft { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .22); color: #fff; }
.store-hero-actions .btn-soft:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.store-hero-actions .btn-ghost { border-color: rgba(255, 255, 255, .24); color: rgba(255, 255, 255, .86); }
.store-hero-actions .btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.btn-wa { background: #1faa59; border-color: #1faa59; color: #fff; box-shadow: 0 10px 24px rgba(31, 170, 89, .28); }
.btn-wa:hover { background: #178a47; border-color: #178a47; color: #fff; box-shadow: 0 14px 30px rgba(31, 170, 89, .34); }

.store-about {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 18px 20px;
    margin-bottom: 18px;
    color: var(--ink-2);
    font-size: .9rem;
    line-height: 1.68;
}
.store-about h2 { font-size: 1rem; margin-bottom: 6px; display: inline-flex; align-items: center; gap: 8px; }
.store-about h2 i { color: var(--brand); }
.store-cat-inline { margin-bottom: 16px; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); gap: 16px; }
.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(var(--brand-rgb), .2); }
.product-thumb {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    background: var(--surface-2);
    overflow: hidden;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.product-card:hover .product-thumb img { transform: scale(1.04); }
.product-thumb-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: rgba(var(--brand-rgb), .55);
    font-size: 2rem;
    background: linear-gradient(135deg, rgba(var(--brand-rgb), .12), rgba(33, 212, 180, .12));
}
.product-cat {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(14, 15, 30, .62);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    font-size: .66rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
}
.product-cat-inline { position: static; background: rgba(var(--brand-rgb), .1); border-color: rgba(var(--brand-rgb), .18); color: var(--brand); margin-bottom: 10px; }
.product-body { display: flex; flex-direction: column; gap: 6px; padding: 13px 14px 14px; flex: 1; }
.product-name { font-size: .94rem; line-height: 1.35; }
.product-name a { color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-name a:hover { color: var(--brand); }
.product-desc { color: var(--muted); font-size: .78rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.product-price { font-family: var(--font); color: var(--ink); font-size: .96rem; white-space: nowrap; }

/* Product detail */
.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) 280px;
    gap: 20px;
    align-items: start;
    margin-bottom: 26px;
}
.product-gallery {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 26px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-sm);
}
.product-gallery img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery-fallback { font-size: 3rem; color: rgba(var(--brand-rgb), .5); }
.product-info {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: clamp(18px, 2.2vw, 26px);
    box-shadow: var(--shadow-sm);
}
.product-info h1 { font-size: clamp(1.35rem, 2.3vw, 1.75rem); margin: 0 0 6px; }
.product-info-price { font-family: var(--font); font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 800; color: var(--brand); margin: 0 0 10px; }
.product-info-desc { color: var(--ink-2); font-size: .9rem; line-height: 1.68; margin-bottom: 18px; }
.product-buy { display: grid; gap: 9px; }
.product-buy-row { display: flex; gap: 8px; flex-wrap: wrap; }
.product-buy-row .btn { flex: 1; justify-content: center; }
.product-note {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    margin-top: 14px;
    padding: 11px 13px;
    border-radius: 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
}
.product-note i { color: var(--mint); margin-top: 1px; }
.product-note p { color: var(--muted); font-size: .76rem; line-height: 1.5; }
.product-seller {
    position: sticky;
    top: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 18px;
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: 12px;
}
.store-aside-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; color: var(--muted); }
.product-seller-head { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.product-seller-head:hover { color: var(--brand); }
.product-seller-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--surface-2);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    font-family: var(--font);
    font-weight: 800;
    color: var(--brand);
    flex: 0 0 auto;
}
.product-seller-logo img { width: 100%; height: 100%; object-fit: cover; }
.product-seller-logo.is-fallback { background: rgba(var(--brand-rgb), .1); }
.product-seller-head strong { display: block; font-size: .92rem; line-height: 1.3; }
.product-seller-head small { color: var(--muted); font-size: .74rem; }
.product-seller-tagline { color: var(--muted); font-size: .8rem; line-height: 1.5; }
.product-seller-actions { display: grid; gap: 8px; }
.product-related .section-head a { font-size: .8rem; font-weight: 600; }

/* Owner dashboard */
.store-onboard { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.store-onboard-form { padding: clamp(18px, 2.4vw, 28px); }
.store-onboard-aside { display: grid; gap: 14px; }
.store-plan-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 22px;
    background: linear-gradient(145deg, #1c1e3d, #3b2a72 58%, #7a3f9e);
    color: #fff;
    box-shadow: var(--shadow-md);
}
.store-plan-card::after {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    right: -40px;
    top: -50px;
    background: radial-gradient(circle, rgba(255, 255, 255, .28), transparent 68%);
}
.store-plan-badge { display: inline-flex; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.store-plan-number { display: block; font-family: var(--font); font-size: 3.1rem; font-weight: 800; line-height: 1; margin-top: 12px; }
.store-plan-label { display: block; color: rgba(255, 255, 255, .78); font-size: .84rem; }
.store-plan-card ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 9px; font-size: .82rem; color: rgba(255, 255, 255, .9); position: relative; z-index: 1; }
.store-plan-card li { display: flex; gap: 8px; align-items: flex-start; }
.store-plan-card li i { color: #8ef0d1; margin-top: 2px; }

.store-admin-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(180px, 1.2fr); gap: 12px; margin-bottom: 20px; }
.store-stat {
    display: flex;
    align-items: center;
    gap: 11px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 13px 15px;
    box-shadow: var(--shadow-sm);
}
.store-stat-ico {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 13px;
    background: rgba(var(--brand-rgb), .1);
    color: var(--brand);
    font-size: 1.05rem;
    flex: 0 0 auto;
}
.store-stat-ico.is-mint { background: rgba(33, 212, 180, .12); color: #12a98f; }
.store-stat-ico.is-coral { background: rgba(255, 107, 139, .12); color: var(--coral); }
.store-stat-body { display: flex; flex-direction: column; min-width: 0; }
.store-stat-body strong { font-family: var(--font); font-size: 1.22rem; line-height: 1.15; }
.store-stat-body strong small { font-size: .74rem; color: var(--muted); font-weight: 600; }
.store-stat-body > span { color: var(--muted); font-size: .72rem; }
.store-stat-url { font-size: .86rem !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-stat-progress { display: block; padding: 14px 15px; }
.store-quota-head { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); margin-bottom: 7px; }
.store-quota-bar { height: 9px; border-radius: 999px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--border); }
.store-quota-bar span { display: block; height: 100%; border-radius: inherit; background: var(--grad-brand); }

.store-manage-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.store-manage-main, .store-manage-aside { display: grid; gap: 16px; }
.store-manage-aside { position: sticky; top: 24px; }
.store-add-product { padding: 0; overflow: hidden; }
.store-add-product summary {
    cursor: pointer;
    list-style: none;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-family: var(--font);
    font-weight: 700;
    font-size: .95rem;
}
.store-add-product summary::-webkit-details-marker { display: none; }
.store-add-product summary > span:first-child { display: inline-flex; align-items: center; gap: 9px; }
.store-add-product summary i { color: var(--brand); }
.store-add-body { padding: 0 18px 18px; border-top: 1px solid var(--border); padding-top: 16px; }
.store-product-panel { padding: 18px; }
.store-product-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.manage-products { display: grid; gap: 8px; }
.manage-product {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface-2);
}
.manage-product-thumb {
    width: 72px;
    height: 72px;
    border-radius: 13px;
    overflow: hidden;
    background: var(--surface);
    display: grid;
    place-items: center;
    color: var(--brand);
    font-size: 1.2rem;
}
.manage-product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.manage-product-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.manage-product-cat { font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--brand); }
.manage-product-info h3 { font-size: .9rem; line-height: 1.3; }
.manage-product-info h3 a { color: var(--ink); }
.manage-product-info p { color: var(--muted); font-size: .76rem; margin: 1px 0 0; }
.manage-product-price { font-family: var(--font); font-size: .84rem; color: var(--ink-2); }
.manage-product-actions { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.manage-product-actions form { display: contents; }
.btn-danger-soft { background: rgba(255, 107, 139, .1); border-color: rgba(255, 107, 139, .18); color: #e0446c; }
.btn-danger-soft:hover { background: rgba(255, 107, 139, .18); border-color: rgba(255, 107, 139, .3); color: #c82f59; }

.store-settings-panel { padding: 18px; }
.store-settings-panel .panel-head { margin-bottom: 12px; }
.manage-store-id { display: flex; align-items: center; gap: 11px; padding: 11px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 16px; }
.manage-store-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(var(--brand-rgb), .1);
    color: var(--brand);
    display: grid;
    place-items: center;
    font-family: var(--font);
    font-weight: 800;
    flex: 0 0 auto;
}
.manage-store-logo img { width: 100%; height: 100%; object-fit: cover; }
.manage-store-id strong { display: block; font-size: .86rem; }
.manage-store-id small { color: var(--muted); font-size: .72rem; }

.store-logo-field { display: flex; gap: 14px; align-items: flex-start; }
.store-logo-preview {
    width: 82px;
    height: 82px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--surface-2);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    color: var(--brand);
    font-size: 1.4rem;
    flex: 0 0 auto;
}
.store-logo-preview img { width: 100%; height: 100%; object-fit: cover; }
.store-logo-preview.is-fallback { background: linear-gradient(135deg, rgba(var(--brand-rgb), .12), rgba(33, 212, 180, .12)); }
.store-logo-input { flex: 1; min-width: 0; display: grid; gap: 8px; }
.switch-compact { font-size: .78rem; gap: 8px; }
.product-image-field { display: grid; gap: 10px; }
.product-image-preview { width: 120px; height: 92px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); }
.product-image-preview img { width: 100%; height: 100%; object-fit: cover; }
.store-product-edit { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }

@media (max-width: 1100px) {
    .store-hero-main { grid-template-columns: auto minmax(0, 1fr); }
    .store-hero-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
    .store-hero-actions .btn { flex: 1; min-width: 150px; }
    .product-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .product-seller { grid-column: 1 / -1; position: static; grid-template-columns: auto minmax(0, 1fr); align-items: center; }
    .product-seller .store-aside-label, .product-seller-tagline { display: none; }
    .product-seller-actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
    .store-onboard, .store-manage-layout, .store-product-edit { grid-template-columns: minmax(0, 1fr); }
    .store-manage-aside { position: static; }
    .store-admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .store-page-head { gap: 12px; }
    .store-page-head .page-actions { width: 100%; }
    .store-page-head .page-actions .btn { flex: 1; justify-content: center; }
    .store-explore { padding: 12px; border-radius: 20px; }
    .store-search { flex-wrap: wrap; padding: 8px; }
    .store-search > i { margin-left: 6px; }
    .store-search input { flex: 1 1 60%; }
    .store-search .btn { flex: 1 1 100%; justify-content: center; }
    .store-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
    .store-card { border-radius: 18px; }
    .store-card-cover { height: 96px; }
    .store-card-cover img, .store-card-initial { width: 56px; height: 56px; border-radius: 16px; }
    .store-card-body { padding: 12px 13px 13px; }
    .store-hero { border-radius: 22px; }
    .store-hero-main { grid-template-columns: auto minmax(0, 1fr); gap: 13px; }
    .store-hero-logo { width: 74px; height: 74px; border-radius: 20px; }
    .store-hero-logo-fallback span { font-size: 1.6rem; }
    .store-hero-id h1 { font-size: 1.3rem; }
    .store-hero-tagline { font-size: .84rem; }
    .store-hero-actions { gap: 7px; }
    .store-hero-actions .btn { flex: 1 1 100%; }
    .product-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .product-gallery { aspect-ratio: 4 / 3; border-radius: 20px; }
    .product-info { border-radius: 20px; }
    .product-seller { border-radius: 20px; grid-template-columns: auto minmax(0, 1fr); }
    .product-buy-row .btn { flex: 1 1 100%; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
    .product-name { font-size: .86rem; }
    .product-price { font-size: .86rem; }
    .product-body { padding: 11px; }
    .store-admin-stats { grid-template-columns: 1fr 1fr; }
    .store-stat-link { grid-column: 1 / -1; }
    .store-stat-progress { grid-column: 1 / -1; }
    .manage-product { grid-template-columns: 62px minmax(0, 1fr); }
    .manage-product-thumb { width: 62px; height: 62px; }
    .manage-product-actions { grid-column: 1 / -1; justify-content: flex-start; }
    .store-logo-field { flex-direction: column; }
    .store-seo-copy { padding: 18px; font-size: .86rem; }
}

@media (max-width: 440px) {
    .store-grid { grid-template-columns: 1fr; }
    .store-card-cover { height: 110px; }
    .store-card-tagline { min-height: 0; }
    .store-admin-stats { grid-template-columns: 1fr; }
    .store-stat-link, .store-stat-progress { grid-column: auto; }
    .store-hero-actions .btn { min-width: 0; }
    .product-seller-actions { grid-template-columns: 1fr; }
}

/* Profile store tab */
.profile-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin: 18px 0 16px;
    padding: 5px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    width: fit-content;
    max-width: 100%;
}
.profile-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 11px;
    color: var(--ink-2);
    font-size: .82rem;
    font-weight: 600;
    white-space: nowrap;
}
.profile-tab i { color: var(--muted); }
.profile-tab:hover { background: var(--surface-2); color: var(--ink); }
.profile-tab.is-active { background: var(--grad-brand); color: #fff; box-shadow: 0 8px 18px rgba(var(--brand-rgb), .25); }
.profile-tab.is-active i { color: #fff; }
.profile-tab-count { font-size: .66rem; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.profile-tab.is-active .profile-tab-count { background: rgba(255, 255, 255, .22); color: #fff; }
.profile-tab-cta { color: var(--brand); }
.profile-tab-cta i { color: var(--brand); }

.profile-store-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(var(--brand-rgb), .08), rgba(33, 212, 180, .08));
    border: 1px solid var(--border);
    border-radius: 20px;
    margin-bottom: 16px;
}
.profile-store-logo {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    font-family: var(--font);
    font-weight: 800;
    color: var(--brand);
    flex: 0 0 auto;
}
.profile-store-logo img { width: 100%; height: 100%; object-fit: cover; }
.profile-store-logo.is-fallback { background: rgba(var(--brand-rgb), .1); }
.profile-store-id { flex: 1; min-width: 0; }
.profile-store-id strong { display: block; font-family: var(--font); font-size: 1.05rem; }
.profile-store-id p { color: var(--muted); font-size: .82rem; margin: 2px 0 7px; }
.profile-store-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.profile-store-chips .chip { font-size: .68rem; padding: 4px 8px; }
.profile-store-actions { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 720px) {
    .profile-tabs { width: 100%; }
    .profile-tab { flex: 1; justify-content: center; padding: 8px 10px; font-size: .78rem; }
    .profile-store-banner { flex-wrap: wrap; gap: 12px; }
    .profile-store-actions { width: 100%; }
    .profile-store-actions .btn { flex: 1; justify-content: center; }
}



/* Store moderation badges & owner card ------------------------------------ */
.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(var(--brand-rgb), .12);
    border: 1px solid rgba(var(--brand-rgb), .24);
    color: var(--brand);
    font-size: .68rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: .01em;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.store-badge i { font-size: .72rem; flex: 0 0 auto; }
.store-badge-success { background: rgba(33, 212, 180, .14); border-color: rgba(33, 212, 180, .32); color: #0b8a72; }
.store-badge-warning { background: rgba(245, 165, 36, .16); border-color: rgba(245, 165, 36, .36); color: #9a6408; }
.store-badge-danger { background: rgba(244, 63, 94, .12); border-color: rgba(244, 63, 94, .28); color: #c11d3b; }
.store-badge-info { background: rgba(2, 132, 199, .12); border-color: rgba(2, 132, 199, .28); color: #0369a1; }
.store-badge-dark { background: rgba(16, 18, 35, .1); border-color: rgba(16, 18, 35, .2); color: #3b3d52; }

[data-theme="dark"] .store-badge-success { color: #5ee8cf; }
[data-theme="dark"] .store-badge-warning { color: #f3c268; }
[data-theme="dark"] .store-badge-danger { color: #ff8fa3; }
[data-theme="dark"] .store-badge-info { color: #7cc7f2; }
[data-theme="dark"] .store-badge-dark { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #c9cce0; }

.store-hero-badge { margin-top: 7px; }
.store-hero-badge .store-badge {
    background: rgba(255, 255, 255, .16);
    border-color: rgba(255, 255, 255, .3);
    color: #fff;
    font-size: .72rem;
    padding: 4px 11px;
    backdrop-filter: blur(6px);
}

.store-card-badge { margin-top: -1px; }
.store-card-badge .store-badge { font-size: .66rem; padding: 2px 8px; }

.store-owner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 16px 18px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-sm);
}
.store-owner-avatar .avatar { box-shadow: 0 8px 20px rgba(20, 18, 60, .16); }
.store-owner-info { flex: 1 1 auto; min-width: 0; }
.store-owner-info h2 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 1.06rem;
    margin: 2px 0 5px;
}
.store-owner-info h2 a { color: var(--ink); }
.store-owner-info h2 a:hover { color: var(--brand); }
.store-owner-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    font-size: .78rem;
    color: var(--muted);
}
.store-owner-meta a,
.store-owner-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--muted);
}
.store-owner-meta a:hover { color: var(--brand); }
.store-owner-meta i { color: var(--brand); font-size: .8rem; }
.store-owner-link { flex: 0 0 auto; }

.product-seller-badge { margin-top: 8px; }
.profile-store-badge { margin-top: 3px; }

.store-settings-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.store-settings-fields:disabled { opacity: .62; }

@media (max-width: 639.98px) {
    .store-owner { gap: 12px; padding: 15px 16px; }
    .store-owner-link { width: 100%; justify-content: center; }
}

/* Mobile navigation drawer ------------------------------------------------- */
.mobile-start { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mobile-start .brand-compact { min-width: 0; }
.mobile-start .brand-compact strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mobile-menu-btn {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}

.mobile-menu-btn:hover {
    color: var(--brand);
    border-color: rgba(var(--brand-rgb), .35);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(var(--brand-rgb), .18);
}

.mobile-menu-btn:active { transform: translateY(0) scale(.97); }

.hamburger {
    width: 18px;
    height: 13px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: width .22s var(--ease), transform .22s var(--ease);
}

.hamburger span:nth-child(2) { width: 74%; }
.mobile-menu-btn:hover .hamburger span:nth-child(2) { width: 100%; }

body.menu-open { overflow: hidden; }

.mobile-menu {
    position: fixed;
    inset: 0 auto 0 0;
    margin: 0;
    padding: 0;
    width: min(86vw, 356px);
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border: 0;
    background: transparent;
    color: var(--ink);
    overflow: hidden;
    z-index: 120;
}

.mobile-menu::backdrop {
    background: rgba(10, 8, 30, .52);
    backdrop-filter: blur(4px);
}

.mobile-menu[open] { animation: menuSlideIn .32s var(--ease); }

.mobile-menu-sheet {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 0 26px 26px 0;
    background:
        radial-gradient(340px 220px at 100% 0%, rgba(var(--brand-rgb), .14), transparent 70%),
        radial-gradient(280px 200px at 0% 100%, rgba(33, 212, 180, .09), transparent 72%),
        var(--surface);
    box-shadow: 26px 0 60px rgba(8, 7, 28, .26);
}

.mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: calc(14px + env(safe-area-inset-top)) 14px 12px 16px;
    border-bottom: 1px solid var(--border);
}

.mobile-menu-head .brand { padding: 0; min-width: 0; }
.mobile-menu-head .brand-text small { text-transform: lowercase; letter-spacing: .04em; }
.mobile-menu-close { background: var(--surface-2); border: 1px solid var(--border); }

.mobile-menu-body {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 10px 12px 16px;
    scrollbar-width: none;
}

.mobile-menu-body::-webkit-scrollbar { display: none; }

.mobile-menu-user {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 2px 2px 8px;
    padding: 11px 12px;
    border-radius: 16px;
    border: 1px solid rgba(var(--brand-rgb), .18);
    background: linear-gradient(120deg, rgba(var(--brand-rgb), .1), rgba(33, 212, 180, .07));
    color: var(--ink);
    transition: border-color .2s var(--ease), transform .2s var(--ease);
}

.mobile-menu-user:hover { color: var(--ink); border-color: rgba(var(--brand-rgb), .34); transform: translateY(-1px); }
.mobile-menu-user-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.mobile-menu-user-meta strong { font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mobile-menu-user-meta small { color: var(--muted); font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mobile-menu-user > i { color: var(--muted); font-size: .9rem; }

.mobile-menu-label {
    display: block;
    padding: 12px 12px 6px;
    color: var(--muted);
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.mobile-menu-nav { display: flex; flex-direction: column; gap: 3px; }
.mobile-menu-link { padding: 11px 12px; border-radius: 13px; font-size: .92rem; }
.mobile-menu-link:hover { transform: none; }
.mobile-menu-link.is-active::before { left: -8px; }
.mobile-menu-link .nav-badge { margin-left: auto; }

.mobile-menu-foot {
    flex: 0 0 auto;
    display: grid;
    gap: 8px;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.mobile-menu-foot .btn { justify-content: center; padding: 11px 14px; border-radius: 13px; }
.mobile-menu-foot-row { display: flex; align-items: stretch; gap: 8px; }
.mobile-menu-logout { flex: 1; display: flex; }

.mobile-menu-theme,
.mobile-menu-login {
    flex: 1;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-2);
    color: var(--ink-2);
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}

.mobile-menu-logout .mobile-menu-theme { width: 100%; }
.mobile-menu-theme:hover { color: var(--brand); border-color: rgba(var(--brand-rgb), .32); }
.mobile-menu-theme.is-danger { color: var(--coral); }
.mobile-menu-theme.is-danger:hover { color: var(--coral); border-color: rgba(255, 107, 139, .4); background: rgba(255, 107, 139, .08); }
.mobile-menu-login { border: 1px solid var(--border); background: transparent; }

@keyframes menuSlideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@media (min-width: 1025px) {
    .mobile-menu { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-menu[open] { animation: none; }
    .hamburger span { transition: none; }
}

/* --------------------------------------------------------------------------
   Landing — two-column layout (v3)
   -------------------------------------------------------------------------- */
.landing-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 316px);
    gap: clamp(18px, 2.4vw, 28px);
    align-items: start;
    margin-top: 8px;
}
.landing-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.landing-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 18px; }

.side-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 18px;
    box-shadow: var(--shadow-sm);
}
.side-card h2 { font-size: 1.08rem; letter-spacing: -.01em; margin-bottom: 6px; }
.side-card h3 { font-size: .92rem; display: flex; align-items: center; gap: 7px; }
.side-card h3 i { color: var(--brand); }
.side-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.side-card .link-more { margin-top: 12px; display: inline-flex; }

.landing-join {
    background: linear-gradient(155deg, rgba(var(--brand-rgb), .14), var(--surface) 62%);
    border-color: rgba(var(--brand-rgb), .22);
}
.landing-join p { color: var(--ink-2); font-size: .84rem; margin: 6px 0 14px; }
.landing-join .btn + .btn { margin-top: 8px; }
.landing-stats {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.landing-stats li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: color-mix(in srgb, var(--surface) 72%, transparent);
}
.landing-stats strong { font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; }
.landing-stats span { font-size: .7rem; color: var(--muted); }

.landing-tag-list { list-style: none; margin: 0; padding: 0; }
.landing-tag-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 2px;
    border-bottom: 1px dashed var(--border);
    font-size: .84rem;
    font-weight: 600;
}
.landing-tag-list li:last-child a { border-bottom: 0; }
.landing-tag-list a:hover span { color: var(--brand); }
.landing-tag-list small { color: var(--muted); font-weight: 600; font-size: .72rem; }

.landing-people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.landing-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.landing-person-avatar { flex: 0 0 auto; line-height: 0; border-radius: 50%; }
.landing-person-body { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.landing-person-name {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .84rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.landing-person-name:hover { color: var(--brand); }
.landing-person-meta { font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.landing-trust ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.landing-trust li { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--ink-2); }
.landing-trust li i { color: var(--brand); }

.landing-features { margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.landing-features .feature { height: 100%; }
.landing-section { margin-top: 0; }

.how-list { display: flex; flex-direction: column; gap: 12px; }
.how-step {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.how-step:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(var(--brand-rgb), .22); }
.how-step-num { font-size: 1.55rem; font-weight: 800; letter-spacing: -.05em; color: rgba(var(--brand-rgb), .3); }
.how-step-body h3 { font-size: .98rem; margin-bottom: 3px; }
.how-step-body p { color: var(--muted); font-size: .84rem; }
.how-step .how-icon { margin: 0; flex: 0 0 auto; width: 44px; height: 44px; }
.how-note { margin-top: 12px; }

@media (max-width: 1120px) {
    .landing-columns { grid-template-columns: minmax(0, 1fr) minmax(250px, 288px); gap: 20px; }
}

@media (max-width: 1024px) {
    .landing-columns { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .landing-side {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        align-items: start;
    }
    .landing-join { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
    .landing-features { grid-template-columns: minmax(0, 1fr); }
    .how-step { grid-template-columns: auto minmax(0, 1fr); }
    .how-step .how-icon { display: none; }
    .float-chip-c { display: none; }
}

@media (max-width: 560px) {
    .landing-side { grid-template-columns: minmax(0, 1fr); }
    .side-card { padding: 15px; border-radius: 18px; }
    .how-step { padding: 14px; gap: 12px; }
    .how-step-num { font-size: 1.25rem; }
    .landing-stats strong { font-size: 1rem; }
}

@media (max-width: 380px) {
    .landing-stats { grid-template-columns: minmax(0, 1fr); }
}

/* Screen-reader-only headings for landmark sections. */
.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;
}

/* --------------------------------------------------------------------------
   Nearby v2 — split-screen map + card list
   -------------------------------------------------------------------------- */
.nearby-page .main-inner { max-width: 1120px; }
.nearby-head { align-items: flex-start; flex-wrap: wrap; }

.nearby-viewbar { display: none; }

.nearby-app {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: 18px;
    align-items: start;
    margin-top: 14px;
}

.nearby-map-pane { position: sticky; top: 20px; min-width: 0; }
.nearby-map-shell { position: relative; }

.nearby-app .nearby-map {
    height: clamp(430px, calc(100vh - 210px), 700px);
    margin: 0;
    border-radius: 24px;
    overflow: hidden;
    background: #e8eef7;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    z-index: 0;
}
[data-theme="dark"] .nearby-app .nearby-map { background: #121826; }
.nearby-app .leaflet-container { font: inherit; color: var(--ink); }
.nearby-app .leaflet-bar a { color: #111827; }

.nearby-list-pane { min-width: 0; display: flex; flex-direction: column; gap: 18px; }

.nearby-section { display: flex; flex-direction: column; gap: 10px; }
.nearby-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.nearby-section-head h2 {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .98rem;
    margin: 0;
}
.nearby-section-head h2 i { color: var(--brand); }
.nearby-cards { display: flex; flex-direction: column; gap: 10px; }

.nearby-card {
    display: flex;
    gap: 12px;
    padding: 13px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    scroll-margin-top: 90px;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.nearby-card:hover { border-color: rgba(var(--brand-rgb), .32); box-shadow: var(--shadow-sm); }
.nearby-card.is-active {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .16), var(--shadow-md);
}
.nearby-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.nearby-card-media {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border-radius: 15px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: var(--grad-brand);
    color: #fff;
    font-weight: 800;
}
.nearby-card-media img { width: 100%; height: 100%; object-fit: cover; }
.nearby-card-initial { font-size: 1rem; }
.nearby-card-avatar { flex: 0 0 auto; }

.nearby-card-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.nearby-kicker {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--muted);
}
.nearby-kicker i { color: var(--brand); font-size: .68rem; }
.nearby-card-title {
    margin: 0;
    font-size: .97rem;
    line-height: 1.3;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
}
.nearby-card-title a { color: var(--ink); }
.nearby-card-title a:hover { color: var(--brand); }
.nearby-card-title small { font-size: .72rem; font-weight: 500; color: var(--muted); }
.nearby-card-sub {
    margin: 0;
    font-size: .8rem;
    line-height: 1.45;
    color: var(--ink-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nearby-card-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.nearby-card-chips .chip { font-size: .64rem; padding: 3px 7px; }
.nearby-card-foot {
    margin-top: auto;
    padding-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}
.nearby-distance {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .72rem;
    font-weight: 600;
    color: var(--ink-2);
}
.nearby-distance i { color: var(--brand); }
.nearby-card-actions { display: inline-flex; gap: 6px; }

.nearby-map-legend {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 400;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    max-width: calc(100% - 130px);
    padding: 7px 11px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    font-size: .68rem;
    color: var(--ink-2);
    backdrop-filter: blur(8px);
}
[data-theme="dark"] .nearby-map-legend { background: rgba(17, 24, 39, .88); }
.nearby-map-legend strong { color: var(--ink); font-size: .7rem; }
.nearby-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 3px; }
.nearby-dot-store { background: #f97316; }
.nearby-dot-person { background: #7c3aed; }
.nearby-dot-post { background: #0ea5e9; }

.nearby-fab {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 17px;
    border-radius: 999px;
    background: var(--grad-brand);
    color: #fff;
    font-weight: 700;
    font-size: .84rem;
    box-shadow: 0 14px 30px rgba(var(--brand-rgb), .38);
    transition: transform .18s ease, box-shadow .18s ease;
}
.nearby-fab:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 34px rgba(var(--brand-rgb), .44); }
.nearby-fab[hidden] { display: none !important; }
.nearby-fab i { font-size: 1rem; }
.nearby-fab-mobile { display: none; }

.nearby-pin { background: none; border: 0; }
.nearby-pin-body {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50% 50% 50% 6px;
    transform: rotate(-45deg);
    background: var(--grad-brand);
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .3);
    transition: transform .16s ease, box-shadow .16s ease;
}
.nearby-pin-body i { transform: rotate(45deg); font-size: .92rem; }
.nearby-pin-store .nearby-pin-body { background: linear-gradient(135deg, #f59e0b, #f97316); }
.nearby-pin-person .nearby-pin-body { background: linear-gradient(135deg, #2563eb, #7c3aed); }
.nearby-pin-post .nearby-pin-body { background: linear-gradient(135deg, #14b8a6, #0ea5e9); }
.nearby-pin-viewer .nearby-pin-body {
    border-radius: 50%;
    transform: none;
    background: var(--surface);
    color: var(--brand);
    border: 2px solid var(--brand);
    box-shadow: 0 0 0 6px rgba(var(--brand-rgb), .16), 0 8px 18px rgba(15, 23, 42, .2);
}
.nearby-pin-viewer .nearby-pin-body i { transform: none; }
.nearby-pin.is-active .nearby-pin-body {
    transform: rotate(-45deg) scale(1.12);
    box-shadow: 0 0 0 6px rgba(var(--brand-rgb), .22), 0 14px 26px rgba(15, 23, 42, .36);
}

.nearby-popup { display: flex; flex-direction: column; gap: 4px; min-width: 170px; }
.nearby-popup strong { font-size: .84rem; line-height: 1.35; }
.nearby-popup-meta { font-size: .7rem; color: var(--muted); }
.nearby-popup-actions { display: flex; gap: 6px; margin-top: 4px; }

/* Skeleton loader */
.nearby-map-skeleton {
    position: absolute;
    inset: 0;
    z-index: 600;
    display: grid;
    place-items: center;
    border-radius: 24px;
    overflow: hidden;
    background:
        linear-gradient(rgba(148, 163, 184, .16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, .16) 1px, transparent 1px),
        #eef2f9;
    background-size: 42px 42px, 42px 42px, auto;
}
[data-theme="dark"] .nearby-map-skeleton {
    background:
        linear-gradient(rgba(148, 163, 184, .12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, .12) 1px, transparent 1px),
        #121a2a;
    background-size: 42px 42px, 42px 42px, auto;
}
.nearby-map-skeleton[hidden] { display: none !important; }
.nearby-shimmer {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(148, 163, 184, .3);
}
.nearby-shimmer::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent);
    animation: nearbyShimmer 1.4s infinite;
}
[data-theme="dark"] .nearby-shimmer::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent); }
@keyframes nearbyShimmer { to { transform: translateX(100%); } }
.nearby-skel-pin {
    position: absolute;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(var(--brand-rgb), .28);
    box-shadow: 0 0 0 8px rgba(var(--brand-rgb), .1);
}
.nearby-skel-pin-a { left: 28%; top: 30%; }
.nearby-skel-pin-b { right: 24%; top: 46%; }
.nearby-skel-pin-c { left: 44%; bottom: 24%; }
.nearby-skeleton-note {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 13px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    font-size: .72rem;
    font-weight: 600;
    color: var(--ink-2);
    white-space: nowrap;
}
.nearby-skeleton-list { display: flex; flex-direction: column; gap: 10px; }
.nearby-skeleton-list[hidden] { display: none !important; }
.nearby-skel-card {
    display: flex;
    gap: 12px;
    padding: 13px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
}
.nearby-skel-thumb { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 15px; }
.nearby-skel-lines { flex: 1; display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.nearby-skel-lines .nearby-shimmer { height: 10px; }
.nearby-skel-short { width: 45%; }

@media (max-width: 1023px) {
    .nearby-page .main-inner { max-width: 100%; }

    .nearby-viewbar {
        display: flex;
        align-items: center;
        gap: 4px;
        padding: 4px;
        margin: 4px 0 12px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 14px;
        position: sticky;
        top: calc(var(--topbar) + 8px);
        z-index: 12;
        backdrop-filter: blur(12px);
    }
    .nearby-viewbtn {
        flex: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 9px 8px;
        border: 0;
        border-radius: 10px;
        background: transparent;
        color: var(--ink-2);
        font: inherit;
        font-size: .82rem;
        font-weight: 600;
        cursor: pointer;
    }
    .nearby-viewbtn.is-active { background: var(--grad-brand); color: #fff; box-shadow: 0 6px 16px rgba(var(--brand-rgb), .28); }
    .nearby-viewcount { padding-right: 8px; font-size: .7rem; color: var(--muted); white-space: nowrap; }

    .nearby-app { display: block; margin-top: 0; }
    .nearby-map-pane { display: none; position: static; }
    .nearby-app.is-map .nearby-map-pane { display: block; }
    .nearby-app.is-map .nearby-list-pane { display: none; }
    .nearby-app.is-map .nearby-map { height: calc(100dvh - 280px); min-height: 380px; }
    .nearby-map { margin-top: 4px; }

    .nearby-fab { position: fixed; right: 16px; bottom: calc(var(--bottomnav) + 16px + env(safe-area-inset-bottom)); z-index: 20; }
    .nearby-fab-mobile { display: inline-flex; }

    .nearby-card { scroll-margin-top: 120px; }
}

@media (max-width: 560px) {
    .nearby-viewcount { display: none; }
    .nearby-card-foot { gap: 6px; }
    .nearby-card-actions .btn { padding: 5px 9px; }
    .nearby-map-legend { gap: 7px; font-size: .63rem; padding: 6px 9px; max-width: calc(100% - 96px); }
    .nearby-map-legend strong { width: 100%; }
    .nearby-fab { padding: 11px 15px; }
}


/* --------------------------------------------------------------------------
   CMS page — full-width editorial layout (v2)
   -------------------------------------------------------------------------- */
.cms-page-wide { max-width: none; margin: 0; padding: 0 0 24px; }

.cms-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: clamp(22px, 3.4vw, 44px);
    background: linear-gradient(135deg, rgba(var(--brand-rgb), .16), rgba(var(--brand-rgb), .04) 48%, var(--surface) 100%);
    box-shadow: var(--shadow-sm);
    margin-bottom: 22px;
}
.cms-hero::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    right: -130px;
    top: -170px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--brand-rgb), .26), transparent 70%);
    pointer-events: none;
}
.cms-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 24px;
}
.cms-hero .cms-page-head { margin-bottom: 0; }
.cms-page-wide .cms-page-head h1 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); letter-spacing: -.03em; }
.cms-page-wide .cms-page-lead { max-width: 68ch; }
.cms-hero-badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.cms-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--ink-2);
    font-size: .74rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}
.cms-chip i { color: var(--brand); }

.cms-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: clamp(18px, 2.4vw, 28px);
    align-items: start;
}
.cms-main { min-width: 0; }
.cms-page-wide .cms-page-body { padding: clamp(22px, 3.2vw, 48px); border-radius: 26px; }
.cms-page-wide .prose { max-width: 74ch; margin-inline: auto; }

.cms-aside { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cms-aside-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
}
.cms-aside-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}
.cms-aside-title i { color: var(--brand); font-size: .95rem; }
.cms-facts { display: grid; gap: 10px; margin: 0 0 16px; }
.cms-fact { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: .8rem; }
.cms-fact dt { color: var(--muted); font-weight: 600; }
.cms-fact dd { margin: 0; color: var(--ink); font-weight: 700; text-align: right; }
.cms-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cms-links a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 11px;
    color: var(--ink-2);
    font-size: .82rem;
    font-weight: 600;
    transition: background .16s var(--ease), color .16s var(--ease);
}
.cms-links a i { color: var(--brand); }
.cms-links a:hover { background: var(--surface-2); color: var(--brand); }

@media (max-width: 1200px) {
    .cms-layout { grid-template-columns: minmax(0, 1fr); }
    .cms-aside {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        align-items: start;
    }
}

@media (max-width: 760px) {
    .cms-page-wide { padding-bottom: 12px; }
    .cms-hero { border-radius: 22px; padding: 20px 18px; margin-bottom: 16px; }
    .cms-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .cms-hero-badges { justify-content: flex-start; }
    .cms-chip { font-size: .7rem; padding: 6px 10px; }
    .cms-page-wide .cms-page-head h1 { font-size: clamp(1.65rem, 7vw, 2.2rem); }
    .cms-page-wide .cms-page-lead { font-size: .94rem; }
    .cms-page-wide .cms-page-body { padding: 18px 16px; border-radius: 18px; }
    .cms-page-wide .prose { max-width: none; }
}

/* --------------------------------------------------------------------------
   Ad zones — aligned with the current shell and aside columns
   -------------------------------------------------------------------------- */
.ad-zone-header,
.ad-zone-footer { width: 100%; max-width: 1120px; margin-left: auto; margin-right: auto; }
.ad-zone-sidebar { margin: 0; }
.ad-zone-page_below { margin: 18px 0 0; }
.feed-aside .ad-zone,
.post-aside .ad-zone,
.notif-aside .ad-zone,
.landing-side .ad-zone,
.cms-aside .ad-zone { margin: 0; }
.ad-zone-page_below .ad-card-image img { max-height: 260px; }

@media (max-width: 720px) {
    .ad-zone-header { margin-bottom: 14px; }
    .ad-zone-footer { margin-top: 18px; }
    .ad-zone-page_below { margin-top: 14px; }
}
