/* ==============================================================
   FOOTER CHUYÊN NGHIỆP, CÂN ĐỐI & CHUẨN KHOẢNG CÁCH CHO INFAS
============================================================== */
.footer-beautiful, .chat-options-compact, .footer-beautiful h5, .chat-options-header, .chat-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.footer-beautiful { 
    background-color: #ffffff; 
    color: #475569; 
    padding: 50px 0 0; 
    position: relative; 
    overflow: hidden; 
    font-size: 14px;
    border-top: 2px solid var(--gomi-light, #e2e8f0); 
}

/* Tiêu đề cột chuẩn chỉ */
.footer-col-title { 
    color: #1e293b; 
    font-weight: 700; 
    font-size: 0.95rem; 
    margin-bottom: 22px; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 10px;
}

/* Gạch chân màu thương hiệu INFAS */
.footer-col-title::after {
    content: ''; 
    position: absolute; 
    left: 0; 
    bottom: 0;
    width: 32px; 
    height: 3px; 
    background: var(--gomi-primary, #1e5ca8);
    border-radius: 4px;
}

.footer-brand-text {
    font-size: 13.5px;
    line-height: 1.65;
    color: #64748b;
    margin-bottom: 16px;
}

/* Danh sách link thông hàng, cân đối */
.footer-links-list { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
} 
.footer-links-list li { 
    margin-bottom: 11px; 
}
.footer-links-list a { 
    color: #475569; 
    text-decoration: none; 
    transition: all 0.2s ease; 
    display: inline-flex; 
    align-items: center; 
    gap: 8px;
    font-weight: 500;
    font-size: 13.5px;
} 
.footer-links-list a i {
    font-size: 10px;
    color: #94a3b8;
    transition: transform 0.2s, color 0.2s;
}
.footer-links-list a:hover { 
    color: var(--gomi-primary, #1e5ca8); 
    transform: translateX(4px); 
}
.footer-links-list a:hover i {
    color: var(--gomi-primary, #1e5ca8);
}

/* Cột liên hệ & Hotline */
.footer-hotline-box {
    margin-bottom: 14px;
}
.footer-hotline-label {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 2px;
}
.footer-hotline-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--gomi-primary, #1e5ca8);
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.footer-hotline-number:hover {
    color: #0f3d75;
}

.footer-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 10px;
    line-height: 1.5;
}
.footer-info-item i {
    margin-top: 3px;
    color: var(--gomi-primary, #1e5ca8);
    width: 14px;
    text-align: center;
}
.footer-info-item a {
    color: #475569;
    text-decoration: none;
    font-weight: 600;
}
.footer-info-item a:hover {
    color: var(--gomi-primary, #1e5ca8);
}

/* Hàng mạng xã hội gọn gàng */
.footer-social-row { 
    display: flex; 
    gap: 8px; 
    margin-top: 14px; 
    margin-bottom: 16px; 
}
.footer-social-btn { 
    width: 36px; 
    height: 36px; 
    background: var(--gomi-bg, #f0f6fc); 
    color: var(--gomi-primary, #1e5ca8); 
    border-radius: 50%; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 15px; 
    transition: all 0.25s ease; 
    border: 1px solid var(--gomi-light, #d0e2f7);
    text-decoration: none !important;
}
.footer-social-btn:hover { 
    transform: translateY(-3px); 
    background: var(--gomi-primary, #1e5ca8); 
    color: #ffffff !important; 
    box-shadow: 0 4px 12px rgba(30, 92, 168, 0.25);
}

/* Khối địa chỉ tinh tế ở đáy cột */
.footer-address-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 12.5px;
    line-height: 1.45;
    color: #475569;
}
.footer-address-box i {
    color: var(--gomi-primary, #1e5ca8);
    font-size: 15px;
    margin-top: 2px;
}

/* Dải chân trang đáy */
.footer-bottom-bar { 
    background: var(--gomi-bg, #f0f6fc); 
    padding: 16px 0; 
    margin-top: 45px; 
    border-top: 1px solid var(--gomi-light, #d0e2f7); 
    font-size: 13px; 
    color: #64748b; 
}

.payment-badge-list {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}
.payment-badge-list span {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

@media (max-width: 991px) {
    .payment-badge-list {
        justify-content: center;
        margin-top: 10px;
    }
}
@media (max-width: 768px) { 
    .footer-beautiful { padding-top: 35px; }
    .footer-col-title { margin-bottom: 16px; }
}

/* ================= 2. WIDGET LIÊN HỆ NỔI ================= */
.chat-icon {
    position: fixed !important; bottom: 25px !important; right: 18px !important; z-index: 999 !important;
    background: var(--gomi-primary, #0080ff) !important; color: #ffffff !important; padding: 0 18px; height: 48px; border-radius: 50px;
    display: flex !important; justify-content: center; align-items: center; cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 128, 255, 0.35); transition: all 0.3s ease; animation: bounceIn 1s;
    user-select: none;
}
.chat-icon:hover { transform: translateY(-4px); box-shadow: 0 6px 20px rgba(0, 128, 255, 0.5); }
.chat-icon-fa { font-size: 18px; margin-right: 8px; color: #ffffff !important; }
.chat-text { font-size: 13px; font-weight: 700; letter-spacing: 0.5px; white-space: nowrap; color: #ffffff !important; }

.chat-options-compact {
    position: fixed; bottom: 85px; right: 20px; width: 275px; background: #ffffff; border-radius: 16px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.15); overflow: hidden; z-index: 999 !important; border: 1px solid #e2e8f0;
}
.chat-options-header { 
    background: var(--gomi-primary, #0080ff); color: #ffffff; padding: 12px; text-align: center; 
    font-weight: 700; font-size: 14px;
}
.chat-options-list { padding: 12px; background: #ffffff; }

.option-btn-compact { 
    display: flex; align-items: center; width: 100%; padding: 10px 12px; background: #f8fafc; 
    border: 1px solid #e2e8f0; border-radius: 12px; margin-bottom: 10px; transition: all 0.25s ease; 
    cursor: pointer; text-decoration: none !important; color: inherit;
}
.option-btn-compact:hover { 
    border-color: var(--gomi-primary, #0080ff); background: #ffffff; 
    box-shadow: 0 4px 12px rgba(0, 128, 255, 0.12); transform: translateY(-2px);
}
.option-btn-compact img { width: 34px; height: 34px; margin-right: 12px; object-fit: contain; }

.option-icon-phone { 
    width: 34px; height: 34px; min-width: 34px; margin-right: 12px; 
    background: var(--gomi-primary, #0080ff); 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    color: #ffffff; font-size: 15px; 
    box-shadow: 0 3px 8px rgba(0, 128, 255, 0.3);
}
.option-text { text-align: left; flex-grow: 1; }
.option-text span { font-weight: 700; font-size: 13px; color: #334155; display: block; line-height: 1.3; }
.option-text small { font-size: 11px; color: var(--gomi-primary, #0080ff); font-weight: 600; display: block;}
.arrow-icon { color: #94a3b8; font-size: 12px; }

@media (max-width: 480px) { .chat-options-compact { bottom: 85px; right: 15px; } }
@keyframes bounceIn { 0% { transform: scale(0); opacity: 0; } 60% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1); } }

/* ==============================================================
   3. MOBILE & TABLET BOTTOM NAVIGATION BAR (CHUẨN APP DI ĐỘNG B2B)
============================================================== */
.infas-mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 58px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1045;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.m-bottom-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #64748b;
    text-decoration: none !important;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 2px;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.m-bottom-item i {
    font-size: 18px;
    transition: transform 0.2s ease;
}

.m-bottom-item.active {
    color: var(--gomi-primary, #1e5ca8);
    font-weight: 700;
}

.m-bottom-item.active i {
    transform: translateY(-2px);
}

.m-bottom-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.m-bottom-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
    line-height: 1.2;
    border: 1.5px solid #ffffff;
}

.m-bottom-hotline {
    color: #d97706;
}

.m-bottom-hotline.active {
    color: #b45309;
}

/* Mobile padding: Không cần chừa khoảng đệm dưới vì đã bỏ Bottom Bar */
@media (max-width: 991px) {
    body {
        padding-bottom: 0 !important;
    }
    .chat-icon {
        bottom: 20px !important;
        right: 14px !important;
        height: 42px !important;
        padding: 0 14px !important;
    }
    .chat-options-compact {
        bottom: 72px !important;
        right: 14px !important;
    }
}
