/* ============================================
   THEMES
============================================ */
[data-theme="dark"] {
    --bg-0: #09090b;
    --bg-1: #111114;
    --bg-2: #18181b;
    --bg-3: #1f1f23;
    --bg-h: #27272a;
    --tx-1: #fafafa;
    --tx-2: #a1a1aa;
    --tx-3: #71717a;
    --ac: #8b5cf6;
    --ac-h: #a78bfa;
    --ac-g: rgba(139, 92, 246, 0.35);
    --gd1: #8b5cf6;
    --gd2: #ec4899;
    --ok: #22c55e;
    --warn: #f59e0b;
    --err: #ef4444;
    --brd: rgba(255, 255, 255, 0.08);
    --brd2: rgba(255, 255, 255, 0.14);
    --nav-bg: rgba(9, 9, 11, 0.9);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] {
    --bg-0: #f8f9fb;
    --bg-1: #fff;
    --bg-2: #f1f3f5;
    --bg-3: #e9ecef;
    --bg-h: #dee2e6;
    --tx-1: #1a1a2e;
    --tx-2: #495057;
    --tx-3: #868e96;
    --ac: #6366f1;
    --ac-h: #818cf8;
    --ac-g: rgba(99, 102, 241, 0.25);
    --gd1: #6366f1;
    --gd2: #8b5cf6;
    --ok: #16a34a;
    --warn: #d97706;
    --err: #dc2626;
    --brd: rgba(0, 0, 0, 0.08);
    --brd2: rgba(0, 0, 0, 0.14);
    --nav-bg: rgba(255, 255, 255, 0.95);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="midnight"] {
    --bg-0: #0b1120;
    --bg-1: #131b2e;
    --bg-2: #1a2540;
    --bg-3: #223052;
    --bg-h: #2a3a62;
    --tx-1: #e2e8f0;
    --tx-2: #94a3b8;
    --tx-3: #64748b;
    --ac: #06b6d4;
    --ac-h: #22d3ee;
    --ac-g: rgba(6, 182, 212, 0.35);
    --gd1: #06b6d4;
    --gd2: #3b82f6;
    --ok: #10b981;
    --warn: #f59e0b;
    --err: #f43f5e;
    --brd: rgba(255, 255, 255, 0.06);
    --brd2: rgba(255, 255, 255, 0.12);
    --nav-bg: rgba(11, 17, 32, 0.95);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

:root {
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 24px;
    --r-full: 9999px;
    --fast: 0.15s ease;
    --norm: 0.25s ease;
}

/* ============================================
   RESET
============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-0);
    color: var(--tx-1);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background var(--norm), color var(--norm);
    font-size: 16px;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

/* ============================================
   UTILITIES
============================================ */
.hidden { display: none !important; }
.muted { color: var(--tx-3); }
.center { text-align: center; }
.mb24 { margin-bottom: 24px; }
.mb12 { margin-bottom: 12px; }
.sm { font-size: 13px; }
.req { color: var(--err); }
.opt { color: var(--tx-3); font-size: 12px; }

.grad {
    background: linear-gradient(135deg, var(--gd1), var(--gd2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   CARD
============================================ */
.card {
    background: var(--bg-1);
    border: 1px solid var(--brd);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
}

/* ============================================
   BUTTONS
============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--r-md);
    font-weight: 600;
    font-size: 14px;
    transition: all var(--fast);
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--ac);
    color: #fff;
}
.btn-primary:hover {
    background: var(--ac-h);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--ac-g);
}

.btn-secondary {
    background: var(--bg-2);
    color: var(--tx-1);
    border: 1px solid var(--brd);
}
.btn-secondary:hover {
    background: var(--bg-h);
}

.btn-danger {
    background: var(--err);
    color: #fff;
}
.btn-danger:hover {
    background: #dc2626;
}

.btn-warn {
    background: var(--warn);
    color: #000;
}
.btn-warn:hover {
    background: #d97706;
}

.btn-ok {
    background: var(--ok);
    color: #fff;
}
.btn-ok:hover {
    background: #16a34a;
}

.btn-google {
    background: #fff;
    color: #1f1f1f;
    padding: 14px 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}
.btn-google:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn-discord {
    background: #5865F2;
    color: #fff;
}
.btn-discord:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
}

.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-xs { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.5; pointer-events: none; }
.btn-row { display: flex; gap: 10px; justify-content: flex-end; }

/* ============================================
   NAV
============================================ */
#nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--brd);
    z-index: 1000;
}

.nav-inner {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #111;
    padding: 3px;
}

.nav-logo-text {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--gd1), var(--gd2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 4px;
}

.nl {
    padding: 8px 16px;
    border-radius: var(--r-md);
    color: var(--tx-2);
    font-weight: 500;
    font-size: 14px;
    transition: all var(--fast);
}
.nl:hover {
    color: var(--tx-1);
    background: var(--bg-h);
}
.nl.active {
    color: var(--ac);
    background: var(--bg-2);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Theme button */
.theme-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tx-2);
    position: relative;
    transition: all var(--fast);
}
.theme-btn:hover {
    background: var(--bg-h);
    color: var(--tx-1);
}

.ti {
    width: 20px;
    height: 20px;
    position: absolute;
    transition: all var(--norm);
}

[data-theme="dark"] .ti-moon { opacity: 1; transform: scale(1); }
[data-theme="dark"] .ti-sun,
[data-theme="dark"] .ti-stars { opacity: 0; transform: scale(0); }

[data-theme="light"] .ti-sun { opacity: 1; transform: scale(1); }
[data-theme="light"] .ti-moon,
[data-theme="light"] .ti-stars { opacity: 0; transform: scale(0); }

[data-theme="midnight"] .ti-stars { opacity: 1; transform: scale(1); }
[data-theme="midnight"] .ti-moon,
[data-theme="midnight"] .ti-sun { opacity: 0; transform: scale(0); }

/* Auth nav */
.nav-auth {
    display: flex;
    align-items: center;
}

.as {
    display: flex;
    align-items: center;
}

.nav-av {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--brd);
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    border-radius: var(--r-full);
    cursor: pointer;
    transition: all var(--fast);
}
.user-pill:hover {
    background: var(--bg-h);
}

.nav-nm {
    font-weight: 600;
    font-size: 14px;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Dropdown */
.dd {
    position: absolute;
    top: calc(100% + 4px);
    right: 20px;
    background: var(--bg-1);
    border: 1px solid var(--brd);
    border-radius: var(--r-lg);
    min-width: 220px;
    padding: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    z-index: 1001;
    animation: ddIn 0.2s ease;
}

@keyframes ddIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: none; }
}

.dd-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 8px;
}

.dd-av {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.dd-nm {
    font-weight: 600;
    font-size: 14px;
}

.dd-sep {
    height: 1px;
    background: var(--brd);
    margin: 6px 0;
}

.dd-link {
    display: block;
    padding: 10px 12px;
    border-radius: var(--r-sm);
    color: var(--tx-2);
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    text-align: left;
    transition: all var(--fast);
}
.dd-link:hover {
    background: var(--bg-h);
    color: var(--tx-1);
}

.dd-red { color: var(--err); }
.dd-red:hover { background: rgba(239, 68, 68, 0.1); }

/* Hamburger - always visible */
.ham {
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: var(--r-md);
    cursor: pointer;
}
.ham span {
    width: 20px;
    height: 2px;
    background: var(--tx-1);
    border-radius: 2px;
    transition: all var(--fast);
}
.ham:hover {
    background: var(--bg-h);
}

/* Mobile menu */
.mob-ov {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100;
}

.mob-dr {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background: var(--bg-1);
    border-left: 1px solid var(--brd);
    z-index: 1101;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: slideR 0.3s ease;
    overflow-y: auto;
}

@keyframes slideR {
    from { transform: translateX(100%); }
    to { transform: none; }
}

.mob-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.mob-x {
    font-size: 28px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-md);
    color: var(--tx-2);
}
.mob-x:hover {
    background: var(--bg-h);
}

.mob-lk {
    padding: 14px 16px;
    border-radius: var(--r-md);
    font-weight: 500;
    color: var(--tx-2);
    transition: all var(--fast);
    font-size: 15px;
}
.mob-lk:hover, .mob-lk.active {
    background: var(--bg-2);
    color: var(--tx-1);
}

.mob-sep {
    height: 1px;
    background: var(--brd);
    margin: 12px 0;
}

.mob-discord {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #5865F2 !important;
}
.mob-discord svg {
    flex-shrink: 0;
}

/* ============================================
   MAIN
============================================ */
#main {
    padding-top: 64px;
    min-height: 100vh;
}

.pg {
    display: none;
    animation: pgIn 0.3s ease;
}
.pg.active {
    display: block;
}

@keyframes pgIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

.wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.wrap.narrow {
    max-width: 620px;
}

.wrap h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

/* ============================================
   HERO - Full Gradient Background
============================================ */
.hero {
    position: relative;
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, var(--gd1), transparent),
        radial-gradient(ellipse 60% 40% at 80% 100%, var(--gd2), transparent),
        radial-gradient(ellipse 50% 30% at 10% 80%, var(--gd1), transparent);
    opacity: 0.4;
    animation: heroBgPulse 10s ease-in-out infinite alternate;
}

@keyframes heroBgPulse {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 0.5; transform: scale(1.05); }
}

.hero-c {
    position: relative;
    z-index: 1;
    max-width: 700px;
    text-align: center;
    width: 100%;
}

.hero-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 28px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.5);
    padding: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-t {
    font-size: clamp(36px, 8vw, 56px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.hero-s {
    font-size: 18px;
    color: var(--tx-2);
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 44px;
    flex-wrap: wrap;
}

.hs {
    text-align: center;
}

.hs-v {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--ac);
}

.hs-l {
    font-size: 13px;
    color: var(--tx-3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* ============================================
   RANKINGS
============================================ */
.sec-hd {
    margin-bottom: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.sec-hd h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.rank-toggle {
    display: flex;
    gap: 4px;
    background: var(--bg-1);
    padding: 4px;
    border-radius: var(--r-md);
    border: 1px solid var(--brd);
}

.rt-btn {
    padding: 10px 20px;
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--tx-3);
    white-space: nowrap;
    transition: all var(--fast);
}
.rt-btn:hover {
    color: var(--tx-1);
}
.rt-btn.active {
    background: var(--ac);
    color: #fff;
}

.rank-view {
    display: none;
}
.rank-view.active {
    display: block;
}

.rank-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Rank card */
.rank-card {
    display: flex;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--bg-1);
    border: 1px solid var(--brd);
    cursor: pointer;
    transition: all var(--fast);
}
.rank-card:hover {
    border-color: var(--ac);
    box-shadow: 0 4px 24px var(--ac-g);
    transform: translateY(-2px);
}

.rc-thumb {
    width: 200px;
    min-height: 112px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-2);
    flex-shrink: 0;
}

.rc-body {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    flex: 1;
    min-width: 0;
}

.rc-rank {
    font-size: 28px;
    font-weight: 900;
    color: var(--tx-3);
    min-width: 56px;
    text-align: center;
    flex-shrink: 0;
}
.rc-rank.top-1 { color: #ffd700; text-shadow: 0 0 16px rgba(255, 215, 0, 0.3); }
.rc-rank.top-2 { color: #c0c0c0; }
.rc-rank.top-3 { color: #cd7f32; }

.rc-info {
    flex: 1;
    min-width: 0;
}

.rc-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rc-cr {
    font-size: 14px;
    color: var(--tx-3);
}

.rc-meta {
    display: flex;
    gap: 16px;
    margin-top: 6px;
}
.rc-meta span {
    font-size: 12px;
    color: var(--tx-3);
}

.rc-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--warn);
}

.empty {
    text-align: center;
    padding: 64px;
    color: var(--tx-3);
}

/* ============================================
   PUBLIC SUBMISSIONS
============================================ */
.sub-filters-pub, .sub-filters {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.sf {
    padding: 8px 18px;
    border-radius: var(--r-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--tx-3);
    background: var(--bg-2);
    border: 1px solid var(--brd);
    white-space: nowrap;
    transition: all var(--fast);
    cursor: pointer;
}
.sf:hover {
    color: var(--tx-1);
    border-color: var(--brd2);
}
.sf.active {
    background: var(--ac);
    color: #fff;
    border-color: var(--ac);
}

.pub-sub-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pub-sub {
    padding: 24px;
}
.pub-sub.pending { border-left: 4px solid var(--warn); }
.pub-sub.approved { border-left: 4px solid var(--ok); }
.pub-sub.rejected { border-left: 4px solid var(--err); }

.pub-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.pub-title {
    font-size: 20px;
    font-weight: 700;
}

.pub-cr {
    font-size: 14px;
    color: var(--tx-3);
    font-weight: 400;
}

.pub-meta {
    font-size: 12px;
    color: var(--tx-3);
    margin-top: 4px;
}

.pub-status {
    padding: 5px 14px;
    border-radius: var(--r-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}
.pub-status.pending { background: var(--warn); color: #000; }
.pub-status.approved { background: var(--ok); color: #fff; }
.pub-status.rejected { background: var(--err); color: #fff; }

.pub-video {
    margin: 16px 0;
    border-radius: var(--r-md);
    overflow: hidden;
}
.pub-video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
}

.pub-reason {
    font-size: 14px;
    color: var(--tx-2);
    line-height: 1.7;
    padding: 16px;
    background: var(--bg-2);
    border-radius: var(--r-md);
    margin: 16px 0;
}

.pub-reason-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--tx-3);
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.pub-submitter {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-2);
    border-radius: var(--r-md);
    cursor: pointer;
    transition: all var(--fast);
    margin-top: 16px;
}
.pub-submitter:hover {
    background: var(--bg-h);
}
.pub-submitter img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}
.pub-submitter-info {
    flex: 1;
}
.pub-submitter-label {
    font-size: 11px;
    color: var(--tx-3);
    text-transform: uppercase;
}
.pub-submitter-name {
    font-size: 14px;
    font-weight: 600;
}

.pub-reject-reason {
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.1);
    border-left: 3px solid var(--err);
    border-radius: var(--r-sm);
    font-size: 13px;
    color: var(--err);
}

/* ============================================
   LEVEL PAGE
============================================ */
.back-lk {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--tx-3);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    transition: color var(--fast);
}
.back-lk:hover {
    color: var(--tx-1);
}

.lv-top {
    display: flex;
    overflow: hidden;
    margin-bottom: 20px;
}

.lv-media {
    width: 55%;
    flex-shrink: 0;
    background: var(--bg-2);
}
.lv-media iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    display: block;
}

.lv-info {
    padding: 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lv-rank-lg {
    font-size: 56px;
    font-weight: 900;
    color: var(--ac);
    line-height: 1;
}

.lv-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
}

.lv-cr {
    font-size: 16px;
    color: var(--tx-3);
}

/* Level rating display */
.lv-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
    flex-wrap: wrap;
}
.lv-rating .stars {
    font-size: 20px;
    color: var(--warn);
    letter-spacing: 1px;
}
.lv-rating .score {
    font-size: 16px;
    font-weight: 700;
    color: var(--tx-1);
}
.lv-rating .count {
    font-size: 13px;
    color: var(--tx-3);
}

/* Submitter/Approver cards */
.lv-people {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 12px 0;
}

.lv-person {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-2);
    border-radius: var(--r-md);
    cursor: pointer;
    transition: all var(--fast);
}
.lv-person:hover {
    background: var(--bg-h);
}
.lv-person:empty {
    display: none;
}
.lv-person img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.lv-person-info {
    display: flex;
    flex-direction: column;
}
.lv-person-label {
    font-size: 10px;
    color: var(--tx-3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.lv-person-name {
    font-size: 13px;
    font-weight: 600;
}

.lv-vote {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
}
.lv-vote .btn.voted {
    background: var(--ac-h);
}
.lv-vcnt {
    font-size: 15px;
    color: var(--tx-3);
    font-weight: 600;
}

/* Rating card */
.lv-rate-card {
    padding: 28px;
    margin-bottom: 20px;
    text-align: center;
}
.lv-rate-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.star-rating {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.star {
    font-size: 32px;
    color: var(--bg-3);
    cursor: pointer;
    transition: all var(--fast);
    user-select: none;
}
.star:hover, .star.hover {
    color: var(--warn);
    transform: scale(1.15);
}
.star.active {
    color: var(--warn);
}

.rate-hint {
    font-size: 13px;
    color: var(--tx-3);
    margin-top: 16px;
}
.rate-hint.rated {
    color: var(--ok);
}

/* Description */
.lv-desc {
    padding: 28px;
    margin-bottom: 20px;
}
.lv-desc h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--tx-3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.lv-desc p {
    color: var(--tx-2);
    line-height: 1.8;
    font-size: 15px;
}

/* ============================================
   COMMENTS
============================================ */
.lv-comm-card {
    padding: 28px;
}
.lv-comm-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comm-count {
    font-size: 14px;
    font-weight: 500;
    color: var(--tx-3);
}

.comm-form {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}
.comm-form input {
    flex: 1;
    padding: 14px 18px;
    background: var(--bg-2);
    border: 2px solid var(--brd);
    border-radius: var(--r-md);
    font-size: 15px;
    transition: all var(--fast);
}
.comm-form input:focus {
    outline: none;
    border-color: var(--ac);
    box-shadow: 0 0 0 3px var(--ac-g);
}
.comm-form input::placeholder {
    color: var(--tx-3);
}

.login-prompt {
    text-align: center;
    padding: 20px;
    background: var(--bg-2);
    border-radius: var(--r-md);
    margin-bottom: 24px;
    color: var(--tx-3);
}
.login-prompt a {
    color: var(--ac);
    font-weight: 600;
}
.login-prompt a:hover {
    text-decoration: underline;
}

.reply-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-2);
    border-radius: var(--r-md);
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--tx-2);
}

.reply-cancel {
    font-size: 22px;
    color: var(--tx-3);
    padding: 0 4px;
    cursor: pointer;
    background: none;
    border: none;
}
.reply-cancel:hover {
    color: var(--tx-1);
}

.comm-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.comm-item {
    display: flex;
    gap: 14px;
}

.comm-av {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    cursor: pointer;
}

.comm-body {
    flex: 1;
    min-width: 0;
}

.comm-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.comm-nm {
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: color var(--fast);
}
.comm-nm:hover {
    color: var(--ac);
}

.comm-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: var(--r-full);
    color: #fff;
}

.comm-time {
    font-size: 12px;
    color: var(--tx-3);
}

.comm-txt {
    font-size: 15px;
    color: var(--tx-2);
    line-height: 1.6;
    word-break: break-word;
}

.comm-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.comm-reply-btn {
    font-size: 12px;
    color: var(--tx-3);
    font-weight: 600;
    transition: color var(--fast);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}
.comm-reply-btn:hover {
    color: var(--ac);
}

.comm-replies {
    margin-top: 16px;
    padding-left: 20px;
    border-left: 2px solid var(--brd);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comm-reply {
    display: flex;
    gap: 10px;
}
.comm-reply .comm-av {
    width: 32px;
    height: 32px;
}
.comm-reply .comm-txt {
    font-size: 14px;
}

/* ============================================
   AUTH
============================================ */
.center-pg {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.auth-card {
    max-width: 420px;
    width: 100%;
    padding: 48px 40px;
    text-align: center;
}

.auth-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--gd1), var(--gd2));
    margin: -48px -40px 32px;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.auth-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 16px;
    background: #111;
    padding: 10px;
}

.auth-card h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-card .btn-google {
    margin-top: 28px;
}

/* ============================================
   SETUP
============================================ */
.setup-card {
    max-width: 480px;
    width: 100%;
    padding: 44px 36px;
    text-align: center;
}
.setup-card h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 4px;
}
.setup-card form {
    text-align: left;
}

.setup-av {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-bottom: 32px;
}

.av-ring {
    position: relative;
    width: 110px;
    height: 110px;
}
.av-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}
.av-ring::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gd1), var(--gd2));
    animation: ringR 3s linear infinite;
}

@keyframes ringR {
    to { transform: rotate(360deg); }
}

/* ============================================
   FORMS
============================================ */
.field {
    margin-bottom: 20px;
}

.field label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-2);
    border: 2px solid var(--brd);
    border-radius: var(--r-md);
    transition: all var(--fast);
    font-size: 15px;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;
    border-color: var(--ac);
    box-shadow: 0 0 0 3px var(--ac-g);
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--tx-3);
}

.field textarea {
    min-height: 120px;
    resize: vertical;
}

.field select {
    appearance: none;
    cursor: pointer;
}

.field input[type="color"] {
    height: 50px;
    padding: 6px;
    cursor: pointer;
}

.field input[type="file"] {
    padding: 12px;
}

.input-pre {
    position: relative;
    display: flex;
    align-items: center;
}
.input-pre > span {
    position: absolute;
    left: 16px;
    color: var(--tx-3);
    font-weight: 500;
}
.input-pre input {
    padding-left: 28px;
}

.hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--tx-3);
}

.cc {
    display: block;
    text-align: right;
    margin-top: 6px;
    font-size: 12px;
    color: var(--tx-3);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ============================================
   PROFILE
============================================ */
.prof-banner {
    height: 220px;
    position: relative;
    background: linear-gradient(135deg, var(--gd1), var(--gd2));
    background-size: cover;
    background-position: center;
}

.prof-wrap {
    max-width: 620px;
    margin: 0 auto;
    padding: 0 24px 80px;
    margin-top: -80px;
    position: relative;
}

.prof-card {
    padding: 32px;
    text-align: center;
}

.prof-av-w {
    display: flex;
    justify-content: center;
    margin-top: -80px;
    margin-bottom: 20px;
    position: relative;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.prof-av {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--bg-1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.prof-av-btn {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 38px;
    height: 38px;
    background: var(--ac);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all var(--fast);
    cursor: pointer;
    border: none;
}
.prof-av-btn:hover {
    transform: scale(1.1);
}

.prof-info {
    margin-bottom: 24px;
}

.prof-nr {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.prof-nr h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.badge {
    padding: 4px 14px;
    border-radius: var(--r-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    background: var(--ac);
}

.prof-mid {
    display: block;
    color: var(--ac);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.prof-un {
    display: block;
    color: var(--tx-3);
    font-size: 14px;
    margin-bottom: 16px;
}

.prof-bio {
    color: var(--tx-2);
    font-size: 15px;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.7;
}
.prof-bio a {
    color: var(--ac);
    text-decoration: underline;
}

.prof-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding: 24px 0;
    border-top: 1px solid var(--brd);
    border-bottom: 1px solid var(--brd);
    margin: 24px 0;
}

.ps {
    text-align: center;
}
.ps-v {
    display: block;
    font-size: 26px;
    font-weight: 700;
}
.ps-l {
    font-size: 12px;
    color: var(--tx-3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prof-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 12px;
}

.prof-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   SETTINGS
============================================ */
.sc {
    padding: 28px;
    margin-bottom: 16px;
}
.sc h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.sr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
}
.sr + .sr {
    border-top: 1px solid var(--brd);
}

.sl {
    font-size: 13px;
    color: var(--tx-3);
    margin-bottom: 4px;
}

.sc-code {
    font-family: monospace;
    font-size: 13px;
    color: var(--tx-1);
    background: var(--bg-2);
    padding: 6px 12px;
    border-radius: 6px;
    word-break: break-all;
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.tc {
    padding: 20px 16px;
    border-radius: var(--r-md);
    border: 2px solid var(--brd);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all var(--fast);
    cursor: pointer;
}
.tc:hover {
    border-color: var(--brd2);
}
.tc.active {
    border-color: var(--ac);
    box-shadow: 0 0 0 3px var(--ac-g);
}
.tc span {
    font-size: 13px;
    font-weight: 600;
}

.tcp {
    width: 56px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(128, 128, 128, 0.3);
}
.tcp-dark { background: linear-gradient(135deg, #111114, #18181b); }
.tcp-light { background: linear-gradient(135deg, #fff, #f1f3f5); }
.tcp-midnight { background: linear-gradient(135deg, #131b2e, #1a2540); }

/* ============================================
   TABS
============================================ */
.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: var(--bg-1);
    padding: 4px;
    border-radius: var(--r-md);
    border: 1px solid var(--brd);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab {
    padding: 12px 20px;
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--tx-3);
    white-space: nowrap;
    transition: all var(--fast);
    cursor: pointer;
    background: none;
    border: none;
}
.tab:hover {
    color: var(--tx-1);
}
.tab.active {
    background: var(--ac);
    color: #fff;
}

.tpane {
    display: none;
}
.tpane.active {
    display: block;
}

/* ============================================
   LEADERBOARD / USER LIST
============================================ */
.ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ur {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--bg-1);
    border: 1px solid var(--brd);
    border-radius: var(--r-md);
    cursor: pointer;
    transition: all var(--fast);
}
.ur:hover {
    background: var(--bg-2);
    border-color: var(--brd2);
}

.ur-av {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.ur-info {
    flex: 1;
    min-width: 0;
}

.ur-nm {
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ur-sub {
    font-size: 12px;
    color: var(--tx-3);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ur-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.ur-stat {
    font-size: 16px;
    font-weight: 700;
    color: var(--tx-2);
    min-width: 36px;
    text-align: right;
}

.ur.banned {
    opacity: 0.6;
    border-color: var(--err);
}

/* ============================================
   SUBMIT
============================================ */
.sub-card {
    padding: 36px;
}

/* ============================================
   ADMIN
============================================ */
.a-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.a-stat {
    padding: 32px;
    text-align: center;
}
.a-stat h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--tx-3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
.a-stat p {
    font-size: 40px;
    font-weight: 800;
    color: var(--ac);
}

/* Admin submissions */
.a-sub-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.a-sub {
    padding: 28px;
}
.a-sub.pending { border-left: 4px solid var(--warn); }
.a-sub.approved { border-left: 4px solid var(--ok); }
.a-sub.rejected { border-left: 4px solid var(--err); }

.as-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.as-title {
    font-size: 20px;
    font-weight: 700;
}

.as-cr {
    font-size: 14px;
    color: var(--tx-3);
    font-weight: 400;
}

.as-meta {
    font-size: 12px;
    color: var(--tx-3);
    margin-top: 4px;
}

.as-submitter {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-2);
    border-radius: var(--r-md);
    margin: 16px 0;
    cursor: pointer;
    transition: all var(--fast);
}
.as-submitter:hover {
    background: var(--bg-h);
}
.as-submitter img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.as-submitter-info {
    flex: 1;
}
.as-submitter-label {
    font-size: 11px;
    color: var(--tx-3);
    text-transform: uppercase;
}
.as-submitter-name {
    font-size: 14px;
    font-weight: 600;
}

.as-video {
    margin: 20px 0;
    border-radius: var(--r-md);
    overflow: hidden;
}
.as-video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
}

.as-reason {
    padding: 18px;
    background: var(--bg-2);
    border-radius: var(--r-md);
    margin: 20px 0;
}
.as-reason-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--tx-3);
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}
.as-reason p {
    font-size: 14px;
    color: var(--tx-2);
    line-height: 1.7;
}

.as-reject {
    margin-top: 16px;
    padding: 14px 18px;
    background: rgba(239, 68, 68, 0.1);
    border-left: 3px solid var(--err);
    border-radius: var(--r-sm);
    font-size: 13px;
    color: var(--err);
}

.as-acts {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Admin rankings */
.a-rnk-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.al-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 22px;
    background: var(--bg-1);
    border: 1px solid var(--brd);
    border-radius: var(--r-md);
}

.al-rk {
    font-weight: 800;
    font-size: 24px;
    min-width: 56px;
    text-align: center;
    color: var(--tx-3);
}

.al-info {
    flex: 1;
    min-width: 0;
}
.al-nm {
    font-weight: 600;
    font-size: 16px;
}
.al-sub {
    font-size: 13px;
    color: var(--tx-3);
}

.al-acts {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* Admin reports */
.a-rep-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.a-rep {
    padding: 28px;
}

.ar-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.ar-cat {
    padding: 5px 14px;
    border-radius: var(--r-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--warn);
    color: #000;
}

.ar-time {
    font-size: 12px;
    color: var(--tx-3);
}

.ar-users {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.ar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-2);
    border-radius: var(--r-md);
    cursor: pointer;
    transition: all var(--fast);
}
.ar-user:hover {
    background: var(--bg-h);
}
.ar-user img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}
.ar-user-info {
    flex: 1;
}
.ar-label {
    font-size: 10px;
    color: var(--tx-3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.ar-name {
    font-size: 14px;
    font-weight: 600;
}

.ar-details {
    font-size: 14px;
    color: var(--tx-2);
    line-height: 1.7;
    padding: 18px;
    background: var(--bg-2);
    border-radius: var(--r-md);
    margin-bottom: 20px;
}

.ar-acts {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ============================================
   MODALS
============================================ */
.mo {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.mc {
    background: var(--bg-1);
    border: 1px solid var(--brd);
    border-radius: var(--r-xl);
    width: 100%;
    max-width: 500px;
    padding: 32px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    max-height: 90vh;
    overflow-y: auto;
    animation: modIn 0.3s ease;
}

@keyframes modIn {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: none; }
}

.mh {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.mh h2 {
    font-size: 22px;
    font-weight: 700;
}

.mx {
    font-size: 26px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-sm);
    color: var(--tx-3);
    transition: all var(--fast);
    cursor: pointer;
    background: none;
    border: none;
}
.mx:hover {
    background: var(--bg-h);
    color: var(--tx-1);
}

.ma {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 28px;
}

/* Thanks modal */
.thanks-modal {
    text-align: center;
    padding: 48px 32px;
}
.thanks-icon {
    font-size: 80px;
    margin-bottom: 28px;
}
.thanks-modal h2 {
    font-size: 28px;
    margin-bottom: 16px;
}
.thanks-modal p {
    color: var(--tx-2);
    margin-bottom: 32px;
    line-height: 1.7;
    font-size: 15px;
}

/* Crop modal */
.crop-container {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.crop-area {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background: #000;
    border: 3px solid var(--brd2);
}
.crop-area img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    cursor: move;
    user-select: none;
}

.crop-ctrl {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}
.crop-ctrl label {
    font-size: 13px;
    color: var(--tx-3);
    flex-shrink: 0;
}
.crop-ctrl input[type="range"] {
    flex: 1;
    height: 4px;
    background: var(--bg-3);
    border-radius: 4px;
    -webkit-appearance: none;
    appearance: none;
}
.crop-ctrl input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--ac);
    border-radius: 50%;
    cursor: pointer;
}

/* Duration inputs */
.dur-row {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}

.rl {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}
.rl input {
    accent-color: var(--ac);
}

.dur-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

/* ============================================
   BAN/MUTE SCREENS
============================================ */
.ban-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-0);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.ban-inner {
    text-align: center;
    max-width: 500px;
}
.ban-icon {
    color: var(--err);
    margin: 0 auto 28px;
}
.ban-inner h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--err);
}
.ban-inner p {
    color: var(--tx-2);
    margin-bottom: 10px;
    font-size: 15px;
}
.ban-inner .btn {
    margin-top: 28px;
}

.mute-bar {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--warn);
    color: #000;
    padding: 14px 24px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.mute-x {
    font-size: 22px;
    opacity: 0.6;
    cursor: pointer;
    background: none;
    border: none;
    color: inherit;
}
.mute-x:hover {
    opacity: 1;
}

/* ============================================
   LOADING
============================================ */
.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 64px;
    color: var(--tx-3);
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--brd);
    border-top-color: var(--ac);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.spinner-sm {
    width: 24px;
    height: 24px;
    border: 2px solid var(--brd);
    border-top-color: var(--ac);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   TOAST
============================================ */
#toasts {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 3000;
    pointer-events: none;
}

.toast {
    background: var(--bg-1);
    border: 1px solid var(--brd);
    border-radius: var(--r-md);
    padding: 16px 22px;
    min-width: 300px;
    max-width: 420px;
    box-shadow: var(--shadow);
    animation: toastIn 0.35s ease;
    pointer-events: auto;
    font-size: 14px;
    font-weight: 500;
}
.toast.success { border-left: 4px solid var(--ok); }
.toast.error { border-left: 4px solid var(--err); }
.toast.warning { border-left: 4px solid var(--warn); }
.toast.info { border-left: 4px solid var(--ac); }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(80px); }
    to { opacity: 1; transform: none; }
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }
}

@media (max-width: 900px) {
    .lv-top {
        flex-direction: column;
    }
    .lv-media {
        width: 100%;
    }
    .lv-info {
        padding: 28px;
    }
    .rc-thumb {
        width: 160px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 60px 20px;
    }
    .hero-logo {
        width: 80px;
        height: 80px;
    }
    .hero-stats {
        gap: 32px;
    }
    .hs-v {
        font-size: 28px;
    }
    .nav-nm {
        display: none;
    }
    .dd {
        right: 16px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .prof-wrap {
        padding: 0 16px 60px;
    }
    .prof-stats {
        gap: 32px;
    }
    .rc-thumb {
        width: 130px;
        min-height: 85px;
    }
    .rc-body {
        padding: 16px;
    }
    .rc-rank {
        font-size: 22px;
        min-width: 44px;
    }
    .rc-name {
        font-size: 16px;
    }
    .lv-rank-lg {
        font-size: 44px;
    }
    .lv-title {
        font-size: 24px;
    }
    #toasts {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
    .toast {
        min-width: auto;
    }
    .sec-hd {
        flex-direction: column;
        align-items: flex-start;
    }
    .ar-users {
        grid-template-columns: 1fr;
    }
    .dur-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .star {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .hero-t {
        font-size: 32px;
        letter-spacing: -1px;
    }
    .hero-stats {
        gap: 24px;
    }
    .hero-s {
        font-size: 16px;
    }
    .hero-btns {
        flex-direction: column;
        width: 100%;
    }
    .hero-btns .btn {
        width: 100%;
        max-width: 280px;
    }
    .rank-card {
        flex-direction: column;
    }
    .rc-thumb {
        width: 100%;
        height: 180px;
    }
    .rc-body {
        padding: 16px;
    }
    .rc-rank {
        font-size: 22px;
        min-width: 40px;
    }
    .auth-card {
        padding: 36px 24px;
    }
    .auth-bar {
        margin: -36px -24px 28px;
    }
    .auth-logo {
        width: 64px;
        height: 64px;
    }
    .setup-card {
        padding: 36px 24px;
    }
    .crop-area {
        width: 240px;
        height: 240px;
    }
    .lv-info {
        padding: 24px;
    }
    .lv-rank-lg {
        font-size: 36px;
    }
    .lv-title {
        font-size: 22px;
    }
    .lv-people {
        flex-direction: column;
    }
    .prof-av {
        width: 110px;
        height: 110px;
    }
    .prof-av-w {
        margin-top: -60px;
    }
    .prof-stats {
        gap: 24px;
    }
    .ps-v {
        font-size: 22px;
    }
    .a-stat p {
        font-size: 32px;
    }
    .comm-form {
        flex-direction: column;
    }
    .comm-form .btn {
        width: 100%;
    }
    .star {
        font-size: 22px;
        gap: 2px;
    }
    .theme-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1200px) {
    .hero-t {
        font-size: 60px;
    }
    .hero-s {
        font-size: 20px;
    }
    .hs-v {
        font-size: 40px;
    }
    .wrap {
        padding: 56px 32px 100px;
    }
    .rc-thumb {
        width: 240px;
        min-height: 135px;
    }
    .rc-body {
        padding: 26px 30px;
    }
    .rc-name {
        font-size: 20px;
    }
    .lv-info {
        padding: 44px;
    }
    .lv-rank-lg {
        font-size: 64px;
    }
    .lv-title {
        font-size: 34px;
    }
}
