/* ==========================================================================
   PHẦN 1: ĐÃ SỬA LỖI LỆCH DƯỚI - ÉP LOGO NẰM CHÍNH GIỮA KHUNG RẮNG KHI CUỘN
   ========================================================================== */
* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}
body { background-color: #f6f8fb; color: #2d3748; line-height: 1.6; position: relative; overflow-x: hidden; }

/* Các đốm màu rực rỡ tỏa sáng ngầm dưới nền trang web */
.bg-glow-1, .bg-glow-2 { position: absolute; width: 45vw; height: 45vw; border-radius: 50%; z-index: -1; filter: blur(140px); opacity: 0.65; }
.bg-glow-1 { top: -50px; right: -50px; background: rgba(0, 198, 255, 0.15); }
.bg-glow-2 { top: 750px; left: -150px; background: rgba(244, 63, 94, 0.08); }

/* Khối nền trắng chứa logo ghim dính đầu trang */
.brand-top-zone {
    background: #ffffff;
    padding: 12px 20px 8px !important;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1001;
    width: 100%;
    
    display: flex;
    justify-content: center;
    align-items: center; /* Căn giữa theo chiều dọc mặc định */
    
    transition: padding 0.4s ease, box-shadow 0.4s ease; 
}
/* 🛠️ TRẠNG THÁI BIẾN HÌNH KHI CUỘN XUỐNG DƯỚI */
.brand-top-zone.scrolled {
    /* ĐÃ SỬA: Cài đặt đệm trên dưới bằng nhau tuyệt đối (5px) để ép nội dung vào giữa */
    padding: 5px 20px !important; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.brand-top-zone.scrolled .logo-anchor-link {
    text-decoration: none;
    text-align: left !important; /* Từ từ đẩy toàn bộ logo dạt sang góc trái */
}

.glow-aura { position: absolute; width: 35px; height: 35px; background: rgba(0, 114, 255, 0.25); filter: blur(8px); border-radius: 50%; top: -2px; z-index: 1; }
.book-top { font-size: 22px; color: #0072ff; margin-bottom: -4px; z-index: 3; }
.book-layer { height: 4px; border-radius: 1px; z-index: 2; }
.layer-1 { background: #ef4444; width: 26px; margin-bottom: 2px; }
.layer-2 { background: #0072ff; width: 22px; margin-bottom: 2px; }
.layer-3 { background: #f59e0b; width: 28px; margin-bottom: 2px; }
.layer-4 { background: #10b981; width: 20px; }

/* Khi cuộn xuống: Chồng sách thu nhỏ lại từ từ */
.brand-top-zone.scrolled .logo-books-glow {
    transform: scale(0.78);
    margin: 0 !important; /* Xóa bỏ toàn bộ margin thừa gây lệch */
}

/* Chữ thương hiệu chính */
.brand-title-3d {
    font-family: 'Arial Black', Impact, sans-serif;
    font-size: 22px;
    font-weight: 900;
    font-style: italic;
    background: linear-gradient(135deg, #1e40af, #0072ff);
    
    /* Phần cắt nền chữ */
    -webkit-background-clip: text;
    background-clip: text; /* Thêm dòng này để VS Code hết gạch đỏ dòng trên */
    
    /* Phần làm trong suốt lõi chữ để lộ màu nền Gradient */
    -webkit-text-fill-color: transparent;
    color: transparent; /* 🛠️ THÊM DÒNG NÀY VÀO ĐÂY: Vệt gạch chân đỏ ở dưới dòng -webkit-text-fill-color sẽ biến mất ngay lập tức! */
    
    letter-spacing: -0.5px;
    filter: drop-shadow(1px 2px 4px rgba(0, 114, 255, 0.12));
    
    /* ĐÃ SỬA: Khóa cứng line-height bằng 1 và xóa margin để chữ không bị kéo tụt xuống dưới */
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    
    transition: font-size 0.4s ease;

}
/* Khi cuộn xuống: Chữ thu nhỏ từ từ từ 22px xuống 16.5px thanh thoát */
.brand-top-zone.scrolled .brand-title-3d {
    font-size: 16.5px !important;
    line-height: 1 !important;
}
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}
body {
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
}
@media screen and (max-width: 768px) {
    body {
        /* Xóa ảnh nền trên điện thoại */
        background-image: none !important; 
        
        /* Đặt nền trắng cho điện thoại */
        background-color: #f1eaea; 
    }
}
/* ĐỊNH DẠNG KHỐI SLOGAN VÀ VỆT GẠCH CHÂN (SẼ ẨN MỜ DẦN TỪ TỪ) */
.brand-divider-luxury { 
    display: flex; width: 100%; height: 3px; margin: 3px 0; border-radius: 10px; overflow: hidden; 
    transition: opacity 0.3s ease, transform 0.3s ease; 
}
.segment-gold { background: linear-gradient(90deg, #ffd700, #ffa500); flex: 6.5; }
.segment-bronze { background: linear-gradient(90deg, #875204, #5c3501); flex: 3.5; }

.brand-slogan-premium { 
    font-family: 'Georgia', serif; font-size: 10.5px; font-style: italic; font-weight: bold; color: #1e40af; 
    transition: opacity 0.3s ease, transform 0.3s ease; 
}

/* TRẠNG THÁI BIẾN HÌNH: Ép thanh gạch chân và slogan biến mất từ từ và giải phóng không gian */
.brand-top-zone.scrolled .brand-divider-luxury,
.brand-top-zone.scrolled .brand-slogan-premium {
    opacity: 0 !important;
    transform: scaleY(0); 
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none;
}


/* --- PHẦN 2: THANH HEADER DỌC TỰ ĐỘNG CUỘN TRÔI THEO NỘI DUNG (ĐA SỬA) --- */
.main-header-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: radial-gradient(circle at top right, #111e38, #070c16); /* Tông nền tối sâu thẳm Châu Âu */
    
    /* ĐÃ SỬA: Giảm padding để thu hẹp chiều cao thanh header mỏng gọn hơn */
    padding: 10px 15px;
    /* ĐÃ SỬA: Giảm gap để các thành phần áp sát nhau tinh tế hơn */
    gap: 8px;
    
    /* 🛠️ ĐÃ SỬA THÀNH CÔNG: Đổi sang relative để thanh menu tự cuộn lên theo nội dung trang web, không ghim dính nữa */
    position: relative;
    top: 0;
    z-index: 1000;
    
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(7, 12, 22, 0.2);
}

/* Thanh tìm kiếm tinh tế viền màu phát sáng (Đã bóp mỏng gọn) */
.mini-search {
    display: flex; 
    background: rgba(255, 255, 255, 0.07); 
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px; 
    padding: 2px 2px 2px 10px; /* Thu nhỏ đệm ô gõ */
    width: 100%; 
    max-width: 320px; 
    transition: all 0.3s;
}
.mini-search:focus-within { border-color: #0072ff; box-shadow: 0 0 0 3px rgba(0, 114, 255, 0.12); }
.mini-search input { background: transparent; border: none; outline: none; color: #fff; font-size: 0.82rem; width: 100%; }
.mini-search input::placeholder { color: #94a3b8; }
.mini-search button { background: linear-gradient(135deg, #00c6ff, #0072ff); color: #fff; border: none; width: 24px; height: 24px; border-radius: 4px; cursor: pointer; }
.mini-search button i { font-size: 0.75rem; }

/* Menu 6 mục khối màu (Đã bóp sát khoảng cách) */
.menu-nav-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.menu-nav-bar a { color: #cbd5e1; text-decoration: none; padding: 4px 12px; font-weight: 700; font-size: 0.85rem; border-radius: 4px; transition: all 0.2s; }
.menu-nav-bar a:hover { color: #0072ff; background: rgba(255, 255, 255, 0.08); }
.menu-nav-bar a.active { color: #ffffff; background: linear-gradient(135deg, #0052cc, #0072ff); box-shadow: 0 3px 10px rgba(0,82,204,0.25); }

/* Nút tải tài liệu lên dải màu rực rỡ mỏng gọn */
.trigger-upload-btn {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53); color: #ffffff; border: none; 
    padding: 6px 20px; /* Bóp mỏng độ dày nút bấm */
    font-size: 0.82rem;
    font-weight: 700; border-radius: 4px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2); transition: all 0.3s;
}
.trigger-upload-btn:hover { transform: translateY(-1px); box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4); }

/* --- PHẦN 3: HỘP THOẠI POPUP & KHAY LIÊN HỆ XẾP CHỒNG GÓC PHẢI --- */
.dz-mini-icon { font-size: 32px; color: #0072ff; margin-bottom: 8px; }
.upload-compact-form input[type="text"] { width: 100%; padding: 11px 14px; border: 1px solid #cbd5e1; border-radius: 6px; outline: none; font-size: 0.88rem; }
.file-label { background: #fff; color: #0072ff; padding: 6px 14px; border-radius: 4px; font-size: 0.82rem; font-weight: 600; cursor: pointer; border: 1px solid #0072ff; }
.submit-upload-btn { background: linear-gradient(135deg, #00c6ff, #0072ff); color: #fff; border: none; padding: 12px; border-radius: 6px; font-weight: 600; font-size: 0.9rem; cursor: pointer; }

/* Khay chứa liên hệ xếp chồng thông minh ở góc dưới bên phải màn hình */
.floating-contact-stack {
    position: fixed; bottom: 25px; right: 25px;
    display: flex; flex-direction: column; gap: 12px; z-index: 999;
    background: rgba(255, 255, 255, 0.85);
    padding: 30px 10px 12px 10px; /* Chừa khoảng không trên đỉnh cho nút X */
    border-radius: 40px; border: 1px solid #e2e8f0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08); backdrop-filter: blur(8px);
}
.close-stack-btn { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); background: transparent; border: none; font-size: 16px; color: #718096; cursor: pointer; line-height: 1; }
.close-stack-btn:hover { color: #ef4444; }
.social-circle { width: 46px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; color: #fff; font-weight: bold; box-shadow: 0 4px 10px rgba(0,0,0,0.1); transition: transform 0.2s; }
.social-circle:hover { transform: scale(1.08); }
.fb-style { background: linear-gradient(135deg, #00c6ff, #0072ff); font-family: 'Impact', sans-serif; font-size: 24px; padding-right: 2px; }
.zalo-style { background: linear-gradient(135deg, #00f2fe, #4facfe); font-size: 10px; font-weight: 800; border: 1px solid #fff; text-transform: uppercase; }
/* --- PHẦN 4: LƯỚI THẺ MÔN HỌC GRADIENT & CHÂN TRANG ĐA CỘT --- */
.container { width: 100%; max-width: 1050px; margin: 45px auto; padding: 0 4%; }
/* Căn chữ ra chính giữa và tạo khoảng cách thoáng với khối bên dưới */
.section-header { 
    text-align: center; 
    margin-bottom: 35px; 
}

/* Màu mặc định cho máy tính (giữ nguyên màu xanh lá #55cc00 của bạn) */
.section-header h2 { 
    font-size: 1.8rem; 
    font-weight: 800; 
    color: #55cc00; 
    margin: 0; 
}

/* Đổi sang màu xanh navy khi xem trên điện thoại */
@media screen and (max-width: 768px) {
    .section-header h2 {
        color: #000080 !important; /* Mã màu xanh navy (Navy) */
    }
}
.section-header p { 
    color: #55cc00;
}
/* Chân trang Oxford Academic Style */
.premium-footer { background: #0f172a; color: #94a3b8; padding: 60px 0 25px 0; font-size: 0.88rem; border-top: 4px solid #0072ff; }
.footer-container { max-width: 1050px; margin: 0 auto; padding: 0 5%; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; }
.footer-column h3 { color: #ffffff; font-size: 1.05rem; font-weight: 700; margin-bottom: 18px; }
.footer-logo { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 1.3rem; font-weight: 800; margin-bottom: 15px; }
.footer-logo span span { color: #ffb703; }
.footer-description { line-height: 1.6; color: #64748b; }
.quick-links ul { list-style: none; } .quick-links ul li { margin-bottom: 8px; }
.quick-links ul li a { color: #94a3b8; text-decoration: none; transition: color 0.2s; }
.quick-links ul li a:hover { color: #fff; }
.contact-item { margin-bottom: 10px; color: #64748b; }
.footer-bottom { margin-top: 50px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.05); text-align: center; font-size: 0.8rem; color: #475569; }
/* ==========================================================================
   CSS POPUP QUẢNG CÁO: ĐẸP SANG TRỌNG - KHÓA GÓC MƯỢT MÀ - ĐA NỀN TẢNG
   ========================================================================== */

/* Lớp nền tối mờ sâu thẳm bao phủ 100% không gian trang web */
.qc-fullscreen-overlay {
    position: fixed !important;
    top: 0 !important; 
    left: 0 !important;
    width: 100% !important; 
    height: 100% !important;
    background: rgba(15, 23, 42, 0.85) !important; /* Tông màu đen Slate sâu mịn */
    
    /* Ép hiệu ứng mờ kính thủy tinh mượt mà trên iPhone/Safari */
    backdrop-filter: blur(8px) !important; 
    -webkit-backdrop-filter: blur(8px) !important; 
    
    z-index: 9999999 !important; /* Chỉ số tối cao đè lên Menu và tất cả Popup khác */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    
    /* Cơ chế đóng mở an toàn trên máy chủ thật */
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

/* Trạng thái kích hoạt hiển thị che phủ mượt mà */
.qc-fullscreen-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* HỘP BỌC TRUNG TÂM: Nhỏ gọn, tinh giản vừa vặn tầm mắt */
.qc-image-wrapper-box {
    position: relative !important;
    width: 88% !important; 
    max-width: 380px !important; /* Bóp bề ngang nhỏ nhắn để ảnh không bị lút màn hình điện thoại */
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important; 
    box-sizing: border-box !important;
    
    /* Hiệu ứng nảy lò xo nhẹ phóng to sang trọng từ tâm */
    transform: scale(0.92) !important;
    -webkit-transform: scale(0.92) !important;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.qc-fullscreen-overlay.active .qc-image-wrapper-box {
    transform: scale(1) !important;
    -webkit-transform: scale(1) !important;
}

/* KHUNG PHẲNG BỌC ẢNH ĐẸP TINH TẾ */
.qc-click-link {
    width: 100% !important;
    display: block !important;
    border-radius: 14px !important; /* Bo góc mượt mà cao cấp */
    overflow: hidden !important; /* Giấu các góc ảnh nhọn lồi ra ngoài viền bo */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5) !important; /* Đổ bóng khối có chiều sâu */
    border: 1px solid rgba(255, 255, 255, 0.1) !important; /* Viền sáng mảnh tinh tế */
    box-sizing: border-box !important;
}

/* TẤM ẢNH QUẢNG CÁO DỌC - PHÙ HỢP ĐA THIẾT BỊ */
.qc-large-img {
    width: 100% !important;
    height: auto !important;
    max-height: 55vh !important; /* Giới hạn chiều cao ảnh chiếm tối đa 55% màn hình đứng chống tràn */
    object-fit: contain !important; 
    display: block !important;
}

/* NÚT TẮT DẤU X THỦY TINH ĐEN SANG TRỌNG GHIM ĐÈ LÊN GÓC PHẢI ẢNH */
.qc-dark-brutal-btn {
    position: absolute !important;
    top: 12px !important; 
    right: 12px !important; 
    width: 34px !important; 
    height: 34px !important;
    background: rgba(15, 23, 42, 0.8) !important; /* Nền tối mờ sang trọng */
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important; /* Ô tròn hoàn hảo */
    font-size: 20px !important; 
    font-weight: bold !important;
    cursor: pointer !important;
    
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 100 !important; 
    line-height: 1 !important;
    transition: all 0.2s ease !important;
}

.qc-dark-brutal-btn:hover {
    background: #ef4444 !important; /* Di chuột trúng hóa màu đỏ báo hiệu */
    border-color: #ef4444 !important;
    transform: scale(1.05) !important;
}

/* KHỐI NÚT BẤM LIÊN HỆ DƯỚI ĐÁY ẢNH */
.qc-action-bottom-zone {
    width: 100% !important;
    text-align: center !important;
}

/* NÚT LIÊN HỆ MÀU XANH DƯƠNG PHẲNG CÔNG NGHỆ ĐỒNG BỘ TOÀN WEB */
.qc-premium-contact-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important; 
    
    background: #0052cc !important; /* Đồng bộ tông xanh dương công nghệ phẳng cực sướng mắt */
    color: #ffffff !important;
    text-decoration: none !important; /* Xóa gạch chân chữ */
    
    width: 100% !important;
    padding: 12px 24px !important; /* Độ dày lề bấm sướng ngón tay */
    font-size: 0.95rem !important; 
    font-weight: bold !important; /* Chữ in đậm nổi bật */
    border-radius: 10px !important; /* Bo góc đồng bộ */
    
    box-shadow: 0 4px 14px rgba(0, 82, 204, 0.3) !important;
    transition: background 0.2s, transform 0.2s !important;
    box-sizing: border-box !important;
}

.qc-premium-contact-btn i {
    font-size: 1rem !important;
}

.qc-premium-contact-btn:hover {
    background: #0045ad !important; /* Sậm màu mượt mà khi tương tác */
    transform: translateY(-1px) !important;
}

/* ==========================================================================
   📱 TỐI ƯU TỐI ĐA KHÔNG GIAN CHO ĐIỆN THOẠI (DƯỚI 768PX)
   ========================================================================== */
@media screen and (max-width: 768px) {
    /* Tràn viền sát mép màn hình điện thoại, giảm khoảng trống thừa xung quanh */
    .qc-fullscreen-overlay {
        padding: 8px !important;
    }

    /* Phóng to hộp bọc chiếm gần hết bề ngang (96% màn hình) */
    .qc-image-wrapper-box {
        width: 96% !important;
        max-width: none !important; /* Xóa bỏ giới hạn 380px cũ để tận dụng tối đa màn hình */
        gap: 8px !important;
    }

    /* Mở rộng tối đa chiều cao ảnh (chiếm tới 72% chiều cao màn hình) để hình to rõ */
    .qc-large-img {
        max-height: 72vh !important;
        object-fit: contain !important;
        width: 100% !important;
    }

    /* Đưa nút X ra góc sát hơn một chút cho gọn */
    .qc-dark-brutal-btn {
        top: 8px !important;
        right: 8px !important;
        width: 38px !important;
        height: 38px !important;
        font-size: 22px !important;
    }

    /* Kéo dài nút liên hệ bám sát bề ngang, tăng diện tích bấm */
    .qc-premium-contact-btn {
        padding: 12px 16px !important;
        font-size: 1rem !important;
        border-radius: 8px !important;
    }
}

/* TỐI ƯU CHO CÁC DÒNG MÁY ĐIỆN THOẠI RẤT NHỎ (DƯỚI 360PX) */
@media screen and (max-width: 360px) {
    .qc-image-wrapper-box {
        width: 98% !important;
    }
    
    .qc-large-img {
        max-height: 68vh !important;
    }
}
/* ==========================================================================
   MÃ CSS TỐI ƯU: ĐẨY H3 LÊN ĐỈNH ĐẦU - HẠ P XUỐNG ĐÁY Ô (KHÔNG SỬA HTML)
   ========================================================================== */

/* Lớp nền tối mờ bao phủ toàn bộ màn hình */
.upload-modal-overlay { 
    position: fixed !important; 
    top: 0 !important; 
    left: 0 !important; 
    width: 100% !important; 
    height: 100% !important; 
    background: rgba(15, 23, 42, 0.6) !important; 
    backdrop-filter: blur(5px) !important; 
    -webkit-backdrop-filter: blur(5px) !important; /* Hỗ trợ Safari iPhone */
    z-index: 100000 !important; 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    box-sizing: border-box !important;
    
    opacity: 0 !important; 
    visibility: hidden !important;
    pointer-events: none !important; 
    transition: opacity 0.25s ease, visibility 0.25s ease !important; 
}
.upload-modal-overlay.active { 
    opacity: 1 !important; 
    visibility: visible !important;
    pointer-events: auto !important; 
}

/* HỘP THOẠI TRUNG TÂM: Sử dụng cấu trúc Flexbox trục dọc để xếp lại vị trí các khối */
.upload-modal-box.google-form-modal { 
    background: #ffffff !important; 
    width: 90% !important; 
    max-width: 460px !important; 
    padding: 0px !important; /* Giữ nguyên tràn viền */
    border-radius: 12px !important; 
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25) !important; 
    position: relative !important; 
    border: 1px solid #e2e8f0 !important; 
    box-sizing: border-box !important;
    overflow: hidden !important; 

    /* 🛠️ CƠ CHẾ MA THUẬT: Biến hộp thoại thành trục dọc để điều phối nội dung bên trong */
    display: flex !important;
    flex-direction: column !important;
    
    transform: scale(0.93) translateY(10px) !important; 
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.25) !important; 
}
.upload-modal-overlay.active .upload-modal-box { 
    transform: scale(1) translateY(0) !important; 
}

/* 🛠️ ĐIỀU PHỐI VỊ TRÍ KHỐI TIÊU ĐỀ: Ép khối này dãn nở bao quanh Form */
.modal-header {
    display: contents !important; /* Giải phóng thẻ cha để h3 và p trực tiếp chịu sự sắp xếp của Flexbox cha */
}

/* 🛠️ THẺ H3 NHẢY LÊN ĐẦU Ô: Chỉ định mức độ ưu tiên xếp hạng đầu tiên */
.modal-header h3 {
    order: 1 !important; /* Nằm vị trí số 1 trên cùng */
    font-size: 1.05rem !important; 
    font-weight: 800 !important; 
    color: #0f172a !important; 
    text-align: center !important;
    padding: 15px 45px 12px 15px !important; /* Chừa lề phải rộng 45px chống đè vào nút X */
    margin: 0 !important;
    background: #f8fafc !important; /* Đổ nền xám cực nhẹ cho phần header đỉnh */
    border-bottom: 1px solid #f1f5f9 !important;
    box-sizing: border-box !important;
}

/* 🛠️ KHUNG CHỨA GOOGLE FORM NẰM Ở GIỮA Ô: Chỉ định vị trí số 2 */
.google-form-container {
    order: 2 !important; /* Nằm vị trí số 2 ở giữa */
    width: 100% !important;
    height: 440px !important; /* Chiều cao đứng tiêu chuẩn */
    overflow-y: auto !important; 
    -webkit-overflow-scrolling: touch !important; 
    box-sizing: border-box !important;
}
.google-form-container iframe {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

/* 🛠️ THẺ P HẠ CÁNH XUỐNG DƯỚI ĐÁY Ô: Chỉ định vị trí số 3 cuối cùng */
.modal-header p {
    order: 3 !important; /* Nằm vị trí số 3 dưới đáy */
    font-size: 0.75rem !important; 
    color: #64748b !important; 
    text-align: center !important;
    padding: 10px 15px !important; /* Viền đệm thoáng đãng cho dòng mô tả đáy */
    margin: 0 !important;
    background: #f8fafc !important; /* Đổ nền xám nhẹ đồng bộ cho chân đế ô chữ nhật */
    border-top: 1px solid #f1f5f9 !important;
    box-sizing: border-box !important;
}

/* NÚT TẮT DẤU X HÌNH TRÒN GHIM ĐỈNH PHẢI (Nổi trên nền tiêu đề h3) */
.modal-close-x {
    position: absolute !important;
    top: 10px !important;     /* Cân đối nằm gọn trong vùng thẻ h3 */
    right: 12px !important;   
    width: 30px !important;   
    height: 30px !important;
    background: #e2e8f0 !important; /* Nền xám đậm hơn chút để nổi bật rõ ràng */
    border: none !important;
    font-size: 1.2rem !important; 
    color: #475569 !important;
    border-radius: 50% !important; 
    cursor: pointer !important;
    
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 999999 !important; 
    line-height: 1 !important;
    transition: all 0.2s ease !important;
}
.modal-close-x:hover { 
    background: #fee2e2 !important; 
    color: #ef4444 !important;      
}

/* Tự động tối ưu chiều cao Form trên các dòng điện thoại ngắn */
@media screen and (max-width: 480px) {
    .google-form-container {
        height: 380px !important; /* Thu ngắn Iframe trên mobile để lộ rõ tiêu đề đỉnh và mô tả đáy */
    }
}
    /* Căn giữa nút bấm trên trang */
    .drive-mega-wrapper {
        display: flex;
        justify-content: center;
        margin: 20px 0;
    }

    /* Định dạng nút hình chữ nhật phẳng */
    .btn-mega-cloud-drive {
        background: #0052cc; /* Màu nền xanh dương */
        color: #ffffff;      /* Màu chữ trắng */
        font-weight: bold;   /* Chữ in đậm */
        text-decoration: none; /* Xóa gạch chân chữ */
        
        padding: 10px 20px;  /* Độ dày lề nút */
        font-size: 14px;
        display: inline-flex;
        align-items: center;
        gap: 8px;            /* Khoảng cách giữa icon và chữ */
        
        border-radius: 0;    /* 📐 Góc vuông chữ nhật (không bo tròn) */
        transition: 0.2s;
    }

    /* Hiệu ứng đổi màu sậm hơn khi di chuột vào */
    .btn-mega-cloud-drive:hover {
        background: #0045ad;
        color: #ffffff;
    }
    /* ==========================================================================
   CSS TOÀN DIỆN: CÁC Ô CHỮ NHẬT NHỎ - HIỂN THỊ HẾT TÊN MÔN - KHÔNG BỊ ...
   ========================================================================== */

/* 1. KHUNG LƯỚI BAO NGOÀI: Tự động xếp cột và co giãn tăm tắp */
.subjects-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important; /* Khống chế bề ngang cột nhỏ gọn */
    gap: 20px !important; /* Khoảng cách giữa các ô môn học */
    padding: 10px !important;
    box-sizing: border-box !important;
}

/* 2. THẺ MÔN HỌC: Hình chữ nhật đứng nhỏ, phẳng đỳ, vuông góc cạnh */
.subject-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    padding: 20px 12px !important; /* 📐 ĐÃ SỬA: Thu nhỏ lề đệm lề trái/phải để nhường không gian cho chữ */
    text-align: center !important;
    position: relative !important; /* Neo tọa độ để bẫy click toàn diện tích */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    height: 250px !important; /* Khóa chiều cao cố định để tạo dáng hình chữ nhật đứng nhỏ nhắn */
    border-radius: 0px !important; /* Vuông thành sắc cạnh 100%, bỏ hẳn bo góc */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
    overflow: hidden !important; 
}

/* Hiệu ứng nổi nhẹ khi di chuột vào bất kỳ chỗ nào trên thẻ card */
.subject-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
}

/* 3. ĐỊNH DẠNG ICON EMOJI */
.card-icon {
    font-size: 2.2rem !important;
    margin-bottom: 8px !important; /* Thu gọn nhẹ khoảng cách dưới icon */
}

/* 4. TÊN MÔN HỌC H3: 📐 ĐÃ SỬA HIỂN THỊ HẾT CHỮ, KHÔNG CÒN DẤU ... */
.subject-card h3 {
    font-size: 0.95rem !important; /* Hạ nhẹ từ 1rem xuống 0.95rem để chữ dài xếp hàng vừa vặn */
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 6px 0 !important;
    width: 100% !important;
    line-height: 1.3 !important; /* Khoảng cách dòng vừa vặn khi chữ tự động xuống hàng */
    
    /* ĐÃ XÓA bộ ba mã ma thuật cũ. Cho phép chữ tự xuống dòng tự nhiên khi hết chỗ */
    white-space: normal !important; 
    overflow: visible !important;
    text-overflow: clip !important;
}

/* 5. ĐOẠN MÔ TẢ P: 📐 Cho phép hiển thị xuống dòng mượt mà đồng bộ */
.subject-card p {
    font-size: 0.72rem !important;
    color: #64748b !important;
    margin: 0 0 12px 0 !important;
    width: 100% !important;
    line-height: 1.3 !important;
    
    white-space: normal !important; /* Cho phép dòng mô tả tự xuống dòng thay vì hóa ... */
    overflow: visible !important;
    text-overflow: clip !important;
}

/* 6. ĐỒNG BỘ MÀU NÚT: Tất cả các nút mặc định đều chung một màu xanh dương công nghệ */
.subject-card .btn {
    background: #0052cc !important; 
    display: inline-block !important;
    font-size: 0.78rem !important;
    font-weight: bold !important;
    color: #ffffff !important;
    padding: 8px 14px !important;
    text-decoration: none !important;
    border-radius: 0px !important; /* Nút hình chữ nhật phẳng góc cạnh */
    transition: background 0.2s ease !important;
    z-index: 2 !important;
    margin-top: auto !important; /* Đẩy nút luôn bám sát đáy ô chữ nhật tăm tắp kể cả khi chữ bên trên dài ngắn khác nhau */
}

/* HIỆU ỨNG DI CHUỘT (HOVER) */
.subject-card:hover .btn {
    background: #0045ad !important; 
    color: #ffffff !important;
}

/* CƠ CHẾ BẪY CLICK TOÀN Ô */
.subject-card .btn::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important; 
}
/* 🎨 7. BẢNG PHỐI MÀU CHỈ RIÊNG CHO ĐƯỜNG VIỀN ĐỈNH CỦA TỪNG THẺ CARD */
.card-blue { border-top: 4px solid #0052cc !important; }
.card-purple { border-top: 4px solid #7c3aed !important; }
.card-orange { border-top: 4px solid #ea580c !important; }
.card-green { border-top: 4px solid #16a34a !important; }
.card-red { border-top: 4px solid #dc2626 !important; }
.card-teal { border-top: 4px solid #0d9488 !important; }
/* ==========================================================================
   📱 TỐI ƯU TRÊN ĐIỆN THOẠI: HIỂN THỊ 2 CỘT HÌNH CHỮ NHẬT
   ========================================================================== */
@media screen and (max-width: 768px) {
    .subjects-grid {
        /* Buộc chia thành đúng 2 cột bằng nhau */
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 10px !important; /* Thu nhỏ khoảng cách giữa các ô cho vừa màn hình điện thoại */
        padding: 5px !important;
    }

    .subject-card {
        height: 220px !important; /* Giảm nhẹ chiều cao một chút để cân đối với màn hình nhỏ */
        padding: 12px 8px !important; /* Thu hẹp lề trong để tối ưu không gian chữ */
    }

    .subject-card h3 {
        font-size: 0.85rem !important; /* Thu nhỏ cỡ chữ tiêu đề để không bị tràn cột */
    }

    .subject-card p {
        font-size: 0.68rem !important; /* Thu nhỏ cỡ chữ mô tả */
    }

    .card-icon {
        font-size: 1.8rem !important; /* Thu nhỏ icon cho gọn gàng */
    }
}
/* ==========================================================================
   CSS TỐI ƯU KHUNG DONATE QR: CĂN GIỮA TUYỆT ĐỐI & KÍCH THƯỚC VỪA VẶN
   ========================================================================== */

/* 1. KHỐI BAO NGOÀI TOÀN BỘ KHU VỰC QR */
.donate-qr-frame {
    width: 100% !important;
    max-width: 260px !important; /* 📐 ĐÃ SỬA: Khống chế kích thước hộp QR nhỏ gọn, vừa vặn tầm mắt nhìn */
    margin: 0 auto 30px auto !important; /* 📐 ĐÃ SỬA: Thuộc tính "auto" giúp toàn bộ khung luôn nằm chính giữa trang */
    text-align: center !important; /* Căn giữa dòng chữ hướng dẫn quét mã phía dưới */
    box-sizing: border-box !important;
}

/* Xóa bỏ đường gạch chân mặc định của thẻ link bao bọc hình ảnh */
.donate-qr-frame a {
    text-decoration: none !important;
    display: block !important;
    width: 100% !important;
}

/* 2. HỘP VIỀN BỌC NGOÀI HÌNH ẢNH */
.qr-border-deco {
    width: 100% !important;
    background: #ffffff !important;
    padding: 12px !important; /* Tạo khoảng lề trắng bao quanh mã QR giống như khung ảnh */
    border: 1px solid #e2e8f0 !important; /* Viền hộp hình chữ nhật sắc nét, tinh tế */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05) !important; /* Đổ bóng mờ nhẹ giúp khối nổi bật */
    box-sizing: border-box !important;
    margin-bottom: 12px !important; /* Khoảng cách giữa khung ảnh và chữ hướng dẫn bên dưới */
    transition: all 0.2s ease !important;
}

/* Hiệu ứng nổi nhẹ khi di chuột hoặc chạm tay vào vùng mã QR */
.qr-border-deco:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1) !important;
    border-color: #cbd5e1 !important;
}

/* 3. TẤM ẢNH QR THỰC TẾ TRÊN HỆ THỐNG */
.qr-real-image {
    display: block !important;
    width: 100% !important; /* 📐 ĐÃ SỬA: Ép ảnh luôn chiếm trọn bề ngang lòng khung bọc để tự co giãn linh hoạt */
    height: auto !important; /* Giữ nguyên tỷ lệ ảnh vuông, tuyệt đối không bị méo hình */
    border-radius: 0px !important; /* Ép phẳng vuông góc tăm tắp đồng bộ dáng hình chữ nhật */
}

/* 4. DÒNG CHỮ GHI CHÚ CHÂN ĐẾ CHỈ DẪN QUÉT MÃ */
.scan-label-hint {
    display: inline-block !important;
    font-size: 0.78rem !important; /* Cỡ chữ nhỏ nhắn, tinh giản */
    color: #64748b !important; /* Tông màu xám sang trọng */
    font-weight: 500 !important;
    line-height: 1.4 !important;
}

/* Đồng bộ màu xanh dương công nghệ phẳng cho biểu tượng icon QR */
.scan-label-hint i {
    color: #0052cc !important; 
    margin-right: 4px !important;
}
/* ==========================================================================
   CSS TỐI ƯU KHUNG DRIVE: TĂNG KÍCH THƯỚC TO HƠN MỘT XÍU & CĂN GIỮA ĐẸP
   ========================================================================= */
/* 1. KHỐI BAO NGOÀI: ĐÃ TĂNG CHIỀU NGANG TO HƠN (TỪ 700PX LÊN 820PX) */
/* 1. KHỐI BAO NGOÀI: ĐÃ TĂNG CHIỀU NGANG TO HƠN VÀ KÉO DÀI CHIỀU CAO THÊM 50% */
.google-drive-embed-container {
    width: 100% !important;
    max-width: 820px !important; /* Phóng to bề ngang rộng rãi hơn để nhìn rõ file background */
    margin: 25px auto 15px auto !important; /* Cưỡng ép chiếc hộp luôn nằm chính giữa trang */
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important; /* Viền hộp chữ nhật phẳng đỳ, sắc nét */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important; /* Bóng đổ mờ mịn giúp khối nổi bật */
    box-sizing: border-box !important;
    position: relative !important;
    /* 📐 ĐÃ SỬA CỰC ĐẠI: Tăng từ 62% lên hẳn 93% (Cộng thêm đúng 50% chiều dài) giúp khung cao sừng sững, thoáng đạt tối đa */
    padding-top: 93% !important; 
    overflow: hidden !important;
}
/* 2. ĐỊNH DẠNG TẤM BIA IFRAME TRÀN KHUNG CHỮ NHẬT */
.google-drive-embed-container iframe.drive-iframe-real {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important; /* Chiếm 100% lòng hộp bọc để tự động responsive */
    height: 100% !important; /* Chiếm trọn chiều cao vách đứng */
    border: none !important;
    display: block !important;
}

/* 3. KHỐI CHỮ HƯỚNG DẪN CHÂN ĐẾ (DRIVE-GUIDE-TIP) CĂN ĐỀU THEO KHUNG TO */
.drive-guide-tip {
    width: 100% !important;
    max-width: 820px !important; /* Khóa chiều ngang bằng khít với khung ảnh ở trên */
    margin: 0 auto 35px auto !important; /* Căn giữa tăm tắp, tạo khoảng cách với khối bên dưới */
    padding: 0 10px !important;
    box-sizing: border-box !important;
    text-align: left !important; /* Căn lề trái cho chữ hướng dẫn dễ đọc */
}

/* Định dạng chữ đoạn văn bên trong tip */
.drive-guide-tip p {
    font-size: 0.8rem !important; /* Cỡ chữ nhỏ nhắn, tinh tế */
    color: #11e714 !important; /* Màu xám đen sang trọng */
    line-height: 1.5 !important;
    margin: 0 !important;
}
/* ==========================================================================
   CSS BỔ SUNG: TỐI ƯU KHUNG DRIVE DÀI HƠN TRÊN ĐIỆN THOẠI (SCREEN < 768PX)
   ========================================================================== */
@media screen and (max-width: 767px) {
  /* 1. KÉO DÀI CHIỀU CAO KHUNG TRÊN ĐIỆN THOẠI */
  .google-drive-embed-container {
    /* Tăng padding-top để khung cao hẳn lên (bạn có thể tăng từ 120% đến 150% tùy ý) */
    padding-top: 140% !important; 
    
    /* Thu hẹp khoảng cách viền hai bên để tận dụng không gian màn hình nhỏ */
    margin: 15px auto 10px auto !important; 
  }

  /* 2. ĐIỀU CHỈNH CHỮ HƯỚNG DẪN DƯỚI CHÂN ĐẾ CHO PHÙ HỢP MÀN HÌNH NHỎ */
  .drive-guide-tip {
    margin: 0 auto 20px auto !important;
    padding: 0 5px !important;
  }

  .drive-guide-tip p {
    font-size: 0.85rem !important; /* Tăng nhẹ cỡ chữ một xíu để dễ đọc trên điện thoại */
    line-height: 1.4 !important;
  }
}

/* ==========================================================================
   CSS TỐI ƯU KHỐI DONATE PREMIUM: BOX CHỮ NHẬT 2 CỘT SANG TRỌNG, CĂN GIỮA
   ========================================================================== */

/* 1. KHUNG HỘP CHỮ NHẬT LỚN BAO NGOÀI */
.donate-card-premium {
    width: 100% !important;
    max-width: 680px !important; /* Độ rộng chữ nhật nằm ngang vừa vặn, đẹp mắt trên PC */
    margin: 30px auto !important; /* Ma thuật "auto" giúp toàn bộ hộp luôn nằm chính giữa trang */
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important; /* Viền hộp phẳng tinh tế */
    border-top: 4px solid #0052cc !important; /* Nhấn nhẹ đường viền đỉnh màu xanh công nghệ */
    border-radius: 12px !important; /* Bo góc mượt mà */
    padding: 24px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important; /* Đổ bóng mờ nhẹ */
    box-sizing: border-box !important;

    /* Kích hoạt cơ chế Flexbox chia 2 cột nằm ngang */
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 30px !important; /* Khoảng cách giữa cột chữ và cột ảnh QR */
}

/* 2. CỘT TRÁI: KHU VỰC THÔNG TIN CHỮ */
.donate-info-text {
    flex: 1 !important; /* Tự động dãn nở chiếm trọn không gian trống bên trái */
    text-align: left !important; /* Căn lề trái toàn bộ chữ cho dễ đọc */
    box-sizing: border-box !important;
}

/* Tiêu đề khối */
.donate-info-text h3 {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 16px 0 !important;
    letter-spacing: 0.5px !important;
}

/* Từng dòng thông tin (Ngân hàng, STK, Chủ TK) */
.info-row {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    margin-bottom: 10px !important;
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
}

/* Nhãn bên trái (ví dụ: Ngân hàng:) */
.info-label {
    color: #64748b !important; /* Tông màu xám nhẹ sang trọng */
    width: 110px !important; /* Khóa cứng bề ngang nhãn để phần giá trị thẳng hàng tăm tắp */
    flex-shrink: 0 !important;
}

/* Giá trị bên phải (ví dụ: OCB) */
.info-value {
    color: #0f172a !important;
    font-weight: 600 !important;
}

/* Đoạn văn ghi chú chân đế chữ */
.info-note {
    margin-top: 16px !important;
    border-top: 1px dashed #e2e8f0 !important; /* Đường gạch đứt ngăn cách tinh tế */
    padding-top: 12px !important;
}
.info-note p {
    font-size: 0.78rem !important;
    color: #475569 !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

/* 3. CỘT PHẢI: KHUNG CHỨA MÃ QR */
.donate-qr-frame {
    width: 170px !important; /* Khóa cứng chiều ngang vùng ảnh QR vừa vặn */
    flex-shrink: 0 !important; /* Không cho phép ảnh bị bóp méo khi thu nhỏ trình duyệt */
    text-align: center !important;
    box-sizing: border-box !important;
}

/* Hộp viền trắng bọc sát ảnh QR */
.qr-border-deco {
    width: 100% !important;
    background: #ffffff !important;
    padding: 8px !important; /* Tạo lề trắng bao quanh mã QR như khung ảnh */
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
    box-sizing: border-box !important;
    margin-bottom: 8px !important;
}

/* Tấm ảnh QR thực tế */
.qr-real-image {
    display: block !important;
    width: 100% !important;
    height: auto !important; /* Giữ ảnh luôn vuông vắn, tuyệt đối không bị méo hình */
}

/* Dòng chữ hướng dẫn quét mã nhỏ xíu dưới đáy ảnh */
.scan-label-hint {
    display: inline-block !important;
    font-size: 0.72rem !important;
    color: #64748b !important;
    font-weight: 500 !important;
}
.scan-label-hint i {
    color: #0052cc !important; /* Đồng bộ màu xanh dương cho icon QR */
    margin-right: 3px !important;
}

/* ==========================================================================
   📱 TỰ ĐỘNG RESPONSIVE: CHUYỂN THÀNH 1 CỘT ĐỨNG TRÊN ĐIỆN THOẠI DI ĐỘNG
   ========================================================================== */
@media screen and (max-width: 580px) {
    .donate-card-premium {
        flex-direction: column !important; /* Ép cột chữ nằm lên trên, cột QR nhảy xuống dưới đáy */
        gap: 20px !important;
        padding: 20px 16px !important;
        max-width: 92% !important; /* Co dãn khít lề màn hình điện thoại chống tràn vách */
    }
    
    .donate-info-text {
        text-align: center !important; /* Căn giữa toàn bộ chữ trên mobile nhìn cho cân đối */
    }

    .info-row {
        justify-content: center !important; /* Căn giữa dòng thông tin tài khoản trên điện thoại */
    }
    
    .info-label {
        width: auto !important; /* Nhả khóa chiều ngang để chữ dồn sát nhau tự nhiên */
        margin-right: 6px !important;
    }

    .donate-qr-frame {
        width: 160px !important; /* Thu nhỏ nhẹ khung QR trên điện thoại di động */
    }
}
/* Căn giữa nút bấm */
.btn-box {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 25px 0;
    width: 100%;
}
/* Kiểu dáng nút bấm cao cấp (Phối màu Xanh - Cam - Đỏ) */
.btn-scroll {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 32px;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 50px;
    
    /* Nền Gradient đan xen Xanh -> Cam -> Đỏ rực */
    background: linear-gradient(135deg, #0072ff 0%, #ff7300 50%, #fe0844 100%);
    background-size: 200% auto;
    
    /* Hiệu ứng bóng phát sáng Neon lai hai màu */
    box-shadow: 0 6px 20px rgba(254, 8, 68, 0.35), 
                0 0 0 2px rgba(255, 255, 255, 0.2) inset;
    
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    overflow: hidden;
}
/* Vệt sáng chạy lướt mượt qua mặt nút */
.btn-scroll::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg, 
        transparent, 
        rgba(255, 255, 255, 0.45), 
        transparent
    );
    transition: left 0.6s ease-in-out;
}
/* Hiệu ứng Rê chuột (Hover) - Đổi hướng dải màu Xanh Cam Đỏ */
.btn-scroll:hover {
    background-position: right center; /* Cuộn màu từ Cam-Đỏ về lại Xanh */
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 28px rgba(255, 115, 0, 0.5), 
                0 0 18px rgba(0, 114, 255, 0.6);
}

.btn-scroll:hover::before {
    left: 100%;
}

/* Hiệu ứng Chạm/Click (Active) */
.btn-scroll:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 12px rgba(254, 8, 68, 0.4);
}

/* Căn lề khi dịch chuyển để không bị thanh Header che mất */
.tll {
    scroll-margin-top: 85px;
    transition: all 0.5s ease;
}
.tll span {
color: #11e714;
}
/* Khối bọc điều khiển vị trí lề phải */
.btn-right-wrapper {
    display: flex;
    justify-content: flex-end;
    padding-right: 25px;
    margin: 20px 0;
    width: 100%;
}

/* Kiểu dáng nút bấm Cyber Glassmorphic 3D */
.btn-drive-right {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 30px;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.6px;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 50px;
    
    /* Đổi sang Nền Dải màu chuyển động 400% (Xanh -> Đỏ -> Cam -> Xanh) */
    background: linear-gradient(45deg, #0072ff, #fe0844, #ff7300, #0072ff);
    background-size: 400% 400%;
    animation: auroraMotion 8s ease infinite; /* Hiệu ứng dải màu tự chạy ngầm */
    
    /* Hiệu ứng Đổ bóng tầng & Viền phát sáng */
    box-shadow: 0 8px 25px rgba(0, 114, 255, 0.4),
                0 0 0 2px rgba(255, 255, 255, 0.25) inset;
    
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
}

/* Khối viền Aura phát sáng chạy theo sau nút */
.btn-drive-right::after {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(45deg, #0072ff, #fe0844, #ff7300, #0072ff);
    background-size: 400% 400%;
    animation: auroraMotion 8s ease infinite;
    border-radius: 50px;
    z-index: -1;
    opacity: 0;
    filter: blur(12px);
    transition: opacity 0.4s ease;
}

/* Hiệu ứng Icon xoay nhẹ và phóng to khi tương tác */
.btn-drive-right i {
    font-size: 17px;
    transition: transform 0.4s ease;
}

/* Hiệu ứng Rê chuột (Hover) */
.btn-drive-right:hover {
    transform: translateY(-5px) scale(1.04);
    box-shadow: 0 14px 35px rgba(254, 8, 68, 0.5);
    color: #ffffff !important;
}

/* Bật lớp sáng Neon mềm phía sau khi Hover */
.btn-drive-right:hover::after {
    opacity: 0.8;
}

/* Icon nhúc nhích nghiêng nhẹ 15 độ khi Hover */
.btn-drive-right:hover i {
    transform: rotate(-15deg) scale(1.2);
}

/* Hiệu ứng Chạm/Click (Active) */
.btn-drive-right:active {
    transform: translateY(-1px) scale(0.97);
    box-shadow: 0 5px 15px rgba(0, 114, 255, 0.4);
}

/* Keyframe kích hoạt dải màu tự động luân chuyển mượt mà */
@keyframes auroraMotion {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
/* ==========================================================================
   BANNER QUẢNG BÁ TRANG MỚI: PHONG CÁCH APPLE HELLO / STARTUP
   ========================================================================== */

.apple-welcome-overlay {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.88) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    z-index: 99999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    cursor: pointer;
    /* Cho phép người dùng biết toàn bộ khung có thể ấn */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s ease;
}

.apple-welcome-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* HỘP BANNER TRUNG TÂM PHONG CÁCH KÍNH MỜ APPLE */
.apple-banner-card {
    position: relative !important;
    width: 100% !important;
    max-width: 440px !important;
    background: linear-gradient(180deg, rgba(30, 30, 34, 0.92) 0%, rgba(18, 18, 20, 0.96) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 28px !important;
    padding: 35px 28px 25px 28px !important;
    text-align: center !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05) inset !important;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.apple-welcome-overlay.active .apple-banner-card {
    transform: scale(1) translateY(0);
}

/* Quầng sáng nhẹ phía sau */
.apple-device-glow {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 120px;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.25) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(30px);
    pointer-events: none;
}

/* Icon Apple phát sáng nhẹ */
.apple-icon-symbol {
    font-size: 38px;
    color: #ffffff;
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.4));
    margin-bottom: 8px;
    display: inline-block;
}

/* Chữ chào đa ngôn ngữ lướt mờ */
.apple-hello-stream {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* Tên thương hiệu phong cách Apple Text Shimmer */
.apple-brand-title {
    font-size: 2.4rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px;
    margin: 6px 0 10px 0 !important;

    /* Hiệu ứng chữ sáng chuyển động như màn hình boot Apple */
    background: linear-gradient(90deg, #ffffff 0%, #a1a1aa 40%, #38bdf8 50%, #ffffff 60%, #a1a1aa 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: appleShine 4s linear infinite;
}

@keyframes appleShine {
    to {
        background-position: 200% center;
    }
}

.apple-subtext {
    font-size: 0.88rem;
    color: #38bdf8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.apple-glow-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #38bdf8, transparent);
    margin: 12px auto;
}

.apple-desc {
    font-size: 0.85rem;
    color: #a1a1aa;
    line-height: 1.5;
    margin-bottom: 28px;
    padding: 0 10px;
}

/* 2 NÚT BẤM LỰA CHỌN */
.apple-action-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.apple-btn-choice {
    flex: 1;
    padding: 13px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 99px;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Nút Ở lại */
.btn-apple-stay {
    background: rgba(255, 255, 255, 0.08);
    color: #e4e4e7;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-apple-stay:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Nút Đi đến trang mới */
.btn-apple-go {
    background: #0071e3;
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 113, 227, 0.4);
}

.btn-apple-go:hover {
    background: #0077ed;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.6);
}

.apple-tap-hint {
    margin-top: 18px;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.4px;
}

@media screen and (max-width: 480px) {
    .apple-banner-card {
        padding: 30px 20px 20px 20px !important;
        border-radius: 22px !important;
    }

    .apple-brand-title {
        font-size: 2rem !important;
    }

    .apple-action-actions {
        flex-direction: column-reverse;
        gap: 10px;
    }
}