:root {
    --bg-dark: #050706; 
    --bg-card: rgba(10, 15, 12, 0.6);
    --bg-card-hover: rgba(16, 185, 129, 0.05);
    --primary: #10b981; 
    --secondary: #34d399; 
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(16, 185, 129, 0.15); 
    --border-glow: rgba(16, 185, 129, 0.4);
    --success: #10b981;
    --danger: #ef4444;
    --glass-blur: blur(16px);
    --reveal-delay: 0s;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

body { background-color: var(--bg-dark); color: var(--text-main); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.glass-panel {
    background: var(--bg-card);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 28px; border-radius: 12px; font-weight: 600; font-size: 0.95rem;
    transition: all 0.3s ease; cursor: pointer; border: none; outline: none;
}

.btn-gradient {
    background: var(--gradient); color: #000; 
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-gradient:hover {
    transform: translateY(-2px); box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6);
}

.btn-outline { background: transparent; border: 1px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: rgba(16, 185, 129, 0.1); box-shadow: 0 0 15px rgba(16, 185, 129, 0.3); }

.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 20px 0;
    transition: padding 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.45s ease,
                box-shadow 0.45s ease,
                border-color 0.35s ease;
    background: rgba(5, 7, 6, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
}

.navbar.nav-scrolled {
    padding: 12px 0;
    background: rgba(5, 7, 6, 0.94);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), 0 0 1px rgba(16, 185, 129, 0.25);
    border-bottom-color: rgba(16, 185, 129, 0.22);
}

.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1300px; margin: 0 auto; padding: 0 20px; }
.logo { font-size: 1.8rem; font-weight: 800; letter-spacing: -1px; }
.logo span { color: var(--primary); text-shadow: 0 0 10px rgba(16, 185, 129, 0.4); }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a:not(.btn) {
    font-size: 0.95rem; font-weight: 500; color: var(--text-muted);
    transition: color 0.35s ease, text-shadow 0.35s ease, transform 0.35s ease;
    position: relative;
}
.nav-links a:not(.btn)::after {
    content: '';
    position: absolute; left: 0; bottom: -4px;
    width: 0; height: 2px;
    border-radius: 2px;
    background: var(--gradient);
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.45);
}
.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn).active::after { width: 100%; }
.nav-links a:not(.btn):hover, .nav-links a.active {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    position: relative; text-align: center; padding-top: 80px;
    overflow: hidden;
    background: radial-gradient(circle at top, rgba(16, 185, 129, 0.15) 0%, transparent 55%);
}

.hero-aurora {
    position: absolute;
    inset: -20%;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 55% 45% at 50% 0%, rgba(16, 185, 129, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse 40% 35% at 85% 45%, rgba(52, 211, 153, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 35% 40% at 10% 70%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    animation: heroAuroraShift 14s ease-in-out infinite alternate;
    opacity: 0.95;
}

.hero-aurora::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 40%, rgba(16, 185, 129, 0.08) 0%, transparent 45%);
    animation: heroOrbDrift 18s ease-in-out infinite;
}

@keyframes heroAuroraShift {
    0% { transform: translate(0, 0) scale(1); opacity: 0.88; }
    100% { transform: translate(2%, -1%) scale(1.04); opacity: 1; }
}

@keyframes heroOrbDrift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(8%, 5%); }
}

.hero-content { max-width: 800px; z-index: 2; padding: 0 20px; position: relative; }

.hero-animate {
    opacity: 0;
    animation: heroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-animate-1 { animation-delay: 0.12s; }
.hero-animate-2 { animation-delay: 0.28s; }
.hero-animate-3 { animation-delay: 0.46s; }
.hero-animate-4 { animation-delay: 0.62s; }

@keyframes heroReveal {
    from {
        opacity: 0;
        transform: translateY(32px);
        filter: blur(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::after {
    content: '';
    position: absolute;
    inset: 0;
    left: -100%;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255, 255, 255, 0.35) 45%,
        transparent 70%
    );
    animation: btnShineSweep 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes btnShineSweep {
    0%, 20% { left: -100%; }
    35%, 100% { left: 100%; }
}
.hero-badge {
    display: inline-block; padding: 6px 16px; background: rgba(16, 185, 129, 0.1);
    color: var(--primary); border-radius: 30px; font-weight: 600; font-size: 0.85rem; margin-bottom: 20px;
    border: 1px solid var(--border-glow);
}

.hero h1 { font-size: 4.5rem; font-weight: 800; line-height: 1.15; margin-bottom: 25px; color: var(--text-main); }
.hero h1 .hero-title-line2 {
    color: var(--text-main);
    font-weight: 800;
}
.hero p.hero-lead,
.hero p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 40px; line-height: 1.6; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; margin-top: 30px; }
.hero-buttons .btn { padding: 16px 36px; font-size: 1.1rem; }

.dashboard-section { padding: 100px 20px; }
.dashboard-wrapper { max-width: 1300px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.5rem; font-weight: 800; }
.section-header h2 span { color: var(--primary); }
.section-header p { color: var(--text-muted); }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 40px; }


#staff-container { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.stat-card { padding: 30px; display: flex; align-items: center; gap: 20px; }
.stat-icon { width: 60px; height: 60px; border-radius: 15px; background: rgba(16, 185, 129, 0.1); display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--primary); }
.stat-info h3 { font-size: 0.9rem; color: var(--text-muted); text-transform: uppercase; margin-bottom: 5px; }
.stat-info div { font-size: 2rem; font-weight: 800; color: #fff; }
.max-players { font-size: 0.5em; color: var(--text-muted); }

.chart-panel { padding: 30px; }
.chart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.chart-header h3 { font-size: 1.2rem; }
.peak-badge { font-size: 0.85rem; color: var(--primary); background: rgba(16, 185, 129, 0.1); padding: 5px 15px; border-radius: 20px; font-weight: 600; border: 1px solid var(--border-glow); }
.canvas-wrapper { position: relative; height: 350px; width: 100%; }

.news-section { padding: 100px 20px; background: radial-gradient(circle at bottom, rgba(16, 185, 129, 0.05) 0%, transparent 60%); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.news-card { padding: 30px; transition: border-color 0.35s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease; }
.news-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(16, 185, 129, 0.15);
}
.news-date { color: var(--primary); font-size: 0.85rem; font-weight: bold; background: rgba(16, 185, 129, 0.1); padding: 5px 12px; border-radius: 20px; display: inline-block; margin-bottom: 15px; width: max-content; }
.news-card h3 { font-size: 1.3rem; margin-bottom: 15px; color: #fff; }
.news-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

.rules-hero { padding: 150px 20px 60px; text-align: center; }
.rules-hero h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 15px; }
.rules-hero h1 span { color: var(--primary); }
.rules-hero p { color: var(--text-muted); font-size: 1.1rem; }
.accordion { max-width: 900px; margin: 0 auto 100px; display: flex; flex-direction: column; gap: 15px; padding: 0 20px; }
.accordion-header { padding: 20px 25px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 600; font-size: 1.1rem; }
.accordion-header i { transition: 0.3s; color: var(--primary); }
.accordion-item.active .accordion-header i { transform: rotate(180deg); color: var(--secondary); }
.accordion-content { max-height: 0; overflow: hidden; transition: 0.4s ease; padding: 0 25px; color: var(--text-muted); }
.accordion-item.active .accordion-content { max-height: 4000px; padding: 0 25px 25px; }
.accordion-content ul { padding-left: 20px; }
.accordion-content li { margin-bottom: 10px; }

.rule-example { color: var(--text-muted); font-style: italic; }
.rules-warning-panel { margin-top: 50px; padding: 30px; text-align: center; border-left: 5px solid var(--danger); }
.rules-warning-icon { font-size: 2.5rem; color: var(--danger); margin-bottom: 15px; }
.rules-warning-title { color: #fff; margin-bottom: 15px; }
.rules-warning-text { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

.main-footer { padding: 40px 20px; border-top: 1px solid var(--border); text-align: center; margin-top: 50px; }
.main-footer .logo { font-size: 1.5rem; font-weight: 800; margin-bottom: 10px; }
.main-footer p { color: var(--text-muted); font-size: 0.9rem; }


.reveal-on-scroll {
    opacity: 0;
    transform: translateY(36px);
    transition:
        opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0s),
        transform 0.75s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0s);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.staff-card-hover {
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.45s ease;
}

.staff-card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.staff-card-avatar {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease;
}

.staff-card-hover:hover .staff-card-avatar {
    transform: scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
    .hero-aurora,
    .hero-aurora::before,
    .btn-shine::after {
        animation: none !important;
    }
    .hero-animate {
        animation: none !important;
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
    }
    .reveal-on-scroll {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .dashboard-animate-1, .dashboard-animate-2, .dashboard-animate-3,
    .dashboard-animate-4, .dashboard-animate-5 {
        animation: none !important;
        opacity: 1 !important;
    }
    .dashboard-card::after { display: none !important; }
}

.login-wrapper { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: radial-gradient(circle at center, rgba(16, 185, 129, 0.15) 0%, var(--bg-dark) 70%); }
.login-box { width: 100%; max-width: 400px; padding: 40px; text-align: center; }
.input-group { margin-bottom: 20px; text-align: left; }
.input-group label { display: block; margin-bottom: 8px; font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }
.input-field { width: 100%; background: rgba(0,0,0,0.3); border: 1px solid var(--border); padding: 14px 15px; border-radius: 10px; color: #fff; font-size: 1rem; transition: 0.3s; outline: none; }
.input-field:focus { border-color: var(--primary); box-shadow: 0 0 10px rgba(16, 185, 129, 0.3); }
.error-msg { background: rgba(239,68,68,0.1); color: var(--danger); border: 1px solid rgba(239,68,68,0.3); padding: 12px; border-radius: 10px; margin-bottom: 20px; font-size: 0.9rem; }
.btn-full { width: 100%; justify-content: center; margin-top: 10px; font-size: 1rem; padding: 14px; }
.login-footer { margin-top: 25px; }
.login-footer a { color: var(--text-muted); font-size: 0.9rem; transition: 0.3s; }
.login-footer a:hover { color: var(--primary); }

.ucp-wrapper { display: flex; min-height: 100vh; padding: 20px; gap: 20px; max-width: 1600px; margin: 0 auto; }
.ucp-sidebar { width: 280px; display: flex; flex-direction: column; gap: 30px; padding: 30px; flex-shrink: 0; }
.user-profile { display: flex; align-items: center; gap: 15px; }
.avatar-box { width: 50px; height: 50px; border-radius: 14px; background: var(--gradient); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: #000; box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3); }
.user-details h3 { font-size: 1rem; }
.user-details p { font-size: 0.8rem; color: var(--text-muted); }
.side-nav { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.side-nav a { display: flex; align-items: center; gap: 15px; padding: 14px 20px; border-radius: 14px; color: var(--text-muted); font-weight: 500; transition: 0.3s; }
.side-nav a i { font-size: 1.2rem; opacity: 0.7; }
.side-nav a:hover { background: rgba(16, 185, 129, 0.05); color: var(--text-main); }
.side-nav a.active { background: var(--gradient); color: #000; box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3); font-weight: 700; }
.side-nav a.active i { opacity: 1; }
.ucp-content { flex: 1; padding: 20px 0; display: flex; flex-direction: column; gap: 30px; overflow: hidden; }
.page-header h2 { font-size: 2rem; font-weight: 700; margin-bottom: 5px; }
.page-header p { color: var(--text-muted); }

.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bento-card { padding: 30px; display: flex; flex-direction: column; gap: 15px; position: relative; overflow: hidden; transition: 0.3s; }
.bento-card:hover { border-color: var(--border-glow); transform: translateY(-3px); }
.bento-card h4 { font-size: 1.1rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.bento-card .value { font-size: 2.2rem; font-weight: 800; color: #fff; }

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes floatSkin {
    0% { transform: translateY(0px); filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5)); }
    50% { transform: translateY(-15px); filter: drop-shadow(0 35px 30px rgba(0,0,0,0.3)); }
    100% { transform: translateY(0px); filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5)); }
}

@keyframes progressFill {
    from { width: 0; }
}

.animate-card-1 { animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards; opacity: 0; }
.animate-card-2 { animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards; opacity: 0; }
.animate-card-3 { animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards; opacity: 0; }
.animate-card-4 { animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards; opacity: 0; }
.animate-card-5 { animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards; opacity: 0; }

.floating-skin { animation: floatSkin 4s ease-in-out infinite; }

.badge-admin { background: rgba(239, 68, 68, 0.1); color: var(--danger); border: 1px solid var(--danger); padding: 6px 14px; border-radius: 20px; font-size: 0.85rem; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; display: inline-block; }
.badge-player { background: rgba(16, 185, 129, 0.1); color: var(--success); border: 1px solid var(--success); padding: 6px 14px; border-radius: 20px; font-size: 0.85rem; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; display: inline-block; }

.skin-showcase { display: flex; justify-content: center; align-items: center; height: 350px; background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 70%); border-radius: 16px; }
.skin-showcase img { max-height: 90%; filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5)); }

.progress-group { display: flex; flex-direction: column; gap: 8px; margin-top: 15px; }
.progress-label { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }
.progress-bar { width: 100%; height: 8px; background: rgba(255,255,255,0.05); border-radius: 10px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 10px; animation: progressFill 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

.fill-health { background: #ef4444; box-shadow: 0 0 10px rgba(239, 68, 68, 0.5); }
.fill-hunger { background: #f59e0b; box-shadow: 0 0 10px rgba(245, 158, 11, 0.5); }
.fill-thirst { background: #3b82f6; box-shadow: 0 0 10px rgba(59, 130, 246, 0.5); }

.tab-pane { display: none; }
.tab-pane.active { display: block; }

.list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.list-item { display: flex; align-items: center; gap: 20px; padding: 20px; transition: 0.3s; cursor: default; }
.list-item:hover { background: var(--bg-card-hover); border-color: var(--border-glow); }
.item-icon { width: 60px; height: 60px; border-radius: 12px; background: rgba(16, 185, 129, 0.1); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: var(--primary); }
.item-info h4 { font-size: 1.1rem; margin-bottom: 5px; }
.item-info p { font-size: 0.85rem; color: var(--text-muted); }
.plate-badge { background: #0f172a; color: #f8fafc; padding: 3px 8px; border-radius: 6px; font-family: monospace; font-weight: bold; border: 1px solid var(--border); }

.text-center { text-align: center; }
.text-success { color: var(--success); }
.text-secondary { color: var(--secondary); }
.text-danger { color: var(--danger); }
.mt-15 { margin-top: 15px; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.row-2 { grid-row: span 2; }
.flex-grow { flex-grow: 1; }

.stat-box-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; margin-top: 10px; }
.clean-history { padding: 50px; text-align: center; }
.clean-history i { font-size: 4rem; color: var(--success); margin-bottom: 20px; }


.preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--bg-dark); z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out { opacity: 0; visibility: hidden; }

.preloader-content { text-align: center; }

.preloader-content .logo {
    font-size: 3rem; margin-bottom: 20px;
    animation: preloaderPulse 2s infinite ease-in-out;
}

.preloader-content p {
    color: var(--text-muted); font-size: 0.9rem; margin-top: 15px;
    letter-spacing: 1px; text-transform: uppercase;
}

.preloader-bar {
    width: 250px; height: 3px; background: rgba(255,255,255,0.05);
    border-radius: 10px; overflow: hidden; margin: 0 auto;
}

.preloader-fill {
    height: 100%; width: 0; background: var(--gradient);
    border-radius: 10px; animation: preloaderFill 1.5s infinite ease-in-out;
}

@keyframes preloaderPulse {
    0%, 100% { transform: scale(1); text-shadow: 0 0 10px rgba(16, 185, 129, 0.2); }
    50% { transform: scale(1.05); text-shadow: 0 0 25px rgba(16, 185, 129, 0.6); }
}

@keyframes preloaderFill {
    0% { width: 0; }
    100% { width: 100%; }
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--primary);
    cursor: pointer;
    transition: 0.3s;
}

@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
    }
    .nav-links {
        position: absolute; top: 100%; left: 0; width: 100%;
        background: rgba(5, 7, 6, 0.95);
        -webkit-backdrop-filter: blur(15px);
        backdrop-filter: blur(15px);
        flex-direction: column; gap: 15px; padding: 20px;
        border-bottom: 1px solid var(--border);
        display: none;
    }
    .nav-links.active { display: flex; }
    .nav-links a { width: 100%; text-align: center; padding: 10px 0; }
    
    .hero h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn { width: 100%; justify-content: center; }

    .dashboard-section, .news-section, .rules-hero { padding: 80px 20px 40px; }
    .section-header h2 { font-size: 2rem; }

    .ucp-wrapper { flex-direction: column; padding: 10px; gap: 10px; }
    .ucp-sidebar { width: 100%; padding: 15px; border-radius: 15px; }
    
    .side-nav { 
        flex-direction: row; 
        flex-wrap: nowrap; 
        overflow-x: auto; 
        overflow-y: hidden; 
        -webkit-overflow-scrolling: touch; 
        padding-bottom: 5px; 
        gap: 10px; 
        justify-content: flex-start;
        scrollbar-width: none; 
    }
    .side-nav::-webkit-scrollbar { display: none; }
    
    .side-nav a { 
        flex: 0 0 auto; 
        white-space: nowrap; 
        padding: 10px 16px; 
        font-size: 0.9rem;
    }

    .bento-card, .stat-card, .list-item, .news-card { padding: 15px; border-radius: 15px; }
    .stat-info div, .bento-card .value { font-size: 1.6rem; }
    .bento-card h4 { font-size: 0.9rem; }
    
    .skin-showcase { height: 220px; }

    .bento-grid { grid-template-columns: 1fr; gap: 10px; }
    .stat-box-grid { grid-template-columns: 1fr; gap: 15px; }
    
    .span-2, .span-3, .row-2 { grid-column: span 1 !important; grid-row: span 1 !important; }
}

@media (max-width: 400px) {
    .stat-info div, .bento-card .value { font-size: 1.4rem; }
    .hero h1 { font-size: 2.2rem; }
}

.error-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    background: radial-gradient(circle at center, rgba(239, 68, 68, 0.1) 0%, var(--bg-dark) 70%);
}

.error-box {
    padding: 60px;
}

.error-box h1 {
    font-size: 8rem;
    font-weight: 800;
    color: var(--danger);
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(239, 68, 68, 0.3);
}

.error-box h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #fff;
}

.error-box p {
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.page-error-v8 {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--bg-dark);
}

.page-error-backdrop {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.85;
}

.page-error-main {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding:
        max(28px, env(safe-area-inset-top, 0px))
        max(20px, env(safe-area-inset-right, 0px))
        48px
        max(20px, env(safe-area-inset-left, 0px));
    box-sizing: border-box;
}

.page-error-card {
    width: 100%;
    max-width: 520px;
    padding: clamp(32px, 6vw, 48px);
    text-align: center;
}

.page-error-code {
    font-size: clamp(4rem, 14vw, 7rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.06em;
    background: linear-gradient(135deg, #fca5a5, var(--danger));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 12px;
}

.page-error-card h2 {
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 14px;
}

.page-error-card > p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 28px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.page-error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.offline-strip {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    padding: 12px 18px;
    text-align: center;
    font-size: 0.9rem;
    color: #fecaca;
    background: rgba(127, 29, 29, 0.45);
    border-bottom: 1px solid rgba(248, 113, 113, 0.35);
    backdrop-filter: blur(10px);
}

.error-icon {
    font-size: 5rem;
    color: var(--danger);
    margin-bottom: 20px;
    display: block;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}


.dashboard-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.dashboard-card {
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease;
}

.dashboard-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(
        125deg,
        transparent 40%,
        rgba(16, 185, 129, 0.12) 50%,
        transparent 60%
    );
    opacity: 0;
    transform: translateX(-40%);
    transition: opacity 0.5s ease, transform 0.8s ease;
    pointer-events: none;
}

.dashboard-card:hover::after {
    opacity: 1;
    transform: translateX(40%);
}

.dashboard-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-5px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(16, 185, 129, 0.12);
}

.dash-span-2 {
    grid-column: span 2;
}

.dashboard-bento-grid > div:nth-child(1) { grid-column: span 1; }
.dashboard-bento-grid > div:nth-child(2) { grid-column: span 2; }

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border);
    transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.live-indicator.is-offline {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.4);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--success);
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseDot 1.5s infinite cubic-bezier(0.66, 0, 0, 1);
    transition: background-color 0.35s ease;
}

.pulse-dot.is-offline {
    background-color: #ef4444;
    animation-name: pulseDotOffline;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.65);
}

@keyframes pulseDot {
    to {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
}

@keyframes pulseDotOffline {
    to {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
}

@keyframes dashEnter {
    from { opacity: 0; transform: translateY(44px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.dashboard-animate-1 { animation: dashEnter 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.08s forwards; opacity: 0; }
.dashboard-animate-2 { animation: dashEnter 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.16s forwards; opacity: 0; }
.dashboard-animate-3 { animation: dashEnter 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.24s forwards; opacity: 0; }
.dashboard-animate-4 { animation: dashEnter 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.32s forwards; opacity: 0; }
.dashboard-animate-5 { animation: dashEnter 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards; opacity: 0; }

@media (max-width: 900px) {
    .dashboard-bento-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-bento-grid > div:nth-child(1),
    .dashboard-bento-grid > div:nth-child(2),
    .dash-span-2 {
        grid-column: span 1;
    }
    .canvas-wrapper { height: 200px !important; }
}


.page-home {
    position: relative;
}

.page-home::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.45;
    background:
        radial-gradient(ellipse 100% 80% at 50% -30%, rgba(16, 185, 129, 0.09) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 100% 100%, rgba(52, 211, 153, 0.05) 0%, transparent 45%);
}

.hero-bg-stack {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.hero-mesh {
    position: absolute;
    inset: -5%;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(16, 185, 129, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.07) 1px, transparent 1px);
    background-size: 56px 56px;
    animation: meshDrift 28s linear infinite;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 15%, transparent 75%);
}

@keyframes meshDrift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-56px, -56px); }
}

.hero-particles {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(52, 211, 153, 0.35) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.25;
    animation: particleFloat 20s ease-in-out infinite alternate;
}

@keyframes particleFloat {
    0% { opacity: 0.18; transform: scale(1); }
    100% { opacity: 0.32; transform: scale(1.03); }
}

.hero .hero-content {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px 8px 14px;
    margin-bottom: 22px;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gradient);
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.65);
    animation: badgeDotPulse 2.4s ease-in-out infinite;
}

@keyframes badgeDotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.85; }
}

.hero h1 .hero-title-accent {
    display: inline;
    background: linear-gradient(105deg, #6ee7b7 0%, var(--primary) 40%, var(--secondary) 70%, #34d399 100%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    animation: titleGradientFlow 10s ease infinite;
    text-shadow: none;
}

.hero-title-line2 {
    display: inline-block;
}

@keyframes titleGradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-lead {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.75;
}

.btn-nav-cta {
    padding-left: 22px;
    padding-right: 22px;
}

.nav-logo-glow .logo span {
    animation: logoTint 5s ease-in-out infinite;
}

@keyframes logoTint {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.35)); }
    50% { filter: drop-shadow(0 0 16px rgba(52, 211, 153, 0.55)); }
}

.btn-discord-glow {
    position: relative;
    overflow: hidden;
}

.btn-discord-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    padding: 2px;
    background: linear-gradient(130deg, rgba(88, 101, 242, 0.5), transparent 40%, rgba(16, 185, 129, 0.35));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-discord-glow:hover::before {
    opacity: 1;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    z-index: 10;
    animation: scrollHintBob 2.2s ease-in-out infinite;
    transition: color 0.3s ease, opacity 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.hero-scroll-hint i {
    font-size: 1rem;
    color: var(--primary);
    opacity: 0.85;
}

.hero-scroll-hint:hover {
    color: var(--primary);
}

@keyframes scrollHintBob {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.75; }
    50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

.section-pad {
    padding-top: 110px;
    padding-bottom: 110px;
}

.section-pad-alt {
    padding-top: 90px;
    padding-bottom: 110px;
}

.section-header-deco {
    margin-bottom: 56px;
}

.section-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 12px;
    opacity: 0.95;
    animation: eyebrowGlow 4s ease-in-out infinite;
}

@keyframes eyebrowGlow {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 1; }
}

.section-header-deco h2 {
    position: relative;
    display: inline-block;
    font-size: clamp(2rem, 4vw, 2.75rem);
}

.section-header-deco h2::after {
    content: '';
    display: block;
    width: 64px;
    height: 4px;
    margin: 16px auto 0;
    border-radius: 4px;
    background: var(--gradient);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.35);
}

.section-sub {
    margin-top: 14px;
    font-size: 1.05rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65;
}

.news-section-deco {
    position: relative;
}

.news-section-deco::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: min(90%, 720px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.35), transparent);
}

.dash-online-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 200px;
}

.dash-glow-orb {
    position: absolute;
    top: -45%;
    right: -18%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.14) 0%, transparent 68%);
    border-radius: 50%;
    pointer-events: none;
    animation: orbPulseSoft 8s ease-in-out infinite;
}

@keyframes orbPulseSoft {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.06); opacity: 1; }
}

.dash-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.dash-card-head-tight {
    margin-bottom: 12px;
}

.dash-card-title {
    color: var(--text-muted);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.dash-hours-label {
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    opacity: 0.85;
}

.dash-online-num {
    font-size: clamp(3rem, 8vw, 4.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1;
    position: relative;
    z-index: 1;
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.35);
}

.dash-chart-canvas {
    height: 180px;
}

.peak-badge-compact {
    font-size: 0.72rem !important;
    padding: 5px 12px !important;
}

.stat-pill-card {
    text-align: center;
    padding: 28px 22px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.stat-pill-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    color: var(--primary);
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.22);
    margin-bottom: 4px;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease;
    animation: iconRing 4s ease-in-out infinite;
}

.stat-pill-card:hover .stat-pill-icon {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.18);
}

@keyframes iconRing {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.25); }
    50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

.stat-pill-label {
    color: var(--text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.stat-pill-value {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
}

.footer-rich {
    position: relative;
    margin-top: 0;
    padding: 56px 24px 48px;
    overflow: hidden;
}

.footer-glow-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
    opacity: 0.65;
    animation: footerLineShimmer 6s ease-in-out infinite;
}

@keyframes footerLineShimmer {
    0%, 100% { opacity: 0.45; filter: blur(0); }
    50% { opacity: 0.95; filter: blur(0.5px); }
}

.footer-inner {
    position: relative;
    z-index: 1;
}

.footer-logo {
    margin-bottom: 12px;
}

.footer-copy {
    font-size: 0.88rem;
}

.preloader-logo span {
    animation: preloaderLogoHue 3s ease-in-out infinite;
}

@keyframes preloaderLogoHue {
    0%, 100% { text-shadow: 0 0 20px rgba(16, 185, 129, 0.45); }
    50% { text-shadow: 0 0 32px rgba(52, 211, 153, 0.65); }
}

@media (max-width: 900px) {
    .hero-scroll-hint {
        bottom: 18px;
        font-size: 0.65rem;
    }

    .section-header-deco h2::after {
        margin-top: 12px;
    }

    .dash-online-num {
        font-size: clamp(2.5rem, 12vw, 3.5rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-home::before,
    .hero-mesh,
    .hero-particles,
    .hero-badge-dot,
    .hero-title-accent,
    .section-eyebrow,
    .dash-glow-orb,
    .stat-pill-icon,
    .footer-glow-line,
    .nav-logo-glow .logo span,
    .preloader-logo span {
        animation: none !important;
    }

    .hero-scroll-hint {
        animation: none !important;
        opacity: 0.85;
        transform: translateX(-50%);
    }

    .hero-copy {
        transform: none !important;
        transition: none !important;
    }
}


.page-home-v8 {
    --home-panel: rgba(8, 14, 11, 0.72);
    overflow-x: clip;
}

.page-home-v8 .hero.hero-split {
    overflow-x: clip;
}

.navbar-v8 {
    background: transparent !important;
    border-bottom: none !important;
    backdrop-filter: none !important;
}

.navbar-v8.nav-scrolled {
    background: rgba(5, 7, 6, 0.92) !important;
    backdrop-filter: blur(14px) !important;
    border-bottom: 1px solid var(--border) !important;
}

.nav-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 22px;
    border-radius: 999px;
    border: 1px solid rgba(16, 185, 129, 0.12);
    background: rgba(5, 8, 7, 0.65);
    backdrop-filter: blur(12px);
    margin-top: 12px;
}

.hero-split {
    min-height: min(100vh, 920px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 0 100px;
    text-align: left;
}

.hero-split-grid {
    display: grid;
    grid-template-columns: 1fr minmax(260px, 380px);
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-copy {
    padding-right: 12px;
    min-width: 0;
}

.hero-kicker {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.hero-split .hero-copy h1 {
    font-size: clamp(2.35rem, 5.5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 22px;
    color: var(--text-main);
}

.hero-split .hero-title-accent {
    display: block;
    font-size: clamp(2.8rem, 7vw, 4.25rem);
    line-height: 1.05;
    margin-bottom: 6px;
}

.hero-title-rest {
    display: block;
    font-weight: 700;
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    color: rgba(248, 250, 252, 0.92);
    letter-spacing: -0.02em;
}

.hero-split .hero-lead {
    margin-left: 0;
    margin-right: 0;
    max-width: 520px;
}

.hero-split .hero-buttons {
    justify-content: flex-start;
    flex-wrap: wrap;
}

.hero-diagonal-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(165deg, transparent 35%, rgba(5, 7, 6, 0.5) 75%);
    pointer-events: none;
    z-index: 1;
}

.hero-aside {
    position: relative;
    align-self: stretch;
    min-height: 320px;
}

.hero-aside-stack {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hero-panel {
    background: var(--home-panel);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 18px;
    padding: 18px 20px;
    backdrop-filter: blur(14px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.hero-panel-ip {
    position: relative;
    z-index: 2;
}

.hero-panel-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
}

.hero-ip-line {
    display: block;
    font-family: ui-monospace, 'Cascadia Code', monospace;
    font-size: 1.05rem;
    color: #ecfdf5;
    letter-spacing: 0.04em;
    word-break: break-all;
}

.hero-panel-hint {
    display: block;
    margin-top: 10px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.hero-panel-live {
    position: relative;
    z-index: 2;
}

.hero-live-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.hero-mini-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.hero-mini-copy {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin: 0;
}

.live-indicator-compact {
    padding: 4px 10px !important;
    font-size: 0.72rem !important;
}

.hero-orbit {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 220px;
    height: 220px;
    z-index: 0;
    pointer-events: none;
}

.hero-orbit-ring {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 50%;
    animation: orbitSpin 22s linear infinite;
}

.hero-orbit-ring-delay {
    inset: 18px;
    border-color: rgba(52, 211, 153, 0.15);
    animation-direction: reverse;
    animation-duration: 18s;
}

@keyframes orbitSpin {
    to { transform: rotate(360deg); }
}

.hero-angle-transition {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--bg-dark);
    clip-path: polygon(0 45%, 100% 0, 100% 100%, 0 100%);
    z-index: 2;
    pointer-events: none;
}

.section-stats-v8 {
    position: relative;
    padding: 40px 20px 100px;
    margin-top: -40px;
    background:
        linear-gradient(180deg, rgba(5, 7, 6, 0) 0%, rgba(5, 7, 6, 1) 24%),
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(16, 185, 129, 0.08) 0%, transparent 55%);
}

.section-header-v8 {
    text-align: left;
    margin-bottom: 36px;
}

.section-header-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 16px 28px;
}

.section-header-v8 h2 {
    font-size: clamp(1.85rem, 3.5vw, 2.45rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.section-header-v8 h2 span,
.section-header-v8 .section-header-row h2 {
    color: var(--primary);
}

.section-sub-left {
    margin-left: 0;
    margin-right: auto;
    text-align: left;
    max-width: 480px;
}

.stats-layout-v8 {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.stats-online-ribbon {
    position: relative;
    overflow: hidden;
    padding: 0;
    border-radius: 20px;
}

.stats-ribbon-bg {
    position: absolute;
    inset: 0;
    opacity: 0.45;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 12px,
        rgba(16, 185, 129, 0.06) 12px,
        rgba(16, 185, 129, 0.06) 14px
    );
    animation: ribbonShift 14s linear infinite;
}

@keyframes ribbonShift {
    to { transform: translate(-28px, -28px); }
}

.stats-ribbon-inner {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 32px;
    z-index: 1;
}

.stats-ribbon-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.stats-ribbon-num {
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 800;
    line-height: 1;
    color: #fff;
    text-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.stats-ribbon-meta {
    align-self: center;
}

.peak-badge-ribbon {
    font-size: 0.8rem !important;
    padding: 8px 14px !important;
}

.stats-split-v8 {
    display: grid;
    grid-template-columns: 1fr minmax(240px, 300px);
    gap: 18px;
    align-items: stretch;
}

.stats-chart-panel {
    padding: 22px 24px 18px;
    border-radius: 20px;
}

.stats-chart-head h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.stats-chart-head i {
    color: var(--primary);
    margin-right: 8px;
}

.stats-chart-wrap {
    height: 220px;
    max-width: 100%;
    overflow: hidden;
}

.page-home-v8 .stats-chart-wrap canvas {
    max-width: 100% !important;
}

.stats-ladder {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ladder-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 16px;
    flex: 1;
}

.ladder-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.15rem;
    flex-shrink: 0;
}

.ladder-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ladder-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.ladder-val {
    font-size: 1.65rem;
    font-weight: 800;
    color: #fff;
}

.ladder-delay-1 { animation: dashEnter 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.12s forwards; opacity: 0; }
.ladder-delay-2 { animation: dashEnter 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards; opacity: 0; }
.ladder-delay-3 { animation: dashEnter 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.28s forwards; opacity: 0; }

.section-news-v8 {
    padding: 90px 20px 100px;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #060a08 50%, var(--bg-dark) 100%);
}

.news-masonry {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 18px;
}

.news-item.news-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(100px, 140px) 1fr;
    gap: 24px;
    padding: 26px 28px;
    align-items: start;
    border-radius: 22px;
    border: 1px solid rgba(16, 185, 129, 0.28);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.news-thumb {
    aspect-ratio: 1;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.25), rgba(5, 10, 8, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: rgba(16, 185, 129, 0.85);
}

.news-item-body .news-date {
    margin-bottom: 10px;
}

.news-item.news-featured h3 {
    font-size: 1.45rem;
    margin-bottom: 12px;
}

.news-item.news-compact {
    grid-column: span 6;
    padding: 22px;
    border-radius: 18px;
}

.news-item.news-compact h3 {
    font-size: 1.1rem;
}

.news-author {
    margin-top: 14px;
    font-size: 0.78rem;
    color: var(--primary);
    font-weight: 600;
}

.news-item p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.news-item .news-date {
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.1);
    padding: 5px 11px;
    border-radius: 999px;
    display: inline-block;
}

.news-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    padding: 40px 20px;
}

.section-team-v8 {
    padding: 72px 20px 64px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 85% 55% at 50% 30%, rgba(16, 185, 129, 0.09) 0%, transparent 58%),
        radial-gradient(ellipse 70% 60% at 50% 100%, rgba(16, 185, 129, 0.05) 0%, transparent 55%),
        linear-gradient(180deg, var(--bg-dark) 0%, #050807 100%);
    border-bottom: 1px solid rgba(16, 185, 129, 0.08);
}

.staff-showcase {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    padding-top: 8px;
}

.staff-showcase-deco {
    position: absolute;
    inset: -20% -10% auto;
    height: 70%;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            -12deg,
            transparent 0,
            transparent 14px,
            rgba(16, 185, 129, 0.04) 14px,
            rgba(16, 185, 129, 0.04) 15px
        );
    mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 20%, transparent 70%);
    opacity: 0.7;
}

.staff-showcase-panel {
    position: relative;
    z-index: 1;
    border-radius: 24px;
    border: 1px solid rgba(16, 185, 129, 0.24);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    background: linear-gradient(165deg, rgba(12, 18, 16, 0.85) 0%, rgba(5, 8, 7, 0.95) 100%);
    padding: 36px 32px 40px;
}

.staff-showcase-note {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 36em;
    margin: 24px auto 0;
    font-size: 0.91rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.staff-showcase-note strong {
    color: rgba(16, 185, 129, 0.9);
    font-weight: 600;
}

.staff-showcase-actions {
    display: flex;
    justify-content: center;
    margin-top: 22px;
    position: relative;
    z-index: 1;
}

.staff-showcase-discord {
    min-height: 46px;
    padding-inline: 22px;
}

.staff-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    justify-content: center;
    align-items: stretch;
    gap: 20px 22px;
    max-width: 720px;
    margin: 0 auto;
}

.staff-strip-card {
    max-width: none;
    width: 100%;
    padding: 28px 22px;
    text-align: center;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.staff-strip-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.staff-strip-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    border: 2px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.staff-strip-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.staff-strip-role {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 6px 14px;
    border-radius: 999px;
}

.staff-strip-bio {
    margin: 6px 0 0;
    font-size: 0.84rem;
    line-height: 1.5;
    color: var(--text-muted);
    max-width: 26rem;
    font-weight: 400;
}

.staff-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    padding: 20px 16px 8px;
    font-size: 0.95rem;
}

.footer-v8 {
    padding: 56px 24px 48px;
    border-top: 1px solid rgba(16, 185, 129, 0.12);
    background: linear-gradient(180deg, rgba(5, 7, 6, 0.5), var(--bg-dark));
}

.footer-v8-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.footer-brand-block {
    text-align: left;
}

.footer-logo-lg {
    font-size: 2rem;
    margin-bottom: 6px;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-v8 .footer-copy {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 1200px) {
    .hero-orbit {
        display: none;
    }
}

@media (max-width: 960px) {
    .nav-shell {
        border-radius: 16px;
        padding: 12px 16px;
        margin-top: 8px;
        max-width: calc(100vw - 24px);
        box-sizing: border-box;
    }

    .page-home-v8 .dashboard-wrapper {
        padding-left: max(16px, env(safe-area-inset-left, 0px));
        padding-right: max(16px, env(safe-area-inset-right, 0px));
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
    }

    .hero-split {
        padding: 88px 0 80px;
        min-height: unset;
    }

    .hero-split-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    
    .hero-aside {
        min-height: auto;
        margin-top: 4px;
        width: 100%;
    }

    .hero-copy {
        padding-right: 0;
    }

    .hero-aside-stack {
        gap: 12px;
        max-width: 520px;
    }

    .hero-panel {
        padding: 16px 18px;
    }

    .hero-ip-line {
        font-size: clamp(0.95rem, 4vw, 1.05rem);
    }

    .hero-orbit {
        display: none;
    }

    .hero-angle-transition {
        height: 48px;
        clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 100%);
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }

    .stats-split-v8 {
        grid-template-columns: 1fr;
        min-width: 0;
    }

    .stats-ribbon-inner {
        padding: 22px 18px;
        gap: 16px;
    }

    .stats-chart-panel {
        min-width: 0;
        overflow: hidden;
    }

    .section-stats-v8 {
        padding-left: max(12px, env(safe-area-inset-left, 0px));
        padding-right: max(12px, env(safe-area-inset-right, 0px));
        box-sizing: border-box;
    }

    .section-news-v8,
    .section-team-v8 {
        padding-left: max(12px, env(safe-area-inset-left, 0px));
        padding-right: max(12px, env(safe-area-inset-right, 0px));
        box-sizing: border-box;
    }

    .staff-strip {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .staff-strip-card {
        max-width: none;
        width: 100%;
        box-sizing: border-box;
    }

    .staff-showcase-panel {
        padding: 22px 18px 26px;
    }

    .staff-showcase-note {
        margin-top: 18px;
        font-size: 0.88rem;
        padding: 0 4px;
    }

    .staff-showcase-actions {
        margin-top: 18px;
        padding: 0 4px;
    }

    .staff-showcase-discord {
        width: 100%;
        justify-content: center;
    }

    .news-item.news-featured {
        grid-template-columns: 1fr;
    }

    .news-thumb {
        max-width: 120px;
        aspect-ratio: 1;
    }

    .news-item.news-compact {
        grid-column: span 12;
    }

    .footer-v8-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .news-masonry {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .news-item.news-compact {
        grid-column: 1 / -1;
    }

    .news-item.news-featured {
        padding: 20px 18px;
        gap: 16px;
    }

    .hero-split .hero-copy h1 {
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .stats-ribbon-num {
        font-size: clamp(2.25rem, 14vw, 3.25rem);
    }
}


.page-home-v8 .hero-scroll-hint {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    bottom: 42px;
    padding: 12px 24px;
    border-radius: 999px;
    background: rgba(6, 12, 10, 0.94);
    border: 1px solid rgba(16, 185, 129, 0.55);
    color: #ecfdf5;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    box-shadow:
        0 14px 44px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(16, 185, 129, 0.12),
        0 0 28px rgba(16, 185, 129, 0.15);
}

.page-home-v8 .hero-scroll-hint i {
    font-size: 1rem;
    color: var(--secondary);
    opacity: 1;
}

.page-home-v8 .hero-scroll-hint:hover {
    color: #fff;
    border-color: rgba(52, 211, 153, 0.85);
    background: rgba(16, 185, 129, 0.22);
}


.page-rules {
    background-color: var(--bg-dark);
}

.rules-hero-v8 {
    position: relative;
    padding: 118px 20px 108px;
    overflow: hidden;
    min-height: 42vh;
}

.rules-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.rules-hero-bg .hero-mesh {
    opacity: 0.3;
}

.rules-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(185deg, transparent 0%, rgba(5, 7, 6, 0.55) 55%, var(--bg-dark) 100%);
}

.rules-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin: 0 auto;
    text-align: left;
}

.rules-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 18px;
}

.rules-hero-v8 h1 {
    font-size: clamp(2.45rem, 6vw, 3.65rem);
    font-weight: 800;
    line-height: 1.08;
    color: var(--text-main);
    margin-bottom: 16px;
}

.rules-hero-accent {
    background: linear-gradient(100deg, #6ee7b7 0%, var(--primary) 45%, var(--secondary) 100%);
    background-size: 130% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

.rules-hero-lead {
    font-size: 1.06rem;
    color: var(--text-muted);
    line-height: 1.72;
    margin-bottom: 22px;
}

.rules-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rules-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.88);
    border: 1px solid rgba(16, 185, 129, 0.22);
    background: rgba(16, 185, 129, 0.07);
}

.rules-chip i {
    color: var(--primary);
}

.rules-hero-angle {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--bg-dark);
    clip-path: polygon(0 50%, 100% 0, 100% 100%, 0 100%);
    z-index: 1;
    pointer-events: none;
}

.rules-main-v8 {
    padding: 4px 20px 96px;
    position: relative;
    z-index: 2;
    margin-top: -28px;
}

.accordion-v8 {
    max-width: 920px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.accordion-card-v8 {
    border-radius: 18px !important;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    border: 1px solid rgba(16, 185, 129, 0.14) !important;
}

.accordion-card-v8:hover {
    border-color: rgba(16, 185, 129, 0.32) !important;
    box-shadow: 0 14px 42px rgba(0, 0, 0, 0.35);
}

.accordion-v8 .accordion-header {
    width: 100%;
    padding: 22px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.02rem;
    font-weight: 700;
    color: #fff;
    text-align: left;
    transition: background 0.28s ease;
}

.accordion-title-text {
    flex: 1;
    line-height: 1.38;
}

.accordion-chevron-wrap {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.accordion-chevron-wrap i {
    color: var(--primary);
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s ease;
}

.accordion-card-v8.active .accordion-chevron-wrap {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(52, 211, 153, 0.35);
}

.accordion-card-v8.active .accordion-chevron-wrap i {
    transform: rotate(180deg);
    color: var(--secondary);
}

.accordion-card-v8.active .accordion-header {
    background: rgba(16, 185, 129, 0.07);
}

.accordion-v8 .accordion-content {
    padding: 0 24px !important;
}

.accordion-card-v8.active .accordion-content {
    padding: 0 24px 26px !important;
}

.accordion-v8 .accordion-content ul {
    padding-left: 20px;
}

.accordion-v8 .accordion-content li {
    margin-bottom: 14px;
    line-height: 1.58;
}

.rules-warning-v8 {
    margin-top: 28px;
    border-radius: 22px !important;
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.42);
}

.rules-warning-inner {
    padding: 34px 26px 36px;
    text-align: center;
    background: linear-gradient(168deg, rgba(245, 158, 11, 0.1) 0%, rgba(8, 12, 10, 0.98) 50%);
}

.rules-warning-icon-wrap {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.rules-warning-v8 .rules-warning-icon {
    font-size: 1.8rem;
    margin: 0;
    color: #fca5a5;
}

.rules-warning-v8 .rules-warning-title {
    font-size: 1.35rem;
    margin-bottom: 14px;
    color: #fff;
}

.rules-warning-v8 .rules-warning-text {
    font-size: 0.96rem;
    line-height: 1.68;
    max-width: 820px;
    margin: 0 auto;
}

@media (max-width: 640px) {
    .rules-hero-v8 {
        padding-top: 100px;
        min-height: auto;
    }

    .accordion-v8 .accordion-header {
        padding: 18px 16px;
        font-size: 0.92rem;
    }

    .accordion-v8 .accordion-content {
        padding: 0 16px !important;
    }

    .accordion-card-v8.active .accordion-content {
        padding: 0 16px 20px !important;
    }
}


.page-ucp {
    position: relative;
    min-height: 100vh;
    background: var(--bg-dark);
    scroll-padding-top: calc(136px + env(safe-area-inset-top, 0px));
}

.ucp-page-gradient {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 90% 60% at 18% 8%, rgba(16, 185, 129, 0.14), transparent 52%),
        radial-gradient(ellipse 70% 50% at 88% 22%, rgba(52, 211, 153, 0.08), transparent 48%),
        radial-gradient(circle at 50% 100%, rgba(16, 185, 129, 0.06), transparent 55%);
}

.ucp-page-gradient::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(16, 185, 129, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 18%, transparent 72%);
}

.ucp-site-nav {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
}


.page-ucp .ucp-shell-v8 {
    position: relative;
    z-index: 1;
    padding-top: calc(132px + env(safe-area-inset-top, 0px));
    padding-bottom: 32px;
    gap: 28px;
    align-items: flex-start;
}

.ucp-sidebar-v8 {
    border-radius: 22px !important;
    border: 1px solid rgba(16, 185, 129, 0.18) !important;
    box-shadow:
        0 24px 56px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset !important;
}

.ucp-brand.logo {
    font-size: 1.65rem;
}

.ucp-main-v8 {
    padding-top: 8px;
}

.ucp-bento-v8 .bento-card {
    border-radius: 18px !important;
    border: 1px solid rgba(16, 185, 129, 0.12) !important;
}

.ucp-welcome-card {
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    padding: 36px 32px !important;
    border-radius: 22px !important;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.09) 0%, rgba(10, 15, 12, 0.72) 42%, rgba(10, 15, 12, 0.85) 100%) !important;
    border: 1px solid rgba(16, 185, 129, 0.22) !important;
}

.ucp-panel-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.95);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ucp-panel-eyebrow i {
    color: var(--primary);
    font-size: 0.85rem;
}

.ucp-welcome-title {
    font-size: clamp(1.55rem, 3.5vw, 2.15rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.ucp-name-accent {
    color: var(--primary);
    text-shadow: 0 0 24px rgba(16, 185, 129, 0.35);
}

.ucp-welcome-sub {
    margin-top: 8px;
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 520px;
}

.ucp-welcome-badge-wrap {
    flex-shrink: 0;
}

.ucp-rank-pill.badge-admin,
.ucp-rank-pill.badge-player {
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.82rem;
}

.page-header-ucp-v8 {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(16, 185, 129, 0.14);
}

.page-header-ucp-v8 h2 {
    font-size: clamp(1.65rem, 3vw, 2.05rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.ucp-tab-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 8px;
}

.ucp-tab-desc {
    color: var(--text-muted);
    font-size: 0.98rem;
    margin-top: 4px;
}

.ucp-flash-success {
    background: rgba(16, 185, 129, 0.12);
    color: var(--success);
    padding: 16px 18px;
    border-radius: 14px;
    margin-bottom: 22px;
    font-weight: 600;
    border: 1px solid rgba(16, 185, 129, 0.28);
    display: flex;
    align-items: center;
    gap: 10px;
}

.ucp-flash-error {
    background: rgba(239, 68, 68, 0.1);
    color: #fecaca;
    padding: 16px 18px;
    border-radius: 14px;
    margin-bottom: 22px;
    font-weight: 600;
    border: 1px solid rgba(239, 68, 68, 0.35);
    display: flex;
    align-items: center;
    gap: 10px;
}

.ucp-admin-grid {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
}

.ucp-admin-card .input-field {
    min-height: 44px;
}

.ucp-admin-card textarea.input-field {
    min-height: auto;
    resize: vertical;
}

.ucp-card-heading {
    color: var(--primary);
    margin-bottom: 18px;
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ucp-card-heading-alt {
    color: var(--secondary);
}

.ucp-news-edit-form {
    background: rgba(0, 0, 0, 0.28);
    padding: 22px;
    border-radius: 16px;
    border: 1px solid rgba(16, 185, 129, 0.14);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ucp-news-edit-form:hover {
    border-color: rgba(16, 185, 129, 0.26);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.ucp-news-edit-form + .ucp-news-edit-form {
    margin-top: 4px;
}

.ucp-nav-current {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #000;
    background: var(--gradient);
    box-shadow: 0 6px 22px rgba(16, 185, 129, 0.35);
}

.ucp-nav-current i {
    font-size: 0.95rem;
}

.ucp-nav-logout.btn-outline {
    border-color: rgba(239, 68, 68, 0.45);
    color: #fca5a5;
}

.ucp-nav-logout.btn-outline:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.65);
    color: #fecaca;
}

.ucp-footer-strip {
    position: relative;
    z-index: 1;
    padding-top: 40px !important;
    padding-bottom: 36px !important;
}

.side-nav-v8 a:not(.nav-tab) {
    border-radius: 14px;
}

.side-nav-v8 a.text-danger:hover {
    background: rgba(239, 68, 68, 0.08);
    color: #fecaca !important;
}

.page-ucp-login {
    position: relative;
    min-height: 100vh;
    background: var(--bg-dark);
}

.ucp-page-gradient-login {
    opacity: 1;
}

.login-wrapper-v8 {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 96px 20px 48px;
    align-items: center;
}

.login-box-v8 {
    max-width: 420px;
    border-radius: 22px !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
    padding: 44px 40px !important;
    background: linear-gradient(165deg, rgba(16, 185, 129, 0.08) 0%, rgba(10, 15, 12, 0.82) 55%) !important;
    box-shadow:
        0 28px 64px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset !important;
}

.ucp-login-brand.logo {
    font-size: 2rem;
}


.ucp-dash-layout {
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.ucp-dash-col--assets.ucp-dash-asset-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ucp-dash-profile {
    padding: 26px 22px 24px !important;
    border-radius: 22px !important;
    border: 1px solid rgba(16, 185, 129, 0.16) !important;
    background: linear-gradient(165deg, rgba(16, 185, 129, 0.07) 0%, rgba(10, 15, 12, 0.78) 55%) !important;
}

.ucp-dash-rank-row {
    margin-bottom: 14px;
}

.ucp-dash-rank-pill {
    font-size: 0.72rem !important;
    padding: 8px 14px !important;
    border-radius: 999px !important;
}

.ucp-dash-char-name {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 6px;
}

.ucp-dash-char-sub {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.ucp-dash-skin {
    border-radius: 18px;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.12), rgba(0, 0, 0, 0.35));
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 22px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    min-height: 200px;
}

.ucp-dash-skin-img {
    max-width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: contain;
    display: block;
}

.ucp-dash-statlist {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
}

.ucp-dash-statrow {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ucp-dash-statrow:last-of-type {
    border-bottom: none;
}

.ucp-dash-statrow dt {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.ucp-dash-statrow dd {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: #e2e8f0;
    text-align: right;
}

.ucp-money {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.ucp-money--cash {
    color: var(--primary);
    text-shadow: 0 0 18px rgba(16, 185, 129, 0.25);
}

.ucp-money--bank {
    color: var(--primary);
}

.ucp-money--neg {
    color: #f87171 !important;
    text-shadow: none;
}

.ucp-money--sc {
    color: #fbbf24;
}

.ucp-dash-faction {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(16, 185, 129, 0.14);
}

.ucp-dash-faction-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ucp-dash-faction-title i {
    color: var(--primary);
}

.ucp-chip-faction {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: var(--secondary);
}

.ucp-chip-faction--muted {
    background: rgba(148, 163, 184, 0.08);
    border-color: rgba(148, 163, 184, 0.2);
    color: var(--text-muted);
    font-weight: 600;
}

.ucp-dash-serial-block {
    margin-top: 20px;
}

.ucp-dash-serial-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    gap: 10px;
}

.ucp-dash-serial-label i {
    margin-right: 6px;
    color: var(--primary);
}

.ucp-dash-serial-hint {
    font-size: 0.65rem;
    color: var(--primary);
    background: rgba(16, 185, 129, 0.12);
    padding: 3px 8px;
    border-radius: 999px;
}

.ucp-dash-serial-box {
    width: 100%;
    cursor: pointer;
    font-family: ui-monospace, monospace;
    font-size: 0.72rem;
    color: var(--primary);
    background: rgba(0, 0, 0, 0.38);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    text-align: center;
    letter-spacing: 0.04em;
    word-break: break-all;
    transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.ucp-dash-serial-box:hover {
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.08);
}

.ucp-asset-panel {
    padding: 0 !important;
    overflow: hidden;
    border-radius: 18px !important;
    border: 1px solid rgba(16, 185, 129, 0.14) !important;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.35);
}

.ucp-asset-panel__head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(16, 185, 129, 0.12);
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.08), transparent);
}

.ucp-asset-panel__icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.22);
    color: var(--primary);
    font-size: 1.1rem;
}

.ucp-asset-panel__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}

.ucp-asset-panel__count {
    font-weight: 700;
    color: rgba(148, 163, 184, 0.95);
}

.ucp-asset-panel__body {
    padding: 0;
}

.ucp-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ucp-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.ucp-data-table thead th {
    text-align: left;
    padding: 12px 18px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.85);
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ucp-data-table tbody td {
    padding: 14px 18px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
}

.ucp-data-table tbody tr:last-child td {
    border-bottom: none;
}

.ucp-td-id {
    font-variant-numeric: tabular-nums;
    color: rgba(148, 163, 184, 0.95);
    font-weight: 600;
}

.ucp-plate-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: var(--secondary);
}

.ucp-td-model {
    color: #f1f5f9;
}

.ucp-model-id {
    color: rgba(148, 163, 184, 0.9);
    font-weight: 600;
}

.ucp-table-row--warn td {
    background: rgba(239, 68, 68, 0.09);
    color: #fecaca !important;
}

.ucp-table-row--warn .ucp-plate-chip {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.35);
    color: #fecaca;
}

.ucp-data-table--interiors .ucp-int-name {
    display: block;
    font-weight: 700;
    color: #fff;
}

.ucp-data-table--interiors .ucp-int-type {
    display: block;
    margin-top: 4px;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.ucp-td-zone {
    color: rgba(226, 232, 240, 0.92);
}

.ucp-th-status,
.ucp-td-status {
    text-align: right;
}

.ucp-status-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.ucp-status-chip--ok {
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: var(--secondary);
}

.ucp-status-chip--locked {
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.28);
    color: rgba(226, 232, 240, 0.85);
}

.ucp-td-muted {
    color: var(--text-muted);
}

.ucp-empty-state {
    margin: 0;
    padding: 36px 22px;
    text-align: center;
    color: rgba(148, 163, 184, 0.85);
    font-size: 0.92rem;
}

.ucp-empty-state i {
    margin-right: 8px;
    opacity: 0.75;
}

.ucp-dash-health {
    margin-top: 22px;
    padding: 26px 24px !important;
}

.ucp-dash-health-title {
    margin-bottom: 18px;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ucp-dash-health-title i {
    color: var(--primary);
}

.ucp-dash-footnote {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 28px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.ucp-dash-footnote i {
    margin-right: 8px;
    color: rgba(16, 185, 129, 0.65);
}

.ucp-dash-footnote strong {
    color: rgba(226, 232, 240, 0.95);
    font-weight: 600;
}


.ucp-history-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ucp-history-panel .ucp-asset-panel__icon {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.25);
    color: #f87171;
}

.ucp-history-panel + .ucp-history-panel .ucp-asset-panel__icon {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.28);
    color: #fbbf24;
}

.ucp-history-table {
    font-size: 0.86rem;
}

.ucp-history-reason {
    max-width: 280px;
    line-height: 1.45;
    word-break: break-word;
}

.ucp-history-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.ucp-history-chip--danger {
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fecaca;
}

.ucp-history-chip--warn {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fcd34d;
}

.ucp-history-chip--muted {
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: rgba(226, 232, 240, 0.82);
}

.ucp-history-clean {
    text-align: center;
    padding: 56px 28px !important;
    border-radius: 22px !important;
}

.ucp-history-clean i {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 18px;
    opacity: 0.85;
}

.ucp-history-clean h3 {
    color: #fff;
    font-size: 1.35rem;
    margin-bottom: 10px;
}

.ucp-history-clean p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 420px;
    margin: 0 auto;
    line-height: 1.55;
}

@media (max-width: 900px) {
    .page-ucp {
        scroll-padding-top: calc(128px + env(safe-area-inset-top, 0px));
    }

    .page-ucp .ucp-shell-v8 {
        padding-top: calc(126px + env(safe-area-inset-top, 0px));
        padding-left: max(10px, env(safe-area-inset-left, 0px));
        padding-right: max(10px, env(safe-area-inset-right, 0px));
        padding-bottom: max(20px, env(safe-area-inset-bottom, 0px));
        gap: 16px;
    }

    .ucp-wrapper.ucp-shell-v8 {
        min-width: 0;
    }

    .ucp-main-v8 {
        padding-top: 0;
        min-width: 0;
        width: 100%;
    }

    .ucp-sidebar-v8 {
        padding: 18px 14px !important;
        gap: 18px;
    }

    .ucp-brand.logo {
        font-size: 1.45rem;
    }

    .side-nav.side-nav-v8 .nav-tab,
    .side-nav.side-nav-v8 a {
        min-height: 44px;
        padding-top: 11px;
        padding-bottom: 11px;
        align-items: center;
    }

    .page-header-ucp-v8 {
        margin-bottom: 18px;
        padding-bottom: 14px;
    }

    .page-header-ucp-v8 h2 {
        font-size: clamp(1.35rem, 5.5vw, 1.85rem);
    }

    .ucp-tab-desc {
        font-size: 0.92rem;
        line-height: 1.55;
    }

    .ucp-welcome-card {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .ucp-nav-current {
        width: 100%;
        justify-content: center;
    }

    .navbar.ucp-site-nav .nav-links .btn.ucp-nav-logout {
        width: 100%;
        justify-content: center;
    }

    .ucp-dash-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .ucp-dash-profile {
        padding: 22px 16px !important;
    }

    .ucp-dash-statrow {
        flex-wrap: wrap;
        gap: 6px 10px;
        padding: 10px 0;
    }

    .ucp-dash-statrow dd {
        width: 100%;
        text-align: left;
        margin-top: 2px;
    }

    .ucp-asset-panel__head {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 12px;
        padding: 14px 16px;
    }

    .ucp-asset-panel__title {
        font-size: 0.98rem;
        line-height: 1.35;
    }

    .ucp-table-wrap {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        touch-action: pan-x pan-y;
    }

    .ucp-data-table {
        font-size: 0.8rem;
    }

    .ucp-data-table thead th,
    .ucp-data-table tbody td {
        padding: 11px 12px;
    }

    .ucp-data-table thead th {
        font-size: 0.68rem;
        letter-spacing: 0.06em;
    }

    .ucp-history-reason {
        max-width: none;
    }

    .ucp-dash-health .stat-box-grid {
        grid-template-columns: 1fr;
    }

    .ucp-dash-footnote {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .ucp-footer-strip .footer-v8-inner.dashboard-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .ucp-admin-grid .btn-gradient,
    .ucp-admin-grid .btn-outline {
        width: 100%;
        justify-content: center;
    }
}


@media (max-width: 480px) {
    .page-ucp {
        scroll-padding-top: calc(118px + env(safe-area-inset-top, 0px));
    }

    .page-ucp .ucp-shell-v8 {
        padding-top: calc(118px + env(safe-area-inset-top, 0px));
        padding-left: max(8px, env(safe-area-inset-left, 0px));
        padding-right: max(8px, env(safe-area-inset-right, 0px));
    }

    .navbar .nav-container.nav-shell {
        padding-left: max(10px, env(safe-area-inset-left, 0px));
        padding-right: max(10px, env(safe-area-inset-right, 0px));
    }

    .menu-toggle {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .ucp-dash-char-name {
        font-size: 1.12rem;
    }

    .ucp-dash-skin {
        min-height: 168px;
    }

    .ucp-history-stack {
        gap: 14px;
    }

    .ucp-history-clean {
        padding: 40px 18px !important;
    }

    .ucp-history-clean i {
        font-size: 2.75rem;
    }

    .ucp-data-table {
        font-size: 0.74rem;
    }

    .ucp-data-table thead th,
    .ucp-data-table tbody td {
        padding: 9px 8px;
    }

    .ucp-plate-chip {
        font-size: 0.7rem;
        padding: 5px 8px;
    }

    .ucp-history-chip {
        font-size: 0.65rem;
        padding: 5px 8px;
        white-space: normal;
        line-height: 1.3;
        text-align: center;
        justify-content: center;
    }

    .login-wrapper-v8 {
        padding-left: max(14px, env(safe-area-inset-left, 0px));
        padding-right: max(14px, env(safe-area-inset-right, 0px));
        padding-bottom: max(28px, env(safe-area-inset-bottom, 0px));
    }

    .login-box-v8 {
        padding: 28px 20px !important;
    }

    .page-home-v8 .dashboard-wrapper {
        padding-left: max(14px, env(safe-area-inset-left, 0px));
        padding-right: max(14px, env(safe-area-inset-right, 0px));
    }

    .page-home-v8 .hero-split {
        padding-bottom: 72px;
    }

    .page-home-v8 .hero-scroll-hint {
        bottom: 28px;
        left: 50%;
        transform: translateX(-50%);
        max-width: calc(100vw - 28px);
        justify-content: center;
        text-align: center;
        padding: 10px 18px;
        font-size: 0.72rem;
    }

    .footer-v8 {
        padding-left: max(18px, env(safe-area-inset-left, 0px));
        padding-right: max(18px, env(safe-area-inset-right, 0px));
        padding-bottom: max(32px, env(safe-area-inset-bottom, 0px));
    }

    .rules-hero-v8 {
        padding-left: max(16px, env(safe-area-inset-left, 0px));
        padding-right: max(16px, env(safe-area-inset-right, 0px));
        padding-top: max(100px, env(safe-area-inset-top, 0px));
    }

    .rules-main-v8 {
        padding-left: max(14px, env(safe-area-inset-left, 0px));
        padding-right: max(14px, env(safe-area-inset-right, 0px));
        padding-bottom: max(40px, env(safe-area-inset-bottom, 0px));
    }

    .canvas-wrapper.stats-chart-wrap {
        min-height: 200px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .stats-ribbon-bg,
    .hero-orbit-ring {
        animation: none !important;
    }
}

html.sight-preloader-skip #preloader {
    display: none !important;
    pointer-events: none;
}

.stats-api-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    margin-bottom: 20px;
    border-radius: 16px;
    border: 1px solid rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.08);
    color: #fde68a;
    font-size: 0.92rem;
    line-height: 1.5;
}

.stats-api-banner[hidden] {
    display: none !important;
}

.stats-api-banner i {
    margin-top: 2px;
    color: #fbbf24;
    flex-shrink: 0;
}

.stats-chart-footnote {
    margin: 16px 4px 0;
    padding: 0 2px;
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.stats-chart-footnote i {
    margin-right: 6px;
    opacity: 0.85;
}

.stats-chart-footnote strong {
    color: var(--text-main);
    font-weight: 600;
}

.ucp-empty-block {
    text-align: center;
    padding: 36px 22px 32px;
    max-width: 420px;
    margin: 0 auto;
}

.ucp-empty-block__ring {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.22);
    font-size: 1.75rem;
    color: var(--primary);
}

.ucp-empty-block--positive .ucp-empty-block__ring {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(52, 211, 153, 0.35);
    color: var(--secondary);
}

.ucp-empty-block__title {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.ucp-empty-block__text {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 18px;
}

.ucp-empty-block__actions .btn-sm {
    padding: 10px 18px;
    font-size: 0.88rem;
}

.ucp-empty-block--compact {
    padding: 22px 16px 20px;
    max-width: none;
}

.ucp-empty-block--compact .ucp-empty-block__ring {
    width: 56px;
    height: 56px;
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.ucp-history-clean-cta {
    margin-top: 22px;
}

.ucp-asset-panel__body > .ucp-empty-block {
    padding-top: 28px;
    padding-bottom: 28px;
}