/* ==========================================================================
   OpLeak — design system
   ========================================================================== */

:root {
    --bg: #09090d;
    --bg-elev: #0f0f15;
    --surface: #13131b;
    --surface-2: #1a1a24;
    --surface-3: #22222f;
    --border: #23232f;
    --border-strong: #31313f;
    --text: #f2f2f7;
    --text-2: #b8b8c8;
    --muted: #7d7d93;
    --accent: #ff3d7f;
    --accent-2: #a855f7;
    --accent-soft: rgba(255, 61, 127, .12);
    --grad: linear-gradient(135deg, #ff3d7f 0%, #c045f0 55%, #8b5cf6 100%);
    --gold: #fbbf24;
    --success: #22c55e;
    --success-soft: rgba(34, 197, 94, .12);
    --warn: #f59e0b;
    --warn-soft: rgba(245, 158, 11, .13);
    --danger: #f43f5e;
    --danger-soft: rgba(244, 63, 94, .12);
    --info: #60a5fa;
    --info-soft: rgba(96, 165, 250, .12);
    --overlay: rgba(5, 5, 10, .72);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 12px 32px -12px rgba(0, 0, 0, .7);
    --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .8);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --topbar-h: 64px;
    --sidebar-w: 248px;
    --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color-scheme: dark;
}

[data-theme="light"] {
    --bg: #f5f5f9;
    --bg-elev: #ffffff;
    --surface: #ffffff;
    --surface-2: #f2f2f7;
    --surface-3: #e8e8f0;
    --border: #e4e4ec;
    --border-strong: #d2d2de;
    --text: #14141c;
    --text-2: #45455a;
    --muted: #74748a;
    --accent-soft: rgba(255, 61, 127, .09);
    --overlay: rgba(20, 20, 30, .55);
    --shadow-sm: 0 1px 2px rgba(20, 20, 40, .06);
    --shadow: 0 12px 32px -14px rgba(20, 20, 40, .18);
    --shadow-lg: 0 30px 80px -24px rgba(20, 20, 40, .3);
    color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 15px/1.55 var(--font);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--text); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.015em; }
h1 { font-size: 1.75rem; font-weight: 750; }
h2 { font-size: 1.2rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 650; }
p { margin: 0; }
hr { border: 0; border-top: 1px solid var(--border); margin: 6px 0; }
code { font-family: var(--mono); font-size: .85em; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: #fff; }

.icon { width: 18px; height: 18px; flex-shrink: 0; }
.muted { color: var(--muted); }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.block { display: block; }
.selectable { user-select: all; word-break: break-all; }
.fine { font-size: 12px; margin-top: 10px; text-align: center; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 40px; padding: 0 16px; border-radius: 999px;
    background: var(--surface-2); color: var(--text); border: 1px solid var(--border-strong);
    font-weight: 600; font-size: 14px; white-space: nowrap; cursor: pointer;
    transition: transform .12s ease, background .15s, border-color .15s, box-shadow .15s, opacity .15s;
}
.btn:hover { background: var(--surface-3); color: var(--text); }
.btn:active { transform: scale(.97); }
.btn:disabled, .btn.is-loading { opacity: .6; pointer-events: none; }
.btn .icon { width: 17px; height: 17px; }
.btn-primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 24px -10px rgba(255, 61, 127, .7); }
.btn-primary:hover { background: var(--grad); color: #fff; filter: brightness(1.08); box-shadow: 0 10px 28px -8px rgba(255, 61, 127, .8); }
.btn-ghost { background: transparent; border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-outline { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent-soft); color: var(--accent); }
.btn-danger { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-sm { height: 34px; padding: 0 13px; font-size: 13px; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; }
.btn-block { width: 100%; }
.btn.is-static { pointer-events: none; color: var(--success); border-color: var(--success-soft); }
.btn.is-loading::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }

.icon-btn {
    position: relative; display: inline-grid; place-items: center;
    width: 40px; height: 40px; border-radius: 50%; color: var(--text-2);
    transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn .icon { width: 20px; height: 20px; }
.icon-btn-ghost { border: 1px solid var(--border-strong); width: 38px; height: 38px; }
.link-btn { color: var(--accent); font-weight: 600; font-size: 13px; }
.link-btn:hover { text-decoration: underline; }

/* ---------- Pills, chips, badges ---------- */
.pill {
    display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px;
    font-size: 11.5px; font-weight: 650; background: var(--surface-3); color: var(--text-2);
    text-transform: capitalize; white-space: nowrap; vertical-align: middle;
}
.pill-accent { background: var(--accent-soft); color: var(--accent); }
.pill-success { background: var(--success-soft); color: var(--success); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-danger { background: var(--danger-soft); color: var(--danger); }
.chip {
    display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--border); color: var(--text-2); font-size: 13.5px; font-weight: 550;
    transition: all .15s;
}
.chip small { color: var(--muted); font-size: 11px; }
.chip:hover, .chip.active { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.chip-sm { height: 28px; padding: 0 11px; font-size: 12.5px; }
.verified { display: inline-flex; color: #3b9dff; margin-left: 4px; vertical-align: -3px; }
.verified .icon { width: 16px; height: 16px; }
.dot-badge {
    position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
    background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center;
    border: 2px solid var(--bg-elev);
}
.count { margin-left: auto; font-style: normal; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; }

/* ---------- Avatars ---------- */
.avatar { border-radius: 50%; object-fit: cover; background: var(--surface-3); flex-shrink: 0; }
.avatar-sm { width: 32px; height: 32px; }
.avatar-md { width: 40px; height: 40px; }
.avatar-lg { width: 52px; height: 52px; }
.avatar-xl { width: 76px; height: 76px; }
.avatar-2xl { width: 120px; height: 120px; }

/* ---------- Top bar ---------- */
.topbar {
    position: sticky; top: 0; z-index: 50; height: var(--topbar-h);
    display: flex; align-items: center; gap: 16px; padding: 0 20px;
    background: color-mix(in srgb, var(--bg-elev) 82%, transparent);
    backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
    border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.03em; flex-shrink: 0; min-width: calc(var(--sidebar-w) - 36px); }
.brand-mark { width: 32px; height: 32px; }
.search {
    flex: 1; max-width: 560px; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 16px;
    background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; color: var(--muted);
    transition: border-color .15s, background .15s;
}
.search:focus-within { border-color: var(--accent); background: var(--surface); }
.search input { flex: 1; border: 0; background: none; outline: none; min-width: 0; color: var(--text); }
.search input::-webkit-search-cancel-button { filter: invert(.5); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.wallet-chip {
    display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px 0 10px; border-radius: 999px;
    background: linear-gradient(135deg, rgba(251, 191, 36, .14), rgba(251, 191, 36, .05));
    border: 1px solid rgba(251, 191, 36, .28); color: var(--gold); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums;
}
.wallet-chip:hover { color: var(--gold); border-color: var(--gold); }
.avatar-btn { border-radius: 50%; padding: 2px; border: 2px solid transparent; transition: border-color .15s; }
.avatar-btn:hover, .avatar-btn[aria-expanded="true"] { border-color: var(--accent); }
.only-mobile { display: none !important; }

/* ---------- Dropdown ---------- */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 248px; padding: 6px;
    background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); display: none; animation: pop .14s ease;
}
.dropdown.open > .dropdown-menu { display: block; }
.dropdown-menu > a, .dropdown-menu button, .dropdown-menu form > button {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; border-radius: 8px;
    color: var(--text-2); font-size: 14px; font-weight: 500; text-align: left;
}
.dropdown-menu > a:hover, .dropdown-menu button:hover { background: var(--surface-2); color: var(--text); }
.dropdown-menu .icon { width: 17px; height: 17px; }
.dropdown-head { padding: 10px 11px 12px !important; }
.dropdown-head span { display: flex; flex-direction: column; line-height: 1.3; }
.dropdown-head strong { color: var(--text); }
.dropdown-head small { color: var(--muted); }
.menu-meta { margin-left: auto; color: var(--gold); font-size: 12.5px; font-weight: 650; }
.dropdown-menu-right { right: 0; left: auto; }

.announcement {
    display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px;
    background: var(--grad); color: #fff; font-weight: 600; font-size: 13.5px; text-align: center;
}

/* ---------- Shell & sidebar ---------- */
.shell { display: flex; align-items: flex-start; }
.sidebar {
    position: sticky; top: var(--topbar-h); width: var(--sidebar-w); height: calc(100vh - var(--topbar-h));
    flex-shrink: 0; display: flex; flex-direction: column; justify-content: space-between;
    padding: 16px 12px; border-right: 1px solid var(--border); overflow-y: auto; background: var(--bg);
}
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav > a {
    display: flex; align-items: center; gap: 13px; padding: 10px 14px; border-radius: 10px;
    color: var(--text-2); font-weight: 550; font-size: 14.5px; transition: background .15s, color .15s;
}
.side-nav > a:hover { background: var(--surface-2); color: var(--text); }
.side-nav > a.active { background: var(--accent-soft); color: var(--text); }
.side-nav > a.active .icon { color: var(--accent); }
.side-nav .icon { width: 20px; height: 20px; }
.side-label { margin: 18px 14px 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.side-footer { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 16px 14px 4px; font-size: 12px; color: var(--muted); }
.side-footer a:hover { color: var(--text); }
.side-footer span { width: 100%; margin-top: 6px; }
.sidebar-backdrop { display: none; }

.main { flex: 1; min-width: 0; padding: 28px 32px 80px; max-width: 1640px; margin: 0 auto; }

/* ---------- Alerts / toasts ---------- */
.flash-stack { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.alert {
    display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--border); font-size: 14px; margin-bottom: 16px;
    animation: slide-down .25s ease;
}
.flash-stack .alert { margin-bottom: 0; }
.alert > span { flex: 1; }
.alert-success { border-color: rgba(34, 197, 94, .35); background: var(--success-soft); }
.alert-success > .icon { color: var(--success); }
.alert-error { border-color: rgba(244, 63, 94, .35); background: var(--danger-soft); }
.alert-error > .icon { color: var(--danger); }
.alert-info { border-color: rgba(96, 165, 250, .3); background: var(--info-soft); }
.alert-info > .icon { color: var(--info); }
.alert-warn { border-color: rgba(245, 158, 11, .35); background: var(--warn-soft); }
.alert-warn > .icon { color: var(--warn); }
.verify-banner { flex-wrap: wrap; }
.verify-banner > span { min-width: min(100%, 240px); }
.verify-banner form { display: flex; }
.alert-close { color: var(--muted); display: grid; place-items: center; }
.alert-close:hover { color: var(--text); }
.alert.is-leaving { opacity: 0; transform: translateY(-6px); transition: all .25s; }
.notice { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text-2); font-size: 13.5px; margin: 12px 0; }
.notice-warn { background: var(--warn-soft); color: var(--warn); }
.notice > span { flex: 1; }
.notice form { display: flex; }

.toast-stack { position: fixed; z-index: 200; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
    pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px;
    background: var(--text); color: var(--bg); font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg);
    animation: toast-in .3s cubic-bezier(.2, .9, .3, 1.2);
}
.toast.toast-error { background: var(--danger); color: #fff; }
.toast.toast-success .icon { color: var(--success); }
.toast.is-leaving { opacity: 0; transform: translateY(8px); transition: all .25s; }
.toast a { text-decoration: underline; }

/* ---------- Page structure ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head p { margin-top: 6px; }
.page-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; margin-bottom: 10px; }
.back-link:hover { color: var(--text); }
.section { margin-bottom: 40px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-head h2 { display: flex; align-items: center; gap: 10px; }
.section-head h2 .icon { color: var(--accent); width: 21px; height: 21px; }
.section-link { color: var(--accent); font-weight: 600; font-size: 14px; }
.section-link:hover { color: var(--accent); text-decoration: underline; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; }
.panel + .panel, section.panel { margin-top: 20px; }
.panel h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.panel h2 .icon { color: var(--accent); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.panel-head h2 { margin: 0; }
.sub-head { margin: 22px 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
    display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; margin-bottom: -1px; white-space: nowrap;
    color: var(--muted); font-weight: 600; font-size: 14.5px; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.tabs a small { font-size: 12px; background: var(--surface-2); padding: 1px 8px; border-radius: 999px; }
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--text); border-color: var(--accent); }
.tabs .icon { width: 17px; height: 17px; }

.filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.segmented { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; }
.segmented label, .segmented a { position: relative; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span, .segmented a { display: block; padding: 6px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; transition: all .15s; }
.segmented span:hover, .segmented a:hover { color: var(--text); }
.segmented input:checked + span, .segmented a.active { background: var(--surface-3); color: var(--text); box-shadow: var(--shadow-sm); }
.segmented input:focus-visible + span { outline: 2px solid var(--accent); }
.select {
    appearance: none; height: 42px; padding: 0 38px 0 14px; border-radius: var(--radius-sm); width: 100%;
    border: 1px solid var(--border-strong); background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%237d7d93' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
    cursor: pointer;
}
.select-sm { height: 36px; width: auto; border-radius: 999px; font-size: 13.5px; font-weight: 600; background-color: var(--surface); }
.search-inline { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-strong); color: var(--muted); min-width: 260px; }
.search-inline input { border: 0; background: none; outline: none; flex: 1; color: var(--text); font-size: 14px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field-label { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .field textarea, .input-sm {
    width: 100%; height: 44px; padding: 0 14px; border-radius: var(--radius-sm);
    background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text); outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.field textarea { height: auto; padding: 11px 14px; resize: vertical; min-height: 44px; line-height: 1.5; }
.field input:focus, .field textarea:focus, .select:focus, .input-sm:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--surface); outline: none; }
.field small { font-weight: 400; }
.field-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.field-head a { color: var(--accent); font-weight: 600; font-size: 13px; }
.field-head .pill .icon { width: 12px; height: 12px; }
.input-sm { height: 34px; font-size: 13px; padding: 0 10px; width: 170px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
.field-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.input-prefix, .input-suffix { display: flex; align-items: center; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s; }
.input-prefix:focus-within, .input-suffix:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input-prefix em, .input-suffix em { font-style: normal; color: var(--muted); padding: 0 12px; font-weight: 600; font-size: 14px; }
.input-prefix em { padding-right: 0; }
.field .input-prefix input, .field .input-suffix input { border: 0 !important; background: transparent !important; box-shadow: none !important; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-2); cursor: pointer; line-height: 1.45; }
.check input { margin: 2px 0 0; width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; cursor: pointer; }
.check a { color: var(--accent); }
.check-inline { align-items: center; height: 44px; }
.check-inline input { margin: 0; }
.consent { padding: 14px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); font-size: 13.5px; }
.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.form-error { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--danger-soft); color: var(--danger); font-size: 14px; font-weight: 550; }
.radio-list { display: flex; flex-direction: column; gap: 6px; margin: 14px 0; text-align: left; }
.radio-row { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; font-size: 14px; }
.radio-row:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.radio-row input { accent-color: var(--accent); }

/* ---------- Media grid & cards ---------- */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px 18px; }
.card { min-width: 0; animation: fade-up .35s ease both; }
.card-thumb {
    position: relative; display: block; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden;
    background: var(--surface-2); isolation: isolate;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2, .7, .3, 1), filter .3s; }
.card-thumb:hover img { transform: scale(1.045); }
.card-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .55)); pointer-events: none; }
.card-thumb.is-locked img { transform: scale(1.1); }
.card-thumb.is-locked:hover img { transform: scale(1.15); }
.card-type, .price-tag, .card-flag {
    position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px;
    border-radius: 7px; font-size: 12px; font-weight: 700; color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    font-variant-numeric: tabular-nums;
}
.card-type { right: 8px; bottom: 8px; background: rgba(0, 0, 0, .62); }
.card-type .icon { width: 12px; height: 12px; fill: currentColor; }
.price-tag { left: 8px; top: 8px; background: rgba(0, 0, 0, .55); color: var(--gold); border: 1px solid rgba(251, 191, 36, .35); }
.price-tag .icon { width: 13px; height: 13px; }
.price-tag.is-owned { color: var(--success); border-color: rgba(34, 197, 94, .4); }
.price-tag.tag-sub { color: #d8b4fe; border-color: rgba(168, 85, 247, .45); }
.price-tag.tag-free { color: #fff; background: rgba(34, 197, 94, .82); border: 0; }
.card-flag { right: 8px; top: 8px; background: rgba(0, 0, 0, .6); font-weight: 600; }
.lock-overlay { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #fff; }
.lock-circle { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(6px); transition: transform .2s; }
.lock-circle .icon { width: 22px; height: 22px; }
.lock-text { font-size: 12.5px; font-weight: 650; opacity: 0; transform: translateY(4px); transition: all .2s; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.card-thumb:hover .lock-circle { transform: scale(1.08); background: var(--accent); border-color: transparent; }
.card-thumb:hover .lock-text { opacity: 1; transform: none; }
.card-body { display: flex; gap: 11px; padding-top: 12px; }
.card-avatar { flex-shrink: 0; }
.card-meta { min-width: 0; flex: 1; }
.card-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 650; font-size: 14.5px; line-height: 1.35; margin-bottom: 3px; }
.card-sub { font-size: 13px; color: var(--text-2); display: flex; align-items: center; }
.card-sub a:hover { color: var(--text); }
.card-sub .verified .icon { width: 14px; height: 14px; }
.card-stats { display: flex; gap: 12px; margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.card-stats span { display: inline-flex; align-items: center; gap: 4px; }
.card-stats .icon { width: 13px; height: 13px; }
.load-more { display: flex; justify-content: center; padding: 32px 0 0; }
.load-more.is-loading .btn::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }

.empty { text-align: center; padding: 64px 20px; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); background: var(--surface); }
.empty-icon { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 16px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.empty-icon .icon { width: 28px; height: 28px; }
.empty h3 { font-size: 1.1rem; margin-bottom: 6px; }
.empty p { color: var(--muted); margin-bottom: 18px; }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 24px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 38px; height: 38px; padding: 0 10px; display: grid; place-items: center; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--text-2); }
.pagination a { background: var(--surface); border: 1px solid var(--border); }
.pagination a:hover { border-color: var(--accent); color: var(--text); }
.pagination a.active { background: var(--grad); border-color: transparent; color: #fff; }

/* ---------- Creators ---------- */
.creator-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 16px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.creator-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.creator-card {
    position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 0 16px 18px; border-radius: var(--radius-lg); overflow: hidden; scroll-snap-align: start;
    background: var(--surface); border: 1px solid var(--border); transition: transform .2s, border-color .2s, box-shadow .2s;
}
.creator-card:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.creator-cover { align-self: stretch; height: 72px; margin: 0 -16px; background: var(--grad) center / cover; opacity: .9; }
.creator-card .avatar { margin-top: -28px; border: 3px solid var(--surface); }
.creator-name { margin-top: 10px; font-weight: 700; display: flex; align-items: center; max-width: 100%; }
.creator-handle { font-size: 13px; color: var(--muted); }
.creator-stats { display: flex; gap: 14px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.creator-stats strong { color: var(--text); }
.creator-sub { margin-top: 12px; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: #d8b4fe; background: rgba(168, 85, 247, .14); padding: 4px 10px; border-radius: 999px; }
.creator-sub .icon { width: 13px; height: 13px; }

/* ---------- Shared marketing bits ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 700; margin-bottom: 18px; }
.eyebrow .icon { width: 15px; height: 15px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.feature-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--grad); color: #fff; flex-shrink: 0; box-shadow: 0 8px 20px -10px rgba(255, 61, 127, .8); }

/* ---------- Guest shell (logged-out visitors) ---------- */
body.is-guest { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.guest-bar { display: flex; align-items: center; gap: 12px; padding: 18px 32px; }
.guest-bar .brand { min-width: 0; }
.guest-main { flex: 1; display: flex; flex-direction: column; width: 100%; max-width: 1280px; margin: 0 auto; padding: 8px 32px 24px; }
.guest-main > .flash-stack { width: 100%; max-width: 480px; margin: 0 auto 16px; }
.is-guest .auth-wrap { flex: 1; min-height: 0; padding: 24px 0; }
.guest-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; padding: 18px 24px 26px; font-size: 13px; color: var(--muted); }
.guest-footer a:hover { color: var(--text); }
.guest-split { flex: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 16px 0; }
.guest-form-col { display: flex; flex-direction: column; min-width: 0; }
.guest-form-col > .flash-stack { width: 100%; max-width: 480px; margin: 0 auto 16px; }
.guest-form-col .auth-wrap { padding: 0; }
.guest-form-col .auth-card { box-shadow: var(--shadow-lg); }

.auth-showcase {
    position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 34px;
    padding: 48px; border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--border);
}
.showcase-glow {
    position: absolute; z-index: -1; inset: -30% -25% auto auto; width: 640px; height: 640px; pointer-events: none;
    background: radial-gradient(circle, rgba(255, 61, 127, .30), rgba(139, 92, 246, .16) 42%, transparent 70%);
}
.auth-showcase::after {
    content: ""; position: absolute; z-index: -1; left: -120px; bottom: -160px; width: 420px; height: 420px; pointer-events: none;
    background: radial-gradient(circle, rgba(139, 92, 246, .22), transparent 65%);
}
.auth-showcase h1 { font-size: clamp(2rem, 3.6vw, 3.1rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.06; }
.showcase-sub { margin-top: 16px; font-size: 1.05rem; color: var(--text-2); max-width: 520px; }
.showcase-features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.showcase-features li {
    display: flex; gap: 13px; align-items: center; padding: 14px; border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface-2) 75%, transparent); border: 1px solid var(--border); backdrop-filter: blur(6px);
}
.showcase-features strong { font-size: 14.5px; }
.showcase-features p { font-size: 13px; color: var(--muted); line-height: 1.4; }
.showcase-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.showcase-stats strong { display: block; font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.showcase-stats span { font-size: 13px; color: var(--muted); }

/* ---------- Auth ---------- */
.auth-wrap { display: grid; place-items: center; min-height: calc(100vh - var(--topbar-h) - 140px); }
.auth-card { width: 100%; max-width: 480px; padding: 36px; border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.auth-head { text-align: center; margin-bottom: 26px; }
.auth-head p { margin-top: 8px; }
.auth-foot { text-align: center; margin-top: 22px; color: var(--muted); font-size: 14px; }
.auth-foot a { color: var(--accent); font-weight: 600; }

/* ---------- Upload ---------- */
.upload-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px; align-items: start; }
.upload-left { position: sticky; top: calc(var(--topbar-h) + 24px); display: flex; flex-direction: column; gap: 14px; }
.upload-right { display: flex; flex-direction: column; gap: 18px; }
.dropzone {
    position: relative; display: grid; place-items: center; min-height: 380px; border-radius: var(--radius-lg); overflow: hidden;
    border: 2px dashed var(--border-strong); background: var(--surface); cursor: pointer; transition: border-color .2s, background .2s;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone.has-file { border-style: solid; border-color: var(--border); cursor: default; background: #000; }
.dropzone-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 30px; }
.dropzone-icon { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; background: var(--grad); color: #fff; margin-bottom: 12px; box-shadow: 0 12px 30px -10px rgba(255, 61, 127, .6); }
.dropzone-icon .icon { width: 34px; height: 34px; }
.dropzone-preview { position: absolute; inset: 0; display: grid; place-items: center; }
.dropzone-preview img, .dropzone-preview video { max-width: 100%; max-height: 100%; object-fit: contain; }
.file-info { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.file-info > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.file-info strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.file-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.progress-card { padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.progress-head { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 14px; font-variant-numeric: tabular-nums; }
.progress { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 999px; transition: width .25s ease; }
.progress-card.is-processing .progress > span { width: 100% !important; background-size: 200% 100%; background-image: linear-gradient(90deg, #ff3d7f, #a855f7, #ff3d7f); animation: shimmer 1.4s linear infinite; }
.progress-card small { display: block; margin-top: 8px; font-variant-numeric: tabular-nums; }
.progress-goal { margin: 16px 0; }
.progress-goal small { display: block; margin-top: 8px; }

.access-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.access-option input { position: absolute; opacity: 0; pointer-events: none; }
.access-card {
    display: flex; flex-direction: column; gap: 3px; height: 100%; padding: 14px; border-radius: var(--radius);
    border: 1.5px solid var(--border-strong); background: var(--surface-2); cursor: pointer; transition: all .15s;
}
.access-card .icon { width: 22px; height: 22px; color: var(--muted); margin-bottom: 6px; }
.access-card strong { font-size: 14px; }
.access-card small { font-size: 12px; color: var(--muted); line-height: 1.35; }
.access-card:hover { border-color: var(--muted); }
.access-option input:checked + .access-card { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-soft); }
.access-option input:checked + .access-card .icon { color: var(--accent); }
.access-option input:disabled + .access-card { opacity: .45; cursor: not-allowed; }
.access-option input:focus-visible + .access-card { outline: 2px solid var(--accent); }
.price-box { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); animation: fade-up .2s ease; }
.price-box .field input, .price-box .input-suffix { background: var(--surface); }
.price-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.price-presets .chip { height: 30px; font-size: 13px; }
.price-calc { font-size: 13.5px; color: var(--text-2); }
.price-calc strong { color: var(--success); }

/* ---------- Media page ---------- */
.media-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.player {
    position: relative; width: 100%; max-height: 78vh; aspect-ratio: var(--ratio, 16/9); border-radius: var(--radius-lg);
    overflow: hidden; background: #000; display: grid; place-items: center; box-shadow: var(--shadow);
}
.player video, .player .player-photo { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player .player-photo { cursor: zoom-in; }
.player.is-locked { min-height: 420px; }
.player-blur { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); }
.unlock-box {
    position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
    max-width: 420px; margin: 24px; padding: 32px 30px; border-radius: var(--radius-xl); color: #fff;
    background: rgba(10, 10, 16, .55); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7);
}
.unlock-box .muted { color: rgba(255, 255, 255, .65); }
.unlock-box .btn { margin-top: 12px; }
.unlock-icon { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; background: var(--grad); margin-bottom: 6px; box-shadow: 0 10px 30px -8px rgba(255, 61, 127, .8); }
.unlock-icon .icon { width: 26px; height: 26px; }
.unlock-box h2 { font-size: 1.4rem; }
.unlock-price strong { font-size: 2rem; font-weight: 800; color: var(--gold); letter-spacing: -.02em; }
.unlock-meta { display: flex; align-items: center; gap: 5px; font-size: 13px; }
.unlock-meta .icon { width: 13px; height: 13px; }
.media-info { margin-top: 20px; }
.media-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.media-title-row h1 { font-size: 1.45rem; word-break: break-word; }
.access-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.access-pill .icon { width: 14px; height: 14px; }
.access-free { background: var(--success-soft); color: var(--success); }
.access-paid { background: rgba(251, 191, 36, .13); color: var(--gold); }
.access-subscribers { background: rgba(168, 85, 247, .15); color: #c084fc; }
.media-stats { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 10px; font-size: 13.5px; }
.media-stats span { display: inline-flex; align-items: center; gap: 6px; }
.media-stats .icon { width: 15px; height: 15px; }
.action-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 18px 0; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.action-btn {
    display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 15px; border-radius: 999px;
    background: var(--surface-2); color: var(--text-2); font-weight: 600; font-size: 13.5px; transition: all .15s;
}
.action-btn:hover { background: var(--surface-3); color: var(--text); }
.action-btn.active { color: var(--accent); background: var(--accent-soft); }
.action-btn.active .icon { fill: currentColor; }
.action-btn.pop .icon { animation: heart-pop .4s ease; }
.action-spacer { flex: 1; }
.description { padding: 18px 20px; }
.prose { color: var(--text-2); line-height: 1.7; word-break: break-word; }
.prose a { color: var(--accent); }
.prose[data-collapsible].is-collapsed { max-height: 9.5em; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
.show-more { margin-top: 8px; color: var(--text); font-weight: 650; font-size: 13.5px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag-list:first-child { margin-top: 0; }
.comments { margin-top: 28px; }
.comments h2 { margin-bottom: 18px; }
.comments h2 .muted { font-weight: 500; font-size: 1rem; }
.comment-form { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 24px; }
.comment-form textarea {
    flex: 1; min-height: 40px; max-height: 200px; padding: 9px 14px; resize: none; border-radius: 20px; outline: none;
    background: var(--surface-2); border: 1px solid var(--border-strong); line-height: 1.45; transition: border-color .15s;
}
.comment-form textarea:focus { border-color: var(--accent); }
.comment-form .btn { height: 40px; width: 40px; padding: 0; }
.comment-list { display: flex; flex-direction: column; gap: 20px; }
.comment { display: flex; gap: 12px; animation: fade-up .3s ease; }
.comment-body { flex: 1; min-width: 0; }
.comment-head { display: flex; align-items: center; gap: 8px; font-size: 13.5px; margin-bottom: 3px; flex-wrap: wrap; }
.comment-author { font-weight: 650; }
.comment-body p { font-size: 14.5px; color: var(--text-2); word-break: break-word; }
.comment-body p a { color: var(--accent); }
.comment-delete { margin-left: auto; opacity: 0; transition: opacity .15s; }
.comment:hover .comment-delete { opacity: 1; }
.comment-delete .link-btn { color: var(--muted); }
.comment-delete .icon { width: 15px; height: 15px; }
.media-side { position: sticky; top: calc(var(--topbar-h) + 20px); display: flex; flex-direction: column; gap: 20px; }
.creator-panel { padding: 20px; }
.creator-line { display: flex; align-items: center; gap: 12px; min-width: 0; }
.creator-line > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.creator-line strong { display: flex; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.creator-line small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; }
.creator-bio { margin-top: 14px; font-size: 14px; color: var(--text-2); }
.creator-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.side-list h3 { margin-bottom: 12px; font-size: 15px; }
.side-item { display: flex; gap: 12px; padding: 6px; margin: 0 -6px; border-radius: var(--radius); transition: background .15s; }
.side-item:hover { background: var(--surface); }
.side-thumb { position: relative; width: 150px; aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--surface-2); }
.side-thumb img { width: 100%; height: 100%; object-fit: cover; }
.side-thumb em { position: absolute; right: 5px; bottom: 5px; font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .7); padding: 1px 6px; border-radius: 5px; }
.side-thumb i { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.side-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.side-meta strong { font-size: 13.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-meta small { font-size: 12px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(0, 0, 0, .94); display: grid; place-items: center; cursor: zoom-out; animation: fade .2s; }
.lightbox img { max-width: 96vw; max-height: 94vh; object-fit: contain; }

/* ---------- Modals ---------- */
.modal { padding: 0; border: 0; background: transparent; max-width: calc(100vw - 32px); width: 440px; color: var(--text); overflow: visible; }
.modal::backdrop { background: var(--overlay); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal[open] { animation: modal-in .22s cubic-bezier(.2, .9, .3, 1.1); }
.modal-body { position: relative; padding: 30px 28px 24px; border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); text-align: center; display: flex; flex-direction: column; gap: 6px; }
.modal-body h2 { font-size: 1.3rem; margin-top: 6px; }
.modal-body .field { text-align: left; margin-top: 10px; }
.modal-body > .btn { margin-top: 14px; }
.modal-close { position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); }
.modal-close:hover { background: var(--surface-2); color: var(--text); }
.modal-icon { width: 58px; height: 58px; margin: 0 auto 6px; display: grid; place-items: center; border-radius: 50%; background: var(--grad); color: #fff; box-shadow: 0 10px 28px -10px rgba(255, 61, 127, .7); }
.modal-icon .icon { width: 26px; height: 26px; }
.modal-icon-danger { background: var(--danger); box-shadow: none; }
.modal-avatar { margin: 0 auto 4px; border: 3px solid var(--accent); }
.modal-foot { margin-top: 12px; font-size: 12.5px; }
.modal-foot a { color: var(--accent); }
.summary { margin: 16px 0 4px; padding: 4px 16px; border-radius: var(--radius); background: var(--surface-2); text-align: left; }
.summary > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 14px; border-bottom: 1px solid var(--border); }
.summary > div:last-child { border-bottom: 0; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; }
.summary dd small { color: var(--muted); font-weight: 500; }
.summary-total dd { font-size: 15px; }
.benefits { list-style: none; padding: 0; margin: 14px 0 6px; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.benefits li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); }
.benefits .icon { color: var(--success); width: 18px; height: 18px; margin-top: 1px; }
.tip-presets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 16px; }
.tip-preset { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; border-radius: var(--radius-sm); border: 1.5px solid var(--border-strong); background: var(--surface-2); transition: all .15s; }
.tip-preset strong { font-size: 14px; }
.tip-preset small { font-size: 11px; color: var(--muted); }
.tip-preset:hover, .tip-preset.active { border-color: var(--accent); background: var(--accent-soft); }

/* ---------- Edit ---------- */
.edit-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; align-items: start; }
.edit-preview img { width: 100%; border-radius: var(--radius); aspect-ratio: 16/10; object-fit: cover; }
.edit-layout > .panel { margin-top: 0; }
.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-color: rgba(244, 63, 94, .3); }
.danger-zone p { font-size: 13.5px; margin-top: 3px; }

/* ---------- Profile ---------- */
.profile { margin: -28px -32px 0; }
.profile-cover { height: 260px; background: var(--grad) center / cover; position: relative; }
.profile-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, var(--bg)); }
.profile-head { position: relative; display: flex; align-items: flex-end; gap: 22px; padding: 0 32px; margin-top: -64px; flex-wrap: wrap; }
.profile-avatar { border: 5px solid var(--bg); box-shadow: var(--shadow); }
.profile-id { flex: 1; min-width: 200px; padding-bottom: 8px; }
.profile-id h1 { display: flex; align-items: center; font-size: 1.8rem; }
.profile-id h1 .verified .icon { width: 22px; height: 22px; }
.profile-actions { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 10px; }
.profile-body { padding: 18px 32px 0; }
.profile-bio { max-width: 720px; color: var(--text-2); font-size: 15px; }
.profile-bio a { color: var(--accent); }
.profile-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--accent); font-weight: 600; font-size: 14px; }
.profile-link .icon { width: 15px; height: 15px; }
.profile-stats { display: flex; gap: 32px; margin: 20px 0 6px; flex-wrap: wrap; }
.profile-stats div { display: flex; gap: 6px; align-items: baseline; }
.profile-stats strong { font-size: 1.1rem; font-weight: 750; }
.profile-stats span { color: var(--muted); font-size: 14px; }
.profile + .tabs { margin: 18px 0 24px; }
.sub-banner { display: flex; align-items: center; gap: 10px; margin: 18px 32px 0; padding: 12px 16px; border-radius: var(--radius); background: rgba(168, 85, 247, .12); border: 1px solid rgba(168, 85, 247, .3); font-size: 14px; flex-wrap: wrap; }
.sub-banner > .icon { color: #c084fc; }
.sub-banner > span { flex: 1; }

/* ---------- Library ---------- */
.sub-list { display: grid; gap: 12px; }
.sub-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 20px; align-items: center; margin: 0 !important; padding: 16px 20px; }
.sub-item.is-expired { opacity: .7; }
.sub-status { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.sub-status small { font-size: 12.5px; }

/* ---------- Notifications ---------- */
.notif-list { padding: 6px; }
.notif { display: flex; align-items: center; gap: 14px; padding: 13px 14px; border-radius: var(--radius); transition: background .15s; }
.notif:hover { background: var(--surface-2); }
.notif.is-unread { background: var(--accent-soft); }
.notif-avatar { position: relative; flex-shrink: 0; }
.notif-badge { position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; border: 2px solid var(--surface); }
.notif-badge .icon { width: 11px; height: 11px; }
.notif-system { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-3); color: var(--accent); }
.notif-purchase .icon, .notif-tip .icon, .notif-subscribe .icon, .notif-deposit .icon, .notif-withdrawal_paid .icon { color: inherit; }
.notif-badge.notif-purchase, .notif-badge.notif-tip, .notif-badge.notif-subscribe { background: var(--gold); color: #1a1200; }
.notif-badge.notif-like { background: var(--danger); }
.notif-badge.notif-follow { background: var(--info); }
.notif-system.notif-deposit, .notif-system.notif-withdrawal_paid { color: var(--success); }
.notif-system.notif-withdrawal_rejected, .notif-system.notif-media_removed, .notif-system.notif-sub_renewal_failed { color: var(--danger); }
.notif-text { flex: 1; min-width: 0; font-size: 14.5px; color: var(--text-2); line-height: 1.45; }
.notif-text strong { color: var(--text); font-weight: 650; }
.notif-text small { display: block; margin-top: 2px; font-size: 12.5px; }
.notif-thumb { width: 64px; height: 44px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }

/* ---------- Wallet ---------- */
.wallet-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; align-items: start; margin-bottom: 20px; }
.wallet-grid > .panel, .wallet-grid > section.panel { margin-top: 0; }
.wallet-grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.balance-card {
    position: relative; overflow: hidden; padding: 26px; border-radius: var(--radius-xl); color: #fff;
    background: radial-gradient(120% 140% at 100% 0%, #ff3d7f 0%, #9d4edd 45%, #3b1d6e 100%);
    box-shadow: 0 30px 60px -30px rgba(255, 61, 127, .6);
}
.balance-card::before { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.balance-card::after { content: ""; position: absolute; right: 40px; bottom: -90px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.balance-top { position: relative; display: flex; justify-content: space-between; align-items: center; font-size: 14px; opacity: .92; }
.balance-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.balance-usd { font-weight: 700; background: rgba(255, 255, 255, .16); padding: 3px 10px; border-radius: 999px; }
.balance-amount { position: relative; margin: 14px 0 22px; font-size: clamp(2.4rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.balance-amount small { font-size: 1rem; font-weight: 600; opacity: .8; margin-left: 8px; letter-spacing: 0; }
.balance-split { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.balance-split > div { padding: 14px; border-radius: var(--radius); background: rgba(0, 0, 0, .18); display: flex; flex-direction: column; }
.balance-split span { font-size: 12.5px; opacity: .8; }
.balance-split strong { font-size: 1.35rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.balance-split small { font-size: 11.5px; opacity: .7; }
.balance-lifetime { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .16); }
.balance-lifetime div { display: flex; flex-direction: column; }
.balance-lifetime small { font-size: 11.5px; opacity: .75; }
.balance-lifetime strong { font-size: 14.5px; font-variant-numeric: tabular-nums; }
.topup { margin-top: 0 !important; }
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.pack input { position: absolute; opacity: 0; pointer-events: none; }
.pack > span {
    position: relative; display: flex; flex-direction: column; align-items: center; padding: 14px 8px; border-radius: var(--radius);
    border: 1.5px solid var(--border-strong); background: var(--surface-2); cursor: pointer; transition: all .15s;
}
.pack strong { font-size: 1.2rem; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.pack small { font-size: 11.5px; color: var(--muted); margin-top: -2px; }
.pack em { font-style: normal; font-weight: 700; font-size: 14px; margin-top: 4px; }
.pack i { position: absolute; top: -9px; font-style: normal; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; background: var(--grad); color: #fff; padding: 2px 8px; border-radius: 999px; }
.pack > span:hover { border-color: var(--muted); }
.pack input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-soft); }
.pack input:focus-visible + span { outline: 2px solid var(--accent); }
.gateways { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.gateway input { position: absolute; opacity: 0; }
.gateway span { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--border-strong); cursor: pointer; font-weight: 600; font-size: 14px; }
.gateway small { color: var(--muted); font-weight: 500; margin-left: auto; }
.gateway input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.withdrawable { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 16px 0; padding: 14px 16px; border-radius: var(--radius); background: var(--success-soft); }
.withdrawable span { font-size: 13.5px; color: var(--text-2); width: 100%; }
.withdrawable strong { font-size: 1.4rem; color: var(--success); font-variant-numeric: tabular-nums; }
.withdrawable em { font-style: normal; color: var(--muted); font-weight: 600; }
.mini-list { display: flex; flex-direction: column; }
.mini-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.mini-row:last-child { border-bottom: 0; }
.mini-row > div:first-child { display: flex; flex-direction: column; min-width: 0; }
.mini-row small { font-size: 12.5px; }
.mini-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
a.mini-row:hover strong { color: var(--accent); }
.tx-list { display: flex; flex-direction: column; }
.tx { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.tx:last-child { border-bottom: 0; }
.tx-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; flex-shrink: 0; }
.tx-icon.is-in { background: var(--success-soft); color: var(--success); }
.tx-icon.is-out { background: var(--surface-3); color: var(--text-2); }
.tx-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tx-main strong { font-size: 14px; display: flex; align-items: center; gap: 8px; }
.tx-main small { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-main small a:hover { color: var(--accent); }
.tx-amount { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.tx-amount small { font-size: 12px; }

/* ---------- Dashboard ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi { padding: 18px 20px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.kpi-label { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); font-weight: 600; }
.kpi-label .icon { width: 15px; height: 15px; }
.kpi strong { font-size: 1.75rem; font-weight: 800; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.kpi small { font-size: 12.5px; color: var(--muted); }
.kpi small a { color: var(--accent); font-weight: 600; }
.kpi-accent { background: linear-gradient(150deg, var(--accent-soft), var(--surface) 70%); border-color: rgba(255, 61, 127, .3); }
.kpi-accent .kpi-label { color: var(--accent); }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 20px; }
.dash-grid > .panel { margin-top: 0; }
.bar-chart { display: flex; align-items: flex-end; gap: 3px; height: 240px; padding-top: 10px; }
.bar-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; min-width: 0; }
.bar-col small { height: 14px; font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.bar { position: relative; width: 100%; max-width: 30px; border-radius: 5px 5px 2px 2px; background: var(--grad); transition: filter .15s; min-height: 0; display: flex; align-items: flex-end; }
.bar-col:hover .bar { filter: brightness(1.25); }
.bar-col:not(:has(.bar[style*="height: 0%"])) { cursor: help; }
.bar-col .bar[style*="height: 0%"] { background: var(--surface-3); height: 3px !important; }
.bar-muted { background: var(--surface-3); overflow: hidden; }
.bar-fill { display: block; width: 100%; background: var(--grad); }
.breakdown { display: flex; flex-direction: column; gap: 16px; }
.breakdown-row small { display: block; margin-top: 6px; }
.breakdown-label { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; font-size: 14px; }
.breakdown-label .icon { color: var(--muted); width: 16px; height: 16px; }
.breakdown-label span { flex: 1; color: var(--text-2); }
.table-wrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-media { display: flex; align-items: center; gap: 12px; min-width: 240px; }
.table-media img { width: 80px; height: 50px; border-radius: 8px; object-fit: cover; background: var(--surface-2); flex-shrink: 0; }
.table-media span { display: flex; flex-direction: column; min-width: 0; }
.table-media small { font-size: 12.5px; }
.row-actions { text-align: right; white-space: nowrap; }
.row-actions form { display: inline-block; }
.row-actions .btn + form, .row-actions form + form { margin-left: 6px; }
.inline-form { display: flex !important; gap: 6px; align-items: center; margin: 3px 0; justify-content: flex-end; }

/* ---------- Settings ---------- */
.settings-form { max-width: 760px; }
.profile-editor { position: relative; margin-bottom: 52px; }
.cover-picker { display: block; height: 180px; border-radius: var(--radius-lg); background: var(--grad) center / cover; cursor: pointer; position: relative; overflow: hidden; }
.picker-hint { position: absolute; display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 13px; font-weight: 600; backdrop-filter: blur(6px); transition: background .15s; }
.cover-picker .picker-hint { right: 12px; bottom: 12px; }
.cover-picker:hover .picker-hint, .avatar-picker:hover .picker-hint { background: var(--accent); }
.avatar-picker { position: absolute; left: 24px; bottom: -48px; cursor: pointer; }
.avatar-picker .avatar { border: 5px solid var(--surface); }
.avatar-picker .picker-hint { right: 4px; bottom: 4px; width: 34px; height: 34px; padding: 0; justify-content: center; }
.remove-row { display: flex; gap: 20px; }
.info-panel { max-width: 760px; }
.info-panel h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.info-panel .benefits .icon { color: var(--accent); }
.settings-split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.settings-split > .panel { margin-top: 0; }

/* ---------- Admin ---------- */
.admin-tabs { margin-top: -8px; }
.report-list { display: flex; flex-direction: column; gap: 12px; }
.report { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 18px; align-items: start; margin: 0 !important; }
.report.is-urgent { border-color: rgba(244, 63, 94, .45); box-shadow: inset 4px 0 0 var(--danger); }
.report-thumb img { width: 140px; aspect-ratio: 16/10; object-fit: cover; border-radius: 10px; }
.report-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.report-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.report-main small { font-size: 12.5px; }
.report-main blockquote { margin: 6px 0 0; padding: 10px 14px; border-left: 3px solid var(--border-strong); background: var(--surface-2); border-radius: 0 8px 8px 0; font-size: 14px; color: var(--text-2); }
.report-actions { display: flex; flex-direction: column; gap: 8px; }
.payments-status { margin-bottom: 20px; }
.payments-status code { font-size: 12.5px; }

/* ---------- Docs ---------- */
.doc-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; max-width: 1100px; }
.doc-nav { position: sticky; top: calc(var(--topbar-h) + 24px); display: flex; flex-direction: column; padding: 8px; }
.doc-nav a { padding: 9px 12px; border-radius: 8px; color: var(--text-2); font-size: 14px; font-weight: 550; }
.doc-nav a:hover { background: var(--surface-2); }
.doc-nav a.active { background: var(--accent-soft); color: var(--text); }
.doc { margin-top: 0 !important; padding: 34px 38px; }
.doc h1 { margin-bottom: 14px; }
.doc h2 { font-size: 1.12rem; margin: 26px 0 8px; color: var(--text); }
.doc p, .doc li { margin-bottom: 8px; }
.doc strong { color: var(--text); }

/* ---------- Error ---------- */
.error-page { text-align: center; padding: 80px 20px; }
.error-code { font-size: clamp(5rem, 14vw, 9rem); font-weight: 900; letter-spacing: -.05em; line-height: 1; }
.error-page h1 { margin: 10px 0 8px; }
.error-page .hero-actions { justify-content: center; margin-top: 26px; }

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

/* ---------- Animations ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes slide-down { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: 0 0; } }
@keyframes heart-pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
    .media-layout { grid-template-columns: minmax(0, 1fr) 320px; }
}

@media (max-width: 1100px) {
    .guest-split { grid-template-columns: 1fr; gap: 24px; max-width: 560px; width: 100%; margin: 0 auto; }
    .auth-showcase { padding: 28px; gap: 20px; }
    .showcase-features, .showcase-stats { display: none; }
    .auth-showcase h1 { font-size: 1.9rem; }
    :root { --sidebar-w: 76px; }
    .brand { min-width: 0; }
    .sidebar { padding: 16px 10px; }
    .side-nav > a { justify-content: center; padding: 12px; }
    .side-nav > a span, .side-label, .side-footer, .side-nav .count { display: none; }
    .media-layout { grid-template-columns: 1fr; }
    .media-side { position: static; }
    .upload-layout, .wallet-grid, .wallet-grid-2, .dash-grid, .edit-layout { grid-template-columns: 1fr; }
    .upload-left { position: static; }
}

@media (max-width: 760px) {
    .guest-bar { padding: 14px 16px; }
    .guest-main { padding: 4px 16px 16px; }
    .auth-showcase { padding: 22px 20px; border-radius: var(--radius-lg); }
    .auth-showcase .eyebrow { margin-bottom: 12px; }
    .auth-showcase h1 { font-size: 1.55rem; }
    .showcase-sub { font-size: .95rem; margin-top: 10px; }
    :root { --topbar-h: 58px; }
    body { font-size: 14.5px; }
    .topbar { padding: 0 10px; gap: 6px; }
    .only-mobile { display: inline-grid !important; }
    .hide-sm { display: none !important; }
    .search { display: none; }
    .brand-name { font-size: 17px; }
    .wallet-chip { height: 32px; padding: 0 10px 0 8px; font-size: 13px; }
    .wallet-chip .icon { width: 15px; height: 15px; }
    .top-actions { gap: 2px; }
    .top-actions .btn-sm { height: 32px; padding: 0 11px; }
    .sidebar {
        position: fixed; top: 0; left: 0; bottom: 0; z-index: 100; width: 280px; height: 100vh; transform: translateX(-100%);
        transition: transform .25s ease; background: var(--bg-elev); padding: 20px 14px;
    }
    .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
    .sidebar .side-nav > a { justify-content: flex-start; padding: 11px 14px; }
    .sidebar .side-nav > a span, .sidebar .side-label, .sidebar .side-footer { display: revert; }
    .sidebar .side-footer { display: flex; }
    .sidebar .side-nav .count { display: inline; }
    .sidebar-backdrop.open { display: block; position: fixed; inset: 0; z-index: 90; background: var(--overlay); }
    .main { padding: 18px 16px 100px; }
    h1 { font-size: 1.45rem; }
    .page-head { margin-bottom: 18px; }
    .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
    .media-grid-row { grid-auto-flow: column; grid-auto-columns: 72%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
    .media-grid-row .card { scroll-snap-align: start; }
    .card-avatar { display: none; }
    .card-title { font-size: 13.5px; }
    .card-stats span:nth-child(2) { display: none; }
    .lock-circle { width: 40px; height: 40px; }
    .field-row { grid-template-columns: 1fr; }
    .access-options { grid-template-columns: 1fr; }
    .access-card { flex-direction: row; align-items: center; gap: 10px; flex-wrap: wrap; }
    .access-card .icon { margin: 0; }
    .access-card small { width: 100%; padding-left: 32px; margin-top: -4px; }
    .dropzone { min-height: 260px; }
    .player { border-radius: var(--radius); margin: 0 -16px; width: calc(100% + 32px); border-radius: 0; max-height: 70vh; }
    .player.is-locked { min-height: 380px; }
    .unlock-box { padding: 24px 20px; margin: 16px; }
    .media-title-row { flex-direction: column; gap: 8px; }
    .action-btn span { display: none; }
    .action-btn [data-like-count] { display: inline; }
    .side-thumb { width: 120px; }
    .profile { margin: -18px -16px 0; }
    .profile-cover { height: 160px; }
    .profile-head { padding: 0 16px; margin-top: -48px; gap: 14px; }
    .profile-avatar { width: 96px; height: 96px; border-width: 4px; }
    .profile-id h1 { font-size: 1.4rem; }
    .profile-actions { width: 100%; }
    .profile-actions .btn { flex: 1; }
    .profile-body { padding: 14px 16px 0; }
    .profile-stats { gap: 18px; }
    .sub-banner { margin: 14px 16px 0; }
    .packs { grid-template-columns: repeat(2, 1fr); }
    .balance-lifetime { grid-template-columns: repeat(2, 1fr); }
    .tip-presets { grid-template-columns: repeat(3, 1fr); }
    .sub-item { grid-template-columns: 1fr; gap: 10px; }
    .sub-status { align-items: flex-start; }
    .settings-split { grid-template-columns: 1fr; }
    .report { grid-template-columns: 1fr; }
    .report-thumb img { width: 100%; }
    .report-actions { flex-direction: row; }
    .doc-layout { grid-template-columns: 1fr; }
    .doc-nav { position: static; flex-direction: row; overflow-x: auto; }
    .doc-nav a { white-space: nowrap; }
    .doc { padding: 24px 20px; }
    .danger-zone { flex-direction: column; align-items: flex-start; }
    .kpis, .kpis-3 { grid-template-columns: repeat(2, 1fr); }
    .kpi { padding: 14px; }
    .kpi strong { font-size: 1.35rem; }
    .bar-chart { height: 180px; gap: 2px; }
    .panel { padding: 18px; border-radius: var(--radius); }
    .table-wrap { margin: 0 -18px; padding: 0 18px; }
    .auth-card { padding: 26px 20px; }
    .search-inline { min-width: 0; flex: 1; }
    .toast-stack { bottom: 88px; width: calc(100% - 32px); }
    .toast { border-radius: var(--radius); }

    .bottom-nav {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; justify-content: space-around; align-items: center;
        height: calc(62px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
        background: color-mix(in srgb, var(--bg-elev) 88%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid var(--border);
    }
    .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--muted); min-width: 56px; }
    .bottom-nav a.active { color: var(--text); }
    .bottom-nav a.active .icon { color: var(--accent); }
    .bottom-nav .icon { width: 22px; height: 22px; }
    .bottom-upload { width: 48px !important; min-width: 48px !important; height: 48px; border-radius: 16px; background: var(--grad); color: #fff !important; justify-content: center; box-shadow: 0 8px 20px -6px rgba(255, 61, 127, .7); }
}
