@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

: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);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Poppins', 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: 0.4s;
    background: rgba(5, 7, 6, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
}
.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: 0.3s; }
.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;
    background: radial-gradient(circle at top, rgba(16, 185, 129, 0.15) 0%, transparent 50%);
}
.hero-content { max-width: 800px; z-index: 2; padding: 0 20px; }
.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.1; margin-bottom: 25px; }
.hero h1 span { color: var(--primary); text-shadow: 0 0 20px rgba(16, 185, 129, 0.4); }
.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; }
.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: 0.3s; }
.news-card:hover { border-color: var(--border-glow); transform: translateY(-3px); }
.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: 500px; padding: 0 25px 25px; }
.accordion-content ul { padding-left: 20px; }
.accordion-content li { margin-bottom: 10px; }

.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; }

.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(auto-fit, minmax(300px, 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; }
.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; }
.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; animation: fadeIn 0.4s ease forwards; }
.tab-pane.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.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; }
.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; }

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--primary);
    cursor: pointer;
    transition: 0.3s;
}

@media (max-width: 900px) {
    .menu-toggle { display: block; }
    .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; }
    .ucp-sidebar { width: 100%; padding: 20px; }
    .side-nav { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; }
    .side-nav a { flex: 1 1 45%; justify-content: center; }

    .stat-box-grid { grid-template-columns: 1fr; }
    .glass-panel.bento-card.span-2, .glass-panel.bento-card.row-2 { grid-column: span 1; grid-row: span 1; }
}

@media (max-width: 400px) {
    .side-nav a { flex: 1 1 100%; }
    .stat-info div, .bento-card .value { font-size: 1.5rem; }
}