/* ========================================= */
/* 1. BIẾN CSS & CÀI ĐẶT CHUNG               */
/* ========================================= */
:root {
    --bg-deep: #02040a;
    --tron-cyan: #00f0ff;
    --tron-cyan-dim: rgba(0, 240, 255, 0.15);
    --tron-blue: #0066ff;
    --text-main: #e0f2fe;
    --text-muted: #7dd3fc;
    --font-main: 'Be Vietnam Pro', sans-serif;
    --glow-box: 0 0 15px var(--tron-cyan-dim), inset 0 0 20px var(--tron-cyan-dim);
    --glow-text: 0 0 8px rgba(0, 240, 255, 0.8);
    --glow-active: 0 0 20px rgba(0, 240, 255, 0.5), inset 0 0 30px rgba(0, 240, 255, 0.3);
    --nav-height: 80px; 
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth; 
}

body.tron-theme {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-main);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: clip; 
}

/* ========================================= */
/* 2. CẤU TRÚC LAYOUT 2 CỘT                  */
/* ========================================= */
.app-layout {
    display: flex; max-width: 1600px; margin: 0 auto;
    padding: 20px 3%; gap: 50px; align-items: flex-start;
}

.right-column {
    flex: 1; display: flex; flex-direction: column;
    gap: 30px; min-width: 0;
}

.mobile-service-bar { display: none; }
.mobile-only { display: none !important; }

/* ========================================= */
/* 3. ĐỊNH DẠNG CỘT TRÁI (HIỆU ỨNG TAN BIẾN) */
/* ========================================= */
.panel-left {
    width: 320px; flex-shrink: 0; height: 100vh;
    position: sticky; top: 0; overflow-y: auto;
    padding: var(--nav-height) 25px 80px 25px; 
    
    background: linear-gradient(to bottom, 
        transparent 0%, rgba(0, 20, 40, 0.95) 20%, 
        rgba(0, 20, 40, 0.95) 80%, transparent 100%);
    
    backdrop-filter: blur(5px); border-radius: 4px;

    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

.panel-left::-webkit-scrollbar { width: 0px; }

@media (min-width: 769px) {
    .panel-left {
        transform-style: preserve-3d;
        transform-origin: right center;
        transform: perspective(2000px) rotateY(30deg);
        
        border-top: none !important; border-bottom: none !important;
        border-left: 2px solid; border-right: 2px solid;
        border-image: linear-gradient(to bottom, transparent 0%, var(--tron-cyan) 50%, transparent 100%) 1;
        box-shadow: -4px 0 15px var(--tron-cyan-dim), -20px 0 40px rgba(0, 0, 0, 0.7) !important;
        transition: box-shadow 0.4s ease;
    }
    .panel-left:hover { box-shadow: -6px 0 25px var(--tron-cyan-dim), -15px 0 30px rgba(0, 0, 0, 0.9) !important; }
}

/* KHU VỰC MENU CỘT TRÁI */
.panel-title { font-weight: 600; color: var(--tron-cyan); font-size: 1.1rem; letter-spacing: 1px; }
.glow-line { height: 1px; background: var(--tron-cyan); box-shadow: 0 0 5px var(--tron-cyan); margin: 15px 0 25px 0; }
.service-category { margin-bottom: 12px; }

/* NÚT BẤM CÓ MŨI TÊN */
.category-btn {
    width: 100%; background: rgba(0, 102, 255, 0.1); border: 1px solid rgba(0, 240, 255, 0.2);
    color: #fff; padding: 15px 45px 15px 15px; text-align: left; font-family: var(--font-main); font-weight: 600;
    font-size: 1rem; cursor: pointer; transition: all 0.3s ease; border-radius: 2px;
    position: relative; display: flex; justify-content: space-between; align-items: center;
}
.category-btn:hover, .category-btn.active { background: rgba(0, 240, 255, 0.15); border-color: var(--tron-cyan); box-shadow: var(--glow-active); transform: translateX(5px); }

/* Mũi tên xoay */
.category-btn::after {
    content: ''; width: 8px; height: 8px;
    border-right: 2px solid var(--tron-cyan); border-bottom: 2px solid var(--tron-cyan);
    position: absolute; right: 20px; top: 45%;
    transform: translateY(-50%) rotate(45deg);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); opacity: 0.6;
}
.category-btn.active::after {
    transform: translateY(-20%) rotate(-135deg);
    opacity: 1; filter: drop-shadow(0 0 5px var(--tron-cyan));
}

/* CSS ANIMATION MENU CON */
.sub-services { 
    max-height: 0; overflow: hidden; padding: 0 0 0 15px; 
    margin-left: 10px; margin-top: 0; margin-bottom: 0; 
    border-left: 1px solid rgba(0, 240, 255, 0.3); 
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s cubic-bezier(0.4, 0, 0.2, 1), margin 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
    opacity: 0;
}
.sub-services.open { padding: 5px 0 5px 15px; margin-top: 8px; margin-bottom: 20px; opacity: 1; }
.sub-item { padding: 12px 15px; cursor: pointer; font-weight: 300; font-size: 0.95rem; color: var(--text-muted); transition: 0.2s; position: relative; }
.sub-item::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 0; height: 2px; background: var(--tron-cyan); transition: 0.3s; }
.sub-item:hover, .sub-item.active { color: #fff; text-shadow: var(--glow-text); padding-left: 25px; }
.sub-item:hover::before, .sub-item.active::before { width: 15px; box-shadow: 0 0 5px var(--tron-cyan); }

/* ========================================= */
/* 4. ĐỊNH DẠNG CỘT PHẢI                     */
/* ========================================= */
.cyber-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; border-bottom: 2px solid var(--tron-cyan); position: relative; z-index: 999; }
.logo { display: flex; align-items: center; gap: 15px; }
.logo img { height: 45px; width: auto; object-fit: contain; }
.logo h1 { margin: 0; font-weight: 800; color: #fff; letter-spacing: 3px; text-shadow: var(--glow-text); }
.blink { animation: blinker 1s step-end infinite; }

.top-nav a { color: var(--text-muted); text-decoration: none; margin-left: 25px; font-size: 1rem; font-weight: 600; text-transform: uppercase; transition: all 0.3s ease; padding: 5px 10px; border-radius: 4px; }
.top-nav a:hover, .top-nav a.active { color: #fff; background: var(--tron-cyan-dim); text-shadow: var(--glow-text); box-shadow: 0 0 10px var(--tron-cyan-dim); }

.panel-right { background: rgba(0, 5, 15, 0.8); backdrop-filter: blur(10px); border: 1px solid rgba(0, 240, 255, 0.4); padding: 40px; position: relative; box-shadow: 0 0 30px rgba(0, 240, 255, 0.1), inset 0 0 50px rgba(0, 0, 0, 0.8); min-height: 500px; }
.corner-tl, .corner-tr, .corner-bl, .corner-br { position: absolute; width: 20px; height: 20px; border: 2px solid var(--tron-cyan); }
.corner-tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.corner-tr { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.corner-bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.corner-br { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.welcome-screen { text-align: center; padding: 100px 0; }
.icon-pulse { width: 60px; height: 60px; border: 2px solid var(--tron-cyan); border-radius: 50%; margin: 0 auto 20px; box-shadow: 0 0 20px var(--tron-cyan); animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7); } 70% { transform: scale(1); box-shadow: 0 0 0 20px rgba(0, 240, 255, 0); } 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); } }

/* ========================================= */
/* 5. FOOTER & BẢN ĐỒ                        */
/* ========================================= */
.tron-footer { border-top: 2px solid var(--tron-cyan); padding-top: 30px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.footer-info h3 { color: #fff; font-weight: 800; letter-spacing: 2px; text-shadow: var(--glow-text); margin-bottom: 10px; }
.glow-line-short { width: 60px; height: 2px; background: var(--tron-cyan); box-shadow: 0 0 10px var(--tron-cyan); margin-bottom: 20px; }
.footer-info p { color: var(--text-muted); font-weight: 300; margin-bottom: 8px; font-size: 0.95rem; }
.social-links { margin-top: 25px; }
.social-links a { color: var(--tron-cyan); text-decoration: none; margin-right: 20px; font-weight: 600; }

/* LIÊN KẾT EMAIL VÀ HOTLINE */
.contact-link {
    color: var(--tron-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-link:hover {
    color: #fff;
    text-shadow: var(--glow-text);
    transform: translateY(-2px);
}

.map-container { width: 100%; height: 360px; border: 1px solid var(--tron-cyan); box-shadow: inset 0 0 20px var(--tron-cyan-dim); position: relative; overflow: hidden; }
.map-container iframe { width: 100%; height: 100%; display: block; filter: invert(90%) hue-rotate(180deg) brightness(0.8) contrast(1.2); }
.copyright { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px dashed rgba(0, 240, 255, 0.3); font-size: 0.85rem; color: var(--text-muted); }

/* ========================================= */
/* 6. CHI TIẾT NỘI DUNG                      */
/* ========================================= */
.detail-title { color: #fff; font-size: 2.2rem; font-weight: 800; margin-bottom: 10px; text-transform: uppercase; text-shadow: var(--glow-text); }

/* Giao diện chi phí kiểu Terminal */
.price-group { 
    display: flex; 
    flex-direction: column; 
    gap: 6px; 
    margin-bottom: 25px; 
    padding-left: 15px;
    border-left: 1px dashed rgba(0, 240, 255, 0.4); 
}

.price-line {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap; 
    gap: 10px;
    font-family: monospace; 
}

.price-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.price-value {
    color: var(--tron-cyan);
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 0 0 5px rgba(0, 240, 255, 0.3); 
}

.detail-desc { font-size: 1.1rem; font-weight: 300; line-height: 1.8; }
.service-img { max-width: 100%; margin-top: 25px; border: 1px solid var(--tron-cyan); box-shadow: var(--glow-box); display: block; border-radius: 2px; }
.tags-container { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 25px; }
.cyber-tag { font-size: 0.85rem; font-weight: 600; color: var(--text-main); background: rgba(0, 102, 255, 0.1); border: 1px solid var(--tron-blue); padding: 6px 12px; border-radius: 20px; box-shadow: 0 0 10px rgba(0, 102, 255, 0.2); display: flex; align-items: center; gap: 5px; }

.data-scan-wrapper { position: relative; width: 100%; overflow: hidden; padding: 10px 5px; }
.scan-line-anim { position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: #fff; box-shadow: 0 0 10px 3px var(--tron-cyan), 0 0 30px 10px rgba(0, 240, 255, 0.6), 0 20px 20px -10px rgba(0, 240, 255, 0.3); opacity: 0; z-index: 10; animation: moveScanLine 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.scanned-content { clip-path: inset(0 0 100% 0); animation: revealContent 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
@keyframes moveScanLine { 0% { top: 0%; opacity: 1; } 90% { top: 100%; opacity: 1; } 100% { top: 100%; opacity: 0; display: none; } }
@keyframes revealContent { 0% { clip-path: inset(0 0 100% 0); } 100% { clip-path: inset(0 0 0% 0); } }

/* ========================================= */
/* 7. POPUP ĐĂNG KÝ & UI FORM CHUYÊN NGHIỆP  */
/* ========================================= */
.cyber-btn { display: block; width: 100%; margin-top: 30px; padding: 15px 30px; background: rgba(0, 240, 255, 0.1); border: 1px solid var(--tron-cyan); color: var(--tron-cyan); font-family: var(--font-main); font-weight: 800; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 2px; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 0 10px var(--tron-cyan-dim); border-radius: 4px; position: relative; overflow: hidden; }
.cyber-btn:hover { background: var(--tron-cyan); color: #000; box-shadow: 0 0 25px var(--tron-cyan); transform: translateY(-2px); }

.cyber-modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 5, 15, 0.85); backdrop-filter: blur(8px); align-items: center; justify-content: center; }
.cyber-modal.show { display: flex; animation: fadeInModal 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes fadeInModal { from { opacity: 0; transform: scale(0.9) translateY(-20px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.modal-content { background: rgba(2, 5, 15, 0.95); border: 2px solid var(--tron-cyan); padding: 35px 40px; width: 90%; max-width: 500px; border-radius: 8px; position: relative; box-shadow: 0 0 40px var(--tron-cyan-dim), inset 0 0 20px rgba(0, 240, 255, 0.1); }
.close-btn { position: absolute; top: 15px; right: 20px; color: var(--tron-cyan); font-size: 28px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.close-btn:hover { color: #fff; text-shadow: var(--glow-text); }

/* KHU VỰC ĐỊNH DẠNG FORM & DROPDOWN MỚI */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; color: var(--tron-cyan); margin-bottom: 8px; font-size: 0.9rem; font-weight: 600; }

.form-group input, .form-group select { 
    width: 100%; 
    padding: 12px; 
    background: rgba(0, 240, 255, 0.05); 
    border: 1px solid rgba(0, 240, 255, 0.3); 
    color: #fff; 
    font-family: var(--font-main); 
    font-size: 16px; /* Cực kỳ quan trọng: Ngăn iOS Safari tự động Zoom */
    border-radius: 4px; 
    outline: none; 
    transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s; 
}

.form-group input:focus, .form-group select:focus { 
    border-color: var(--tron-cyan); 
    box-shadow: 0 0 15px var(--tron-cyan-dim); 
    background-color: rgba(0, 240, 255, 0.1); /* CHẮC CHẮN MŨI TÊN KHÔNG BỊ MẤT KHI FOCUS */
}

/* GIAO DIỆN SELECT DROPDOWN NÂNG CAO */
.form-group select {
    appearance: none;             
    -webkit-appearance: none;     
    -moz-appearance: none;        
    
    /* Tự vẽ mũi tên Cyberpunk Neon */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300f0ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
    cursor: pointer;
    padding-right: 40px;
}

/* Đảm bảo danh sách đổ xuống có nền tối và chữ màu Neon */
.form-group select option {
    background-color: var(--bg-deep);
    color: var(--tron-cyan);
    font-weight: 600;
    padding: 10px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: rgba(0, 240, 255, 0.05); border-radius: 10px; }
::-webkit-scrollbar-thumb { background: var(--tron-cyan); box-shadow: 0 0 10px var(--tron-cyan); border-radius: 10px; }

/* Xử lý khoảng đệm cho màn hình từ 1024px đến 1440px */
@media (max-width: 1440px) {
    .app-layout {
        gap: 30px; /* Giảm khoảng cách giữa 2 cột chính */
    }
    
    .top-nav a {
        margin-left: 10px; /* Giảm khoảng cách giữa các nút menu */
        font-size: 0.9rem; /* Thu nhỏ chữ một chút */
    }
    
    .logo h1 {
        font-size: 1.5rem; /* Thu nhỏ tên thương hiệu */
    }
}

/* ========================================= */
/* 8. RESPONSIVE MOBILE & TABLET (< 1024px)  */
/* ========================================= */
@media (max-width: 1024px) {
    .app-layout { flex-direction: column; padding: 0; gap: 0; width: 100%; }
    .right-column { gap: 0; width: 100%; }
    
    .cyber-header { padding: 15px 20px; background: rgba(2, 4, 10, 0.95); border-bottom: 2px solid var(--tron-cyan); position: sticky; top: 0; }
    .mobile-service-bar { display: block; padding: 15px 20px; background: rgba(0, 5, 15, 0.9); }
    
    /* Panel chính */
    .panel-right { padding: 30px 20px; min-height: auto; border: none; border-top: 1px solid rgba(0, 240, 255, 0.4); }
    
    /* Logo & Nav Burger */
    .logo img { height: 28px; }
    .logo h1 { font-size: 1.3rem; }
    
    .burger-menu { display: flex; flex-direction: column; gap: 6px; background: transparent; border: none; cursor: pointer; z-index: 1100; }
    .burger-menu span { width: 30px; height: 3px; background: var(--tron-cyan); transition: 0.3s; box-shadow: 0 0 5px var(--tron-cyan); border-radius: 2px; }
    
    /* Navigation xổ xuống */
    .top-nav { 
        position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background: rgba(2, 4, 10, 0.98); 
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        padding: 20px; z-index: 1000;
        clip-path: circle(0% at 90% 5%); /* Hiệu ứng bung hình tròn từ vị trí burger */
        transition: clip-path 0.5s ease-in-out; 
    }
    .top-nav.nav-active { clip-path: circle(150% at 90% 5%); }
    .top-nav a { 
        margin: 15px 0; font-size: 1.2rem; width: 100%; text-align: center;
        padding: 15px; border-bottom: 1px dashed rgba(0, 240, 255, 0.2); 
    }

    /* Menu điều hướng dịch vụ bên trái (Sidebar) chuyển thành Drawer */
    .panel-left { 
        position: fixed; top: 0; left: 0; transform: translateX(-100%); 
        width: 85%; max-width: 320px; height: 100dvh; z-index: 2000; 
        background: rgba(2, 5, 15, 0.98); backdrop-filter: blur(15px); 
        border: none; border-right: 2px solid var(--tron-cyan); 
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
        padding: 60px 20px 20px 20px;
        -webkit-mask-image: none; mask-image: none; 
    }
    .panel-left.open { transform: translateX(0); }
    .mobile-only { display: block !important; }
    #close-service-btn { position: absolute; top: 15px; right: 20px; background: transparent; border: none; color: var(--tron-cyan); font-size: 1rem; font-weight: bold; cursor: pointer; }
    #service-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); z-index: 1999; }
    #service-overlay.open { display: block; }

    #service-toggle-btn { width: 100%; padding: 12px; background: rgba(0, 240, 255, 0.1); border: 1px solid var(--tron-cyan); color: var(--tron-cyan); font-family: var(--font-main); font-weight: bold; font-size: 1rem; cursor: pointer; box-shadow: 0 0 10px var(--tron-cyan-dim); border-radius: 4px; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .map-container { aspect-ratio: 16 / 9; height: auto; }
}
/* ========================================= */
/* 9. GIAO DIỆN TIN TỨC & THÔNG BÁO          */
/* ========================================= */

.noti-card {
    border: 1px solid var(--tron-cyan);
    background: rgba(0, 240, 255, 0.03);
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 4px;
    box-shadow: inset 0 0 15px rgba(0, 240, 255, 0.05);
    transition: all 0.3s ease;
}

.noti-card:hover {
    background: rgba(0, 240, 255, 0.08);
    box-shadow: 0 0 15px var(--tron-cyan-dim), inset 0 0 20px rgba(0, 240, 255, 0.1);
}

.noti-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.noti-title-box h3 {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    text-shadow: var(--glow-text);
}

.noti-date {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 300;
    font-family: monospace;
}

.noti-tags {
    display: flex; gap: 8px; flex-wrap: wrap; margin-top: 5px;
}

.noti-tags span {
    font-size: 0.75rem;
    padding: 3px 8px;
    border: 1px dashed var(--tron-cyan);
    color: var(--tron-cyan);
}

.noti-img {
    width: 100%; 
    max-height: 300px;
    object-fit: cover;
    border: 1px solid rgba(0, 240, 255, 0.3);
    margin-bottom: 15px;
    border-radius: 2px;
}

/* HIỆU ỨNG CẮT 5 DÒNG CHỮ VÀ NÚT MỞ RỘNG */
/* Tìm trong .noti-text-wrapper */
/* Thuật toán cắt chữ mặc định */
.noti-text-wrapper {
    color: var(--text-main);
    line-height: 1.6;
    font-weight: 300;
    
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    line-clamp: 5; /* Thêm thuộc tính chuẩn này để hết lỗi cảnh báo */
    overflow: hidden;
    transition: all 0.4s ease;
}

/* Khi được mở rộng */
.noti-text-wrapper.expanded {
    -webkit-line-clamp: unset;
    line-clamp: unset; /* Thêm thuộc tính chuẩn này cho trạng thái mở rộng */
}

.read-more-btn {
    background: transparent;
    border: 1px dashed rgba(0, 240, 255, 0.5);
    color: var(--tron-cyan);
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 15px;
    padding: 5px 15px;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 2px;
    display: none;
}

.read-more-btn:hover {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 10px var(--tron-cyan-dim);
    text-shadow: var(--glow-text);
}

/* NÚT PHÂN TRANG (1, 2, 3...) */
.cyber-pagination {
    display: flex; justify-content: center; gap: 8px; margin-top: 40px; margin-bottom: 20px;
}

.page-btn {
    padding: 8px 15px;
    background: rgba(0, 20, 40, 0.8);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--text-main);
    font-family: monospace; font-size: 1rem;
    cursor: pointer; transition: 0.3s;
}

.page-btn:hover {
    border-color: var(--tron-cyan); box-shadow: 0 0 10px var(--tron-cyan-dim);
}

.page-btn.active {
    background: var(--tron-cyan); color: #000; font-weight: bold;
    box-shadow: 0 0 15px var(--tron-cyan); border-color: var(--tron-cyan);
}

/* ========================================= */
/* 10. ANIMATION CHUYỂN TRANG (SPA ROUTER)   */
/* ========================================= */

/* Ẩn tất cả các tab mặc định */
.route-menu, .route-content {
    display: none;
}

/* Chỉ hiển thị khi được JS cấp class 'active-route' */
.route-menu.active-route, 
.route-content.active-route {
    display: block;
}

/* --- ANIMATION 1: MENU TRÁI (Trượt ngang vào) --- */
@keyframes menuSlideIn {
    0% { opacity: 0; transform: translateX(-30px); }
    100% { opacity: 1; transform: translateX(0); }
}
.route-menu.active-route {
    animation: menuSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* --- ANIMATION 2: NỘI DUNG PHẢI (Hologram Boot-up) --- */
@keyframes hologramBoot {
    0% { 
        opacity: 0; 
        transform: scale(0.98) translateY(15px); 
        filter: blur(10px); 
    }
    60% { 
        filter: blur(2px); 
    }
    100% { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
        filter: blur(0); 
    }
}
.route-content.active-route {
    animation: hologramBoot 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ========================================= */
/* 11. HỆ THỐNG BACKGROUND ĐỘC LẬP TỰ TRÔI   */
/* ========================================= */
.parallax-bg {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; 
    pointer-events: none; 
    will-change: background-position; 
}

/* --- LỚP 1 (XA NHẤT): Trôi cực kỳ chậm --- */
@keyframes floatUpFar {
    from { background-position: 0 0; }
    to { background-position: 0 -300px; } 
}
.layer-far {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='300'%3E%3Cstyle%3E.t%7Bfill:rgba(0,240,255,0.06);font-family:monospace;font-size:14px;writing-mode:vertical-rl;text-orientation:upright;letter-spacing:4px;%7D%3C/style%3E%3Ctext class='t' x='30' y='20'%3E010110011%3C/text%3E%3Ctext class='t' x='90' y='100'%3E1001010%3C/text%3E%3Ctext class='t' x='130' y='50'%3E01101%3C/text%3E%3C/svg%3E");
    background-size: 150px 300px;
    filter: blur(3px);
    opacity: 0.6;
    animation: floatUpFar 60s linear infinite; 
}

/* --- LỚP 2 (GIỮA): Trôi tốc độ vừa phải --- */
@keyframes floatUpMid {
    from { background-position: 0 0; }
    to { background-position: 0 -400px; }
}
.layer-mid {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='400'%3E%3Cstyle%3E.t%7Bfill:rgba(0,240,255,0.08);font-family:monospace;font-size:18px;writing-mode:vertical-rl;text-orientation:upright;letter-spacing:6px;%7D%3C/style%3E%3Ctext class='t' x='80' y='50'%3E0xFA%3C/text%3E%3Ctext class='t' x='220' y='180'%3E0x01%3C/text%3E%3Ctext class='t' x='280' y='100'%3E0x9C%3C/text%3E%3C/svg%3E");
    background-size: 300px 400px;
    filter: blur(1px);
    opacity: 0.8;
    animation: floatUpMid 35s linear infinite; 
}

/* --- LỚP 3 (GẦN NHẤT): Trôi nhanh hơn --- */
@keyframes floatUpNear {
    from { background-position: 0 0; }
    to { background-position: 0 -700px; }
}
.layer-near {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='500' height='700'%3E%3Cstyle%3E.t1%7Bfill:rgba(0,240,255,0.04);font-family:monospace;font-size:32px;font-weight:bold;writing-mode:vertical-rl;text-orientation:upright;letter-spacing:10px;%7D.t2%7Bfill:rgba(0,240,255,0.03);font-family:monospace;font-size:24px;writing-mode:vertical-rl;text-orientation:upright;letter-spacing:6px;%7D%3C/style%3E%3Ctext class='t1' x='100' y='120'%3ENODE%3C/text%3E%3Ctext class='t2' x='350' y='300'%3ESYS_OK%3C/text%3E%3Ctext class='t2' x='450' y='80'%3E01%3C/text%3E%3C/svg%3E");
    background-size: 500px 700px;
    filter: blur(0px);
    opacity: 1;
    animation: floatUpNear 20s linear infinite; 
}