/* FILE: style_dark.css - DỰA 100% VÀO LAYOUT CỦA style.css (LIGHT) NHƯNG GIỮ MÀU SẮC DARK */
:root { 
    --gold-primary: #d4af37; 
    --gold-light: #fbeba5; 
    --gold-dark: #997a00; 
    
    --bg-base: #0a0b10; 
    --card-bg: rgba(15, 18, 25, 0.6); 
    --glass-border: rgba(212, 175, 55, 0.25); 
    
    --text-main: #e2e8f0; 
    --text-muted: #94a3b8; 
    --accent-red: #e11d48;
    
    --shadow-md: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 4px 15px 0 rgba(0, 0, 0, 0.2);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    font-family: 'Plus Jakarta Sans', sans-serif; 
    background-color: var(--bg-base); 
    color: var(--text-main); 
    line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column;
    background-size: cover; background-position: center top; background-attachment: fixed;
}

h1, h2, h3, .brand-font { font-family: 'Plus Jakarta Sans', sans-serif; text-transform: uppercase; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }

/* === COMPONENT CHUNG === */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border); 
    border-radius: 16px; 
    box-shadow: var(--shadow-md); 
    overflow: hidden;
}
.container { width: 90%; max-width: 1250px; margin: auto; }
.main-layout { display: grid; grid-template-columns: 7fr 3fr; gap: 30px; padding-bottom: 20px; flex: 1; }
.section-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.section-header h2 { font-size: 20px; color: var(--gold-primary); letter-spacing: 1px; font-weight: 800;}
.section-header .line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--glass-border), transparent); }

/* === HEADER & HERO === */
.top-nav { 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    background: #0a0b10; 
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212,175,55,0.15); 
    padding: 15px 0; 
}
.nav-inner { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.logo { font-size: 24px; font-weight: 800; color: var(--gold-primary); letter-spacing: 1px;}
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; position: relative; color: var(--text-main); }
.nav-links a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 3px; background: var(--gold-primary); transition: 0.3s; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover, .nav-links a.active { color: var(--gold-light); }
.server-status-top { display: flex; align-items: center; gap: 15px; font-size: 12px; font-weight: 600; color: var(--text-main);}
.pulse-dot { display: inline-block; width: 8px; height: 8px; background: #10b981; border-radius: 50%; box-shadow: 0 0 10px #10b981; animation: pulse 2s infinite; margin-right: 5px;}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }

.hero { padding: 40px 0 30px 0; text-align: center; }
.hero h1 { font-size: 42px; color: var(--gold-primary); letter-spacing: 1px; margin-bottom: 5px; font-weight: 800;}
.hero p { font-size: 15px; color: var(--gold-light); font-weight: 600; text-transform: uppercase;}

/* === TRANG CHỦ (TIN TỨC BÊN NGOÀI) === */
.featured-news { position: relative; height: 280px; border-radius: 16px; overflow: hidden; display: flex; align-items: flex-end; transition: 0.4s; border: 1px solid var(--glass-border);}
.featured-news img { position: absolute; top:0; left:0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform 0.7s; }
.featured-news:hover img { transform: scale(1.05); }
.featured-overlay { position: absolute; bottom:0; left:0; width: 100%; height: 70%; background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, transparent 100%); z-index: 2; padding: 25px; display: flex; flex-direction: column; justify-content: flex-end;}
.badge-vip { background: var(--gold-primary); color: #000; font-size: 11px; font-weight: 800; padding: 4px 12px; border-radius: 4px; align-self: flex-start; margin-bottom: 10px; text-transform: uppercase;}
.featured-title { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 22px; color: #fff; margin-bottom: 8px;}
.featured-desc { color: rgba(255,255,255,0.8); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 500;}

.news-list { display: flex; flex-direction: column; }
.news-item { display: flex; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--glass-border); transition: 0.3s; }
.news-item:hover { background: rgba(212, 175, 55, 0.1); padding-left: 25px; border-left: 3px solid var(--gold-primary); }
.news-type { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 6px; margin-right: 15px; width: 70px; text-align: center; text-transform: uppercase;}
.type-hot { background: rgba(212, 175, 55, 0.2); color: var(--gold-light); }
.type-event { background: rgba(225, 29, 72, 0.2); color: #fda4af; }
.type-update { background: rgba(56, 189, 248, 0.2); color: #7dd3fc; }
.news-item-title { flex: 1; font-size: 14px; font-weight: 600; color: var(--text-main); }

/* === BÀI VIẾT CHI TIẾT === */
.article-header { border-bottom: 1px dashed var(--glass-border); padding-bottom: 15px; margin-bottom: 25px; }
.article-title { color: var(--gold-primary); font-size: 28px; margin-bottom: 10px; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800;}
.article-meta { color: var(--text-muted); font-size: 13px; display: flex; align-items: center; gap: 10px; font-weight: 500;}
.badge { padding: 4px 10px; color: #fff; border-radius: 6px; font-weight: 700; font-size: 11px; text-transform: uppercase;}
.badge.hot { background: #e74c3c; } .badge.new { background: #2ecc71; } .badge.event { background: #f39c12; } .badge.update { background: #3498db; } .badge.guide { background: #9b59b6; }
.article-content { color: var(--text-main); font-size: 15px; line-height: 1.8; padding-bottom: 20px; font-weight: 500;}
.article-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 15px 0; border: 1px solid var(--glass-border); }
.article-content table { width: 100%; border-collapse: collapse; margin: 20px 0; background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border); }
.article-content th, .article-content td { border: 1px solid var(--glass-border); padding: 12px; text-align: left; }
.article-content th { background: rgba(0,0,0,0.6); color: var(--gold-primary); font-weight: 700;}
.article-content strong, .article-content b { color: var(--gold-light); font-weight: 800;}
.article-content a { color: var(--gold-primary); text-decoration: none; font-weight: 600;}
.article-content a:hover { text-decoration: underline; }

/* === BẢNG XẾP HẠNG === */
.rank-nav-group { display: flex; gap: 15px; margin-bottom: 25px; justify-content: center; flex-wrap: wrap; }
.rank-nav-btn { padding: 12px 30px; border-radius: 40px; font-weight: 700; font-size: 13px; text-transform: uppercase; color: var(--text-muted); background: var(--card-bg); border: 1px solid var(--glass-border); transition: all 0.3s; display: flex; align-items: center; gap: 8px;}
.rank-nav-btn:hover { background: var(--card-bg); color: var(--gold-light); transform: translateY(-2px); box-shadow: var(--shadow-sm);}
.rank-nav-btn.active { background: var(--gold-primary); color: #000; border-color: var(--gold-primary); box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4);}
.filter-group { display: flex; flex-wrap: wrap; gap: 8px; padding: 15px 25px; border-bottom: 1px solid var(--glass-border); justify-content: center; background: var(--card-bg); }
.btn-filter { padding: 8px 18px; border-radius: 40px; font-size: 12px; font-weight: 600; border: 1px solid var(--glass-border); color: var(--text-muted); transition: 0.3s; background: rgba(255,255,255,0.03);}
.btn-filter:hover { border-color: var(--gold-primary); color: var(--gold-light); }
.btn-filter.active { background: var(--gold-primary); color: #000; border-color: var(--gold-primary); }
.box-header { padding: 20px 25px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 18px; font-weight: 800; color: var(--gold-primary); border-bottom: 1px solid var(--glass-border); display: flex; justify-content: space-between; align-items: center; background: rgba(0,0,0,0.3); }
.rank-badge { display: inline-flex; justify-content: center; align-items: center; width: 28px; height: 28px; border-radius: 8px; font-weight: 800; color: #fff; background: rgba(255,255,255,0.1); font-size: 13px; }
.rank-1 { background: #ef4444; color: #fff; box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4); }
.rank-2 { background: #f97316; color: #fff; box-shadow: 0 4px 10px rgba(249, 115, 22, 0.4); }
.rank-3 { background: #3b82f6; color: #fff; box-shadow: 0 4px 10px rgba(59, 130, 246, 0.4); }
.col-highlight { color: var(--gold-primary); font-weight: 800; font-size: 15px; }
.top-red { color: #f87171 !important; font-weight: 800; font-size: 16px; }
.status-tag { padding: 4px 10px; border-radius: 6px; font-size: 10px; font-weight: 800;}
.st-on { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.st-off { background: rgba(255, 255, 255, 0.05); color: var(--text-muted); }
.class-badge { background: rgba(0,0,0,0.5); padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 600; color: var(--text-muted); border: 1px solid var(--glass-border); }
.table-scroll { max-height: 650px; overflow-y: auto; }
.table-scroll::-webkit-scrollbar { width: 6px; }
.table-scroll::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 4px; }
table.main-table { width: 100%; border-collapse: collapse; }
table.main-table th { position: sticky; top: 0; z-index: 10; background: rgba(10, 11, 16, 0.95); color: var(--gold-light); padding: 16px 10px; text-align: center; font-size: 12px; font-weight: 700; text-transform: uppercase; border-bottom: 1px solid var(--glass-border); }
table.main-table td { padding: 14px 10px; border-bottom: 1px solid rgba(255,255,255,0.05); color: var(--text-main); text-align: center; font-size: 14px; font-weight: 600; }
table.main-table tr:hover td { background: rgba(212,175,55,0.08); }
.pagination { padding: 20px; text-align: center; border-top: 1px solid var(--glass-border); background: var(--card-bg); }
.pg-link { display: inline-flex; justify-content: center; align-items: center; width: 36px; height: 36px; margin: 0 4px; border: 1px solid var(--glass-border); color: var(--text-main); text-decoration: none; border-radius: 8px; font-weight: 700; font-size: 13px; transition: 0.3s; background: rgba(255,255,255,0.05); }
.pg-link.active, .pg-link:hover { background: var(--gold-primary); color: #000; border-color: var(--gold-primary); box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3); }

/* === SIDEBAR & COMPONENTS === */
.widget { padding: 25px; margin-bottom: 30px; }
.widget-title { font-size: 14px; color: var(--gold-primary); text-align: center; margin-bottom: 20px; text-transform: uppercase; font-weight: 800; letter-spacing: 1px;}
.btn { width: 100%; padding: 14px; border-radius: 12px; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; cursor: pointer; transition: all 0.3s; display: flex; justify-content: center; align-items: center; gap: 8px; border: none;}
.btn-gold { background: var(--gold-primary); color: #000; box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3); }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4); color: #000; }
.btn-outline { background: rgba(0,0,0,0.5); color: var(--gold-light); border: 1px solid var(--gold-primary); }
.btn-outline:hover { background: rgba(212,175,55,0.2); transform: translateY(-2px); box-shadow: var(--shadow-sm);}

.user-panel { text-align: center; }
.user-avatar { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--gold-primary); margin: 0 auto 15px auto; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.5); font-size: 24px; color: var(--gold-light); box-shadow: var(--shadow-sm);}
.user-name { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 18px; font-weight: 800; color: var(--gold-primary); margin-bottom: 5px;}
.user-balance { font-size: 22px; font-weight: 800; color: #10b981; margin-bottom: 20px; letter-spacing: -0.5px;}
.server-list li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed rgba(255,255,255,0.05); font-size: 13px; font-weight: 600;}
.server-list li:last-child { border-bottom: none; }

/* === MODALS (POPUP) === */
.modal-overlay { display: none; position: fixed; z-index: 99999; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(5px); justify-content: center; align-items: center; }
.modal-box { width: 100%; max-width: 420px; padding: 35px; position: relative; animation: slideUp 0.3s ease; background: var(--card-bg); border-radius: 20px; box-shadow: var(--shadow-md); border: 1px solid var(--glass-border);}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0;} to { transform: translateY(0); opacity: 1;} }
.modal-close { position: absolute; top: 15px; right: 20px; color: var(--text-muted); font-size: 20px; cursor: pointer; transition: 0.2s; } .modal-close:hover { color: var(--accent-red); transform: rotate(90deg); }
.input-group { position: relative; margin-bottom: 20px; }
.input-group i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--gold-primary); font-size: 15px;}
.modal-input { width: 100%; padding: 15px 15px 15px 48px; background: rgba(0,0,0,0.5); border: 2px solid var(--glass-border); color: var(--text-main); font-size: 14px; font-weight: 600; border-radius: 12px; font-family: inherit; transition: 0.2s; outline: none;}
.modal-input:focus { border-color: var(--gold-primary); background: rgba(0,0,0,0.8); box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1); }
#regModal .modal-box { max-width: 500px; height: 750px; padding: 0; overflow: hidden;}
#regModal iframe { width: 100%; height: 100%; border: none; }
.tabs { display: flex; gap: 10px; margin-bottom: 20px; }
.tab-btn { flex: 1; padding: 12px; text-align: center; cursor: pointer; font-size: 13px; font-weight: 700; border-radius: 10px; background: rgba(255,255,255,0.05); color: var(--text-muted); transition: 0.3s; border: 1px solid transparent;}
.tab-btn.active, .tab-btn:hover { background: var(--gold-primary); color: #000; border-color: var(--gold-primary); box-shadow: var(--shadow-sm);}
.tab-content { display: none; } .tab-content.active { display: block; animation: fadeIn 0.3s; }
.char-card { background: rgba(0,0,0,0.4); border: 1px solid var(--glass-border); border-radius: 12px; padding: 15px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; transition: 0.2s;}
.char-card:hover { border-color: var(--gold-primary); }

footer { text-align: center; padding: 25px 0; border-top: 1px solid rgba(255,255,255,0.05); font-size: 13px; color: var(--text-muted); margin-top: auto; font-weight: 500;}
@media (max-width: 900px) { .main-layout { grid-template-columns: 1fr; } .nav-links { display: none; } }

/* --- BỔ SUNG CSS HÀNH TRANG THEO ẢNH --- */
.user-menu-list { display: flex; flex-direction: column; gap: 10px; margin-top: 15px; }
.user-menu-list .btn { width: 100%; justify-content: flex-start; padding: 12px 16px; font-size: 13px; font-weight: 700; background: rgba(0,0,0,0.5); border: 1px solid var(--gold-primary); color: var(--gold-light); transition: 0.2s; }
.user-menu-list .btn:hover { background: rgba(212,175,55,0.2); }
.user-menu-list .btn-logout { border-color: var(--accent-red); color: var(--accent-red); }
.user-menu-list .btn-logout:hover { background: rgba(225, 29, 72, 0.1); }

@media screen and (max-height: 1080px), screen and (max-width: 1920px) {
    .container { max-width: 1150px; }
    .top-nav { padding: 10px 0; }
    .hero { padding: 30px 0 20px 0; }
    .hero h1 { font-size: 36px; }
    .main-layout { gap: 20px; padding-bottom: 10px; }
    .featured-news { height: 240px; }
    .widget { padding: 20px; margin-bottom: 20px; }
    aside { gap: 15px !important; }
}