:root {
    --bg: #000000;
    --bg-elevated: #0a0a0a;
    --bg-card: #111111;
    --bg-card-hover: #161616;
    --bg-input: #0d0d0d;
    --border: #1a1a1a;
    --border-hover: #2a2a2a;
    --text: #e8e8e8;
    --text-dim: #666666;
    --text-muted: #444444;
    --accent: #e0e0e0;
    --accent-hover: #ffffff;
    --success: #22c55e;
    --error: #ef4444;
    --warning: #f59e0b;
    --primary: #ef4444;
    --primary-glow: rgba(239, 68, 68, 0.35);
    --primary-dim: rgba(239, 68, 68, 0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --shadow: 0 1px 3px rgba(0,0,0,0.5);
    --transition: all 0.2s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

.page-loader {
    position: fixed; inset: 0;
    background: var(--bg);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-ring {
    width: 40px; height: 40px;
    border: 2px solid var(--border);
    border-top-color: var(--text);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loader-text {
    margin-top: 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--text-dim);
    text-transform: uppercase;
}

.ticker-wrap {
    width: 100%;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    height: 36px;
    display: flex;
    align-items: center;
    max-width: 100vw;
}

.ticker {
    display: inline-flex;
    white-space: nowrap;
    animation: ticker 40s linear infinite;
    padding-left: 100%;
    font-size: 12px;
    color: var(--text-dim);
    gap: 60px;
}

.ticker:hover { animation-play-state: paused; }

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ticker-item i { color: var(--text-muted); font-size: 10px; }

.site-header {
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-mark {
    background: var(--text);
    color: var(--bg);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    letter-spacing: 1px;
}

.logo-text {
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px 6px 6px;
    border-radius: 999px;
    transition: color 0.25s ease, background 0.25s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 3px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

.nav-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    flex-shrink: 0;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-icon i { font-size: 12px; color: var(--text-dim); transition: color 0.25s ease, transform 0.35s ease; }

.nav-link:hover .nav-icon,
.nav-link.active .nav-icon {
    background: var(--text);
    border-color: var(--text);
    transform: rotate(-8deg) scale(1.08);
}

.nav-link:hover .nav-icon i,
.nav-link.active .nav-icon i { color: var(--bg); transform: scale(1.05); }

.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    min-width: 0;
}

.wallet-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 5px 14px 5px 5px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    transition: var(--transition);
}

.wallet-pill:hover { border-color: var(--border-hover); background: var(--bg-card-hover); }

.wallet-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wallet-pill:hover .wallet-icon { transform: rotate(-12deg) scale(1.1); }
.wallet-icon i { color: var(--success); font-size: 11px; }
.wallet-pill .currency { color: var(--text-dim); font-size: 11px; font-weight: 400; }

.btn-login {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-login:hover { background: var(--bg-card-hover); border-color: var(--border-hover); }
.btn-login i { color: #5865F2; }

.user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.user-pill span {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-pill img {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border);
}

.user-pill span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.btn-logout-sm {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-logout-sm:hover { border-color: var(--error); color: var(--error); }

.mobile-toggle {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    padding: 0;
    border-radius: var(--radius-sm);
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-toggle:active { transform: scale(0.94); }

.mobile-toggle-icon {
    position: relative;
    width: 18px;
    height: 14px;
    display: inline-block;
}

.mobile-toggle-icon span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-toggle-icon span:nth-child(1) { top: 0; }
.mobile-toggle-icon span:nth-child(2) { top: 6px; }
.mobile-toggle-icon span:nth-child(3) { top: 12px; }

.mobile-toggle.open .mobile-toggle-icon span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.mobile-toggle.open .mobile-toggle-icon span:nth-child(2) { opacity: 0; }
.mobile-toggle.open .mobile-toggle-icon span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    z-index: 999;
    align-items: stretch;
    justify-content: flex-end;
    animation: mobileMenuIn 0.25s ease;
}

.mobile-menu.open { display: flex; }

@keyframes mobileMenuIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.mobile-menu-panel {
    display: flex;
    flex-direction: column;
    width: min(86%, 340px);
    height: 100%;
    background: var(--bg-elevated);
    border-left: 1px solid var(--border);
    border-radius: 20px 0 0 20px;
    overflow: hidden;
    box-shadow: -24px 0 60px rgba(0,0,0,0.6);
    animation: mobilePanelIn 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes mobilePanelIn {
    from { opacity: 0; transform: translateX(24px); }
    to { opacity: 1; transform: translateX(0); }
}

.mobile-menu-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.mobile-menu-group-label {
    padding: 16px 20px 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.mobile-menu-brand {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mobile-menu-brand .logo-mark {
    background: var(--text);
    color: var(--bg);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    letter-spacing: 1px;
}

.mobile-menu-brand .logo-text {
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
}

.mobile-menu-close {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    transition: var(--transition);
}

.mobile-menu-close:hover { background: var(--primary-dim); color: var(--primary); border-color: var(--primary); }

.mobile-wallet-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin: 16px 20px 0;
}

.mobile-wallet-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-wallet-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--success);
    font-size: 13px;
    flex-shrink: 0;
}

.mobile-wallet-label {
    font-size: 13px;
    color: var(--text-dim);
    font-weight: 500;
}

.mobile-wallet-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}

.mobile-user-card {
    padding: 16px 20px 4px;
}

.mobile-user-guest {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: var(--transition);
}

.mobile-user-guest:hover { border-color: var(--border-hover); background: var(--bg-card-hover); }

.mobile-user-guest-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #5865F2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    color: #fff;
}

.mobile-user-guest-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.mobile-user-guest-text strong { font-size: 14px; color: var(--text); }
.mobile-user-guest-text small { font-size: 12px; color: var(--text-dim); }
.mobile-user-guest-arrow { color: var(--text-muted); font-size: 12px; }

.mobile-user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.mobile-user-profile img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.mobile-user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.mobile-user-info strong {
    font-size: 14px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-user-wallet {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--success);
    font-weight: 600;
}

.mobile-user-wallet i { font-size: 11px; }

.mobile-user-logout {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
}

.mobile-user-logout:hover { border-color: var(--error); color: var(--error); }

.mobile-menu-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 20px;
}

.mobile-menu-link {
    color: var(--text-dim);
    text-decoration: none;
    padding: 13px 16px;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 2px 12px;
    border-radius: var(--radius-md);
}

.mobile-menu-link i { font-size: 13px; }

.mobile-menu-link:active { background: var(--bg-card-hover); }

.mobile-menu-link:hover {
    background: var(--bg-card);
    color: var(--text);
}

.mobile-menu-link:hover .nav-icon {
    background: var(--text);
    border-color: var(--text);
}

.mobile-menu-link:hover .nav-icon i { color: var(--bg); }

.mobile-menu-link.active {
    background: var(--primary-dim);
    color: var(--text);
}

.mobile-menu-link.active .nav-icon {
    background: var(--primary);
    border-color: var(--primary);
}

.mobile-menu-link.active .nav-icon i { color: #fff; }

.mobile-menu-footer {
    flex-shrink: 0;
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: var(--bg-elevated);
}

.mobile-discord-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #5865F2;
    color: #fff;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    width: 100%;
}

.mobile-discord-btn:hover {
    background: #4752C4;
    transform: translateY(-1px);
}

.main-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 80px;
    overflow-x: hidden;
}

.view { display: none; animation: viewIn 0.3s ease; overflow-x: hidden; }
.view.active { display: block; }

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

.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero-bg {
    position: absolute;
    top: 50%; left: 60%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    max-width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 24px;
}

.hero-badge::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 16px;
    color: var(--text);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-content p {
    font-size: 16px;
    color: var(--text-dim);
    line-height: 1.6;
    max-width: 440px;
    margin-bottom: 32px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--text);
    color: var(--bg);
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
}

.btn-primary i { transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,255,255,0.08); }
.btn-primary:hover i { transform: translateX(3px); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-ghost i { transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.btn-ghost:hover { border-color: var(--border-hover); background: var(--bg-card); transform: translateY(-2px); }
.btn-ghost:hover i { transform: rotate(90deg); }
.btn-ghost:active { transform: translateY(0); }

.btn-full { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

.code-window {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    max-width: 100%;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f56; animation: dotPulse 2s ease-in-out infinite; }
.dot.yellow { background: #ffbd2e; animation: dotPulse 2s ease-in-out infinite 0.3s; }
.dot.green { background: #27ca40; animation: dotPulse 2s ease-in-out infinite 0.6s; }

@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

.code-title {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-dim);
    font-family: 'SF Mono', Monaco, monospace;
}

.code-body {
    padding: 20px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 13px;
    line-height: 1.8;
    overflow-x: hidden;
    word-wrap: break-word;
}

.code-line { color: var(--text-dim); }
.code-line.indent { padding-left: 20px; }
.code-line.blank { height: 8px; }
.code-line.output { opacity: 0.5; }
.kw { color: #c792ea; }
.var { color: #82aaff; }
.cls { color: #ffcb6b; }
.fn { color: #82aaff; }
.key { color: #f78c6c; }
.bool { color: #c3e88d; }
.str { color: #c3e88d; }
.num { color: #f78c6c; }
.comment { color: var(--text-muted); font-style: italic; }

.stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 32px 0;
    margin-bottom: 48px;
    width: 100%;
    overflow-x: hidden;
}

@keyframes statFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.stats-bar .stat-unit {
    animation: statFadeUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.stats-bar .stat-unit:nth-child(1) { animation-delay: 0.05s; }
.stats-bar .stat-unit:nth-child(2) { animation-delay: 0.15s; }
.stats-bar .stat-unit:nth-child(3) { animation-delay: 0.25s; }

.stat-unit {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .stat-unit:hover {
        border-color: var(--text);
        background: var(--bg-card-hover);
        transform: translateY(-3px);
        box-shadow: 0 12px 32px rgba(0,0,0,0.45), 0 0 0 1px rgba(232,232,232,0.15), 0 8px 20px rgba(232,232,232,0.1);
    }
}

.stat-icon-badge {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    perspective: 500px;
}

.stat-icon-flip {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
}

@media (hover: hover) and (pointer: fine) {
    .stat-unit:hover .stat-icon-flip { transform: rotateY(180deg); }
}

.stat-icon-face {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
    color: var(--text);
}

.stat-icon-face svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(232, 232, 232, 0.15));
}

.stat-icon-face.front { transform: rotateY(0deg); }
.stat-icon-face.back { transform: rotateY(180deg); }

.stat-info { display: flex; flex-direction: column; }
.stat-label {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 4px;
    font-weight: 500;
}
.stat-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}
.stat-num-row { display: flex; align-items: baseline; gap: 5px; }
.stat-unit-text { display: none; font-size: 12px; font-weight: 600; color: var(--text-dim); }
.stat-divider { display: none; }

.live-feed {
    margin-bottom: 48px;
}

.feed-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.live-dot {
    width: 6px; height: 6px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.feed-track {
    display: flex;
    gap: 12px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.feed-track-inner {
    display: flex;
    gap: 12px;
    animation: feedScroll 25s linear infinite;
    width: max-content;
}

.feed-track:hover .feed-track-inner {
    animation-play-state: paused;
}

@keyframes feedScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.feed-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    transition: var(--transition);
}

.feed-item:hover { border-color: var(--border-hover); }

.feed-item img {
    width: 24px; height: 24px;
    border-radius: 50%;
    border: 1px solid var(--border);
}

.feed-item .name { color: var(--text-dim); }
.feed-item .action { color: var(--text-muted); }
.feed-item .product { color: var(--text); font-weight: 600; }
.feed-item .time { color: var(--text-muted); font-size: 11px; margin-left: 4px; }

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.section-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.section-link:hover { color: var(--text); }

.featured-section { margin-bottom: 48px; }

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.featured-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.featured-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.featured-card .card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.featured-card:hover .card-img { transform: scale(1.05); }

.featured-card .card-body { padding: 16px; }

.featured-card .card-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.featured-card .card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.3;
}

.featured-card .card-desc {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-card .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.featured-card .card-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
}

.featured-card .card-price span {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-dim);
}

.card-btn {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.card-btn:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

.categories-section { margin-bottom: 48px; }

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease, box-shadow 0.35s ease;
    position: relative;
}

.category-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.category-media {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 1;
    overflow: hidden;
    background: var(--bg-elevated);
}

.category-card .category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.category-card:hover .category-img {
    transform: scale(1.08);
}

.category-icon-badge {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
}

.category-icon-badge i {
    font-size: 34px;
    color: var(--text-dim);
    transition: color 0.35s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.category-card:hover .category-icon-badge i {
    color: var(--text);
    transform: scale(1.12);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.15) 55%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

.category-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
}

.category-info h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    margin: 0 0 2px;
}

.category-info span {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
}

.category-arrow {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 12px;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.category-card:hover .category-arrow {
    background: var(--text);
    border-color: var(--text);
    color: var(--bg);
    transform: translateX(3px);
}

.all-products-section { margin-bottom: 48px; }

.filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover { border-color: var(--border-hover); color: var(--text); transform: translateY(-1px); }
.filter-btn.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.filter-btn:active { transform: translateY(0); }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
    width: 100%;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.45);
}

.product-card.featured {
    border-color: rgba(250,204,21,0.35);
    box-shadow: 0 0 0 1px rgba(250,204,21,0.08);
}

.product-card.featured:hover {
    border-color: rgba(250,204,21,0.6);
    box-shadow: 0 16px 36px rgba(250,204,21,0.12);
}

.product-card .card-img-wrap {
    position: relative;
    overflow: hidden;
    height: 170px;
}

.product-card .card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.product-card:hover .card-img { transform: scale(1.08); }

.product-card .featured-ribbon {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #facc15, #f59e0b);
    color: #1a1200;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.2px;
    padding: 4px 10px 4px 8px;
    border-radius: 20px;
    box-shadow: 0 4px 14px rgba(245,158,11,0.4);
    z-index: 2;
}

.product-card .featured-ribbon i { font-size: 10px; }

.product-card .card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-card .card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.product-card .card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-card .stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 10.5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
    backdrop-filter: blur(6px);
    z-index: 2;
}

.stock-badge.in { background: rgba(34,197,94,0.18); color: var(--success); }
.stock-badge.out { background: rgba(239,68,68,0.18); color: var(--error); }

.product-card .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 4px;
    border-top: 1px solid var(--border);
}

.product-card .card-price {
    font-size: 17px;
    font-weight: 800;
    color: var(--text);
}

.product-card .card-price span {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--text-dim);
    margin-left: 2px;
}

.page-header {
    padding: 48px 0 32px;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.page-header p {
    color: var(--text-dim);
    font-size: 15px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 18px;
    transition: var(--transition);
}

.back-btn:hover {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
    transform: translateX(-3px);
}

.back-btn i { font-size: 12px; }

.page-filter { margin-bottom: 24px; }

.topup-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    padding-top: 24px;
}

.topup-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.input-group { margin-bottom: 20px; }
.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0 16px;
    transition: var(--transition);
}

.input-wrap:focus-within { border-color: var(--text-dim); }
.input-wrap i { color: var(--text-muted); font-size: 14px; }
.input-wrap input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text);
    padding: 14px 0;
    font-size: 14px;
    outline: none;
}
.input-wrap input::placeholder { color: var(--text-muted); }

.topup-result {
    margin-top: 16px;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    display: none;
}

.topup-result.show { display: block; }
.topup-result.success { background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.2); color: var(--success); }
.topup-result.error { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2); color: var(--error); }

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
}

.info-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card h3 i { color: var(--text-dim); }

.info-step {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.step-num {
    width: 28px; height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dim);
    flex-shrink: 0;
}

.step-text { font-size: 13px; color: var(--text-dim); }

.topup-list { display: flex; flex-direction: column; gap: 8px; }
.empty-mini {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 13px;
}

.topup-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.topup-item .amount { font-weight: 700; color: var(--success); }
.topup-item .date { color: var(--text-muted); font-size: 11px; }

.history-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}

.history-tab {
    background: none;
    border: none;
    color: var(--text-dim);
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.history-tab:hover { color: var(--text); }
.history-tab.active { color: var(--text); border-bottom-color: var(--text); }

.history-table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.history-table th {
    text-align: left;
    padding: 14px 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dim);
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
}

.history-table td {
    padding: 14px 20px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.history-table tr:last-child td { border-bottom: none; }
.history-table tr:hover td { background: var(--bg-elevated); }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.status-badge.success { background: rgba(34,197,94,0.1); color: var(--success); }
.status-badge.failed { background: rgba(239,68,68,0.1); color: var(--error); }

.empty-row {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.overlay.show { opacity: 1; visibility: visible; }

.popup {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 720px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 201;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}

.popup.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.popup-header h3 {
    font-size: 16px;
    font-weight: 700;
}

.popup-close {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 18px;
    cursor: pointer;
    width: 32px; height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.popup-close:hover { background: var(--bg-elevated); color: var(--text); }

.popup-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.popup-img {
    border-right: 1px solid var(--border);
}

.popup-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 300px;
    display: block;
}

.popup-info { padding: 24px; }

.popup-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.popup-meta span {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 10px;
    font-weight: 600;
}

.popup-stock { background: rgba(34,197,94,0.1); color: var(--success); }
.popup-sold { background: var(--bg-elevated); color: var(--text-dim); }

.popup-desc {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 20px;
}

.popup-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 20px;
}

.popup-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
}

.popup-currency {
    font-size: 14px;
    color: var(--text-dim);
    font-weight: 500;
}

.qty-selector {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 16px;
}

.qty-btn {
    width: 40px; height: 40px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 12px;
}

.qty-btn:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.qty-btn:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.qty-btn:hover { background: var(--border-hover); }

.qty-selector input {
    width: 50px; height: 40px;
    text-align: center;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-left: none; border-right: none;
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
    outline: none;
}

.popup-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid var(--border);
    margin-bottom: 16px;
}

.popup-total span:first-child { font-size: 13px; color: var(--text-dim); }
.popup-total span:last-child { font-size: 18px; font-weight: 800; color: var(--text); }

.buy-result {
    margin-top: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    display: none;
    text-align: center;
}

.buy-result.show { display: block; }
.buy-result.success { background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.2); color: var(--success); }
.buy-result.error { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2); color: var(--error); }

.popup-form .popup-body { display: block; padding: 24px; }

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

.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: 12px 14px;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--text-dim); }

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.form-check input {
    width: 16px; height: 16px;
    accent-color: var(--text);
}

.form-check label { font-size: 13px; color: var(--text-dim); cursor: pointer; }

.toast {
    position: fixed;
    bottom: 24px; right: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    z-index: 300;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.toast.show { transform: translateX(0); }
.toast i { font-size: 16px; }
.toast.success { border-color: rgba(34,197,94,0.3); color: var(--success); }
.toast.error { border-color: rgba(239,68,68,0.3); color: var(--error); }

.admin-header {
    padding: 40px 0 24px;
}

.admin-header h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 20px;
}

.admin-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 8px;
}

.admin-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.admin-stat-card .label {
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.admin-stat-card .value {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
}

.admin-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.admin-tab {
    background: none;
    border: none;
    color: var(--text-dim);
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.admin-tab:hover { color: var(--text); }
.admin-tab.active { color: var(--text); border-bottom-color: var(--text); }

.admin-panel { display: none; }
.admin-panel.active { display: block; }

.panel-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.panel-toolbar h3 {
    font-size: 16px;
    font-weight: 700;
}

.admin-table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 600px;
}

.admin-table th {
    text-align: left;
    padding: 14px 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dim);
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.admin-table td {
    padding: 12px 16px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg-elevated); }

.admin-table img {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1px solid var(--border);
}

.admin-table .admin-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border);
}

.action-btns {
    display: flex;
    gap: 6px;
}

.btn-icon {
    width: 28px; height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-dim);
    cursor: pointer;
    transition: var(--transition);
    font-size: 11px;
}

.btn-icon:hover { color: var(--text); border-color: var(--border-hover); }
.btn-icon.danger:hover { color: var(--error); border-color: var(--error); }

.toggle-switch {
    width: 36px; height: 20px;
    background: var(--border);
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    padding: 0;
}

.toggle-switch.on { background: var(--success); }
.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px; left: 2px;
    width: 16px; height: 16px;
    background: var(--text);
    border-radius: 50%;
    transition: var(--transition);
}
.toggle-switch.on::after { left: 18px; }

@media (max-width: 1024px) {
    .hero-section { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { order: -1; }
    .featured-grid { grid-template-columns: repeat(2, 1fr); }
    .topup-layout { grid-template-columns: 1fr; }
    .admin-stats-row { grid-template-columns: repeat(2, 1fr); }
    .stats-bar { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .header-inner { padding: 0 16px; }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .mobile-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        color: var(--text);
        font-size: 16px;
        cursor: pointer;
        padding: 0;
        margin: 0;
    }
    .mobile-toggle:active { background: var(--bg-card-hover); }
    .auth-box { display: none; }
    .header-inner {
        padding: 0 12px;
        gap: 8px;
        height: 56px;
    }
    .main-content { padding: 0 12px 60px; overflow-x: hidden; }
    .hero-content h1 { font-size: 28px; word-wrap: break-word; overflow-wrap: break-word; }
    .hero-content p { word-wrap: break-word; overflow-wrap: break-word; max-width: 100%; }
    .stats-bar { grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; padding: 24px 0; margin-bottom: 32px; }
    .stats-bar .stat-unit:nth-child(3) { grid-column: 1 / -1; }
    .stat-unit { padding: 18px 16px; align-items: flex-start; overflow: hidden; }
    .stat-num { font-size: 24px; color: var(--text); }
    .stat-label { font-size: 12px; }
    .stat-num-row { display: flex; }
    .stat-unit-text { display: inline; }
    .stat-icon-badge {
        position: absolute;
        top: 14px;
        right: 14px;
        width: 34px;
        height: 34px;
    }
    .stat-icon-face { color: var(--text); }
    .stat-icon-face svg { filter: none; }
    .stat-unit.flipped .stat-icon-flip { transform: rotateY(180deg); }
    .stat-unit:active {
        border-color: var(--text);
        background: var(--bg-card-hover);
        box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    }
    .wallet-pill { display: none; }
    .featured-grid { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: 1fr; }
    .popup-body { grid-template-columns: 1fr; }
    .popup-img { border-right: none; border-bottom: 1px solid var(--border); }
    .popup-img img { min-height: 200px; }
    .form-row { grid-template-columns: 1fr; }
    .admin-stats-row { grid-template-columns: repeat(2, 1fr); }
    .admin-tabs { overflow-x: auto; flex-wrap: nowrap; }
    .filter-bar { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
    .logo-text { font-size: 14px; }
    .logo-mark { font-size: 10px; padding: 3px 6px; }
    .hero-section { padding: 40px 0 32px; overflow: hidden; width: 100%; }
    .hero-visual { width: 100%; overflow: hidden; }
    .code-window { max-width: 100%; overflow-x: hidden; }
    .code-window { max-width: 100%; }
    .topup-layout { grid-template-columns: 1fr; }
    .mobile-menu-panel { width: min(90%, 320px); }
    .mobile-menu-link { padding: 12px 14px; font-size: 14px; margin: 2px 10px; }
    .mobile-menu-header { padding: 14px 16px; }
    .mobile-user-card { padding: 14px 16px 4px; }
    .mobile-menu-footer { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
    .site-header { position: sticky; top: 0; }
    .ticker-wrap { position: relative; }
    body { padding-top: 0; }
    .page-loader { z-index: 9999; }
    .user-pill { gap: 6px; }
    .user-pill img { width: 24px; height: 24px; }
    .user-pill span { max-width: 60px; font-size: 12px; }
    .btn-logout-sm { padding: 3px 8px; font-size: 10px; }
    .header-actions { gap: 6px; }
}

@media (max-width: 400px) {
    .header-inner { gap: 6px; }
}

.site-footer {
    position: relative;
    border-top: 1px solid var(--border);
    background: var(--bg-elevated);
    margin-top: 80px;
    overflow: hidden;
}

.footer-inner {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 64px 24px 48px;
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 1fr;
    gap: 48px;
    align-items: start;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.8;
    max-width: 280px;
}

.footer-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 11px;
    color: var(--text-dim);
    background: var(--bg-card);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.footer-heading {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a i {
    width: 14px;
    font-size: 12px;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-links a:hover { color: var(--text); transform: translateX(3px); }
.footer-links a:hover i { color: var(--primary); }

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-support-text {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 20px;
}

.btn-discord-footer {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #5865F2;
    color: #fff;
    text-decoration: none;
    padding: 13px 22px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(88, 101, 242, 0.28);
    transition: var(--transition);
}

.btn-discord-footer:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(88, 101, 242, 0.4);
}

.btn-discord-footer i { font-size: 16px; }

.footer-bottom {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 32px;
}

.footer-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
    margin-bottom: 20px;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.footer-socials a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
}

.footer-socials a:hover {
    color: var(--text);
    border-color: var(--border-hover);
    background: var(--bg-card);
    transform: translateY(-2px);
}

.typewriter {
    display: inline;
}

.type-cursor {
    display: inline-block;
    color: var(--text);
    animation: blink 1s step-end infinite;
    font-weight: 300;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@media (max-width: 768px) {
    .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 36px; padding: 48px 24px 40px; }
    .footer-logo { justify-content: center; }
    .footer-desc { max-width: none; margin: 0 auto; }
    .footer-status { margin-left: auto; margin-right: auto; }
    .footer-links { align-items: center; }
    .footer-right { align-items: center; }
    .footer-bottom-inner { flex-direction: column; gap: 16px; text-align: center; }
}

.file-upload-wrap {
    position: relative;
}

.file-upload-wrap input[type="file"] {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 13px;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

.file-upload-wrap input[type="file"]:hover {
    border-color: var(--border-hover);
}

.file-upload-wrap input[type="file"]::-webkit-file-upload-button {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    margin-right: 12px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition);
}

.file-upload-wrap input[type="file"]::-webkit-file-upload-button:hover {
    background: var(--text);
    color: var(--bg);
}

.file-upload-preview {
    margin-top: 12px;
    display: none;
}

.file-upload-preview.show {
    display: block;
}

.file-upload-preview img {
    max-width: 100%;
    max-height: 150px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.download-section {
    margin-top: 16px;
    padding: 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.download-section label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

.download-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--success);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    word-break: break-all;
}

.download-link:hover {
    text-decoration: underline;
}

.unban-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.unban-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    max-width: 600px;
}

.unban-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.unban-card h3 i {
    color: var(--success);
}

.unban-card p {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 16px;
}

.unban-card p strong {
    color: var(--text);
}

.unban-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.unban-form input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: 12px 14px;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
    font-family: inherit;
}

.unban-form input:focus {
    border-color: var(--text-dim);
}

.unban-form input::placeholder {
    color: var(--text-muted);
}

.unban-form .btn-primary {
    width: 100%;
}

.unban-result {
    margin-top: 16px;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    display: none;
}

.unban-result.show {
    display: block;
}

.unban-result.success {
    background: rgba(34,197,94,0.08);
    border: 1px solid rgba(34,197,94,0.2);
    color: var(--success);
}

.unban-result.error {
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.2);
    color: var(--error);
}

@media (max-width: 768px) {
    .unban-form input {
        min-width: 100%;
    }
    .unban-card {
        padding: 20px;
        max-width: 100%;
    }
}

.unban-page-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}

.unban-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
}

.unban-icon-wrap {
    width: 64px;
    height: 64px;
    background: rgba(34,197,94,0.08);
    border: 1px solid rgba(34,197,94,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.unban-icon-wrap i {
    font-size: 24px;
    color: var(--success);
}

.unban-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.unban-card p {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.unban-card p strong {
    color: var(--text);
}

.unban-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
}

.unban-form .form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.unban-form .input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0 16px;
    transition: var(--transition);
}

.unban-form .input-wrap:focus-within { border-color: var(--text-dim); }
.unban-form .input-wrap i { color: var(--text-muted); font-size: 14px; }
.unban-form .input-wrap input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text);
    padding: 14px 0;
    font-size: 14px;
    outline: none;
}
.unban-form .input-wrap input::placeholder { color: var(--text-muted); }

.unban-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: sticky;
    top: 80px;
}

.unban-info-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.unban-info-card h3 i { color: var(--text-dim); }

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-dim);
}

.info-item:last-child { border-bottom: none; }
.info-item i { color: var(--success); font-size: 14px; width: 20px; text-align: center; }

@media (max-width: 768px) {
    .unban-page-layout { grid-template-columns: 1fr; }
    .unban-card { padding: 24px 20px; }
    .unban-info-card { position: static; }
    .unban-form { max-width: 100%; }
}