/* ==========================================================================
   1. SETUP & VARIABLES (MÀU SẮC THƯƠNG HIỆU: NAVY & CAM)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* --- MÀU THƯƠNG HIỆU --- */
    --brand-navy: #1D3E61;   /* Xanh Navy Đậm (Chủ đạo) */
    --brand-orange: #F26D21; /* Cam Tươi (Điểm nhấn/Nút) */
    
    /* Biến hệ thống */
    --primary: var(--brand-orange);
    --primary-dark: #d95a10; /* Cam đậm khi hover */
    
    /* Màu chữ & Nền */
    --text-dark: var(--brand-navy); /* Chữ chính màu Navy */
    --text-muted: #536b85;          /* Chữ phụ màu xám xanh */
    --bg-light: #f4f7f9;
    --border-color: #e5e7eb;

    /* Màu Mạng Xã Hội */
    --color-fb: #1877F2;
    --color-tele: #24A1DE;
    --color-zalo: #0068FF;
    --color-x: #000000;

    /* Font */
    --font-main: 'Plus Jakarta Sans', sans-serif;
}

/* ==========================================================================
   2. CẤU TRÚC CƠ BẢN (BASE & LAYOUT)
   ========================================================================== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: #ffffff;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1; /* Đẩy footer xuống dưới cùng */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Utilities */
.text-primary { color: var(--brand-orange) !important; }
.bg-primary { background-color: var(--brand-orange) !important; }
.text-orange { color: var(--brand-orange) !important; }
.bg-orange { background-color: var(--brand-orange) !important; color: white; }
.bg-navy { background-color: var(--brand-navy) !important; color: white; }
.cursor-pointer { cursor: pointer; }

/* Badge & Nút */
.badge-soft-primary {
    background-color: rgba(20, 184, 166, 0.1);
    color: var(--brand-navy); 
    border: 1px solid rgba(20, 184, 166, 0.2);
}

.badge-soft-primary i {
    color: var(--brand-orange) !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-orange) 0%, #ff8c42 100%);
    border: none;
    padding: 0.7rem 1.8rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(242, 109, 33, 0.3);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #d95a10 0%, var(--brand-orange) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 109, 33, 0.4);
}

/* Nút Navy Hover */
.btn-navy {
    background-color: var(--brand-navy);
    color: white;
    transition: all 0.3s ease;
}

.btn-navy:hover, .btn-hover-navy:hover {
    background-color: #0a192f !important;
    color: white !important;
    border-color: #0a192f !important;
}

/* ==========================================================================
   3. HEADER & NAVIGATION (LOGO TRANG WEB)
   ========================================================================== */
.header {
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(15, 43, 70, 0.08);
    z-index: 1000;
    position: relative;
}

/* Logo Box (Icon) */
.logo-box {
    width: 42px;
    height: 42px;
    background-color: var(--brand-navy);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(15, 43, 70, 0.2);
}

/* --- LOGO TRANG WEB --- */
.brand-logo-img {
    height: 65px; 
    width: auto;
    object-fit: contain;
    margin-right: 10px;
}

.brand-banner-icon {
    height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
}

.brand-name {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    margin-left: 6px !important;
    line-height: 1;
}

.text-trading { color: var(--brand-orange); }
.text-insight { color: var(--brand-navy); }

/* Animation Xoay */
@keyframes spin-infinite {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.icon-spin { animation: spin-infinite 2s linear infinite; display: inline-block; }

/* Menu Links */
.navbar-nav .nav-link {
    font-weight: 600;
    color: #536b85;
    margin: 0 12px;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--brand-orange);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--brand-orange);
    transition: width 0.3s ease;
}
.navbar-nav .nav-link:hover::after { width: 100%; }

/* Contact Dropdown Hover */
.contact-wrapper { position: relative; display: inline-block; }

.social-popup {
    position: absolute;
    top: 120%;
    right: 0;
    width: 280px;
    background: white;
    padding: 15px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid #f0f0f0;
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1000;
}

.social-popup::before {
    content: "";
    position: absolute;
    top: -8px;
    right: 25px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.contact-wrapper:hover .social-popup {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    top: 100%;
}

.social-link-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 8px;
    color: var(--text-dark);
    background: #f8f9fa;
    transition: all 0.2s ease;
}

.social-link-item:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateX(5px);
}

.social-icon-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 12px;
    font-size: 1.1rem;
}

/* ==========================================================================
   4. HERO & STATS SECTION
   ========================================================================== */
.container-fluid { max-width: 1920px; margin: 0 auto; }

.hero-section {
    padding: 8rem 0;
    background: linear-gradient(180deg, #fff 0%, var(--bg-light) 100%);
}

/* --- TITLE CHÍNH (ĐÃ SỬA ĐỂ TÁCH 2 DÒNG) --- */
.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.3 !important; /* Tăng khoảng cách dòng */
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    color: var(--brand-navy);
    white-space: normal !important; /* Cho phép xuống dòng */
}

/* Định dạng thẻ <br> để chắc chắn xuống dòng */
.hero-title br {
    display: block !important;
    content: "";
    margin-bottom: 10px; /* Tạo khoảng cách giữa 2 dòng */
}

.hero-desc {
    font-size: 1.35rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* Stats Grid */
.stat-grid-xl {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.stat-card-xl {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    min-height: 220px;
}

.stat-card-xl:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.icon-box-xl {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-bottom: 20px;
}

.stat-number-xl {
    font-size: 3rem;
    font-weight: 800;
    color: var(--brand-navy);
    line-height: 1.1;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.stat-label-xl {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Theme Colors */
.theme-teal { background-color: rgba(20, 184, 166, 0.15); color: var(--primary); }
.theme-green { background-color: rgba(16, 185, 129, 0.15); color: #10b981; }
.theme-yellow { background-color: rgba(242, 109, 33, 0.15); color: var(--brand-orange); } 
.theme-red { background-color: rgba(239, 68, 68, 0.15); color: #ef4444; }

/* ==========================================================================
   5. EXCHANGE CARDS
   ========================================================================== */
.exchange-card {
    transition: all 0.3s ease;
    background: #ffffff;
    border-radius: 24px;
    
    /* --- SỬA DÒNG NÀY --- */
    /* Tăng từ 1px lên 2px hoặc 3px để viền dày hơn */
    border: 3px solid var(--border-color); 
    
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.exchange-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(29, 62, 97, 0.2) !important;
    
    /* Khi di chuột vào, viền sẽ đổi màu cam và giữ nguyên độ dày đã cài đặt ở trên */
    border-color: var(--brand-orange);
}

.exchange-logo-container {
    height: 360px; /* Container cao */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    padding: 20px 0;
}

.exchange-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand-navy);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 3;
}

/* Logo Sàn */
.exchange-logo-box {
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 35px; 
    padding: 0;
    border: none;
    overflow: hidden; 
    box-shadow: 0 15px 40px rgba(29, 62, 97, 0.18);
    transition: all 0.3s ease;
    z-index: 1;
}

.exchange-logo-box:hover {
     transform: scale(1.02);
     box-shadow: 0 20px 50px rgba(242, 109, 33, 0.25);
}

.exchange-logo-box img, .logo-binance svg {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    border-radius: 0;
    filter: none;
}

.referral-code {
    background: var(--bg-light);
    border: 1px dashed #dee2e6;
    padding: 10px 15px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 1rem;
    color: var(--brand-navy);
}

/* ==========================================================================
   6. NEWS SECTION
   ========================================================================== */
.news-section-title {
    color: var(--brand-navy);
    border-bottom: 4px solid var(--brand-orange) !important;
    margin-bottom: -4px !important;
    padding-bottom: 10px;
    display: inline-block;
}

.news-card {
    background: linear-gradient(180deg, #0a192f 0%, #152e4d 100%);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    height: 100%; 
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(10, 25, 47, 0.25);
}

.news-img-box {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 ratio */
    overflow: hidden;
    background-color: #0f2342; 
}

.news-img-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.5s ease;
}

.news-card:hover .news-img-box img {
    transform: scale(1.1);
}

.news-source-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(10, 25, 47, 0.85);
    color: #fff;
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(253, 126, 20, 0.3);
}

.news-body {
    padding: 20px 20px 50px 20px; 
    flex: 1; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-title {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-top: auto; 
}

.badge-brand-light {
    background-color: rgba(253, 126, 20, 0.15);
    border: 1px solid rgba(253, 126, 20, 0.3);
    color: #fd7e14;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 4px;
}

.news-date {
    color: rgba(255, 255, 255, 0.5);
}

.news-arrow-btn {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background-color: var(--brand-orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #fff; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.news-card:hover .news-arrow-btn {
    background-color: #e36d0a;
    transform: translateX(-50%) scale(1.1);
}

/* ==========================================================================
   7. WIDGETS & FOOTER
   ========================================================================== */
.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.social-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 12px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.social-item:hover {
    background-color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 15px;
    color: white;
}

.social-info h6 { margin: 0; font-weight: 700; font-size: 1rem; }
.social-info span { font-size: 0.8rem; color: #6c757d; }

/* Widget Nổi */
.floating-socials {
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.float-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    background-color: var(--brand-navy);
}

.float-icon:hover {
    transform: scale(1.1);
    color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.float-icon::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--brand-navy);
    color: white;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.float-icon::after {
    content: "";
    position: absolute;
    right: 54px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 6px solid var(--brand-navy);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.float-icon:hover::before, .float-icon:hover::after {
    opacity: 1;
    visibility: visible;
}

@keyframes shake-icon {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    75% { transform: rotate(-10deg); }
}
.animate-shake { animation: shake-icon 2s infinite ease-in-out; }

.bg-fb { background-color: var(--color-fb); }
.bg-tele { background-color: var(--color-tele); }
.bg-zalo { background-color: var(--color-zalo); }
.bg-up { background-color: var(--brand-orange); }

footer {
    background-color: var(--brand-navy) !important;
    color: #cbd5e1 !important;
    margin-top: auto;
}

footer a {
    color: #94a3b8 !important;
    transition: 0.3s;
}

footer a:hover {
    color: var(--brand-orange) !important;
    text-decoration: none;
}

footer .logo-box {
    background-color: white;
    color: var(--brand-navy);
}

/* ==========================================================================
   8. MOBILE RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. HIỂN THỊ LẠI CHỮ BRAND TRÊN MOBILE */
    .brand-name {
        display: block !important; 
        font-size: 1.1rem;
        margin-left: 5px !important;
    }
    
    .brand-banner-icon { height: 40px; }
    .navbar-brand { font-size: 1.1rem; }
    .logo-box { width: 35px; height: 35px; }

    .contact-wrapper {
        position: static;
        display: block;
        text-align: center;
        margin-top: 10px;
    }
    .social-popup {
        width: 260px;
        right: 15px;
        left: auto !important;
        top: 110%;
        transform: none;
        margin: 0 auto;
    }
    .social-popup::before { right: 40px !important; left: auto !important; }

    .hero-section { padding: 3rem 0; text-align: center; }
    
    /* 2. CHỈNH SỬA TITLE BANNER CHO MOBILE */
    .hero-title {
        font-size: 1.8rem !important;
        line-height: 1.3;
        margin-bottom: 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis; 
    }
    
    .hero-desc { font-size: 0.95rem; margin-bottom: 2rem; padding: 0 10px; }
    .hero-section .d-flex { justify-content: center; flex-direction: column; gap: 10px !important; }
    
    .badge-soft-primary {
        font-size: 0.8rem;
        padding: 6px 12px;
        white-space: nowrap;
    }
    
    .btn-hero-xl {
        width: 100%;
        margin-bottom: 10px;
        font-size: 1rem;
        padding: 12px 20px;
    }

    /* 3. THẺ STATS: CĂN THẲNG HÀNG & THU GỌN 20% */
    .stat-grid-xl {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 1.5rem;
        padding: 0 15px;
    }

    .stat-card-xl {
        display: grid;
        grid-template-columns: 45px 1fr; /* Icon bên trái, text bên phải */
        gap: 0 15px;
        align-items: center;
        padding: 12px 16px; /* Padding nhỏ hơn 20% */
        text-align: left;
        min-height: auto;
        border-radius: 12px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    }

    .icon-box-xl {
        grid-row: 1 / span 2;
        width: 45px; height: 45px;
        font-size: 1.5rem;
        margin: 0;
        margin-bottom: 0; /* Ghi đè margin cũ */
    }

    .stat-number-xl {
        font-size: 1.25rem;
        margin-bottom: 0;
        line-height: 1.2;
        align-self: end;
    }
    
    .stat-label-xl {
        font-size: 0.85rem;
        line-height: 1.2;
        align-self: start;
    }

    .floating-socials {
        bottom: 20px; right: 15px !important; left: auto; gap: 12px;
    }
    .float-icon { width: 45px; height: 45px; font-size: 1.2rem; }
    .float-icon-big { width: 60px; height: 60px; font-size: 1.8rem; }
    .float-icon::before, .float-icon::after { display: none !important; }

    /* 4. MOBILE FIX: 4 NÚT LỌC TRÊN 1 HÀNG */
    #san-giao-dich .d-flex.flex-wrap {
        flex-wrap: nowrap !important;
        gap: 6px !important;
        overflow-x: auto;
        justify-content: flex-start !important;
        padding-bottom: 5px;
    }
    #san-giao-dich .d-flex.flex-wrap::-webkit-scrollbar { display: none; }
    .filter-btn {
        flex: 1;
        padding: 8px 4px !important;
        font-size: 0.7rem !important;
        white-space: nowrap;
        min-width: fit-content;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Màn hình rất nhỏ */
@media (max-width: 576px) {
    .hero-title {
        font-size: 1.5rem !important;
        white-space: normal;
    }
}

/* ==========================================================================
   CẬP NHẬT GIAO DIỆN THẺ SÀN (NÚT ĐĂNG KÝ & HOÀN PHÍ)
   ========================================================================== */

/* Nút Đăng Ký Ngay */
.btn-register {
    background: linear-gradient(135deg, var(--brand-orange) 0%, #ff8c42 100%);
    color: white !important;
    font-weight: 700;
    font-size: 1rem;
    padding: 10px 0;
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 12px rgba(242, 109, 33, 0.3);
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    text-align: center;
}

.btn-register:hover {
    background: linear-gradient(135deg, #d95a10 0%, var(--brand-orange) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(242, 109, 33, 0.4);
}

/* Link Xem hướng dẫn */
.guide-link {
    font-size: 0.9rem;
    color: #6c757d; /* Màu xám */
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
    margin-top: 10px;
}

.guide-link:hover {
    color: var(--brand-navy); /* Hover đổi màu xanh navy */
    text-decoration: underline;
}

/* Chữ Hoàn phí dưới tên sàn */
.refund-highlight {
    color: #009688; /* Màu xanh ngọc đậm */
    font-weight: 700;
    font-size: 1.1rem;
}

/* ==========================================================================
   FIX HIỂN THỊ HERO TITLE (2 DÒNG RIÊNG BIỆT: PC & MOBILE)
   ========================================================================== */

/* 1. Cấu hình chung cho tiêu đề */
.hero-title {
    white-space: normal !important; /* Cho phép xuống dòng */
    line-height: 1.3 !important;    /* Khoảng cách dòng thoáng hơn */
    word-wrap: break-word;
}

/* 2. Ép buộc thẻ <br> hoạt động để tách dòng */
.hero-title br {
    display: block !important;
    content: "";
    margin: 5px 0; /* Khoảng cách giữa 2 dòng */
}

/* 3. Dòng chữ "Hoàn Phí Tối Đa 50%" */
.hero-title span {
    display: inline-block; /* Giữ cụm từ không bị ngắt giữa chừng */
}

/* 4. Tùy chỉnh riêng cho PC (Màn hình lớn) */
@media (min-width: 992px) {
    .hero-title {
        font-size: 3rem; /* Kích thước chữ to */
        max-width: 100%;
    }
    
    .hero-title br {
        margin-bottom: 15px; /* Tăng khoảng cách trên PC cho đẹp */
    }
}

/* 5. Tùy chỉnh riêng cho Mobile (Màn hình nhỏ) */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem !important; /* Chữ nhỏ lại để vừa màn hình */
        line-height: 1.3;
    }
}

/* ==========================================================================
   NÚT ZALO RUNG LẮC (LUCIDGEN STYLE)
   ========================================================================== */

/* Animation Rung Lắc & Lan Tỏa */
@keyframes zoom {
    0% { transform: scale(.5); opacity: 0 }
    50% { opacity: 1 }
    to { opacity: 0; transform: scale(1) }
}

@keyframes lucidgenzalo {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-25deg); }
    50% { transform: rotate(25deg); }
    75% { transform: rotate(-25deg); }
    100% { transform: rotate(0deg); }
}

/* Vị trí nút */
.fcta-zalo-vi-tri-nut {
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 9999;
}

/* Nền nút tròn */
.fcta-zalo-nen-nut {
    width: 55px;
    height: 55px;
    text-align: center;
    color: #fff;
    background: #0068ff; /* Màu xanh Zalo chuẩn */
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .06), 0 2px 32px rgba(0, 0, 0, .16);
}

/* Icon bên trong */
.fcta-zalo-ben-trong-nut {
    position: absolute;
    width: 60%;
    height: 60%;
    left: 20%;
    top: 20%;
    transition: all 1s;
}

.fcta-zalo-ben-trong-nut svg {
    width: 100%;
    height: 100%;
    animation: lucidgenzalo 1.5s linear infinite; /* Hiệu ứng rung */
}

.fcta-zalo-ben-trong-nut svg path {
    fill: #fff;
}

/* Hiệu ứng lan tỏa (Gợn sóng) */
.fcta-zalo-nen-nut::after,
.fcta-zalo-nen-nut::before {
    content: "";
    position: absolute;
    border: 1px solid #0068ff;
    background: #0068ff80;
    z-index: -1;
    left: -20px;
    right: -20px;
    top: -20px;
    bottom: -20px;
    border-radius: 50%;
    animation: zoom 1.9s linear infinite;
}

.fcta-zalo-nen-nut::after {
    animation-delay: .4s;
}

/* Text "Chat Ngay" khi hover */
.fcta-zalo-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scaleX(0); /* Ẩn mặc định */
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    transition: all .5s;
    opacity: 0;
    line-height: 1.5;
    color: white;
}

/* Hiệu ứng Hover */
.fcta-zalo-nen-nut:hover .fcta-zalo-ben-trong-nut {
    opacity: 0; /* Ẩn icon */
}

.fcta-zalo-nen-nut:hover .fcta-zalo-text {
    transform: translate(-50%, -50%) scaleX(1); /* Hiện chữ */
    opacity: 1;
}

/* Bong bóng "Chat hỗ trợ" */
div.fcta-zalo-mess {
    position: fixed;
    bottom: 29px;
    right: 75px; /* Cách nút ra một chút */
    z-index: 9998;
    background: #fff;
    padding: 8px 15px;
    color: #0068ff;
    border-radius: 50px; /* Bo tròn đều */
    box-shadow: 0 1px 6px rgba(0, 0, 0, .06), 0 2px 32px rgba(0, 0, 0, .16);
    font-weight: 700;
    font-size: 14px;
    font-family: var(--font-main);
}

/* Chỉ hiện bong bóng trên PC, ẩn trên Mobile cho gọn */
@media (max-width: 768px) {
    div.fcta-zalo-mess {
        display: none;
    }
    
    .fcta-zalo-vi-tri-nut {
        right: 15px;
        bottom: 15px;
    }
}

/* ==========================================================================
   FIX LỖI 2 NÚT BẤM KHÔNG ĐỀU NHAU
   ========================================================================== */

/* Cấu hình chung cho cả 2 nút Hero */
.btn-hero-xl {
    height: 54px; /* Ép chiều cao cố định cho cả 2 */
    padding: 0 30px !important; /* Độ rộng ngang */
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    
    /* Dùng Flexbox để căn giữa chữ và icon tuyệt đối */
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    
    /* Mẹo: Thêm viền trong suốt 2px để bù trừ cho nút có viền */
    border: 2px solid transparent; 
    white-space: nowrap; /* Không cho chữ xuống dòng */
}

/* Tinh chỉnh riêng cho nút Trắng (Cộng đồng) */
.btn-outline-secondary.btn-hero-xl {
    border: 2px solid #e5e7eb; /* Viền thật màu xám nhạt */
    color: var(--brand-navy);
}

/* Hover cho nút Trắng */
.btn-outline-secondary.btn-hero-xl:hover {
    border-color: var(--brand-navy);
    background-color: var(--brand-navy) !important;
    color: white !important;
}

/* Hover cho nút Trắng -> Icon bên trong đổi màu theo */
.btn-outline-secondary.btn-hero-xl:hover i {
    color: white !important;
}

/* Responsive trên Mobile */
@media (max-width: 768px) {
    .btn-hero-xl {
        width: 100%; /* Full màn hình trên điện thoại */
        height: 50px; /* Nhỏ hơn chút cho gọn */
        font-size: 1rem;
    }
}