:root {
    --primary: #facc15;
    --secondary: #f97316;
    --dark: #0f172a;
    --light: #f8fafc;
    --border: #475569;
    --danger: #dc2626;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f1f5f9;
    color: #334155;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navbar Chính */
nav {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 70px;
    display: flex;
    align-items: center;
}

.nav-content {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vps-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.vps-modal-content {
    background-color: #f9f9f9;
    margin: 15% auto;
    padding: 25px;
    border-radius: 10px;
    width: 320px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.vps-close-btn {
    color: #888;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.vps-close-btn:hover {
    color: #333;
}

.logo-icon {
    height: 60px;
    width: auto;
    border-radius: 12px;
    border: none;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;

    mix-blend-mode: multiply;
}

body.dark-theme .logo-icon {
    mix-blend-mode: normal;
}

/* Hiệu ứng phóng to nhẹ khi di chuột vào ( scale 1.05 có nghĩa là tăng 5% kích thước) */
.logo-icon:hover {
    transform: scale(1.05);
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
}

.nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.btn-action {
    background-color: var(--primary);
    color: white !important;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 2px 4px rgba(249, 115, 22, 0.2);
    white-space: nowrap;
}

.btn-action:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Header Trang */
.page-header {
    text-align: center;
    margin: 50px auto 30px auto;
    padding: 0 20px;
}

.page-header h1 {
    color: var(--dark);
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.15rem;
    color: #64748b;
}

/* MENU CON BÁM DÍNH  */
.sticky-menu-wrapper {
    position: sticky;
    top: 70px;
    z-index: 90;
    background-color: rgba(241, 245, 249, 0.95);
    backdrop-filter: blur(8px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    margin-bottom: 40px;
}

.in-page-nav {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.in-page-nav a {
    text-decoration: none;
    color: var(--dark);
    background-color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    transition: all 0.2s;
    white-space: nowrap;
}

.in-page-nav a:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(249, 115, 22, 0.1);
}

.in-page-nav a.active-nav {
    color: white !important;
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 4px 6px rgba(249, 115, 22, 0.2) !important;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px 20px 20px;
    flex: 1;
}

.card {
    display: none;
    /* Ẩn mặc định tất cả các bảng nội dung */
    background: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    animation: fadeIn 0.4s ease;
    /* Hiệu ứng mượt mà khi đổi tab */
}

/* Thêm class .active để hiển thị tab đang chọn */
.card.active {
    display: block;
}

/* Hiệu ứng mờ ảo khi chuyển tab */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    color: var(--dark);
    font-size: 1.8rem;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.feature-block {
    margin-bottom: 40px;
}

.feature-block:last-child {
    margin-bottom: 0;
}

.feature-header {
    background-color: var(--light);
    padding: 10px 15px;
    border-left: 5px solid var(--primary);
    font-size: 1.2rem;
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 15px;
    border-radius: 0 5px 5px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.text-content ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.text-content li {
    margin-bottom: 8px;
}

.highlight-red {
    color: white;
    background-color: var(--danger);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    display: block;
    margin-top: 10px;
    font-weight: 500;
}

.img-wrapper {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 5px;
    background: var(--light);
    text-align: center;
}

.img-wrapper img,
.img-wrapper video {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    transition: 0.3s;
}

.img-wrapper img {
    cursor: zoom-in;
}

.img-wrapper img:hover {
    opacity: 0.85;
}

.img-caption {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 8px;
    font-style: italic;
    font-weight: normal;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: zoomModal 0.3s ease;
}

#modalCaption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #e2e8f0;
    padding: 15px 0;
    font-size: 1.1rem;
    animation: zoomModal 0.3s ease;
}

@keyframes zoomModal {
    from {
        transform: scale(0.9);
        opacity: 0
    }

    to {
        transform: scale(1);
        opacity: 1
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
}


footer {
    background-color: var(--dark);
    color: #e2e8f0;
    padding: 40px 20px;
    margin-top: auto !important;
    border-top: 4px solid var(--primary);
    width: 100%;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-left h3 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 15px;
    color: white;
}

.footer-left ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-left li {
    margin-bottom: 10px;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.footer-left li i {
    color: var(--primary);
    width: 25px;
    font-size: 1rem;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.footer-text {
    font-size: 1.05rem;
}

.footer-text strong {
    color: var(--primary);
    font-size: 1.15rem;
}

.footer-links {
    display: flex;
    gap: 15px;
}

.footer-links a.btn-link {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s;
}

.footer-links a.btn-link:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .in-page-nav a {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .nav-actions {
        gap: 6px;
    }

    .btn-action {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .modal-content {
        width: 95%;
        max-height: 70vh;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-right {
        align-items: center;
    }

    .footer-left li {
        justify-content: center;
    }
}

.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
}

.slider .fa-sun {
    color: #f39c12;
    font-size: 14px;
    z-index: 1;
}

.slider .fa-moon {
    color: #f1c40f;
    font-size: 14px;
    z-index: 1;
}

.slider:before {
    background-color: #fff;
    bottom: 3px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 26px;
    z-index: 2;
}

input:checked+.slider {
    background-color: #1e293b;
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

body.dark-theme {
    background-color: #19243d;
    color: #cbd5e1;
}

body.dark-theme nav,
body.dark-theme .card,
body.dark-theme .sticky-menu-wrapper,
body.dark-theme .vps-modal-content {
    background-color: #303947;
    border-color: #334155;
    color: #f1f5f9;
}

body.dark-theme .section-title {
    color: #f8fafc;
}

body.dark-theme .feature-header {
    background-color: #334155;
    color: #f8fafc;
}

body.dark-theme .in-page-nav a {
    background-color: #1e293b;
    color: #cbd5e1;
    border-color: #475569;
}

body.dark-theme .in-page-nav a:hover {
    color: var(--primary);
    border-color: var(--primary);
}

body.dark-theme .in-page-nav a.active-nav {
    background-color: var(--primary) !important;
    color: white !important;
}

body.dark-theme .page-header h1 {
    color: #f8fafc;
}

body.dark-theme .img-wrapper {
    background-color: #0f172a;
    border-color: #334155;
}

.video-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 6px 16px;
    background-color: white;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.video-link-btn i {
    font-size: 1rem;
}

.video-link-btn:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(249, 115, 22, 0.2);
}

body.dark-theme .video-link-btn {
    background-color: transparent;
    color: var(--primary);
}

body.dark-theme .video-link-btn:hover {
    background-color: var(--primary);
    color: white;
}


.welcome-modal-content {
    width: 450px;
    max-width: 95%;
}

body.dark-theme .welcome-modal-content p,
body.dark-theme .welcome-modal-content ul {
    color: #e2e8f0;
}


.btn-action,
.video-link-btn {
    position: relative;
    overflow: hidden;
}

/* 2. Tạo vệt sáng nghiêng bằng Pseudo-element */
.btn-action::before,
.video-link-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    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);
    z-index: 1;
    animation: shine-effect 5s infinite;
}

/* Đảm bảo chữ bên trong nút luôn nằm trên vệt sáng */
.btn-action {
    z-index: 2;
}

/* 3. Chuyển động lướt qua của vệt sáng */
@keyframes shine-effect {
    0% {
        left: -100%;
        /* Bắt đầu ngoài cùng bên trái */
    }

    /* ĐÃ SỬA: Tăng từ 20% lên 40% để vệt sáng trượt chậm, từ từ và mượt hơn */
    55% {
        left: 200%;
    }

    100% {
        left: 200%;
        /* Thời gian còn lại nút sẽ đứng im chờ chu kỳ tiếp theo */
    }
}

/* --- Tùy chọn: Làm nền nút cam nổi khối 3D nhẹ --- */
.btn-action {
    background-image: linear-gradient(to bottom, #3fc4ec, #22a6e4);
    border: 1px solid #3c6ac0;
}

.btn-action:hover {
    background-image: linear-gradient(to bottom, #3fc4ec, #22a6e4);
}

/* --- CẬP NHẬT CSS CHO FOOTER 3 CỘT --- */
footer {
    background-color: var(--dark);
    color: #e2e8f0;
    padding: 50px 20px 20px 20px;
    /* Tăng padding trên lên một chút */
    margin-top: 40px;
    border-top: 4px solid var(--primary);
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Chia 3 cột bằng nhau */
    gap: 40px;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 20px;
    color: white;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 10px;
}

/* Gạch chân nhỏ dưới tiêu đề cột */
.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Style cho phần liên hệ */
.contact-info li {
    margin-bottom: 15px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    color: #cbd5e1;
}

.contact-info li i {
    color: var(--primary);
    width: 30px;
    font-size: 1.1rem;
}

/* Style cho Mạng xã hội */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

/* Style cho Liên kết nhanh */
.quick-links li {
    margin-bottom: 12px;
}

.quick-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s, padding-left 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-links a i {
    color: var(--primary);
    font-size: 0.8rem;
}

.quick-links a:hover {
    color: var(--primary);
    padding-left: 5px;
    /* Hiệu ứng thụt lề khi di chuột */
}

/* Style cho thanh Bản quyền dưới cùng */
.footer-bottom {
    max-width: 1100px;
    margin: 40px auto 0 auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: #94a3b8;
}

.footer-bottom strong {
    color: var(--primary);
}

/* Tương thích cho Mobile */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        /* Trở về 1 cột trên điện thoại */
        text-align: left;
    }
}

/* --- CSS CHO CHỮ CẠNH LOGO --- */
.logo-text {
    font-size: 1.23rem;
    font-weight: 600;
    color: var(--primary);
    /* Sử dụng màu cam chủ đạo của bạn */
    margin-left: 12px;
    /* Tạo khoảng cách 12px so với ảnh logo */
    letter-spacing: 0.5px;
    white-space: nowrap;
    /* Đảm bảo chữ không bị rớt dòng khi thu nhỏ web */
    display: inline-block;
    /* Cần thiết để animation hoạt động mượt mà */

    /* --- TẠO HIỆU ỨNG 7 SẮC CẦU VỒNG --- */
    /* 1. Tạo dải màu gradient ngang gồm 7 màu + màu đỏ lặp lại ở cuối để chuyển tiếp mượt */
    background-image: linear-gradient(to right, red, orange, yellow, green, blue, indigo, violet, red);

    /* 2. Cắt dải màu nền theo hình dáng của chữ */
    -webkit-background-clip: text;
    background-clip: text;

    /* 3. Làm trong suốt màu chữ gốc để lộ phần nền cầu vồng bên dưới */
    color: transparent;

    /* 4. Kéo rộng dải nền ra 200% để có không gian di chuyển */
    background-size: 200% auto;

    /* 5. Áp dụng chuyển động di chuyển nền */
    /* Thời gian 3s, chuyển động đều (linear), lặp vô tận (infinite) */
    animation: rainbow-move 3s linear infinite;
}

/* Định nghĩa chuyển động di chuyển dải màu */
@keyframes rainbow-move {
    from {
        background-position: 0% center;
    }

    to {
        background-position: -200% center;
        /* Di chuyển nền sang trái để tạo hiệu ứng chạy */
    }
}

/* --- CSS CHO KHUNG CONFIG VÀ NÚT COPY --- */
.config-wrapper {
    margin-top: 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    /* Bo góc cho cả tiêu đề và nội dung */
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.config-header {
    background-color: #f1f5f9;
    padding: 8px 15px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
}

.config-content {
    margin: 0;
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #334155;
    white-space: pre;
    /* Giữ nguyên xuống dòng */
    background-color: #fff;
}

/* Nút Copy đẹp hơn */
.copy-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.copy-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Tùy chỉnh thanh cuộn cho khung config */
.config-content::-webkit-scrollbar {
    width: 8px;
}

.config-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.config-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.config-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Hỗ trợ Dark Mode cho khung Config */
body.dark-theme .config-wrapper {
    border-color: #334155;
    background-color: #1e293b;
}

body.dark-theme .config-header {
    background-color: #334155;
    border-bottom-color: #475569;
    color: #e2e8f0;
}

body.dark-theme .config-content {
    background-color: #0f172a;
    color: #cbd5e1;
}

body.dark-theme .config-content::-webkit-scrollbar-track {
    background: #1e293b;
}

body.dark-theme .config-content::-webkit-scrollbar-thumb {
    background: #475569;
}

/* ================================================= */
/* --- CẤU HÌNH RIÊNG CHO ĐIỆN THOẠI (MOBILE) --- */
/* ================================================= */
@media (max-width: 768px) {


    /* Thu nhỏ kích thước logo dài trên điện thoại */
    .logo-icon {
        height: 50px !important;
        width: auto !important;
        max-width: 250px;
        /* Ngăn logo không bị tràn màn hình */
    }

    .logo-text {
        font-size: 0.9rem;
        /* Giảm cỡ chữ tên miền xuống */
        margin-left: 8px;
        display: block;
        /* Cho xuống dòng nếu cần, hoặc để inline-block */
    }

    /* 2. Thu nhỏ Tiêu đề trang khổng lồ */
    .page-header {
        margin-top: 20px;
        /* Giảm khoảng cách trần */
    }

    .page-header h1 {
        font-size: 1.8rem;
        /* Giảm từ 2.8rem xuống 1.8rem */
        line-height: 1.3;
        padding: 0 10px;
    }

    .page-header p {
        font-size: 1rem;
    }

    /* 3. Tinh chỉnh lại Menu nút bấm trên điện thoại */
    .nav-content {
        padding: 0 10px;
        flex-wrap: wrap;
        /* Cho phép rớt dòng nếu thiếu chỗ */
    }

    .nav-actions {
        gap: 5px;
        /* Giảm khoảng cách giữa các nút */
    }


    /* Nút bấm nhỏ lại để xếp vừa hàng trên điện thoại */
    .btn-action {
        padding: 5px 8px;
        /* Giảm độ dày nút */
        font-size: 0.7rem;
        /* Giảm cỡ chữ nút */
        margin-bottom: 2px;
        /* Thêm khoảng cách nếu bị rớt dòng */
    }

    .nav-actions {
        gap: 3px;
        /* Giảm khoảng cách giữa các nút */
        justify-content: center;
        /* Căn giữa các nút */
    }
}

/* --- CSS CHO VIDEO GOOGLE DRIVE --- */

.img-wrapper iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    /* Giữ tỷ lệ vàng, không bị đen 2 đầu */
    border: none;
    border-radius: 12px;
    /* Bo góc đồng bộ với Card */
    display: block;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    background-color: #000;
    /* Nền đen trong lúc chờ load video */
}

@media (max-width: 768px) {

    nav {
        height: auto !important;
    }

    /* Đổi bố cục thanh Nav thành cột (Logo ở trên, Nút ở dưới) */
    .nav-content {
        flex-direction: column;
        align-items: flex-start;
        position: relative;
        padding: 12px 15px 15px 15px;
    }

    .logo-link {
        margin-bottom: 15px;
    }

    /* Căn giữa các nút chức năng */
    .nav-actions {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .logo-icon {
        width: 35px;
        height: 35px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .btn-action {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
}

@media (max-width: 768px) {
    .content-grid {
        display: flex !important;
        flex-direction: column !important;
    }

    .img-wrapper {
        order: -1 !important;
    }

    .img-wrapper iframe {
        aspect-ratio: 16 / 9 !important;
        height: auto !important;
    }

    .video-link-btn {
        width: 100%;

        justify-content: center;
    }
}

html {
    height: 100%;

}

body {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;

}

.container {

    flex-grow: 1 !important;
    flex-shrink: 0 !important;
}

footer {

    flex-shrink: 0 !important;
    margin-top: 20px !important;
}

@media (min-width: 769px) {
    nav {
        box-shadow: none !important;

        border-bottom: none !important;
    }

    .sticky-menu-wrapper {
        top: 69px !important;

        background-color: white !important;

        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08) !important;

        border-top: none !important;
    }


    body.dark-theme .sticky-menu-wrapper {
        background-color: #303947 !important;
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5) !important;
    }
}


.email-link {
    color: #facc15;
    text-decoration: none;

    transition: text-decoration 0.3s ease;

}

.email-link:hover {
    text-decoration: underline;
}

.quick-links ul li a {
    text-decoration: none;
}

.quick-links ul li a:hover {
    text-decoration: underline;
}

.mobile-menu-btn {
    display: none;
    width: 90%;
    margin: 0 auto;
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background 0.3s;
}

.mobile-menu-btn i {
    margin-right: 8px;
}


@media (max-width: 768px) {

    .mobile-menu-btn {
        display: block;
    }

    .sticky-menu-wrapper {
        padding: 10px 0 !important;
        position: sticky;
    }

    .in-page-nav {
        display: none;

        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(241, 245, 249, 0.98);
        backdrop-filter: blur(10px);

        padding: 12px;
        gap: 8px !important;

        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid var(--border);
        max-height: 65vh;
        overflow-y: auto;
        z-index: 99;
    }


    .in-page-nav.show-mobile-nav {
        display: grid !important;

        grid-template-columns: 1fr 1fr;

        justify-items: center;

        animation: fadeInDown 0.2s ease forwards;
    }

    @keyframes fadeInDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .in-page-nav a {
        width: 100%;
        text-align: center;

        padding: 10px 5px !important;

        font-size: 0.85rem;

        border-radius: 6px !important;
        border: none !important;
        box-shadow: none !important;

        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
    }

    body.dark-theme .in-page-nav {
        background-color: rgba(48, 57, 71, 0.98);
        border-bottom: 1px solid #475569;
    }
}

@media (max-width: 768px) {


    nav {
        position: relative !important;
    }

    .sticky-menu-wrapper {
        top: 0 !important;
        z-index: 100 !important;

    }
}

@media (max-width: 768px) {

    nav {
        position: sticky !important;
        top: 0 !important;
        z-index: 100 !important;
    }

    .sticky-menu-wrapper {
        position: sticky !important;
        top: 125px !important;
        z-index: 99 !important;
    }
}

.img-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.img-group img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    cursor: zoom-in;
    transition: 0.3s;

    border: 1px solid var(--border);
}

.img-group img:hover {
    opacity: 0.85;
    border-color: var(--primary);
}

.img-group img:nth-child(odd):last-child {
    grid-column: span 2;
    max-height: 350px;
    object-fit: cover;
    object-position: top;

}

@media (min-width: 769px) {
    .modal-content {
        width: 100%;
        height: 96vh;
        max-width: 96vw;
        object-fit: contain;
        background-color: transparent;
    }
}

.prev-modal,
.next-modal {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px 20px;
    margin-top: -30px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    transition: 0.3s ease;
    border-radius: 0 5px 5px 0;
    user-select: none;
    -webkit-user-select: none;
    text-decoration: none;
    z-index: 10000;
}


.next-modal {
    right: 15px;
    border-radius: 5px 0 0 5px;
}

.prev-modal {
    left: 15px;
}


.prev-modal:hover,
.next-modal:hover {
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--primary);
}


@media (max-width: 768px) {

    .prev-modal,
    .next-modal {
        font-size: 25px;
        padding: 10px 15px;


        top: 65%;
    }
}


.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto 15px auto;
    padding: 0 20px;
}

.search-container input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    background-color: white;
    color: var(--dark);
}

.search-container input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(51, 206, 253, 0.4);
}

.search-icon {
    position: absolute;
    left: 35px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    margin-top: 8px;
    list-style: none;
    padding: 0;
    max-height: 350px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-suggestions li {
    padding: 12px 15px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background 0.2s;
    text-align: left;
}

.search-suggestions li:last-child {
    border-bottom: none;
}

.search-suggestions li:hover {
    background-color: #f8fafc;
}

.search-suggestions li strong {
    color: var(--primary);
    font-size: 1rem;
    display: block;
}

.search-suggestions li small {
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 4px;
    display: block;
}


body.dark-theme .search-container input {
    background-color: #1e293b;
    border-color: #475569;
    color: #cbd5e1;
}

body.dark-theme .search-suggestions {
    background-color: #1e293b;
    border-color: #475569;
}

body.dark-theme .search-suggestions li {
    border-bottom-color: #334155;
}

body.dark-theme .search-suggestions li:hover {
    background-color: #334155;
}

body.dark-theme .search-suggestions li small {
    color: #94a3b8;
}


.search-suggestions::-webkit-scrollbar {
    width: 6px;
}

.search-suggestions::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 10px;
}


.search-action-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    max-width: 650px;
    margin: 0 auto 15px auto;
    padding: 0 20px;
}


.search-action-row .search-container {
    flex: 1;
    margin: 0;
    padding: 0;
}

.list-menu-btn {
    display: flex !important;

    align-items: center;
    justify-content: center;
    width: 46px !important;
    height: 46px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;

    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(51, 206, 253, 0.3);
    margin: 0 !important;
}

.list-menu-btn:hover {
    transform: scale(1.05);
    background-color: var(--secondary);
}


.search-suggestions {
    width: calc(100% - 40px);

}

.in-page-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100% !important;
    max-width: 850px !important;

    background-color: rgba(241, 245, 249, 0.98);
    backdrop-filter: blur(10px);
    padding: 20px !important;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);

    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    z-index: 99;
}

.in-page-nav.show-mobile-nav {

    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    animation: fadeInDown 0.2s ease forwards;
}

.in-page-nav a {

    border-radius: 6px !important;
    width: 100% !important;

    padding: 12px 10px !important;


    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 !important;
}

body.dark-theme .in-page-nav {
    background-color: rgba(30, 41, 59, 0.98) !important;
    border-color: #334155 !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5) !important;
}

body.dark-theme .in-page-nav a {
    background-color: #334155 !important;
    color: #cbd5e1 !important;
}

body.dark-theme .in-page-nav a:hover {
    background-color: #475569 !important;
    color: white !important;
}

body.dark-theme .in-page-nav a.active-nav {
    background-color: var(--primary) !important;
    color: white !important;
}

.search-container input {
    padding-left: 45px !important;
}


.search-icon {
    left: 18px !important;
}


/* 1. Áp dụng cho Menu danh mục (Giao Diện, Đánh Quái, Úp Đệ...) */
.in-page-nav a:hover {
    background-color: #facc15 !important;
    /* Màu nền xanh nhạt chuẩn */
    color: #ffffff !important;
    transform: translateX(5px);
    transition: all 0.3s ease !important;
    border-radius: 6px;
}

/* Kèm theo màu xanh cho tab đang được chọn (Active) */
.in-page-nav a.active {
    background-color: #facc15 !important;
    /* Xanh đậm hơn 1 chút cho tab đang xem */
    color: white !important;
    border-left: 4px solid #fff;
}

/* ================================================= */
/* --- 3 NÚT MXH BÊN TRÊN (TRONG SUỐT -> XANH NHẠT) -- */
/* ================================================= */

/* 1. Trạng thái bình thường: Trong suốt */
.nav-actions .btn-action {
    background-color: transparent !important;
    background-image: none !important;
    border: 1px solid transparent !important;
    box-shadow: none !important;
    color: var(--dark) !important;
    transition: all 0.3s ease !important;
}

/* Màu chữ chế độ Tối */
body.dark-theme .nav-actions .btn-action {
    color: #cbd5e1 !important;
}

/* Ẩn vệt sáng */
.nav-actions .btn-action::before {
    display: none !important;
}

/* 2. Trạng thái Hover: Nền XANH NHẠT, chữ trắng, phát sáng */
.nav-actions .btn-action:hover,
body.dark-theme .nav-actions .btn-action:hover {
    background-color: var(--primary) !important;
    /* Lấy màu xanh nhạt chủ đạo của web */
    border-color: var(--primary) !important;
    color: #ffffff !important;
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 4px 15px rgba(51, 206, 253, 0.5) !important;
    /* Phát sáng hào quang xanh nhạt */
    border-radius: 6px;
}

/* ================================================= */
/* --- ĐỒNG BỘ HIỆU ỨNG TÀNG HÌNH CHO MENU XỔ XUỐNG --- */
/* ================================================= */

/* 1. Trạng thái bình thường: Xóa nền xám, làm trong suốt tiệp với menu */
.in-page-nav a,
body.dark-theme .in-page-nav a {
    background-color: transparent !important;
    border: 1px solid transparent !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
}

/* Đảm bảo chữ màu xám sáng cho dễ đọc trên nền tối */
body.dark-theme .in-page-nav a {
    color: #cbd5e1 !important;
}

/* 2. Trạng thái Hover: Phát sáng Xanh Nhạt, nảy nhẹ lên giống hệt 3 nút MXH */
.in-page-nav a:hover,
body.dark-theme .in-page-nav a:hover {
    background-color: var(--primary) !important;
    /* Màu xanh nhạt chủ đạo */
    color: #ffffff !important;
    transform: translateY(-2px) scale(1.03) !important;
    /* Nảy nhẹ và to ra 3% */
    box-shadow: 0 4px 15px rgba(51, 206, 253, 0.4) !important;
    /* Tỏa hào quang */
    border-radius: 6px !important;
}

/* 3. Trạng thái Tab đang chọn (Active): Giữ màu xanh sáng để đánh dấu */
.in-page-nav a.active-nav,
body.dark-theme .in-page-nav a.active-nav {
    background-color: #2cb2db !important;
    /* Xanh đậm hơn 1 chút xíu */
    color: white !important;
    transform: none !important;
    /* Đứng im không nảy */
    box-shadow: 0 2px 10px rgba(51, 206, 253, 0.3) !important;
}


/* 1. Canh chỉnh vị trí icon và khoảng cách với chữ */
.in-page-nav a i {
    margin-right: 12px;
    /* Tạo khoảng cách giữa icon và chữ */
    font-size: 1.05rem;
    /* Chỉnh icon to bằng chữ 1 chút */
    width: 20px;
    /* Cố định độ rộng icon để chữ nằm thẳng hàng */
    text-align: center;
    /* Căn giữa icon trong ô cố định đó */

    /* 2. Tạo màu Xanh Cyan phát sáng mặc định cho icon cho ngầu */
    color: #33cefd;
    /* Màu xanh cyan sáng */
    text-shadow: 0 0 5px rgba(51, 206, 253, 0.7);
    /* Hiệu ứng phát sáng hào quang xanh */

    transition: all 0.2s ease;
    /* Làm mượt hiệu ứng đổi màu khi hover */
}

/* 3. Hiệu ứng Hover: Khi rê chuột vào, cả chữ và icon đổi sang màu trắng */
.in-page-nav a:hover i,
body.dark-theme .in-page-nav a:hover i {
    color: #ffffff !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    /* Phát sáng trắng */
    transform: scale(1.1);
    /* Phóng to icon 1 chút khi hover */
}

/* 4. Trạng thái Tab đang chọn (Active): Giữ icon màu trắng */
.in-page-nav a.active-nav i,
body.dark-theme .in-page-nav a.active-nav i {
    color: #ffffff !important;
    text-shadow: none;
}

@media (max-width: 768px) {

    /* 1. Ép thanh Nav chứa Logo và Nút nằm ngang (Row) */
    .nav-content {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 10px 10px !important;
        /* Chỉnh lại lề cho gọn */
    }

    /* Bỏ lề dưới thừa của logo */
    .logo-link {
        margin-bottom: 0 !important;
    }

    /* Thu nhỏ logo lại một chút xíu để nhường chỗ cho 3 nút */
    .logo-icon {
        height: 35px !important;
        width: auto !important;
    }

    /* 2. Ép 3 nút mạng xã hội sát vào nhau ở bên phải */
    .nav-actions {
        width: auto !important;
        justify-content: flex-end !important;
        gap: 5px !important;
        /* Rút gọn khoảng cách giữa các nút */
    }

    /* Thu hẹp viền nút và giảm cỡ chữ để vừa khít màn hình nhỏ */
    .nav-actions .btn-action {
        font-size: 0.65rem !important;
        /* Chữ nhỏ lại để không rớt dòng */
        padding: 5px 6px !important;
    }

    .nav-actions .btn-action i {
        margin-right: 3px !important;
        /* Thu hẹp khoảng cách giữa icon và chữ */
    }
}

/* ================================================= */
/* --- FIX KHOẢNG TRỐNG VÀ DÀN HÀNG NGANG MOBILE --- */
/* ================================================= */
@media (max-width: 768px) {

    /* 1. Chốt cứng chiều cao thanh Nav trên cùng cho mỏng gọn */
    nav {
        position: sticky !important;
        top: 0 !important;
        z-index: 100 !important;
        height: 60px !important;
        /* Chiều cao cố định 60px */
    }

    /* 2. Dàn hàng ngang Logo và 3 nút MXH */
    .nav-content {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 10px !important;
        height: 100%;
    }

    /* Căn chỉnh Logo */
    .logo-link {
        margin-bottom: 0 !important;
    }

    .logo-icon {
        height: 35px !important;
        width: auto !important;
    }

    /* Căn chỉnh 3 nút MXH (Thu nhỏ chữ & padding để không bị rớt dòng) */
    .nav-actions {
        width: auto !important;
        justify-content: flex-end !important;
        gap: 4px !important;
    }

    .nav-actions .btn-action {
        font-size: 0.65rem !important;
        padding: 6px 6px !important;
    }

    .nav-actions .btn-action i {
        margin-right: 3px !important;
        font-size: 0.8rem !important;
    }

    .sticky-menu-wrapper {
        position: sticky !important;
        top: 60px !important;
        /* Dính đúng vào mép dưới của nav (60px) */
        z-index: 99 !important;
    }
}

/* Nền web: Màu vũ trụ tối kèm hiệu ứng tinh vân */
body.dark-theme {
    background-color: #0b0f19 !important;
    background-image: radial-gradient(circle at 50% 0%, #1e1b4b 0%, #0b0f19 80%) !important;
    color: #e2e8f0;
}

/* Thanh Menu trên cùng: Đen nhám + Viền vàng phát sáng */
body.dark-theme nav {
    background-color: rgba(15, 23, 42, 0.95) !important;
    border-bottom: 1px solid rgba(250, 204, 21, 0.5) !important;
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.2) !important;
}

/* Các khối nội dung (Card): Đóng khung hào quang Super Saiyan */
body.dark-theme .card {
    background-color: rgba(30, 41, 59, 0.6) !important;
    border: 1px solid rgba(250, 204, 21, 0.3) !important;
    box-shadow: 0 0 25px rgba(250, 204, 21, 0.15) !important;
    backdrop-filter: blur(5px);
}

/* Tiêu đề từng mục: Màu Cam võ phục Goku + Gạch chân vàng */
body.dark-theme .section-title {
    color: var(--secondary) !important;
    text-shadow: 0 0 10px rgba(249, 115, 22, 0.4);
    border-bottom: 2px solid var(--primary) !important;
}

/* Khung Code (Pre): Tối màu hơn để làm nổi bật chữ */
body.dark-theme .config-content {
    background-color: #020617 !important;
    border: 1px solid #1e293b !important;
    color: #38bdf8 !important;
    /* Chữ code màu xanh ngọc rồng */
}

/* ================================================= */
/* --- FIX LỖI VỆT ĐEN CỦA THANH TÌM KIẾM --- */
/* ================================================= */
body.dark-theme .sticky-menu-wrapper {
    background-color: rgba(11, 15, 25, 0.7) !important;
    /* Nền vũ trụ trong suốt 70% */
    backdrop-filter: blur(10px) !important;
    /* Hiệu ứng kính mờ cực đẹp */
    border-bottom: 1px solid rgba(250, 204, 21, 0.3) !important;
    /* Viền dưới màu vàng Super Saiyan nhẹ */
    border-top: none !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5) !important;
    /* Đổ bóng cho nổi bật */
}

/* ================================================= */
/* --- VÉT SẠCH MÀU XANH CŨ - ĐỒNG BỘ 100% NGỌC RỒNG --- */
/* ================================================= */

/* 1. Sửa lỗi nền vũ trụ bị hụt/đứt đoạn khi cuộn trang web dài */
body.dark-theme {
    background-attachment: fixed !important;
    /* Đóng đinh hình nền đứng im khi cuộn chuột */
    background-size: cover !important;
    /* Ép hình nền trải kín 100% màn hình */
    background-repeat: no-repeat !important;
}

/* 2. Đổi màu nút Menu đang chọn (VD: Đánh Quái) từ Xanh sang Cam Goku */
.in-page-nav a.active-nav,
body.dark-theme .in-page-nav a.active-nav {
    background-color: var(--secondary) !important;
    /* Nền màu Cam */
    border-color: var(--secondary) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4) !important;
    /* Hào quang cam */
}

/* 3. Đổi màu hào quang khi rê chuột vào Menu từ Xanh sang Vàng Saiyan */
.in-page-nav a:hover,
body.dark-theme .in-page-nav a:hover {
    background-color: var(--primary) !important;
    /* Nền Vàng Saiyan */
    color: #0f172a !important;
    /* Chữ chuyển sang màu đen/tối để dễ đọc trên nền vàng */
    box-shadow: 0 4px 15px rgba(250, 204, 21, 0.5) !important;
}

/* 4. Đổi luôn màu các Icon nhỏ (Máy tính, Nắm đấm...) sang Vàng Saiyan */
.in-page-nav a i {
    color: var(--primary) !important;
    text-shadow: 0 0 5px rgba(250, 204, 21, 0.6) !important;
}

/* Khi rê chuột vào thì icon cũng chuyển thành màu đen cho tệp với chữ */
.in-page-nav a:hover i,
body.dark-theme .in-page-nav a:hover i {
    color: #0f172a !important;
    text-shadow: none !important;
}

/* ================================================= */
/* --- FIX LỖI TRÀN VIỀN & ĐỊNH DẠNG MỤC SỰ KIỆN --- */
/* ================================================= */

/* 1. Ngăn khung Copy (Code) chữ quá dài làm phình to màn hình */
.config-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.config-content {
    white-space: pre-wrap !important;
    /* Bắt buộc chữ quá dài phải tự xuống dòng */
    overflow-wrap: break-word !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    /* Khóa lỗi cuộn ngang */
}

/* 2. Đảm bảo toàn bộ khung nội dung không bị lố viền */
.card {
    box-sizing: border-box !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

/* 3. Sắp xếp lại: Chữ Hướng Dẫn nằm TRÊN, Ảnh nằm DƯỚI (Dành riêng cho Điện Thoại) */
@media (max-width: 768px) {
    .card {
        padding: 15px !important;
        /* Thu gọn lề 2 bên cho điện thoại thoáng hơn */
    }

    .content-grid {
        display: flex !important;
        flex-direction: column !important;
    }

    .text-content {
        order: 1 !important;
        /* Kéo nội dung chữ và khung Copy lên đầu */
    }

    .img-wrapper {
        order: 2 !important;
        /* Đẩy dàn ảnh xuống phía dưới chữ */
        margin-top: 15px !important;
    }
}

/* ================================================= */
/* --- FIX TOÀN DIỆN MENU & TOP BAR TRÊN MOBILE --- */
/* ================================================= */
@media (max-width: 768px) {

    /* 1. Thanh MXH trên cùng: Ẩn chữ, biến thành nút Icon tròn cho cực gọn và sang */
    .nav-actions {
        gap: 12px !important;
        padding-right: 5px !important;
    }

    .nav-actions .btn-action {
        font-size: 0 !important;
        /* Ẩn chữ để tiết kiệm diện tích */
        padding: 0 !important;
        width: 35px !important;
        height: 35px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        /* Biến thành nút tròn */
    }

    .nav-actions .btn-action i {
        font-size: 1.2rem !important;
        /* Phóng to Icon lên cho dễ bấm */
        margin: 0 !important;
    }

    /* 2. Fix Dropdown Menu: Canh lề và tạo khung nút rõ ràng */
    .in-page-nav {
        left: 0 !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px 10px !important;
        border-radius: 0 0 15px 15px !important;
        /* Bo tròn mượt mà ở 2 góc dưới */
    }

    /* Ép Lưới 2 cột đều tăm tắp */
    .in-page-nav.show-mobile-nav {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    /* Định dạng từng ô Menu: Thêm nền tối, viền vàng và canh TRÁI */
    .in-page-nav a,
    body.dark-theme .in-page-nav a {
        background-color: rgba(30, 41, 59, 0.7) !important;
        /* Nền xám mờ cho từng nút */
        border: 1px solid rgba(250, 204, 21, 0.2) !important;
        /* Viền vàng Saiyan nhạt */
        justify-content: flex-start !important;
        /* Ép toàn bộ icon và chữ canh TRÁI */
        padding: 12px 10px !important;
        border-radius: 8px !important;
        font-size: 0.85rem !important;
    }

    /* Cố định chiều rộng của Icon để hàng chữ bên cạnh thẳng tắp từ trên xuống */
    .in-page-nav a i {
        margin-right: 10px !important;
        width: 22px !important;
        text-align: center !important;
    }

    /* Tab đang chọn (Màu Cam) */
    .in-page-nav a.active-nav,
    body.dark-theme .in-page-nav a.active-nav {
        background-color: var(--secondary) !important;
        border-color: var(--secondary) !important;
        color: white !important;
    }
}

/* ================================================= */
/* --- ĐỒNG BỘ POPUP THÔNG BÁO THEO THEME NGỌC RỒNG --- */
/* ================================================= */

/* 1. Đổi nền Popup thành vũ trụ, viền Vàng phát sáng */
body.dark-theme .vps-modal-content {
    background-color: rgba(15, 23, 42, 0.95) !important;
    /* Nền xanh đen vũ trụ */
    border: 2px solid rgba(250, 204, 21, 0.6) !important;
    /* Viền vàng Super Saiyan */
    box-shadow: 0 0 30px rgba(250, 204, 21, 0.25) !important;
    /* Tỏa hào quang vàng */
    backdrop-filter: blur(8px) !important;
    color: #e2e8f0 !important;
    border-radius: 12px !important;
}

/* 2. Tiêu đề "Thông Báo Mới": Chữ Cam Goku, gạch chân vàng */
body.dark-theme .welcome-modal-content h2 {
    color: var(--secondary) !important;
    /* Chữ màu Cam Goku */
    text-shadow: 0 0 10px rgba(249, 115, 22, 0.5) !important;
    border-bottom: 2px dashed rgba(250, 204, 21, 0.4) !important;
    padding-bottom: 12px !important;
}

/* 3. Chữ nội dung và đổi màu dấu chấm tròn sang Vàng */
body.dark-theme .welcome-modal-content p,
body.dark-theme .welcome-modal-content ul {
    color: #cbd5e1 !important;
    /* Chữ xám sáng dễ đọc */
}

body.dark-theme .welcome-modal-content ul li {
    margin-bottom: 10px !important;
}

body.dark-theme .welcome-modal-content ul li::marker {
    color: var(--primary) !important;
    /* Chấm đầu dòng màu Vàng */
}

/* 4. Nút "Đã Hiểu": Xóa gradient xanh cũ, đổi sang Cam Goku, hover vàng chói */
body.dark-theme .welcome-modal-content .btn-action {
    background-image: none !important;
    /* QUAN TRỌNG: Tắt cái dải màu xanh cũ đi */
    background-color: var(--secondary) !important;
    /* Đổ màu Cam Goku */
    border: 1px solid var(--primary) !important;
    color: white !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4) !important;
}

body.dark-theme .welcome-modal-content .btn-action:hover {
    background-image: none !important;
    /* Tắt gradient xanh lúc di chuột */
    background-color: var(--primary) !important;
    /* Hover sang vàng Super Saiyan */
    border-color: white !important;
    color: #0f172a !important;
    /* Chữ đen cho nổi */
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.6) !important;
}

/* 5. Nút X đóng bảng thông báo */
body.dark-theme .vps-close-btn {
    color: var(--primary) !important;
    opacity: 0.8 !important;
    transition: 0.3s ease !important;
}

body.dark-theme .vps-close-btn:hover {
    color: white !important;
    opacity: 1 !important;
    transform: scale(1.2) !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8) !important;
}
.btn-telegram {
    display: inline-block;
    background-color: #dec224; /* Màu xanh chuẩn của Telegram */
    color: #ffffff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    margin: 10px 0;
    transition: background-color 0.3s ease;
}

.btn-telegram:hover {
    background-color: #d1881b; /* Màu đậm hơn khi di chuột qua */
    color: #ffffff;
}
