/* ================= CSS CƠ BẢN - CHUẨN MU ONLINE ================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* ================= CSS CƠ BẢN - CHUẨN MU ONLINE ================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-image: url('./bg.png') ; 
    background-size: 100% 100%; /* Đổi từ cover sang 100% 100% để ép ảnh hiển thị toàn bộ viền */
    background-position: center center; 
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: 100vh; 
    display: flex; 
    color: #ffffff; 
    overflow: hidden;
    font-family: 'Oswald', sans-serif; 

    /* CHẶN BÔI ĐEN VĂN BẢN (TEXT SELECTION) */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
}

/* ================= TOP NAVBAR - HIỆU ỨNG MỚI & RESPONSIVE ================= */
.top-navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    min-height: 50px; /* Thay height cố định bằng min-height để tự co giãn */
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid rgba(212, 175, 55, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 15px;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.9);
}

.nav-menu-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap; /* Cho phép các nút tự rớt dòng khi không đủ chỗ */
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1400px;
}

.nav-btn {
    position: relative; /* Để làm chân cho hiệu ứng line */
    padding: 8px 14px;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: #cbd5e1;
    font-family: 'Tahoma', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    overflow: hidden;
}

.nav-btn i {
    margin-right: 7px;
    font-size: 14px;
    color: rgba(212, 175, 55, 0.8);
    transition: 0.3s;
}

/* HIỆU ỨNG HOVER ĐẸP HƠN */
.nav-btn::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    width: 0; height: 2px;
    background: linear-gradient(90deg, transparent, #FFD700, transparent);
    transition: all 0.4s ease;
    transform: translateX(-50%);
    box-shadow: 0 0 10px #FFD700;
}

.nav-btn:hover {
    color: #fff;
    background: rgba(212, 175, 55, 0.15);
    transform: translateY(-2px);
}

.nav-btn:hover::after, .nav-btn.active::after {
    width: 80%; /* Đường kẻ vàng chạy ra từ giữa khi chỉ chuột vào */
}

.nav-btn:hover i, .nav-btn.active i {
    color: #FFD700;
    transform: scale(1.2);
    filter: drop-shadow(0 0 5px #FFD700);
}

/* ================= ĐIỀU CHỈNH KHI ZOOM 500% HOẶC VÀO ĐIỆN THOẠI ================= */
@media (max-width: 1024px) {
    .nav-btn { font-size: 10px; padding: 8px 10px; }
}

@media (max-width: 768px) {
    .top-navbar {
        height: auto; /* Tự động cao lên khi menu rớt dòng */
        padding: 10px;
    }
    .nav-menu-container {
        display: grid; /* Chuyển sang dạng lưới để menu gọn gàng */
        grid-template-columns: repeat(3, 1fr); /* Chia 3 cột trên mobile */
        gap: 5px;
    }
    .nav-btn {
        justify-content: center;
        flex-direction: column; /* Icon nằm trên, chữ nằm dưới cho tiết kiệm diện tích */
        padding: 10px 5px;
        font-size: 9px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(212, 175, 55, 0.1);
    }
    .nav-btn i { margin-right: 0; margin-bottom: 5px; }
    
    .main-content {
        /* Chỉnh lại khoảng cách để không bị menu đè mất nội dung chính trên mobile */
        margin-top: 130px; 
    }
}

/* Xử lý riêng cho trường hợp zoom cực to (tương đương 500% zoom) */
@media (max-width: 480px) {
    .nav-menu-container {
        grid-template-columns: repeat(2, 1fr); /* Chỉ còn 2 cột để nút đủ to cho ngón tay bấm */
    }
    .main-content { margin-top: 200px; }
}

/* ĐIỀU CHỈNH LẠI KHOẢNG CÁCH NỘI DUNG CHÍNH */
.main-content {
    margin-top: 50px; /* Khớp với độ cao menu mới */
    width: 100%;
    height: calc(100vh - 50px);
}

/* Làm đẹp thanh cuộn dọc */
.menu-container::-webkit-scrollbar { width: 3px; }
.menu-container::-webkit-scrollbar-thumb { background: rgba(212, 175, 55, 0.2); border-radius: 10px; }

.menu-btn {
    width: 100%; 
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 4px;
    color: #d1d5db;
    font-family: 'Tahoma', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* FIX ICON VÀ CHỮ SÁT NHAU */
.menu-btn i {
    width: 20px;
    margin-right: 15px; /* Tăng khoảng cách từ 10px lên 15px cho thoáng */
    font-size: 16px;
    color: rgba(212, 175, 55, 0.7);
    text-align: center;
}

.menu-btn:hover, .menu-btn.active {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.15), rgba(0,0,0,0.2));
    border-color: #d4af37;
    color: #fff;
    transform: translateX(5px); /* Trượt nhẹ 5px thôi để tránh lỗi giao diện */
}

.menu-btn.active i, .menu-btn:hover i {
    color: #FFD700;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

/* ================= NỘI DUNG CHÍNH Ở GIỮA ================= */
.main-content { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; position: relative; }

.hero-text { text-align: center; text-transform: uppercase; margin-top: -50px;}

.sub-title { 
    color: #ff3333; /* Đỏ rực */
    font-family: 'Oswald', sans-serif; font-size: 26px; font-weight: 700; letter-spacing: 6px; 
    margin-bottom: 5px; text-shadow: 0 2px 10px rgba(0,0,0,0.9); 
}

.main-title { 
    font-family: 'Cinzel Decorative', serif; /* Font Hoàng gia, giống Logo MU */
    font-size: 110px; font-weight: 900; margin-bottom: 10px; letter-spacing: 2px;
    /* Hiệu ứng mạ vàng đúc khối 3D */
    background: linear-gradient(to bottom, #fffad6 0%, #e6b840 40%, #8b6508 100%); 
    -webkit-background-clip: text; color: transparent;
    filter: drop-shadow(0px 8px 5px rgba(0,0,0,0.8));
    -webkit-text-stroke: 1px rgba(255,255,255,0.2);
}

.slogan { 
    font-family: 'Oswald', sans-serif; font-size: 24px; font-weight: 600; color: #fff;
    background: linear-gradient(90deg, transparent, rgba(139, 101, 8, 0.8), transparent); 
    padding: 10px 60px; border-top: 1px solid #d4af37; border-bottom: 1px solid #d4af37;
    text-shadow: 0 2px 5px rgba(0,0,0,1); letter-spacing: 3px; display: inline-block;
}

/* ================= 3 THANH TÍNH NĂNG Ở TRANG CHỦ ================= */
.feature-badges { margin-top: 40px; display: flex; flex-direction: column; gap: 15px; align-items: center; }

.badge {
    background: rgba(10, 5, 5, 0.8); border: 1px solid #8b6508; border-radius: 4px; 
    padding: 10px 40px; color: #e6c27a; font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 16px;
    text-transform: uppercase; letter-spacing: 1.5px; box-shadow: inset 0 0 15px rgba(0,0,0,1), 0 5px 15px rgba(0,0,0,0.6);
    transition: all 0.3s ease; cursor: default;
}
.badge:hover { border-color: #d4af37; color: #fff; transform: scale(1.05); box-shadow: 0 0 20px rgba(212, 175, 55, 0.4); }

/* ================= CỬA SỔ LƠ LỬNG (MODAL) ================= */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
    display: flex; justify-content: center; align-items: center; z-index: 1000;
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.modal-overlay.show { opacity: 1; visibility: visible; }

.modal-content {
    background: url('https://www.transparenttextures.com/patterns/dark-matter.png'), linear-gradient(135deg, #110d0a, #0a0a0a); /* Thêm vân sần cho nền */
    border: 2px solid #8b6508; border-radius: 8px;
    width: 1000px; max-width: 95%; height: 85vh; position: relative; padding: 30px; 
    box-shadow: 0 0 50px rgba(0,0,0,1), inset 0 0 30px rgba(212,175,55,0.1);
    transform: scale(0.9); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); display: flex; flex-direction: column;
}
.modal-overlay.show .modal-content { transform: scale(1); }

.close-btn {
    position: absolute; top: 10px; right: 15px; background: transparent; border: none; color: #d4af37;
    font-size: 28px; cursor: pointer; transition: 0.3s; z-index: 10;
}
.close-btn:hover { color: #ff3333; transform: rotate(90deg); }

/* ================= TABS TRONG CỬA SỔ ================= */
.modal-tabs { display: flex; gap: 8px; border-bottom: 2px solid #5a401b; padding-bottom: 10px; margin-bottom: 20px; overflow-x: auto; }
.modal-tabs::-webkit-scrollbar { display: none; }

.tab-btn {
    background: rgba(0,0,0,0.5); border: 1px solid #5a401b; color: #888; 
    padding: 10px 25px; border-radius: 4px; font-family: 'Oswald', sans-serif; font-weight: 600; 
    cursor: pointer; transition: 0.3s; font-size: 15px; text-transform: uppercase; letter-spacing: 1px; white-space: nowrap;
}
.tab-btn:hover { background: rgba(139,101,8,0.2); color: #d4af37; border-color: #8b6508; }
.tab-btn.active { background: linear-gradient(to bottom, #4a3311, #1a1105); border-color: #d4af37; color: #fff; box-shadow: 0 0 10px rgba(212,175,55,0.3); }

.tab-content { display: none; flex: 1; overflow-y: auto; color: #eee; padding-right: 10px; font-family: 'Inter', sans-serif; }
.tab-content.active { display: block; animation: slideUp 0.4s ease; }
/* Style lại thanh cuộn bên trong cho hợp tông game */
.tab-content::-webkit-scrollbar { width: 6px; }
.tab-content::-webkit-scrollbar-track { background: #0a0a0a; border-left: 1px solid #333; }
.tab-content::-webkit-scrollbar-thumb { background: #8b6508; border-radius: 3px; }

@keyframes slideUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

/* ================= BỐ CỤC BẢNG THÔNG TIN SERVER (TAB 1) ================= */
.server-date-header {
    text-align: center; font-family: 'Oswald', sans-serif; font-size: 16px; color: #aaa; margin-bottom: 25px; padding-bottom: 15px;
    border-bottom: 1px dashed #5a401b; letter-spacing: 1px;
}
.server-date-header .highlight { color: #d4af37; font-weight: 700; text-shadow: 0 0 5px rgba(212,175,55,0.5); }

.info-grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }

.info-box { background: rgba(0, 0, 0, 0.5); border: 1px solid #3a2a12; border-radius: 6px; padding: 20px; box-shadow: inset 0 0 20px rgba(0,0,0,1); }

.box-title { color: #d4af37; font-family: 'Oswald', sans-serif; text-align: center; font-size: 18px; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 2px; }

.custom-list { list-style: none; }
.custom-list li { font-size: 14px; margin-bottom: 12px; color: #ccc; line-height: 1.6; display: flex; }
.custom-list li::before { content: '❖'; color: #8b6508; margin-right: 10px; font-size: 14px; margin-top: 1px; }
.custom-list .label { color: #e6c27a; font-weight: 600; margin-right: 5px; }

/* ================= BẢNG KẺ Ô (TABLE) ================= */
.table-container { width: 100%; overflow-x: auto; margin-top: 10px; border: 1px solid #5a401b; border-radius: 4px; box-shadow: 0 5px 15px rgba(0,0,0,0.8); }

.custom-table { width: 100%; border-collapse: collapse; text-align: center; font-family: 'Inter', sans-serif; font-size: 14px; background: rgba(0,0,0,0.4); }

.custom-table th { background: linear-gradient(to bottom, #2a1f10, #110d0a); color: #d4af37; font-family: 'Oswald', sans-serif; padding: 15px 10px; font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; border-bottom: 2px solid #8b6508; }

.custom-table td { padding: 12px 10px; color: #ddd; border-bottom: 1px solid #222; vertical-align: middle; }

.custom-table tbody tr:hover { background: rgba(139,101,8,0.15); }

.highlight-text { color: #ff3333; font-weight: 700; text-shadow: 0 0 5px rgba(255,0,0,0.4); }

/* ================= HỘP GHI CHÚ ================= */
.info-note-box {
    background: rgba(10, 5, 5, 0.6); border: 1px dashed #8b6508; border-radius: 4px;
    padding: 15px 20px; margin-bottom: 20px; box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}
.info-note-box .custom-list li { margin-bottom: 8px; font-size: 13.5px;}
.info-note-box .custom-list li:last-child { margin-bottom: 0; }

/* Thông báo Mobile */
.mobile-alert-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.9); z-index: 9999; display: flex; justify-content: center; align-items: center; padding: 20px; }
.mobile-alert-box { background: #110d0a; border: 2px solid #d4af37; border-radius: 8px; padding: 30px; text-align: center; max-width: 400px; box-shadow: 0 0 30px rgba(212,175,55,0.2); font-family: 'Inter', sans-serif; }
.mobile-alert-box h3 { color: #d4af37; margin-bottom: 15px; font-size: 20px; font-family: 'Oswald', sans-serif; text-transform: uppercase;}
.mobile-alert-box p { font-size: 15px; line-height: 1.6; color: #ccc;}

/* ================= HIỆU ỨNG TUYẾT RƠI & HẠT MA THUẬT DEVIAS ================= */
#magic-effect-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none; /* Xuyên chuột qua, không cản trở việc bấm Menu */
    z-index: 1; /* Nằm dưới Menu và Modal, nhưng nằm trên Background */
    overflow: hidden;
}

.magic-particle {
    position: absolute;
    top: -10%;
    /* Gradient tạo hạt sáng: Lõi trắng, tỏa ra ánh sáng xanh lơ (Cyan) cực ma mị */
    background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(0, 229, 255, 0.8) 40%, transparent 100%);
    border-radius: 50%;
    opacity: 0;
    /* Gắn 2 hiệu ứng: Rơi từ trên xuống và Lắc qua lắc lại theo chiều ngang */
    animation: fall linear infinite, sway ease-in-out infinite alternate;
}

/* Ánh sáng lấp lánh chớp tắt cho một số hạt đặc biệt */
.sparkle {
    box-shadow: 0 0 10px #fff, 0 0 20px #00e5ff, 0 0 30px #00e5ff;
}

@keyframes fall {
    0% { top: -10%; opacity: 0; transform: scale(0.5); }
    10% { opacity: 1; transform: scale(1); }
    80% { opacity: 1; transform: scale(1); }
    100% { top: 110%; opacity: 0; transform: scale(0.5); }
}

@keyframes sway {
    0% { margin-left: -30px; }
    100% { margin-left: 30px; }
}
/* ================= CSS CỬA SỔ TẢI GAME (MỚI) ================= */
.download-section { margin-bottom: 25px; }
.dl-title { font-size: 16px; color: #fff; margin-bottom: 15px; font-family: 'Oswald', sans-serif; text-transform: none; display: flex; align-items: center; gap: 8px; letter-spacing: 0.5px;}
.dl-title i { color: #d4af37; }

.dl-buttons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dl-btn { 
    padding: 16px; border-radius: 6px; text-align: center; font-weight: bold; text-decoration: none; 
    font-size: 15px; font-family: 'Oswald', sans-serif; display: flex; justify-content: center; align-items: center; gap: 10px;
    transition: all 0.3s ease; letter-spacing: 1px;
}
/* Nút Google Drive Xanh */
.dl-drive { background: #0f9d58; color: #fff; border: 1px solid #0f9d58; }
.dl-drive:hover { background: #0b8043; box-shadow: 0 0 15px rgba(15,157,88,0.5); transform: translateY(-3px); }
/* Nút Trực tiếp Vàng */
.dl-direct { background: linear-gradient(135deg, rgba(255,215,0,0.2), transparent); color: #FFD700; border: 1px solid #FFD700; }
.dl-direct:hover { background: rgba(255, 215, 0, 0.3); box-shadow: 0 0 15px rgba(255,215,0,0.3); transform: translateY(-3px); }

/* Khối phần mềm */
.software-box { border: 1px solid #5a401b; border-radius: 8px; background: rgba(0,0,0,0.4); padding: 0 20px; }
.software-item { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; }
.software-item.border-top { border-top: 1px dashed #5a401b; }
.software-info h5 { font-size: 16px; color: #FFD700; margin-bottom: 5px; font-family: 'Inter', sans-serif; font-weight: 700;}
.software-info p { font-size: 13.5px; color: #aaa; font-family: 'Inter', sans-serif;}

/* Nút tải nhỏ */
.dl-sm-btn { 
    padding: 8px 18px; border-radius: 4px; font-size: 13px; font-weight: bold; text-decoration: none; 
    display: flex; align-items: center; gap: 6px; font-family: 'Oswald', sans-serif; transition: 0.3s; letter-spacing: 0.5px;
}
.outline-yellow { color: #e6c27a; border: 1px solid #e6c27a; }
.outline-yellow:hover { background: rgba(230,194,122,0.1); color: #FFD700; border-color: #FFD700;}
.outline-red { color: #ff4d4d; border: 1px solid #ff4d4d; }
.outline-red:hover { background: rgba(255,77,77,0.1); color: #ff3333; }

/* Hướng dẫn */
.guide-list { padding-left: 20px; line-height: 1.8; color: #ccc; font-size: 14.5px; font-family: 'Inter', sans-serif;}
.guide-list li { margin-bottom: 8px; }