/* ================================================================= */
/* 0. KHỬ GA/NHÒE TEXT TOÀN DIỆN (CHỮ SẮC NÉT)                      */
/* ================================================================= */
.popup-overlay *, 
.popup-close-top, 
.btn-mu-close-bottom,
.server-name,
.popup-title-epic {
    text-shadow: none !important; /* Triệt tiêu hoàn toàn hiệu ứng đổ bóng gây nhòe */
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* --- CẤU HÌNH NỀN VÀ KHUNG SIDEBAR CHUNG --- */
.sidebar {
    background: #0c0805;
    border-right: 1px solid #4a3418;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.8);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Nút thu gọn sidebar */
.toggle-sidebar-btn {
    background: #170f0a;
    border: 1px solid #4a3418;
    color: #dfcaa7;
    cursor: pointer;
    transition: all 0.2s ease;
}
.toggle-sidebar-btn:hover {
    color: #ffcc00;
    background: #23170f;
    box-shadow: 0 0 8px rgba(255, 204, 0, 0.4);
}

/* --- HIỆU ỨNG MENU ITEMS THƯỜNG --- */
.menu-heading {
    text-align: center; /* Căn giữa chữ */
    width: 100%;        /* Ép dòng chữ nhận hết độ rộng để căn đều */
    display: block;     /* Đảm bảo thẻ h3 hoạt động như một khối độc lập */
    color: #8c6d39;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1.5px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 1px dashed #2e1e12;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.menu-item {
    display: flex;
    align-items: center;
    background: #140d07;
    border: 1px solid #2e1e12;
    color: #dfcaa7;
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.25s ease-in-out;
    position: relative;
    overflow: hidden;
}

/* Hover vào menu thường: Đổi sang màu vàng gold, nhích nhẹ sang phải */
.menu-item:hover {
    color: #ffffff;
    background: #1d130b;
    border-color: #ffcc00;
    padding-left: 20px; /* Tạo hiệu ứng đẩy nhẹ nút sang phải khi hover */
    box-shadow: inset 0 0 10px rgba(255, 204, 0, 0.15), 0 2px 8px rgba(0,0,0,0.5);
}

.icon-menu {
    margin-right: 10px;
    color: #8c6d39;
    transition: color 0.25s ease;
    font-size: 14px;
    width: 16px;
    text-align: center;
}
.menu-item:hover .icon-menu {
    color: #ffcc00; /* Icon sáng rực lên */
    transform: scale(1.1);
}

/* Mũi tên chéo góc */
.arrow-diagonal {
    position: absolute;
    right: 12px;
    font-size: 10px;
    color: #8c6d39;
    opacity: 0.5;
    transition: all 0.25s ease;
}
.menu-item:hover .arrow-diagonal {
    opacity: 1;
    transform: translate(2px, -2px); /* Mũi tên bay chéo lên */
    color: #ffcc00;
}

/* --- HIỆU ỨNG ĐẶC BIỆT NỔI BẬT: NÚT TẢI GAME --- */
.highlight-download {
    background: linear-gradient(180deg, #4d1814 0%, #2e0b08 100%);
    border: 1px solid #73221d;
    color: #ffffff;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(168, 34, 24, 0.4);
}

.highlight-download .icon-menu {
    color: #ff665c;
}

/* Hiệu ứng ánh kim (Shine Effect) quét ngang qua nút tải game lặp đi lặp lại */
.highlight-download::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: muShineEffect 2s infinite linear;
}

/* Khi hover nút Tải Game: Rực lửa hơn */
.highlight-download:hover {
    background: linear-gradient(180deg, #73221d 0%, #4d1814 100%);
    border-color: #ba3229;
    padding-left: 20px;
    box-shadow: 0 0 20px rgba(255, 59, 48, 0.8);
}

/* Animation quét ánh kim */
@keyframes muShineEffect {
    0% { left: -150%; }
    30% { left: 150%; }
    100% { left: 150%; }
}

/* ================================================================= */
/* 1. KHỞI TẠO TOÀN TRANG & BASE STYLES                              */
/* ================================================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    background-color: #030000;
    font-family: 'Oswald', sans-serif;
    color: #fff;
    overflow-x: hidden;
}
.wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
}

/* ================================================================= */
/* 2. VIDEO BACKGROUND                                               */
/* ================================================================= */
.video-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}
.video-wrapper video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
}
.video-wrapper::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: 
        radial-gradient(ellipse 90% 90% at 50% 50%, transparent 30%, rgba(0, 0, 0, 0.55) 100%),
        linear-gradient(180deg, rgba(0,0,0,0.25) 0%, transparent 25%, transparent 75%, rgba(0,0,0,0.35) 100%);
    z-index: 2;
}

/* ================================================================= */
/* 3. SIDEBAR TRÁI                                                   */
/* ================================================================= */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, rgba(23, 14, 8, 0.95) 0%, rgba(10, 5, 2, 0.98) 100%);
    border-right: 1px solid #4a3418;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar.collapsed {
    transform: translateX(-260px);
}
.toggle-sidebar-btn {
    position: absolute;
    right: -25px;
    top: 15px;
    background: #2b1d0e;
    border: 1px solid #4a3418;
    color: #c9a054;
    width: 25px;
    height: 25px;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 3px 0 5px rgba(0,0,0,0.5);
}
.toggle-sidebar-btn:hover {
    color: #ffffff;
    background: #3d2a15;
}
.sidebar-logo {
    text-align: center;
    margin-bottom: 25px;
}
.mini-logo {
    max-width: 130px;
    height: auto;
}
.menu-group {
    margin-bottom: 20px;
}
.menu-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ================================================================= */
/* 4. MAIN CONTENT & BANNER TRUNG TÂM                                */
/* ================================================================= */
.main-content {
    flex: 1;
    margin-left: 260px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    min-height: 100vh;
    position: relative;
    z-index: 5;
    transition: margin-left 0.3s ease;
}
.center-banner-box {
    text-align: center;
    max-width: 850px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.main-logo-area {
    margin-bottom: -15px;
}
.main-logo {
    max-width: 480px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 25px rgba(230, 138, 0, 0.4));
}
.server-name {
    font-family: 'Oswald', sans-serif;
    font-size: 90px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 4px;
    line-height: 1;
    margin-bottom: 15px;
}
.subtitle-badge {
    background: rgba(26, 12, 7, 0.85);
    padding: 10px 45px;
    border: 1px solid #5c3e1a;
    border-radius: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.6), inset 0 0 10px rgba(255,165,0,0.2);
    margin-bottom: 35px;
}
.subtitle-badge span {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1.5px;
    white-space: nowrap;
}

/* --- KHỐI TIMELINE HÌNH BÌNH HÀNH --- */
.timeline-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    width: 100%;
    max-width: 700px;
}
.timeline-card {
    flex: 1;
    padding: 2px;
    background: linear-gradient(135deg, #cc9233 0%, #52110c 100%);
    clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}
.card-inner {
    background: linear-gradient(180deg, #59100b 0%, #240503 100%);
    clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
    padding: 14px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.card-open {
    background: linear-gradient(135deg, #ffcc00 0%, #660000 100%);
}
.card-open .card-inner {
    background: linear-gradient(180deg, #801008 0%, #380300 100%);
}
.status-title {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffcc00;
    margin-bottom: 2px;
}
.card-open .status-title {
    color: #ffea00;
}
.status-time {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
}

/* ================================================================= */
/* 5. POPUP CƠ BẢN & POPUP GOTHIC                                    */
/* ================================================================= */
.popup-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 200;
}
.popup-content {
    background: #140d07;
    border: 2px solid #8c6d39;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    animation: fadeInModal 0.25s ease-out;
}
@keyframes fadeInModal {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.popup-content.content-large { max-width: 700px; }
.popup-content.content-medium { max-width: 580px; }

/* Nút close mặc định của popup gốc */
.popup-close {
    position: absolute;
    top: 12px; right: 18px;
    font-size: 28px; cursor: pointer; color: #8c6d39;
    background: transparent; border: none; line-height: 1;
    transition: color 0.2s;
}
.popup-close:hover { color: #fff; }

/* Thành phần giao diện trong Popup */
.popup-header-gold {
    text-align: center;
    border-bottom: 2px dashed #4a3418;
    padding-bottom: 15px;
    margin-bottom: 15px;
}
.popup-title-epic {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    color: #ffcc00;
    letter-spacing: 1px;
}
.popup-subtitle-epic {
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    color: #8c6d39;
    margin-top: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.popup-body-scroll {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 5px;
}

/* Tabs Navigation */
.popup-tab-navigation {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    border-bottom: 1px solid #2d1a0e;
    padding-bottom: 5px;
}
.tab-btn-epic {
    flex: 1;
    background: #1a100a;
    border: 1px solid #3d2916;
    color: #a38c6c;
    padding: 10px 5px;
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
    transition: all 0.2s ease;
}
.tab-btn-epic:hover, .tab-btn-epic.active {
    background: linear-gradient(180deg, #421612 0%, #170504 100%);
    border-color: #8c6d39;
    color: #ffffff;
}
.tab-panel-content { display: none; }
.tab-panel-content.active { display: block; }

/* Các khối bảng & nội dung thông tin cũ */
.mu-table-dark {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}
.mu-table-dark td {
    padding: 12px 14px;
    border-bottom: 1px solid #21140b;
    font-size: 14px;
}
.mu-table-dark tr:nth-child(even) { background: rgba(255, 255, 255, 0.01); }
.mu-table-dark td:first-child {
    color: #dfcaa7;
    width: 40%;
    font-weight: 500;
}
.mu-notice-box-gold {
    background: rgba(140, 109, 57, 0.05);
    border: 1px solid #5c4520;
    padding: 15px;
    border-radius: 4px;
    text-align: left;
}
.mu-notice-box-gold h4 {
    color: #ffcc00;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    margin-bottom: 6px;
}
.mu-notice-box-gold p {
    font-size: 13px;
    color: #bfae95;
    line-height: 1.4;
}

/* --- Timeline Dọc Giai Đoạn Vận Hành --- */
.mu-timeline-vertical {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    padding-left: 20px;
}
.mu-timeline-vertical::before {
    content: '';
    position: absolute;
    left: 4px; top: 5px; bottom: 5px;
    width: 2px; background: #3d2916;
}
.timeline-step {
    position: relative;
    background: rgba(0,0,0,0.2);
    border: 1px solid #2d1a0e;
    padding: 12px;
    border-radius: 4px;
}
.timeline-step::before {
    content: '●';
    position: absolute;
    left: -21px; top: 10px;
    color: #4a3418; font-size: 12px;
}
.timeline-step.done { border-color: #5c4520; }
.timeline-step.done::before { color: #8c6d39; }
.timeline-step.current { border-color: #b53128; background: rgba(181, 49, 40, 0.03); }
.timeline-step.current::before { color: #ff3333; }

.step-badge {
    font-size: 11px; font-weight: bold;
    background: #331e12; color: #ffcc00;
    padding: 2px 6px; border-radius: 3px;
}
.step-title { font-size: 14px; margin: 6px 0 4px 0; color: #fff; }
.step-desc { font-size: 13px; color: #a6947c; line-height: 1.3; }

/* --- Giao Diện Hàng Sự Kiện & Đua Top --- */
.events-grid-epic {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.event-row-card {
    display: flex;
    background: #170f0a;
    border: 1px solid #2e1e12;
    border-radius: 4px;
    overflow: hidden;
}
.event-time-tag {
    background: #3d2112;
    color: #ffcc00;
    font-family: 'Oswald', sans-serif;
    font-weight: bold;
    font-size: 13px;
    padding: 12px;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.event-row-card.continuous .event-time-tag {
    background: #1f3d12; color: #00ff00;
}
.event-info-tag { padding: 10px 15px; text-align: left; }
.event-info-tag h6 { font-size: 14px; color: #fff; margin-bottom: 2px;}
.event-info-tag p { font-size: 12px; color: #9c8a74; }

.top-reward-summary {
    background: rgba(0,0,0,0.3); padding: 12px;
    border-radius: 4px; border-left: 3px solid #ffcc00;
    margin-bottom: 15px; text-align: left;
}
.summary-text { font-size: 13px; color: #c4b49d; line-height: 1.4; }
.rewards-list-epic { display: flex; flex-direction: column; gap: 12px; }

.reward-item-row {
    display: flex; align-items: center; gap: 15px;
    background: linear-gradient(90deg, #1f140d 0%, #120905 100%);
    border: 1px solid #3b2818; padding: 12px 15px; border-radius: 5px;
}
.rank-badge {
    font-family: 'Oswald', sans-serif; font-weight: bold; font-size: 16px;
    width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; border: 2px solid;
}
.rank-1 { border-color: #ffcc00; box-shadow: 0 0 10px rgba(255,204,0,0.15); }
.rank-1 .rank-badge { background: #ffcc00; color: #000; border-color: #fff; }
.rank-2 { border-color: #cccccc; }
.rank-2 .rank-badge { background: #cccccc; color: #000; border-color: #fff; }
.rank-3 { border-color: #cd7f32; }
.rank-3 .rank-badge { background: #cd7f32; color: #000; border-color: #fff; }

.reward-detail { text-align: left; }
.reward-detail h6 { font-size: 14px; color: #ffcc00; margin-bottom: 3px; font-weight: bold;}
.reward-detail p { font-size: 12px; color: #b0a089; }

/* Tùy biến thanh cuộn hệ thống */
.popup-body-scroll::-webkit-scrollbar { width: 5px; }
.popup-body-scroll::-webkit-scrollbar-track { background: #0c0805; }
.popup-body-scroll::-webkit-scrollbar-thumb { background: #4a3418; border-radius: 2px; }

/* ================================================================= */
/* 6. HIỆU ỨNG TƯƠNG TÁC (HOVER, SHINE, TIMELINE TABLE)             */
/* ================================================================= */

/* --- Hiệu ứng Box Download --- */
.mu-box-hover {
    transition: all 0.3s ease !important;
}
.mu-box-hover:hover {
    transform: translateY(-4px);
    border-color: #ffcc00 !important;
    box-shadow: 0 8px 25px rgba(255, 204, 0, 0.15) !important;
}
.btn-mirror-shine {
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease !important;
}
.btn-mirror-shine::before {
    content: '';
    position: absolute;
    top: 0; left: -150%; width: 50%; height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.25) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: shineButton 3.5s infinite ease-in-out;
}
@keyframes shineButton {
    0% { left: -150%; }
    25% { left: 150%; }
    100% { left: 150%; }
}
.mu-box-hover:hover .btn-mirror-shine {
    background: linear-gradient(180deg, #ffcc00 0%, #997a00 100%) !important;
    color: #000000 !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 12px rgba(255, 204, 0, 0.5);
}

/* --- NÚT X ĐÓNG GÓC PHẢI POPUP MỚI (BỎ ĐỔ BÓNG NHÒE) --- */
.popup-close-top {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #8c6d39;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    z-index: 210;
}
.popup-close-top:hover {
    color: #ff3333;
    transform: rotate(90deg);
}

/* --- NÚT ĐÓNG DƯỚI CÙNG POPUP MỚI (BỎ ĐỔ BÓNG NHÒE) --- */
.btn-mu-close-bottom {
    background: linear-gradient(180deg, #421612 0%, #170504 100%); 
    border: 1px solid #8c6d39; 
    color: #ffffff; 
    padding: 10px 30px; 
    font-family: 'Oswald', sans-serif; 
    font-size: 13px; 
    font-weight: 600; 
    letter-spacing: 1px; 
    cursor: pointer; 
    border-radius: 4px; 
    text-transform: uppercase;
    transition: all 0.2s ease-in-out;
}
.btn-mu-close-bottom:hover {
    background: linear-gradient(180deg, #8a1a14 0%, #3a0604 100%) !important;
    border-color: #ffcc00 !important;
    color: #ffffff !important;
    letter-spacing: 1.5px;
}

/* --- Bảng Thông Số In-game & Bảng Lộ Trình Mới --- */
.mu-info-card {
    transition: all 0.3s ease-in-out !important;
}
.mu-info-card:hover {
    transform: translateY(-3px);
    border-color: #8c6d39 !important;
    box-shadow: 0 5px 20px rgba(255, 204, 0, 0.08) !important;
}
.mu-table-info {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Oswald', sans-serif;
}
.mu-table-info tr {
    border-bottom: 1px solid #1f150c;
    transition: background 0.2s;
}
.mu-table-info tr:hover {
    background: rgba(140, 109, 57, 0.05) !important;
}
.mu-table-info td {
    padding: 12px;
    font-size: 14px;
    vertical-align: middle;
}

/* Bảng Lộ Trình Cập Nhật Server */
.mu-roadmap-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Oswald', sans-serif;
    background: #0d0805;
}
.mu-roadmap-table thead tr {
    background: rgba(255, 204, 0, 0.08);
    border-bottom: 2px solid #8c6d39;
}
.mu-roadmap-table th {
    color: #ffcc00;
    padding: 12px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-right: 1px solid #2d1a0e;
}
.mu-roadmap-table tbody tr {
    border-bottom: 1px solid #1f150c;
    transition: background 0.2s ease-in-out;
}
.mu-roadmap-table tbody tr:hover {
    background: rgba(140, 109, 57, 0.06) !important;
}
.mu-roadmap-table td {
    padding: 14px 12px;
    font-size: 13.5px;
    line-height: 1.6;
    vertical-align: middle;
}
.text-day-highlight {
    color: #ffcc00;
    font-weight: 700;
    text-align: center;
    font-size: 14px;
    background: rgba(23, 15, 10, 0.6);
}

/* --- Nhóm Màu Sắc Bổ Trợ --- */
.text-gold   { color: #ffcc00; }
.text-orange { color: #ff9933; }
.text-cyan   { color: #33ccff; }
.text-green  { color: #00ff00; }
.text-white  { color: #ffffff; }

/* ================================================================= */
/* 7. ĐÁP ỨNG THIẾT BỊ DI ĐỘNG (RESPONSIVE) - ĐÃ TỐI ƯU HOÀN TOÀN     */
/* ================================================================= */

/* --- TỐI ƯU CHO MÀN HÌNH TABLET & LAPTOP NHỎ --- */
@media (max-width: 992px) {
    .server-name { 
        font-size: 60px; /* Thu nhỏ tiêu đề tránh tràn dòng */
    }
    .main-logo { 
        max-width: 360px; 
    }
}

/* --- TỐI ƯU CHO MÀN HÌNH MOBILE CHUNG (DƯỚI 768PX) --- */
@media (max-width: 768px) {
    .main-content {
        margin-left: 0; /* Trả lại không gian do sidebar không còn chiếm chỗ */
        padding: 80px 15px 40px 15px; /* Thêm padding top để không bị đè bởi nút toggle */
    }
    
    /* Đồng bộ chuẩn xác Logic Sidebar di động */
    .sidebar {
        transform: translateX(-100%); /* Mặc định ẩn ra ngoài màn hình mobile */
        left: 0;
        box-shadow: 5px 0 30px rgba(0,0,0,0.9);
    }
    /* Khi sidebar chưa bị collapsed (lần đầu load), vẫn ẩn trên mobile */
    /* Chỉ hiển thị khi user chủ động click toggle để thêm class .active */
    .sidebar.active {
        transform: translateX(0) !important;
    }
    /* Khi collapsed trên mobile = ẩn hoàn toàn */
    .sidebar.collapsed {
        transform: translateX(-100%) !important;
    }
    
    .toggle-sidebar-btn {
        right: -35px; /* Đẩy rộng ra một chút cho ngón tay dễ chạm bấm */
        width: 35px;
        height: 35px;
        background: #4a3418;
        border-left: none;
    }

    .server-name { 
        font-size: 45px; 
    }
    .subtitle-badge { 
        padding: 8px 20px; 
        margin-bottom: 25px;
    }
    .subtitle-badge span { 
        font-size: 14px; 
    }

    /* CHỐNG VỠ KHUNG BẢNG TRÊN DI ĐỘNG */
    .mu-table-dark, .mu-table-info, .mu-roadmap-table {
        display: block;
        width: 100%;
        overflow-x: auto; /* Tự động sinh thanh cuộn ngang nếu bảng quá dài */
        white-space: nowrap;
    }

    /* --- ÉP TOÀN BỘ CẤU TRÚC TRONG POPUP CHUYỂN THÀNH HÀNG DỌC TRÊN MOBILE --- */
    .popup-overlay {
        padding: 10px; /* Thu hẹp khoảng cách viền ngoài */
    }
    .popup-content {
        padding: 15px;
        width: 100%;
        max-height: 95vh;
    }
    .popup-title-epic {
        font-size: 18px; /* Thu nhỏ tiêu đề popup */
    }

    /* 3 khối Bước 01, 02, 03 chuyển sang hàng dọc */
    .popup-body-scroll div[style*="display: flex; gap: 15px;"],
    .popup-body-scroll div[style*="display: flex; gap: 20px;"],
    .popup-tab-navigation {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    /* Sửa tỷ lệ ảnh và khối cảnh báo bảo mật thành 100% chiều rộng */
    .popup-body-scroll div[style*="flex: 1.3;"],
    .popup-body-scroll div[style*="flex: 1;"],
    .popup-body-scroll .mu-notice-box-gold {
        flex: none !important;
        width: 100% !important;
    }
    
    .popup-body-scroll img {
        max-height: 150px !important; /* Giới hạn độ cao ảnh tránh chiếm diện tích kéo trang */
    }
}

/* --- TỐI ƯU SIÊU NHỎ CHO SMARTPHONE (DƯỚI 480PX) --- */
@media (max-width: 480px) {
    .server-name {
        font-size: 34px; /* Tránh tối đa việc vỡ chữ trên màn hình nhỏ */
    }
    
    /* Xử lý khối hình bình hành */
    .timeline-container {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        padding: 0 10px;
    }
    
    /* HỦY BỎ clip-path hình bình hành trên mobile cực nhỏ để chữ không bị cắt nhòe */
    .timeline-card, .card-inner {
        clip-path: none !important; 
        border-radius: 6px; /* Thay bằng bo góc nhẹ trông sẽ hiện đại và sạch sẽ hơn */
    }
    
    .card-inner {
        padding: 12px 15px;
    }
    .status-title {
        font-size: 14px;
    }
    .status-time { 
        font-size: 16px; /* Hạ bớt 2px để ôm trọn dòng thời gian */
    }
}