:root {
    --bg-deep: #f0fdfa; 
    --bg-card: rgba(255, 255, 255, 0.95); 
    --border-tech: rgba(8, 145, 178, 0.3); 
    --primary-neon: #0891b2; 
    --text-glow: #083344; 
    --text-dim: #334155; 
}

html, body {
    min-height: 100%; margin: 0; padding: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text-glow);
    background-color: var(--bg-deep);
    overflow-x: hidden;
}

body {
    background-image:
        linear-gradient(rgba(8, 145, 178, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(8, 145, 178, 0.015) 1px, transparent 1px),
        linear-gradient(rgba(8, 145, 178, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(8, 145, 178, 0.015) 1px, transparent 1px);
    background-size: 100px 100px, 100px 100px, 200px 200px, 200px 200px;
    background-attachment: fixed;
    padding-bottom: 90px !important; /* Tạo khoảng trống đáy cho thanh quảng cáo fixed */
}
#hero-canvas { display: none; }

/* =========================================
   GRID LAYOUT CHÍNH
   ========================================= */
.smart-layout-wrapper { display: grid; grid-template-columns: 320px 1fr; grid-template-rows: auto auto auto auto auto; gap: 2px; max-width: 1400px; margin: 00px auto; padding: 0 20px; position: relative; z-index: 10; }
.grid-panel { background: var(--bg-card); backdrop-filter: blur(12px); border: 1px solid var(--border-tech); border-radius: 6px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04); padding: 25px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.grid-panel:hover { box-shadow: 0 10px 40px rgba(0, 195, 255, 0.1); }

.panel-logo { grid-column: 1 / 2; grid-row: 1 / 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; position: relative; padding-top: 5px; padding-bottom: 20px;}
.panel-title { grid-column: 2 / 3; grid-row: 1 / 2; background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%); display: flex; align-items: center; justify-content: center; border: 1px solid #bae6fd; min-height: 250px;}
.panel-menu { grid-column: 2 / 3; grid-row: 2 / 2; padding: 10px; display: flex; align-items: center; justify-content: center; z-index: 9999; max-height: 55px; position: relative; overflow: visible !important; }
.panel-merged { grid-column: 1 / 3; grid-row: 3 / 5; display: flex; gap: 30px; align-items: stretch; padding: 30px; }
.intro-half { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; }

/* CHUẨN TỈ LỆ 3:2 CAROUSEL */
.slideshow-half { 
    flex: 1; 
    position: relative; 
    aspect-ratio: 3 / 2; 
    height: auto; 
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: 0 6px 20px rgba(0,0,0,0.08); 
    border: 1px solid #e2e8f0; 
}

.panel-footer { grid-column: 1 / 3; grid-row: 5 / 6; padding: 10px; text-align: center; background: rgba(248, 250, 252, 0.9); }
.panel-ads { grid-column: 1 / 3; grid-row: 6 / 7; padding: 5px; display: flex; align-items: center; overflow: hidden; }

/* TYPOGRAPHY LOGO & TIÊU ĐỀ */
.logo-icon-wrapper { width: 120px; height: 120px; background: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; margin-bottom: 15px; box-shadow: 0 10px 25px rgba(29, 78, 216, 0.3); }
.logo-text { font-family: 'Montserrat', sans-serif; font-weight: 900; color: #1e293b; letter-spacing: 1px; margin: 0; font-size: 1.8rem; }
.version-text-sub { color: #64748b; font-family: 'Roboto Mono', monospace; font-size: 0.9rem; margin-top: 5px; margin-bottom: 0px; }
.glow-title { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 4.8rem; text-transform: uppercase; margin: 0; background: linear-gradient(to right, #0e0c83, #082b77); -webkit-background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0px 4px 8px rgba(37, 99, 235, 0.2)); letter-spacing: 2px; }

/* NỘI DUNG GIỚI THIỆU & SLIDESHOW */
.intro-title { font-family: 'Montserrat', sans-serif; font-weight: 800; color: #1e293b; border-bottom: 2px dashed #cbd5e1; padding-bottom: 12px; margin-bottom: 20px; font-size: 1.4rem; }
.intro-domain { color: #2563eb; font-family: 'Roboto Mono', monospace; font-weight: 700; letter-spacing: 1px; margin-bottom: 20px; font-size: 1.1rem; }
.seo-intro-content { color: #475569; font-size: 1rem; line-height: 1.8; text-align: justify; padding-right: 15px; }

/* ÉP ẢNH CAROUSEL CROP VỪA KHUNG MÀ KHÔNG BỊ MÉO */
.carousel, .carousel-inner, .carousel-item { height: 100%; width: 100%; }
.carousel-item img { 
    height: 100%; 
    width: 100%; 
    object-fit: cover; 
    object-position: center; 
}

.carousel-caption { background: rgba(15, 23, 42, 0.6); border-radius: 8px; padding: 10px; backdrop-filter: blur(4px); }
.carousel-caption h5 { margin: 0; font-weight: 700; }
.carousel-caption p { margin: 0; font-size: 0.9rem; }
.footer-inner { max-width: 900px; margin: 0 auto; color: #475569; font-size: 0.95rem; line-height: 1.6; }
.footer-inner p { margin-bottom: 10px; }
.contact-line { font-weight: 600; color: #1e293b; margin-top: 10px; }
.contact-line a { color: #2563eb; text-decoration: none; }
.copyright-line { font-family: 'Roboto Mono', monospace; font-size: 0.85rem; margin-top: px; color: #142b5c; }

/* =========================================
   HỆ THỐNG MENU ĐA CẤP (NEON SCROLL)
   ========================================= */

.main-nav { display: flex; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; align-items: center; gap: 5px; width: 100%; padding: 1px 45px 1px 45px !important; max-height: 50px; scroll-behavior: smooth; }
.menu-loading-text { color: #64748b; font-size: 0.9rem; margin-left: 15px; }

/* Thanh Scroll Neon Highlight */
.main-nav::-webkit-scrollbar, .aff-scroll-wrapper::-webkit-scrollbar { height: 4px; }
.main-nav::-webkit-scrollbar-track, .aff-scroll-wrapper::-webkit-scrollbar-track { background: rgba(8, 145, 178, 0.05); border-radius: 10px; box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05); }
.main-nav::-webkit-scrollbar-thumb, .aff-scroll-wrapper::-webkit-scrollbar-thumb { 
    background: linear-gradient(90deg, #00f2fe 0%, #4facfe 50%, #00f2fe 100%); 
    border-radius: 10px; box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.9); border: 1px solid rgba(255, 255, 255, 0.6);
}
.main-nav::-webkit-scrollbar-thumb:hover, .aff-scroll-wrapper::-webkit-scrollbar-thumb:hover { background: linear-gradient(90deg, #00ffff 0%, #2563eb 50%, #00ffff 100%); }

.nav-item { flex-shrink: 0; position: relative; }
.nav-link-custom { font-family: 'Inter', sans-serif; font-weight: 600; color: #1e293b; text-decoration: none; padding: 10px 16px !important; display: inline-block; border-radius: 8px; transition: 0.3s; cursor: pointer; user-select: none; }
.nav-link-custom:hover { background: #e0f2fe; color: #2563eb; }

.root-caret { font-size: 0.7rem; margin-left: 5px; color: #64748b; transition: transform 0.3s; }
.caret-icon { float: right; margin-top: 4px; color: #94a3b8; transition: transform 0.3s; }

.root-dropdown { display: none; position: absolute; background: white; min-width: 240px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-radius: 8px; z-index: 9999; border: 1px solid #e2e8f0; padding: 5px 0; }
.root-dropdown.show { display: block; animation: fadeInMenu 0.2s ease; }

.nav-item-nested { position: relative; }

.nested-dropdown { 
    display: none; 
    position: relative; 
    top: 0; left: 0; 
    width: 100%; 
    margin-left: 0; 
    background: #f8fafc; 
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.03); 
    border-radius: 0; 
    z-index: 10000; 
    border: none; 
    border-left: 2px solid #bae6fd; 
    padding: 0; 
}

.nav-item-nested.active-nested > .nested-dropdown { display: block; animation: slideDownTree 0.25s ease; }
.nav-item-nested.active-nested > a > .caret-icon { transform: rotate(90deg); color: #2563eb; }
.nav-item-nested.active-nested > a { background: #f0f9ff; color: #2563eb; border-left: 3px solid #2563eb; padding-left: 26px; }

.dropdown-content a, .nav-item-nested > a { color: #475569; padding: 10px 10px; text-decoration: none; display: block; transition: 1.0s; font-size: 0.95rem; border-bottom: 1px solid #f8fafc; font-weight: 400; cursor: pointer; user-select: none; }
.dropdown-content a:last-child { border-bottom: none; }
.dropdown-content a:hover:not(.nested-toggle) { background: #f0f9ff; color: #2563eb; padding-left: 26px; border-left: 3px solid #2563eb; }

.nested-dropdown a { padding-left: 35px !important; border-bottom: 1px dashed #e2e8f0; }
.nested-dropdown .nested-dropdown a { padding-left: 50px !important; }
.nested-dropdown .nested-dropdown .nested-dropdown a { padding-left: 65px !important; }
.nested-dropdown .nested-dropdown .nested-dropdown .nested-dropdown a { padding-left: 80px !important; }

@keyframes fadeInMenu { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideDownTree { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }


/* =========================================
   THANH QUẢNG CÁO AFFILIATE 
   ========================================= */
.aff-scroll-wrapper { display: flex; gap: 5px; overflow-x: auto; width: 100%; padding-bottom: 5px; scroll-behavior: smooth; }
.ads-loading-text { color: #64748b; font-family: 'Roboto Mono', monospace; font-size: 0.8rem; width: 100%; text-align: center; margin-top: 10px; }
.aff-item-card { display: flex; align-items: center; background: #fff; border: 1px solid #cbd5e1; border-radius: 5px; padding: 5px 5px; min-width: 200px; max-width: 250px; flex-shrink: 0; cursor: pointer; transition: 0.2s; }
.aff-item-card:hover { border-color: #3b82f6; box-shadow: 0 4px 12px rgba(59,130,246,0.1); transform: translateY(-2px); }
.aff-icon-box { width: 40px; height: 40px; background: #e0f2fe; border-radius: 6px; display: flex; align-items: center; justify-content: center; margin-right: 12px; flex-shrink: 0; }
.aff-icon-box i { color: #0284c7; font-size: 1.2rem; }
.aff-icon-box img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.aff-content-box { display: flex; flex-direction: column; overflow: hidden; }
.aff-title { font-family: 'Inter', sans-serif; font-weight: 700; color: #0f172a; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.aff-desc { font-family: 'Inter', sans-serif; font-size: 0.75rem; color: #475569; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* =========================================
   MODAL HỒ SƠ & TOAST 
   ========================================= */
#toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 10000; display: flex; flex-direction: column; gap: 12px; pointer-events: none; }
.tech-toast { min-width: 250px; max-width: 350px; padding: 14px 20px; border-radius: 8px; background: var(--bg-card); backdrop-filter: blur(10px); font-family: 'Roboto Mono', monospace; font-size: 0.85rem; color: var(--text-glow); font-weight: 600; border: 1px solid var(--border-tech); box-shadow: 0 10px 30px rgba(0,0,0,0.1); transform: translateX(120%); opacity: 0; transition: all 0.4s ease; display: flex; align-items: center; gap: 12px; line-height: 1.4; }
.tech-toast.show { transform: translateX(0); opacity: 1; }
.tech-toast.success { border-left: 4px solid #10b981; }
.tech-toast.error { border-left: 4px solid #ef4444; }
.tech-toast.warning { border-left: 4px solid #f59e0b; }

.tech-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(240, 253, 250, 0.85); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 9999; opacity: 0; pointer-events: none; transition: 0.3s ease; }
.tech-modal-overlay.active { opacity: 1; pointer-events: auto; }
.tech-modal-content { background: var(--bg-card); border: 1px solid var(--border-tech); border-radius: 12px; width: 90%; max-width: 800px; max-height: 90vh; box-shadow: 0 10px 40px rgba(0,0,0,0.1); transform: translateY(-30px); transition: 0.3s ease; display: flex; flex-direction: column; overflow: hidden; }
.tech-modal-overlay.active .tech-modal-content { transform: translateY(0); }
.tech-modal-header { padding: 15px 20px; border-bottom: 1px solid rgba(0,0,0,0.05); display: flex; justify-content: space-between; align-items: center; background: rgba(8, 145, 178, 0.05); }
.tech-modal-header h3 { margin: 0; font-family: 'Inter', sans-serif; font-weight: 800; font-size: 1.2rem; color: var(--text-glow); }
.close-modal { color: var(--text-dim); cursor: pointer; font-size: 1.2rem; transition: 0.2s; }
.close-modal:hover { color: #f87171; transform: scale(1.1); }
.tech-modal-body { padding: 20px; overflow-y: auto; }
.tech-modal-body::-webkit-scrollbar { width: 5px; }
.tech-modal-body::-webkit-scrollbar-thumb { background: var(--primary-neon); border-radius: 5px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }
.form-group-modal label { display: block; font-size: 0.75rem; color: var(--primary-neon); font-family: 'Roboto Mono', monospace; font-weight: bold; margin-bottom: 5px; }
.form-group-modal input, .form-group-modal select { width: 100%; padding: 10px 12px; border-radius: 6px; background: #fff; border: 1px solid rgba(0,0,0,0.1); color: var(--text-glow); outline: none; box-sizing: border-box; }
.form-group-modal input:focus { border-color: var(--primary-neon); }
.modal-footer-btn { padding: 15px 20px; border-top: 1px solid rgba(0,0,0,0.05); display: flex; justify-content: flex-end; background: rgba(0,0,0,0.02); }
.btn-save-modal { background: var(--primary-neon); color: #fff; padding: 8px 20px; border: none; border-radius: 6px; font-weight: bold; cursor: pointer; transition: 0.2s; }

.modal-layout { display: flex; gap: 25px; }
.modal-left-col { width: 160px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; border-right: 1px dashed rgba(0,0,0,0.1); padding-right: 25px; }
.modal-right-col { flex-grow: 1; padding-right: 5px; }
.avatar-preview-box { width: 140px; height: 140px; border-radius: 50%; overflow: hidden; border: 3px solid var(--primary-neon); margin-bottom: 15px; }
.avatar-preview-box img { width: 100%; height: 100%; object-fit: cover; }
.btn-change-avatar { background: rgba(8, 145, 178, 0.1); border: 1px solid var(--primary-neon); color: var(--text-glow); padding: 8px 15px; border-radius: 6px; font-size: 0.8rem; cursor: pointer; width: 50%; font-weight: bold; }
.pos-relative { position: relative; }
.modal-pwd-toggle { position: absolute; right: 12px; top: 35px; color: var(--text-dim); cursor: pointer; z-index: 5; }

/* BỘ ĐẾM TRUY CẬP */
.visit-badge { position: fixed; bottom: 55px; right: 0px; z-index: 9990; display: inline-flex; align-items: center; gap: 8px; font-family: 'Roboto Mono', monospace; font-size: 0.75rem; color: var(--primary-neon); font-weight: bold; padding: 6px 16px; cursor: default; }

/* =========================================
   PHỤC HỒI CSS CHO TRANG ĐĂNG NHẬP LOGIN
   ========================================= */
.login-container { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card { width: 100%; max-width: 440px; background: var(--bg-card); backdrop-filter: blur(25px); border: 1px solid var(--border-tech); border-radius: 20px; padding: 60px 40px; box-shadow: 0 20px 60px rgba(0,0,0,0.05); position: relative; overflow: hidden; }
.login-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, transparent, var(--primary-neon), transparent); }
.login-title { font-family: 'Inter', sans-serif; color: var(--text-glow); font-weight: 800; font-size: 2.2rem; margin-top: 10px; text-align: center; margin-bottom: 30px; }
.input-group-custom { margin-bottom: 25px; position: relative; }
.input-group-custom label { display: block; font-size: 0.75rem; color: var(--primary-neon); font-weight: bold; margin-bottom: 10px; font-family: 'Roboto Mono', monospace; letter-spacing: 1px; }
.input-group-custom i { position: absolute; left: 15px; top: 42px; color: var(--text-dim); }
.input-group-custom input { width: 100%; box-sizing: border-box; background: rgba(0, 0, 0, 0.02); border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 10px; padding: 12px 0px 12px 45px; color: var(--text-glow); outline: none; transition: 0.3s; }
.input-group-custom input[type="password"] { padding-right: 40px; }
.input-group-custom input:focus { border-color: var(--primary-neon); background: rgba(0, 0, 0, 0.05); }

.btn-login { width: 100%; padding: 14px; background: var(--primary-neon); border: none; border-radius: 10px; color: white; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1.1rem; cursor: pointer; transition: 0.3s; }
.btn-login:hover { background: #0e7490; box-shadow: 0 0 15px rgba(8, 145, 178, 0.4); }
.password-toggle { position: absolute; right: 15px; left: auto !important; top: 42px; cursor: pointer; color: var(--text-dim); transition: 0.3s; }
.password-toggle:hover { color: var(--primary-neon); }

.divider-container { display: flex; align-items: center; margin: 20px 0 15px 0; }
.divider-line { flex-grow: 1; border-top: 1px dashed rgba(0,0,0,0.1); }
.divider-text { flex-shrink: 0; margin: 0 15px; color: var(--text-dim); font-size: 0.8rem; font-family: 'Roboto Mono', monospace; }
.google-btn-wrapper { display: flex; justify-content: center; width: 100%; margin-bottom: 15px; }
.login-msg { text-align: center; margin-top: 20px; font-family: 'Roboto Mono', monospace; font-size: 0.85rem; color: var(--text-dim); }

.autocomplete-items { position: absolute; top: 100%; left: 0; right: 0; z-index: 99; background: var(--bg-card); backdrop-filter: blur(10px); border: 1px solid var(--border-tech); border-radius: 8px; max-height: 250px; overflow-y: auto; display: none; margin-top: 5px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.autocomplete-items div { padding: 12px 15px; cursor: pointer; color: var(--text-dim); font-size: 0.95rem; border-bottom: 1px dashed rgba(0,0,0,0.05); display: flex; align-items: center; transition: 0.2s; gap: 8px; }
.autocomplete-items div:hover { background: rgba(8, 145, 178, 0.05); border-left: 3px solid var(--primary-neon); }

/* MOBILE RESPONSIVE CĂN BẢN */
@media (max-width: 992px) {
    .smart-layout-wrapper { grid-template-columns: 1fr; }
    .panel-logo, .panel-title, .panel-menu, .panel-merged, .panel-footer, .panel-ads { grid-column: 1 / -1; grid-row: auto; }
    .glow-title { font-size: 2.5rem; }
    .panel-merged { flex-direction: column; } 
    .intro-half, .slideshow-half { width: 100%; }
    
    /* CẬP NHẬT: ĐẢM BẢO MOBILE CŨNG LÀ 3:2 */
    .slideshow-half { 
        aspect-ratio: 3 / 2 !important; 
        height: auto !important; 
    } 
    
    .modal-layout { flex-direction: column; align-items: center; }
    .modal-left-col { width: 100%; border-right: none; border-bottom: 1px dashed rgba(0,0,0,0.1); padding-right: 0; padding-bottom: 25px; margin-bottom: 20px; }
    .form-grid-2 { grid-template-columns: 1fr; }
    .visit-badge { bottom: 25px; right: 15px; }
}


/* =========================================
   STYLE CHO NÚT ĐĂNG NHẬP Ở KHỐI PROFILE
   ========================================= */
.tech-login-btn {
    background: var(--primary-neon);
    color: #ffffff !important;
    border-radius: 8px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(8, 145, 178, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hiệu ứng khi di chuột vào (Hover): Nút nảy lên nhẹ và tỏa bóng */
.tech-login-btn:hover {
    background: #0e7490; /* Đổi sang màu xanh đậm hơn */
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(8, 145, 178, 0.4);
}

/* Hiệu ứng khi bấm chuột (Active): Nút lún xuống */
.tech-login-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(8, 145, 178, 0.2);
}

/* =========================================
   HIỆU ỨNG BÁO HIỆU MENU BỊ CHE KHUẤT
   ========================================= */
.menu-scroll-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: calc(100% - 20px); /* Vừa vặn với panel menu */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    color: #0891b2;
    font-size: 1.1rem;
    z-index: 1000;
    pointer-events: none; /* Tránh cản trở thao tác click/scroll của người dùng */
    opacity: 0; /* Mặc định ẩn */
    transition: opacity 0.3s ease;
}
/* Bóng mờ bên trái */
.menu-scroll-indicator.left {
    left: 1px;
    background: linear-gradient(to right, rgba(255,255,255,1) 40%, rgba(255,255,255,0));
    justify-content: flex-start;
}
/* Bóng mờ bên phải */
.menu-scroll-indicator.right {
    right: 1px;
    background: linear-gradient(to left, rgba(255,255,255,1) 40%, rgba(255,255,255,0));
    justify-content: flex-end;
}
/* Lớp hiển thị khi có menu bị che */
.menu-scroll-indicator.visible {
    opacity: 1;
}
/* Hiệu ứng nhịp đập nhẹ cho mũi tên */
.menu-scroll-indicator i {
    animation: pulseIcon 1.5s infinite;
}
@keyframes pulseIcon {
    0%, 100% { opacity: 0.5; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* =========================================
   THANH QUẢNG CÁO FIXED DÍNH ĐÁY MÀN HÌNH & TỈ LỆ 1:2
   ========================================= */
.sticky-ads-footer {
    position: fixed; /* BẢO ĐẢM KHÔNG BỊ TRƯỢT THEO TRANG */
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999; /* Luôn nổi lên trên cùng */
    margin: 0;
    padding: 5px 0;
    border-radius: 0; 
    border-top: 2px solid var(--primary-neon); 
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1); 
    background: var(--bg-card); 
    backdrop-filter: blur(12px);
}
.ads-layout-1-2 {
    display: flex;
    gap: 5px;
    width: 100%;
    max-width: 1400px; 
    margin: 0 auto;    
    padding: 0 10px;
    align-items: center;
}
.ads-left-google {
    flex: 1; /* Tỉ lệ 1 */
    display: flex; align-items: center; justify-content: center;
    border-right: 1px dashed #cbd5e1;
    min-height: 60px;
    padding-right: 10px;
}
.ads-right-affiliate {
    flex: 2; /* Tỉ lệ 2 */
    overflow: hidden; /* Cực kỳ quan trọng để cuộn ngang không làm bể layout */
}

/* Fix mobile: Chuyển thành xếp dọc nếu màn hình nhỏ */
@media (max-width: 992px) {
    body { padding-bottom: 150px !important; } 
    .ads-layout-1-2 { flex-direction: column; }
    .ads-left-google, .ads-right-affiliate { flex: none; width: 100%; border-right: none; border-bottom: 1px dashed #cbd5e1; padding-bottom: 10px; }
    .ads-left-google { min-height: 40px; }
}


/* =========================================
   BONG BÓNG CHAT LIÊN HỆ TẠI TRANG CHỦ
   ========================================= */
.chat-widget-container {
    position: fixed;
    bottom: 100px; /* Cách đáy 100px để không đè lên thanh quảng cáo */
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Nút bong bóng tròn */
.chat-bubble {
    width: 55px;
    height: 55px;
    background-color: var(--primary-neon);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(8, 145, 178, 0.4);
    border: none;
    transition: transform 0.3s ease, background-color 0.3s;
    outline: none;
}
.chat-bubble:hover {
    transform: scale(1.1);
    background-color: #0e7490;
}

/* Khung menu Zalo/Email ẩn/hiện */
.chat-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-tech);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    min-width: 180px;
    backdrop-filter: blur(10px);
}
.chat-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Các nút lựa chọn bên trong */
.chat-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: var(--text-glow);
    text-decoration: none !important;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}
.chat-option:hover {
    background: rgba(8, 145, 178, 0.1);
    color: var(--primary-neon);
}

/* Hộp chứa mã QR Zalo */
.zalo-qr-box {
    display: none;
    text-align: center;
    padding: 15px 10px 5px 10px;
    border-top: 1px dashed rgba(0,0,0,0.1);
    margin-top: 5px;
}
.zalo-qr-box.active {
    display: block;
    animation: fadeIn 0.3s ease;
}
.zalo-qr-box img {
    width: 130px;
    height: 130px;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 2px solid var(--primary-neon);
    object-fit: cover;
}
.zalo-qr-box p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-dim);
    font-family: 'Roboto Mono', monospace;
    font-weight: 600;
}

/* =========================================
   BỐ CỤC GIỚI THIỆU ZIG-ZAG (TRANG CHỦ)
   ========================================= */
.panel-intro-zigzag {
    grid-column: 1 / 3;
    display: flex;
    flex-direction: column;
    gap: 40px; /* Khoảng cách giữa các hàng */
    padding: 30px;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-tech);
    border-radius: 6px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

/* Tiêu đề tổng quan dùng chung */
.zigzag-main-title {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    color: var(--text-glow);
    font-size: 1.8rem;
    text-transform: uppercase;
    border-bottom: 2px dashed #cbd5e1;
    padding-bottom: 15px;
    margin-bottom: 5px;
}

/* Cấu trúc từng hàng (Row) */
.zz-row {
    display: flex;
    gap: 30px;
    align-items: top; /* Căn giữa theo chiều dọc */
}

/* Chìa khóa tạo hiệu ứng Zig-zag: Đảo ngược vị trí trên Desktop */
.zz-row.reverse {
    flex-direction: row-reverse;
}

/* Các cột chứa Chữ và Hình */
.zz-text-col, .zz-img-col {
    flex: 1; /* Chia đều 50/50 */
}

.zz-text-col h3 {
    color: var(--primary-neon);
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.zz-text-col p, .zz-text-col ul {
    color: #475569;
    line-height: 1.7;
    text-align: justify;
}

/* Thụt đầu dòng cho các đoạn văn trong khối giới thiệu Zig-zag và khối chi tiết */
.zz-text-col p, .full-content-detail p {
    text-indent: 30px; /* Độ thụt đầu dòng (bạn có thể chỉnh từ 20px - 40px tùy ý) */
    margin-bottom: 15px; /* Khoảng cách giữa các đoạn văn để nhìn thoáng hơn */
    text-align: justify; /* Canh đều hai bên để khối văn bản vuông vức, chuyên nghiệp */
}

.zz-text-col ul {
    padding-left: 20px;
}
.zz-text-col li {
    margin-bottom: 8px;
}

/* Khung hình minh họa tạm thời (Khi nào có hình thật bạn thay vào thẻ img sau) */
.zz-placeholder {
    width: 100%;
    aspect-ratio: 3 / 2;
    background: #f1f5f9;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-family: 'Roboto Mono', monospace;
    font-size: 1rem;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.02);
}
.zz-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #cbd5e1;
}

/* Responsive cho Mobile: Ép tất cả về 1 cột, Chữ luôn nằm trên Hình */
@media (max-width: 992px) {
    .zz-row, .zz-row.reverse {
        flex-direction: column; /* Đập vỡ Flex ngang thành Flex dọc */
        gap: 20px;
    }
    .zz-text-col, .zz-img-col {
        width: 100%;
    }
}