
        .tech-wrapper {
            background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 50%, #80deea 100%);
            padding: 16px 0 40px;
            min-height: 100vh;
        }
        .description-content {
            font-size: 1rem;
        }
        .tech-card {
            background: rgba(255,255,255,0.95);
            border-radius: 20px;
            padding: 30px;
            box-shadow: 0 15px 50px rgba(0,0,0,0.3);
        }
        .product-detail-image {
            border-radius: 16px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.4);
            transition: transform 0.3s;
            border: 3px solid #00d4ff;
        }
        .product-detail-image:hover {
            transform: scale(1.05) rotateY(5deg);
        }
        .tech-badge {
            background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
            color: white;
            padding: 20px;
            border-radius: 15px;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            box-shadow: 0 5px 20px rgba(0,212,255,0.3);
            cursor: default;
            pointer-events: none;
        }
        .tech-badge i {
            font-size: 2rem;
            margin-right: 20px;
        }
        .spec-table {
            background: #f8f9fa;
            border-radius: 15px;
            padding: 20px;
        }
        .spec-row {
            display: flex;
            justify-content: space-between;
            padding: 12px 0;
            border-bottom: 1px solid #dee2e6;
        }
        .spec-row:last-child {
            border-bottom: none;
        }
        /* Variant Option Selector - Clean 1-column Stack List */
        .variant-options-grid {
            display: flex;
            flex-direction: column;
            gap: 8px;
            max-height: 250px;
            overflow-y: auto;
            overflow-x: hidden;
            padding-right: 4px;
        }
        .variant-options-grid::-webkit-scrollbar {
            width: 4px;
        }
        .variant-options-grid::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 4px;
        }
        .variant-option-card {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 9px 12px;
            background: #ffffff;
            border: 1.5px solid #e2e8f0;
            border-radius: 10px;
            cursor: pointer;
            position: relative;
            user-select: none;
            gap: 10px;
            min-height: 48px;
        }
        .variant-option-card.active {
            border-color: #0099cc !important;
            background: #f0faff !important;
            box-shadow: 0 3px 12px rgba(0, 153, 204, 0.15);
        }
        .variant-option-card.disabled {
            opacity: 0.55;
            background: #f8f9fa;
            cursor: not-allowed;
            border-color: #e9ecef;
        }
        .variant-radio {
            width: 16px;
            height: 16px;
            cursor: pointer;
            accent-color: #0099cc;
            flex-shrink: 0;
        }
        .variant-name {
            font-size: 0.85rem;
            font-weight: 600;
            line-height: 1.35;
            color: #1e293b;
            word-break: break-word;
        }
        .variant-price-display {
            font-size: 0.9rem;
            font-weight: 700;
            color: #0099cc;
            white-space: nowrap;
        }
        .variant-option-card.active .variant-price-display {
            color: #0077aa !important;
            font-weight: 800;
        }
        .product-notice-banner {
            background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
            border: 1px solid #fde68a;
            border-left: 4px solid #f59e0b;
            border-radius: 12px;
            padding: 10px 14px;
            cursor: pointer;
            transition: all 0.25s ease;
            box-shadow: 0 1px 3px rgba(245, 158, 11, 0.08);
        }
        .product-notice-banner:hover {
            background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
            border-color: #f59e0b;
            border-left-color: #d97706;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(245, 158, 11, 0.18);
        }
        .notice-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            margin-bottom: 4px;
        }
        .notice-badge {
            background: #f59e0b;
            color: #ffffff;
            font-size: 0.68rem;
            font-weight: 700;
            padding: 2px 8px;
            border-radius: 20px;
            letter-spacing: 0.5px;
            display: inline-flex;
            align-items: center;
        }
        .notice-action-btn {
            font-size: 0.76rem;
            font-weight: 700;
            color: #b45309;
            display: inline-flex;
            align-items: center;
            text-decoration: none;
        }
        .notice-desc {
            font-size: 0.81rem;
            font-weight: 500;
            color: #78350f;
            line-height: 1.45;
            margin: 0;
        }
        @keyframes noticeBounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(3px); }
        }
        .animate-bounce {
            animation: noticeBounce 1.4s ease-in-out infinite;
        }
        .product-info-compact {
            padding: 22px 24px;
        }
        @media (max-width: 768px) {
            .product-info-compact {
                padding: 18px 16px;
            }
        }
        .nav-tabs {
            border-bottom: none !important;
            border: none !important;
        }
        .tech-tab.nav-link {
            border: none;
            outline: none !important;
            background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
            margin: 0 5px;
            border-radius: 15px;
            padding: 18px 35px;
            color: white;
            box-shadow: 0 4px 15px rgba(0,0,0,0.12);
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            font-weight: 600;
            text-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }
        .tech-tab.nav-link i {
            font-size: 28px;
            margin: 0 !important;
            filter: drop-shadow(0 2px 3px rgba(0,0,0,0.3));
        }
        .tech-tab.nav-link span {
            font-size: 15px;
            letter-spacing: 0.5px;
        }
        
        /* Tab Tính Năng - Xanh cyan sáng */
        #features-tab {
            background: linear-gradient(135deg, #06d6a0 0%, #1b9aaa 100%);
            border: 2px solid rgba(255,255,255,0.5);
        }
        #features-tab:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 20px rgba(6,214,160,0.4);
            border-color: rgba(255,255,255,0.7);
        }
        #features-tab.active {
            box-shadow: 0 8px 24px rgba(6,214,160,0.45);
            border-color: rgba(255,255,255,0.85);
        }
        
        /* Tab Mô Tả - Vàng cam sáng */
        #description-tab {
            background: linear-gradient(135deg, #ffa502 0%, #ff6348 100%);
            border: 2px solid rgba(255,255,255,0.5);
        }
        #description-tab:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 20px rgba(255,165,2,0.4);
            border-color: rgba(255,255,255,0.7);
        }
        #description-tab.active {
            box-shadow: 0 8px 24px rgba(255,165,2,0.45);
            border-color: rgba(255,255,255,0.85);
        }
        
        /* Tab Đánh Giá - Hồng tím sáng */
        #reviews-tab {
            background: linear-gradient(135deg, #ee5a6f 0%, #c44569 100%);
            border: 2px solid rgba(255,255,255,0.5);
        }
        #reviews-tab:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 20px rgba(238,90,111,0.4);
            border-color: rgba(255,255,255,0.7);
        }
        #reviews-tab.active {
            box-shadow: 0 8px 24px rgba(238,90,111,0.45);
            border-color: rgba(255,255,255,0.85);
        }
        
        .rating-input {
            display: flex;
            flex-direction: row-reverse;
            justify-content: flex-end;
            gap: 5px;
        }
        .rating-input input {
            display: none;
        }
        .rating-input label {
            cursor: pointer;
            font-size: 28px;
            color: #ddd;
            transition: color 0.2s;
        }
        .rating-input label:hover,
        .rating-input label:hover ~ label,
        .rating-input input:checked ~ label {
            color: #ffc107;
        }

        /* --- MOBILE RESPONSIVE TWEAKS --- */
        @media (max-width: 768px) {
            .tech-wrapper {
                padding: 15px 0;
            }
            .tech-card {
                padding: 15px;
                border-radius: 16px;
            }
            /* Variant Options on Mobile: Expands naturally without scroll constraint */
            .variant-options-grid {
                max-height: none !important;
                overflow-y: visible !important;
                padding-right: 0 !important;
                gap: 10px !important;
            }
            .variant-option-card {
                padding: 10px 12px !important;
                min-height: 52px !important;
                border-radius: 12px !important;
                gap: 10px !important;
            }
            .variant-name {
                font-size: 0.86rem !important;
                line-height: 1.4 !important;
            }
            .variant-price-display {
                font-size: 0.92rem !important;
            }
            .product-detail-image {
                border-radius: 12px;
                border-width: 2px;
            }
            h1.fw-bold {
                font-size: 1.4rem;
                line-height: 1.4;
            }
            .lead.text-muted {
                font-size: 0.95rem;
                margin-bottom: 1rem !important;
                display: -webkit-box;
                -webkit-line-clamp: 3;
                -webkit-box-orient: vertical;
                overflow: hidden;
            }
            h2.text-info {
                font-size: 1.6rem;
            }
            
            /* Buttons layout */
            .d-flex.gap-3.mb-3 {
                gap: 10px !important;
                flex-direction: column;
            }
            .btn-lg {
                padding: 12px 15px !important;
                font-size: 1rem;
                width: 100%;
                border-radius: 12px !important;
            }
            
            /* Tabs responsive */
            .nav-tabs.nav-fill {
                flex-wrap: nowrap;
                overflow-x: auto;
                padding-bottom: 5px;
                -webkit-overflow-scrolling: touch;
                border-radius: 12px;
            }
            .nav-tabs.nav-fill::-webkit-scrollbar {
                display: none;
            }
            .tech-tab.nav-link {
                padding: 10px 5px;
                margin: 0 4px;
                border-radius: 12px;
                min-width: 90px;
                gap: 4px;
            }
            .tech-tab.nav-link i {
                font-size: 20px;
            }
            .tech-tab.nav-link span {
                font-size: 11px;
                white-space: nowrap;
            }
            
            /* Features Badges */
            .tech-badge {
                padding: 15px;
                border-radius: 12px;
                flex-direction: row;
                text-align: left;
                gap: 15px;
            }
            .tech-badge i {
                margin-right: 0;
                font-size: 1.8rem;
            }
            
            /* Typography & Spacing inside cards */
            .description-content {
                font-size: 0.95rem;
            }
            .alert {
                padding: 12px;
                font-size: 0.9rem;
            }
            .bg-light.p-4 {
                padding: 15px !important;
                border-radius: 12px !important;
            }
        }
    

        /* TechFeed global toast overrides */
        .small-toast { font-size: 13px !important; }
        .small-toast-title { font-size: 15px !important; margin-bottom: 5px !important; }
        .small-toast-text { font-size: 13px !important; }
        .swal2-toast .swal2-icon { width: 2em !important; height: 2em !important; margin: 0.5em 0.8em 0.5em 0 !important; }
        .swal2-toast { flex-direction: row !important; align-items: center !important; }

        /* Global Ultra-thin Scrollbar for Dropdowns */
        .dropdown-menu, ul.dropdown-menu {
            overflow-y: auto !important;
        }
        .dropdown-menu::-webkit-scrollbar, ul.dropdown-menu::-webkit-scrollbar {
            width: 3px !important;
            height: 3px !important;
            background: transparent !important;
        }
        .dropdown-menu::-webkit-scrollbar-track, ul.dropdown-menu::-webkit-scrollbar-track {
            background: transparent !important;
        }
        .dropdown-menu::-webkit-scrollbar-thumb, ul.dropdown-menu::-webkit-scrollbar-thumb {
            background: rgba(0, 0, 0, 0.25) !important;
            border-radius: 10px !important;
        }
        .dropdown-menu::-webkit-scrollbar-thumb:hover, ul.dropdown-menu::-webkit-scrollbar-thumb:hover {
            background: rgba(0, 0, 0, 0.5) !important;
        }
        @supports (-moz-appearance: none) {
            .dropdown-menu, ul.dropdown-menu {
                scrollbar-width: thin !important;
                scrollbar-color: rgba(0, 0, 0, 0.25) transparent !important;
            }
        }

        /* Fix Mobile Zoom & Overflow */
        html, body {
            max-width: 100%;
            overflow-x: hidden;
            position: relative;
        }
        input, select, textarea {
            font-size: 16px !important; /* Prevents auto-zoom on iOS */
        }
    

    /* Unified User & Header Dropdown Menu Optimization */
    .dropdown:hover > .dropdown-menu:not(.show) {
        display: none !important;
    }

    /* Ultra-thin Floating Scrollbar for Dropdown Menu */
    .shadow-techfeed.dropdown-menu,
    ul.shadow-techfeed {
        max-height: calc(100vh - 75px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        min-width: 220px !important;
        max-width: 270px !important;
        padding: 6px 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        border-radius: 14px !important;
        margin-right: 6px !important;
        background-color: #ffffff !important;
    }

    .dropdown-menu::-webkit-scrollbar,
    ul.shadow-techfeed::-webkit-scrollbar,
    .shadow-techfeed::-webkit-scrollbar,
    .shadow-techfeed.dropdown-menu::-webkit-scrollbar {
        width: 3px !important;
        height: 3px !important;
        background: transparent !important;
    }

    .dropdown-menu::-webkit-scrollbar-track,
    ul.shadow-techfeed::-webkit-scrollbar-track,
    .shadow-techfeed::-webkit-scrollbar-track,
    .shadow-techfeed.dropdown-menu::-webkit-scrollbar-track {
        background: transparent !important;
    }

    .dropdown-menu::-webkit-scrollbar-thumb,
    ul.shadow-techfeed::-webkit-scrollbar-thumb,
    .shadow-techfeed::-webkit-scrollbar-thumb,
    .shadow-techfeed.dropdown-menu::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.25) !important;
        border-radius: 10px !important;
    }

    .dropdown-menu::-webkit-scrollbar-thumb:hover,
    ul.shadow-techfeed::-webkit-scrollbar-thumb:hover,
    .shadow-techfeed::-webkit-scrollbar-thumb:hover,
    .shadow-techfeed.dropdown-menu::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 0, 0, 0.5) !important;
    }

    @supports (-moz-appearance: none) {
        .shadow-techfeed.dropdown-menu,
        ul.shadow-techfeed {
            scrollbar-width: thin !important;
            scrollbar-color: rgba(0, 0, 0, 0.25) transparent !important;
        }
    }

    .shadow-techfeed .dropdown-item {
        display: flex !important;
        align-items: center !important;
        padding: 8px 14px !important;
        font-size: 13.5px !important;
        color: #1f2937 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        transition: background-color 0.15s ease, color 0.15s ease !important;
        border-radius: 8px !important;
        margin: 2px 6px !important;
        width: calc(100% - 12px) !important;
        box-sizing: border-box !important;
    }

    .shadow-techfeed .dropdown-item:hover,
    .shadow-techfeed .dropdown-item:focus {
        background-color: rgba(255, 94, 0, 0.08) !important;
        color: #ff5e00 !important;
    }

    .shadow-techfeed button.dropdown-item.text-danger:hover,
    .shadow-techfeed button.dropdown-item.text-danger:focus {
        color: #dc2626 !important;
        background-color: rgba(220, 38, 38, 0.08) !important;
    }

    .shadow-techfeed .dropdown-item.active {
        background-color: rgba(255, 94, 0, 0.12) !important;
        color: #ff5e00 !important;
        font-weight: 700;
    }

    @media (max-width: 576px) {
        .shadow-techfeed.dropdown-menu {
            right: 6px !important;
            left: auto !important;
            max-width: calc(100vw - 20px) !important;
            width: 250px !important;
        }
    }

    .contact-modal-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
        border-color: rgba(255, 94, 0, 0.25) !important;
        background-color: #fafbfc !important;
    }
    .contact-modal-item:hover .contact-modal-icon-wrap {
        transform: scale(1.05);
    }


    @keyframes pulseDotLive {
        0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
        70% { transform: scale(1.1); box-shadow: 0 0 0 5px rgba(220, 38, 38, 0); }
        100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
    }
    .live-dot-pulse {
        animation: pulseDotLive 1.5s infinite;
    }
    .mobile-live-online-float {
        position: fixed;
        bottom: 122px;
        right: 12px;
        z-index: 9999;
        padding: 4px 10px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(220, 38, 38, 0.3);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
        pointer-events: auto;
        transition: all 0.35s ease;
    }
    @media (max-width: 576px) {
        .mobile-live-online-float {
            bottom: 118px;
            right: 10px;
        }
    }
    /* Chế độ mặc định (Thu gọn): Ẩn chữ "người đang xem", chỉ hiện Icon Mắt + Số */
    .live-online-interactive-pill .online-extra-text {
        max-width: 0;
        opacity: 0;
        overflow: hidden;
        white-space: nowrap;
        display: inline-block;
        vertical-align: bottom;
        transition: max-width 0.35s ease, opacity 0.25s ease, margin 0.25s ease;
        margin-left: 0 !important;
    }
    /* Khi Click mở rộng: Hiện đầy đủ "X người đang xem" trong 3 giây */
    .live-online-interactive-pill.is-expanded .online-extra-text {
        max-width: 140px;
        opacity: 1;
        margin-left: 4px !important;
    }
    
    /* Animation cho Icon Chuông lắc lắc & Badge ! nhấp nháy liên tục */
    @keyframes bellBadgePulse {
        0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.8); }
        50% { transform: scale(1.25); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
        100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
    }
    @keyframes bellShakeContinuous {
        0%, 100% { transform: rotate(0deg); }
        10% { transform: rotate(18deg); }
        20% { transform: rotate(-16deg); }
        30% { transform: rotate(14deg); }
        40% { transform: rotate(-12deg); }
        50% { transform: rotate(8deg); }
        60% { transform: rotate(-6deg); }
        70% { transform: rotate(0deg); }
    }
    .notification-bell-btn .fa-bell {
        animation: bellShakeContinuous 2s infinite ease-in-out;
        transform-origin: top center;
        display: inline-block;
    }
    .notification-pulse-badge {
        animation: bellBadgePulse 1.3s infinite ease-in-out;
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
        color: #ffffff !important;
        font-weight: 900 !important;
        border: 1.5px solid #ffffff;
    }


    .desktop-banners-container {
        margin-top: 18px;
    }
    .desktop-banner-card {
        background: #ffffff;
        border-radius: 12px;
        padding: 12px 6px;
        text-align: center;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
        border: 1px solid rgba(0, 0, 0, 0.05);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .desktop-banner-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
        border-color: rgba(0, 104, 255, 0.2);
    }
    .banner-icon-circle {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 8px;
        transition: all 0.3s ease;
    }
    .desktop-banner-card:hover .banner-icon-circle {
        transform: scale(1.08);
    }
    /* Group Zalo Colors */
    .zalo-group-card .banner-icon-circle {
        background-color: #e6f0ff;
    }
    .zalo-group-card .banner-icon-circle i {
        color: #0068ff;
        font-size: 18px;
    }
    /* Telegram Colors */
    .telegram-card .banner-icon-circle {
        background-color: #e6f7ff;
    }
    .telegram-card .banner-icon-circle i {
        color: #0088cc;
        font-size: 18px;
    }
    /* Admin Zalo Colors */
    .zalo-admin-card .banner-icon-circle {
        background-color: #e8f8f5;
    }
    .zalo-admin-card .banner-icon-circle i {
        color: #07be9e;
        font-size: 18px;
    }
    .banner-title {
        font-weight: 700;
        font-size: 12px;
        color: #2d3748;
        margin-bottom: 3px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }
    .banner-subtitle {
        font-size: 10.5px;
        color: #718096;
        line-height: 1.3;
    }


/* ============================================
   MODERN CHAT SYSTEM - PREMIUM DESIGN
   ============================================ */

:root {
    --chat-primary: #6366f1;
    --chat-primary-dark: #4f46e5;
    --chat-secondary: #8b5cf6;
    --chat-ai-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --chat-admin-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --chat-user-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --chat-support-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --chat-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    --chat-shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* User support widget */
.chat-widget.user-support {
    --widget-gradient: var(--chat-support-gradient);
    --widget-color: #6366f1;
}
.chat-fab.user-support {
    background: var(--chat-support-gradient);
}

/* ============================================
   FLOATING CHAT BUTTONS
   ============================================ */

.chat-fab-container {
    position: fixed;
    bottom: 80px; /* Default above mobile nav */
    right: 24px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-end;
    touch-action: none; /* Critical for dragging on touch */
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 992px) {
    .chat-fab-container {
        bottom: 24px;
    }
}

/* Hide pill button & popover when chat widget is active */
.chat-widget.active ~ .contact-us-pill-wrapper,
.chat-widget.active ~ .support-menu-popover {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(15px) !important;
}

/* ============================================
   CONTACT US PILL BUTTON & POPOVER (NEW DESIGN)
   ============================================ */
.contact-us-pill-wrapper {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100000;
    transition: all 0.3s ease;
}

.contact-us-pill-btn {
    display: inline-flex;
    align-items: center;
    padding: 5px 18px 5px 5px;
    background: #ffffff;
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    text-decoration: none !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2.5px solid transparent;
    background-image: linear-gradient(#ffffff, #ffffff), linear-gradient(135deg, #ff7e5f 0%, #feb47b 30%, #4682b4 70%, #00d2ff 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    user-select: none;
    outline: none;
}

.contact-us-pill-btn .pill-icon-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #2d2926;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.contact-us-pill-btn .pill-text {
    font-size: 14.5px;
    font-weight: 700;
    color: #1f2937;
    margin-left: 10px;
    white-space: nowrap;
    letter-spacing: -0.2px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 160px;
    opacity: 1;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
    transition: max-width 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease, margin 0.35s ease;
}

/* 5s Auto Collapse State */
.contact-us-pill-btn.is-collapsed {
    padding-right: 5px !important;
}

.contact-us-pill-btn.is-collapsed .pill-text {
    max-width: 0 !important;
    opacity: 0 !important;
    margin-left: 0 !important;
}

/* Hover: Always expand full text */
.contact-us-pill-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    padding-right: 18px !important;
}

.contact-us-pill-btn:hover .pill-text {
    max-width: 160px !important;
    opacity: 1 !important;
    margin-left: 10px !important;
}

.contact-us-pill-btn .pill-red-dot {
    position: absolute;
    top: 2px;
    right: 4px;
    width: 14px;
    height: 14px;
    background-color: #ff0000;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(255, 0, 0, 0.5);
    animation: pillDotPulse 2s infinite ease-in-out;
}

@keyframes pillDotPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.25); }
}

/* POPOVER MENU */
.support-menu-popover {
    position: fixed;
    bottom: 80px;
    right: 24px;
    width: 290px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 100001;
    display: none;
    overflow: hidden;
    animation: supportPopoverAnim 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

@keyframes supportPopoverAnim {
    from { opacity: 0; transform: translateY(12px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.support-menu-popover.active {
    display: block;
}

.support-popover-header {
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.support-popover-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.support-popover-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    text-decoration: none !important;
    color: #1e293b;
    transition: all 0.2s ease;
    background: #ffffff;
    cursor: pointer;
}

.support-popover-item:hover {
    background: #f1f5f9;
    transform: translateX(-2px);
}

.popover-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.popover-item-info {
    flex: 1;
    min-width: 0;
}

.popover-item-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.popover-item-sub {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.popover-arrow {
    font-size: 11px;
    color: #cbd5e1;
    transition: transform 0.2s ease;
}

.support-popover-item:hover .popover-arrow {
    color: #475569;
    transform: translateX(2px);
}

@media (max-width: 991px) {
    .contact-us-pill-wrapper {
        bottom: 72px;
        right: 12px;
    }
    .support-menu-popover {
        bottom: 124px;
        right: 12px;
        width: 275px;
    }
}

@media (max-width: 576px) {
    .contact-us-pill-wrapper {
        bottom: 70px;
        right: 10px;
    }
    .support-menu-popover {
        bottom: 120px;
        right: 10px;
        width: 270px;
    }
    .contact-us-pill-btn {
        padding: 4px 14px 4px 4px;
    }
    .contact-us-pill-btn .pill-icon-circle {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }
    .contact-us-pill-btn .pill-text {
        font-size: 12.5px;
        margin-left: 8px;
    }
    .contact-us-pill-btn .pill-red-dot {
        top: 1px;
        right: 3px;
        width: 12px;
        height: 12px;
    }
}
.chat-widget.active ~ .chat-fab-container {
    opacity: 0;
    pointer-events: none;
    transform: translateY(15px);
}

.chat-fab {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    box-shadow: var(--chat-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-fab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    filter: blur(20px);
    opacity: 0.6;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.chat-fab:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}

@keyframes giftBoxWiggleContinuous {
    0%, 100% { transform: rotate(0deg) scale(1); }
    10% { transform: rotate(14deg) scale(1.08); }
    20% { transform: rotate(-16deg) scale(1.08); }
    30% { transform: rotate(14deg) scale(1.08); }
    40% { transform: rotate(-12deg) scale(1.08); }
    50% { transform: rotate(8deg) scale(1.05); }
    60% { transform: rotate(-5deg) scale(1.02); }
    70% { transform: rotate(0deg) scale(1); }
}

.gift-box-fab.is-wiggling {
    animation: giftBoxWiggleContinuous 1.8s infinite ease-in-out;
    box-shadow: 0 0 18px rgba(255, 65, 108, 0.7) !important;
}

.gift-box-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.chat-fab:hover::before {
    opacity: 0.8;
}

.chat-fab:active {
    transform: translateY(-2px) scale(1.02);
}

.chat-fab.ai-bot {
    background: var(--chat-ai-gradient);
}

.chat-fab.admin-chat {
    background: var(--chat-admin-gradient);
}

.chat-fab .fab-icon {
    position: relative;
    z-index: 1;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.chat-fab .unread-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: white;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(255, 65, 108, 0.5);
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.chat-fab .fab-tooltip {
    position: absolute;
    right: 76px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.chat-fab .fab-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.9);
}

.chat-fab:hover .fab-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   CHAT WIDGET CONTAINER
   ============================================ */

.chat-widget {
    position: fixed;
    bottom: 110px;
    right: 24px;
    width: 420px;
    height: 640px;
    max-width: calc(100vw - 48px);
    max-height: calc(100vh - 150px);
    background: white;
    border-radius: 24px;
    box-shadow: var(--chat-shadow);
    display: none;
    flex-direction: column;
    z-index: 9999;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-widget.active {
    display: flex;
    transform: scale(1) translateY(0);
    opacity: 1;
}

.chat-widget.ai-bot {
    --widget-gradient: var(--chat-ai-gradient);
    --widget-color: #667eea;
}

.chat-widget.admin-chat {
    --widget-gradient: var(--chat-admin-gradient);
    --widget-color: #f5576c;
}

/* ============================================
   CHAT HEADER
   ============================================ */

.chat-header {
    background: var(--widget-gradient);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.chat-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.chat-header-content {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.chat-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.chat-header-text h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.chat-header-text p {
    margin: 4px 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.chat-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.chat-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.3);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.chat-close-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.chat-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* ============================================
   CHAT BODY
   ============================================ */

.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.chat-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.chat-body::-webkit-scrollbar {
    width: 6px;
}

.chat-body::-webkit-scrollbar-track {
    background: transparent;
}

.chat-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.chat-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.chat-welcome {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.chat-welcome i {
    font-size: 64px;
    background: var(--widget-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    display: block;
}

.chat-welcome h4 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.chat-welcome p {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
}

/* ============================================
   CHAT MESSAGES
   ============================================ */

.chat-message {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    animation: messageSlideIn 0.3s ease;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message.user {
    align-items: flex-end;
}

.chat-message.bot,
.chat-message.admin {
    align-items: flex-start;
}

.message-bubble {
    max-width: 75%;
    position: relative;
}

.message-content {
    padding: 14px 18px;
    border-radius: 20px;
    font-size: 15px;
    line-height: 1.5;
    word-wrap: break-word;
    position: relative;
    box-shadow: var(--chat-shadow-sm);
    white-space: pre-wrap;
}

.chat-message.user .message-content {
    background: var(--chat-user-gradient);
    color: white;
    border-bottom-right-radius: 6px;
}

.chat-message.bot .message-content,
.chat-message.admin .message-content {
    background: white;
    color: #1f2937;
    border-bottom-left-radius: 6px;
    border: 1px solid #e5e7eb;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 6px;
    font-weight: 500;
}

.chat-message.user .message-time {
    text-align: right;
}

.typing-indicator {
    display: flex;
    gap: 6px;
    padding: 14px 18px;
    background: white;
    border-radius: 20px;
    border-bottom-left-radius: 6px;
    width: fit-content;
    box-shadow: var(--chat-shadow-sm);
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--widget-color);
    animation: typingBounce 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-10px); }
}

/* ============================================
   CHAT FOOTER
   ============================================ */

.chat-footer {
    padding: 20px 24px;
    background: white;
    border-top: 1px solid #e5e7eb;
}

.chat-input-wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.chat-input {
    flex: 1;
    border: 2px solid #e5e7eb;
    border-radius: 24px;
    padding: 12px 20px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    background: #f9fafb;
    resize: none;
    height: 48px;
    max-height: 120px;
    overflow-y: hidden;
    box-sizing: border-box;
    font-family: inherit;
    line-height: 20px;
}

.chat-input:focus {
    border-color: var(--widget-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.chat-send-btn {
    padding: 0;
    width: 44px;
    min-width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--widget-color, #6366f1);
    font-size: 21px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: none;
    flex-shrink: 0;
}

.chat-send-btn:hover:not(:disabled) {
    transform: scale(1.08);
    background: rgba(99, 102, 241, 0.1);
    box-shadow: none;
}

.chat-send-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-disclaimer {
    margin-top: 12px;
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
    line-height: 1.4;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .chat-fab-container {
        bottom: 55px;
        right: 8px;
        gap: 6px;
    }

    .chat-fab {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .chat-fab.gift-box-fab i {
        font-size: 16px !important;
    }

    .gift-box-badge {
        width: 16px;
        height: 16px;
        font-size: 9px;
        top: -3px;
        right: -3px;
        border-width: 1px;
    }

    .chat-fab .unread-badge {
        min-width: 18px;
        height: 18px;
        font-size: 9px;
        top: -3px;
        right: -3px;
        border-width: 1.5px;
        padding: 0 4px;
    }

    /* Scaling Zalo custom icon elements for mobile */
    .chat-fab .position-relative {
        width: 24px !important;
        height: 24px !important;
    }

    .chat-fab .position-relative i.fa-comment {
        font-size: 22px !important;
    }

    .chat-fab .position-relative span {
        font-size: 11px !important;
    }

    .chat-fab .fab-tooltip {
        display: none;
    }

    /* Toggle Button for Mobile Collapsible Menu */
    .chat-fab-toggle-btn {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: rgba(30, 41, 59, 0.85);
        backdrop-filter: blur(4px);
        color: #ffffff;
        border: 1.5px solid rgba(255, 255, 255, 0.5);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0,0,0,0.25);
        transition: all 0.25s ease;
        margin-bottom: 2px;
        align-self: flex-end;
    }

    .chat-fab-toggle-btn:hover, .chat-fab-toggle-btn:active {
        background: rgba(15, 23, 42, 0.95);
        transform: scale(1.1);
    }

    /* When Collapsed on Mobile: hide secondary icons, show main chat button + toggle */
    .chat-fab-container.is-collapsed .chat-fab:not(.user-support):not(.admin-chat) {
        display: none !important;
    }

    .chat-fab-container.is-collapsed #chatFabToggleIcon {
        transform: rotate(180deg);
    }

    .chat-widget {
        bottom: 110px; 
        right: 8px;
        left: auto;
        width: 300px; 
        height: 480px; 
        max-height: calc(100vh - 160px);
        border-radius: 16px;
    }

    .chat-header {
        padding: 12px 16px;
    }

    .chat-avatar {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .chat-header-text h3 {
        font-size: 16px;
    }

    .chat-header-text p {
        font-size: 11px;
    }

    .chat-body {
        padding: 12px;
    }

    .message-bubble {
        max-width: 85%;
    }

    .chat-footer {
        padding: 12px;
    }

    .chat-input {
        padding: 10px 14px;
        font-size: 14px;
        height: 44px;
        line-height: 20px;
    }

    .chat-send-btn {
        padding: 0 14px;
        height: 40px;
        font-size: 13px;
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .chat-widget {
        bottom: 110px;
        right: 8px;
        left: 8px;
        width: auto;
        height: 420px;
        border-radius: 16px;
    }

    .chat-fab-container {
        bottom: 50px;
        right: 8px;
    }

    .chat-footer {
        padding: 10px 8px;
    }

    .chat-input-wrapper {
        gap: 6px;
        width: 100%;
        min-width: 0;
    }

    .chat-tool-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .chat-tool-btn i {
        font-size: 15px;
    }

    .chat-input-container {
        min-width: 0;
    }

    .chat-input {
        width: 100%;
        min-width: 0;
        height: 40px;
        padding: 9px 12px;
    }

    .chat-send-btn {
        width: 40px;
        min-width: 40px;
        height: 40px;
        padding: 0;
        flex-shrink: 0;
    }
}

/* Chat Tools & Image Preview */
.chat-tool-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--widget-color, #6366f1);
    background: #f3f4f6;
    border: 1.5px dashed var(--widget-color, #6366f1);
    cursor: pointer;
    transition: all 0.25s ease;
    border-radius: 50%;
    flex-shrink: 0;
}
.chat-tool-btn i {
    font-size: 18px;
}
.chat-tool-btn:hover {
    background: var(--widget-color, #6366f1);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border-style: solid;
}

/* Emoji Picker CSS */
.emoji-picker-container {
    position: relative;
    display: inline-block;
}
.emoji-popover {
    position: absolute;
    bottom: 56px;
    left: -10px;
    width: 280px;
    height: 220px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    display: none;
    z-index: 100000;
    flex-direction: column;
    overflow: hidden;
    animation: popEmoji 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes popEmoji {
    from { opacity: 0; transform: translateY(10px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.emoji-popover-header {
    padding: 8px 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    background: #f8fafc;
}
.emoji-list {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    padding: 8px;
    overflow-y: auto;
}
.emoji-item {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.15s ease;
    user-select: none;
    width: 32px;
    height: 32px;
}
.emoji-item:hover {
    background: #f1f5f9;
    transform: scale(1.15);
}

.chat-input-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
#imagePreviewContainer, #affiliateImagePreviewContainer, #userImagePreviewContainer {
    padding: 8px;
    background: #f9fafb;
    border-radius: 12px;
}
.preview-item {
    position: relative;
    display: inline-block;
}
.preview-item img {
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}
.preview-item button {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.message-image {
    max-width: 100%;
    border-radius: 12px;
    margin-top: 8px;
    cursor: pointer;
}


    @media (max-width: 576px) {
        #spamWarningWelcomeModal .spam-modal-dialog {
            max-width: 350px !important;
            margin: 0.5rem auto !important;
        }
        #spamWarningWelcomeModal .modal-content {
            border-radius: 16px !important;
        }
        #spamWarningWelcomeModal .spam-modal-header {
            padding: 10px 14px !important;
        }
        #spamWarningWelcomeModal .modal-title {
            font-size: 14px !important;
        }
        #spamWarningWelcomeModal .header-subtext {
            font-size: 10.5px !important;
        }
        #spamWarningWelcomeModal .spam-modal-body {
            padding: 12px !important;
        }
        #spamWarningWelcomeModal .box-email-delivery {
            padding: 8px 10px !important;
            margin-bottom: 10px !important;
            border-left-width: 4px !important;
        }
        #spamWarningWelcomeModal .box-email-icon {
            width: 32px !important;
            height: 32px !important;
        }
        #spamWarningWelcomeModal .box-email-icon i {
            font-size: 13px !important;
        }
        #spamWarningWelcomeModal .box-email-title {
            font-size: 12px !important;
        }
        #spamWarningWelcomeModal .box-email-desc {
            font-size: 11px !important;
            line-height: 1.35 !important;
        }
        #spamWarningWelcomeModal .contact-section-header {
            margin-bottom: 8px !important;
            font-size: 10.5px !important;
        }
        #spamWarningWelcomeModal .card-contact {
            padding: 10px 6px !important;
        }
        #spamWarningWelcomeModal .card-contact-icon {
            width: 32px !important;
            height: 32px !important;
            margin-bottom: 4px !important;
        }
        #spamWarningWelcomeModal .card-contact-icon i {
            font-size: 14px !important;
        }
        #spamWarningWelcomeModal .card-contact-title {
            font-size: 12px !important;
            margin-bottom: 2px !important;
        }
        #spamWarningWelcomeModal .card-contact-sub {
            font-size: 10px !important;
            margin-bottom: 6px !important;
        }
        #spamWarningWelcomeModal .card-contact-btn {
            font-size: 10.5px !important;
            padding: 4px 6px !important;
        }
        #spamWarningWelcomeModal .hotline-bar {
            padding: 8px 10px !important;
            border-left-width: 3px !important;
        }
        #spamWarningWelcomeModal .hotline-icon {
            width: 32px !important;
            height: 32px !important;
        }
        #spamWarningWelcomeModal .hotline-icon i {
            font-size: 13px !important;
        }
        #spamWarningWelcomeModal .hotline-label {
            font-size: 10px !important;
        }
        #spamWarningWelcomeModal .hotline-number {
            font-size: 13px !important;
        }
        #spamWarningWelcomeModal .hotline-badge {
            font-size: 8px !important;
            padding: 1px 4px !important;
        }
        #spamWarningWelcomeModal .hotline-btn {
            font-size: 10px !important;
            padding: 4px 8px !important;
        }
        #spamWarningWelcomeModal .spam-modal-footer {
            padding: 8px 12px !important;
        }
        #spamWarningWelcomeModal .spam-modal-footer .btn {
            font-size: 11px !important;
            padding: 5px 10px !important;
        }
    }


    /* Styling for App Download Modal Tabs */
    #appPlatformTabs {
        background-color: #ffffff !important;
    }
    #appPlatformTabs .nav-link {
        color: #475569 !important;
        background: #f8fafc;
        border: 1px solid #e2e8f0 !important;
        transition: all 0.2s ease-in-out;
        font-size: 0.9rem;
    }
    #appPlatformTabs .nav-link:hover {
        background: #f1f5f9;
        color: #0f172a !important;
    }
    #appPlatformTabs .nav-link.active {
        background: linear-gradient(135deg, #ff5e00 0%, #ff8e43 100%) !important;
        color: #ffffff !important;
        border-color: #ff5e00 !important;
        box-shadow: 0 4px 14px rgba(255, 94, 0, 0.3) !important;
    }
    #appPlatformTabs .nav-link.active i {
        color: #ffffff !important;
    }
    
    /* Specific icon colors when inactive */
    #appPlatformTabs .nav-link:not(.active) .icon-tab-android { color: #16a34a !important; }
    #appPlatformTabs .nav-link:not(.active) .icon-tab-ios { color: #0f172a !important; }
    #appPlatformTabs .nav-link:not(.active) .icon-tab-desktop { color: #2563eb !important; }


        .small-toast {
            font-size: 13px !important;
        }
        .small-toast-title {
            font-size: 15px !important;
            margin-bottom: 5px !important;
        }
        .small-toast-text {
            font-size: 13px !important;
        }
        .swal2-toast .swal2-icon {
            width: 2em !important;
            height: 2em !important;
            margin: 0.5em 0.8em 0.5em 0 !important;
            font-size: 1.5em !important;
        }
        .swal2-toast .swal2-icon .swal2-icon-content {
            font-size: 1.5em !important;
        }
        .swal2-toast .swal2-success-ring {
            width: 2em !important;
            height: 2em !important;
        }
        .small-close-btn {
            font-size: 18px !important;
            width: 24px !important;
            height: 24px !important;
        }
        .swal2-toast {
            flex-direction: row !important;
            align-items: center !important;
        }
        .swal2-toast .swal2-content {
            flex-grow: 1 !important;
        }

        /* Prevent double-tap to zoom on mobile devices */
        html, body {
            touch-action: manipulation;
        }
    

        /* Modern Cart Layout */
        .cart-header {
            background: linear-gradient(135deg, rgba(108, 92, 231, 0.05) 0%, rgba(0, 206, 201, 0.05) 100%);
            border-radius: 20px;
            padding: 3rem 2rem;
            text-align: center;
            margin-bottom: 2.5rem;
            position: relative;
            overflow: hidden;
        }
        .cart-header h1 {
            font-weight: 800;
            color: #2d3436;
            margin-bottom: 0.5rem;
        }
        .cart-header p {
            color: #636e72;
            margin: 0;
        }
        
        /* Cart Item Styling */
        .cart-item {
            background: #fff;
            border-radius: 16px;
            padding: 1.5rem;
            margin-bottom: 1.2rem;
            box-shadow: 0 4px 15px rgba(0,0,0,0.02);
            border: 1px solid rgba(0,0,0,0.03);
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 1.5rem;
        }
        .cart-item:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(108, 92, 231, 0.08);
            border-color: rgba(108, 92, 231, 0.2);
        }
        
        .cart-item-img-wrap {
            width: 100px;
            height: 100px;
            flex-shrink: 0;
            border-radius: 12px;
            overflow: hidden;
            background: #f8f9fa;
        }
        .cart-item-img-wrap img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .cart-item-details {
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }
        .cart-item-title {
            font-size: 1.1rem;
            font-weight: 700;
            color: #2d3436;
            margin-bottom: 0.3rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .cart-item-price {
            color: #636e72;
            font-size: 0.95rem;
        }
        
        /* Quantity Controls */
        .qty-wrapper {
            display: flex;
            align-items: center;
            background: #f1f2f6;
            border-radius: 10px;
            padding: 4px;
        }
        .btn-qty {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            background: #fff;
            border: none;
            color: #6c5ce7;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            cursor: pointer;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        }
        .btn-qty:hover {
            background: #6c5ce7;
            color: #fff;
        }
        .qty-input {
            width: 40px;
            border: none;
            background: transparent;
            text-align: center;
            font-weight: 700;
            color: #2d3436;
        }
        .qty-input:focus {
            outline: none;
        }
        
        /* Total & Actions */
        .cart-item-total {
            font-size: 1.15rem;
            font-weight: 800;
            color: #6c5ce7;
            min-width: 120px;
            text-align: right;
        }
        
        .btn-delete {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            background: rgba(255, 71, 87, 0.1);
            color: #ff4757;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
        }
        .btn-delete:hover {
            background: #ff4757;
            color: #fff;
            transform: scale(1.05) rotate(5deg);
        }

        /* Summary Section */
        .cart-summary {
            background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
            color: white;
            border-radius: 20px;
            padding: 2rem;
            box-shadow: 0 15px 35px rgba(108, 92, 231, 0.2);
            position: sticky;
            top: 100px;
        }
        .summary-title {
            font-size: 1.3rem;
            font-weight: 800;
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .summary-row {
            display: flex;
            justify-content: space-between;
            padding: 12px 0;
            border-bottom: 1px solid rgba(255,255,255,0.2);
            font-size: 1.05rem;
        }
        .summary-row.total-row {
            border-bottom: none;
            font-size: 1.4rem;
            font-weight: 800;
            padding-top: 1.5rem;
            margin-top: 0.5rem;
        }
        .btn-checkout {
            background: #fff;
            color: #6c5ce7;
            border: none;
            border-radius: 12px;
            padding: 14px;
            font-weight: 800;
            font-size: 1.1rem;
            width: 100%;
            transition: all 0.3s;
            margin-top: 2rem;
            box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        }
        .btn-checkout:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 25px rgba(0,0,0,0.2);
            background: #f8f9fa;
        }
        
        .trust-badges {
            margin-top: 1.5rem;
            padding-top: 1.5rem;
            border-top: 1px solid rgba(255,255,255,0.2);
        }
        .trust-badge {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 0.9rem;
            margin-bottom: 8px;
            opacity: 0.9;
        }
        
        /* Empty Cart */
        .empty-cart {
            background: #fff;
            border-radius: 24px;
            padding: 5rem 2rem;
            text-align: center;
            box-shadow: 0 10px 40px rgba(0,0,0,0.03);
            border: 1px solid rgba(0,0,0,0.02);
            margin: 2rem 0;
        }
        .empty-icon {
            font-size: 6rem;
            background: linear-gradient(135deg, #dfe4ea, #ced6e0);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 1.5rem;
            display: inline-block;
        }

        /* --- MOBILE RESPONSIVE TWEAKS --- */
        @media (max-width: 768px) {
            .cart-header {
                padding: 2rem 1rem;
                margin-top: 70px;
                border-radius: 16px;
                margin-bottom: 1.5rem;
            }
            .cart-header h1 {
                font-size: 1.8rem;
            }
            .cart-header p {
                font-size: 0.9rem;
            }
            
            .cart-item {
                flex-direction: column;
                align-items: stretch;
                padding: 1.2rem;
                gap: 1rem;
                border-radius: 16px;
            }
            
            .cart-item-top {
                display: flex;
                gap: 1rem;
                align-items: flex-start;
            }
            
            .cart-item-img-wrap {
                width: 80px;
                height: 80px;
            }
            
            .cart-item-title {
                font-size: 1rem;
            }
            
            .cart-item-price {
                font-size: 0.9rem;
                color: #6c5ce7;
                font-weight: 600;
            }
            
            .cart-item-bottom {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding-top: 1rem;
                border-top: 1px dashed #eee;
            }
            
            .cart-item-total {
                font-size: 1.1rem;
                min-width: auto;
                text-align: left;
            }
            
            .qty-wrapper {
                padding: 3px;
            }
            .btn-qty {
                width: 28px;
                height: 28px;
                border-radius: 6px;
            }
            .qty-input {
                width: 35px;
                font-size: 0.9rem;
            }
            
            .btn-delete {
                width: 35px;
                height: 35px;
                border-radius: 8px;
            }
            
            .cart-summary {
                padding: 1.5rem;
                border-radius: 16px;
            }
            .summary-title {
                font-size: 1.2rem;
            }
            .summary-row {
                font-size: 0.95rem;
                padding: 10px 0;
            }
            .summary-row.total-row {
                font-size: 1.25rem;
            }
            .btn-checkout {
                padding: 12px;
                font-size: 1rem;
            }
        }
    

        /* TechFeed global toast overrides */
        .small-toast { font-size: 13px !important; }
        .small-toast-title { font-size: 15px !important; margin-bottom: 5px !important; }
        .small-toast-text { font-size: 13px !important; }
        .swal2-toast .swal2-icon { width: 2em !important; height: 2em !important; margin: 0.5em 0.8em 0.5em 0 !important; }
        .swal2-toast { flex-direction: row !important; align-items: center !important; }

        /* Global Ultra-thin Scrollbar for Dropdowns */
        .dropdown-menu, ul.dropdown-menu {
            overflow-y: auto !important;
        }
        .dropdown-menu::-webkit-scrollbar, ul.dropdown-menu::-webkit-scrollbar {
            width: 3px !important;
            height: 3px !important;
            background: transparent !important;
        }
        .dropdown-menu::-webkit-scrollbar-track, ul.dropdown-menu::-webkit-scrollbar-track {
            background: transparent !important;
        }
        .dropdown-menu::-webkit-scrollbar-thumb, ul.dropdown-menu::-webkit-scrollbar-thumb {
            background: rgba(0, 0, 0, 0.25) !important;
            border-radius: 10px !important;
        }
        .dropdown-menu::-webkit-scrollbar-thumb:hover, ul.dropdown-menu::-webkit-scrollbar-thumb:hover {
            background: rgba(0, 0, 0, 0.5) !important;
        }
        @supports (-moz-appearance: none) {
            .dropdown-menu, ul.dropdown-menu {
                scrollbar-width: thin !important;
                scrollbar-color: rgba(0, 0, 0, 0.25) transparent !important;
            }
        }

        /* Fix Mobile Zoom & Overflow */
        html, body {
            max-width: 100%;
            overflow-x: hidden;
            position: relative;
        }
        input, select, textarea {
            font-size: 16px !important; /* Prevents auto-zoom on iOS */
        }
    

    /* Unified User & Header Dropdown Menu Optimization */
    .dropdown:hover > .dropdown-menu:not(.show) {
        display: none !important;
    }

    /* Ultra-thin Floating Scrollbar for Dropdown Menu */
    .shadow-techfeed.dropdown-menu,
    ul.shadow-techfeed {
        max-height: calc(100vh - 75px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        min-width: 220px !important;
        max-width: 270px !important;
        padding: 6px 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        border-radius: 14px !important;
        margin-right: 6px !important;
        background-color: #ffffff !important;
    }

    .dropdown-menu::-webkit-scrollbar,
    ul.shadow-techfeed::-webkit-scrollbar,
    .shadow-techfeed::-webkit-scrollbar,
    .shadow-techfeed.dropdown-menu::-webkit-scrollbar {
        width: 3px !important;
        height: 3px !important;
        background: transparent !important;
    }

    .dropdown-menu::-webkit-scrollbar-track,
    ul.shadow-techfeed::-webkit-scrollbar-track,
    .shadow-techfeed::-webkit-scrollbar-track,
    .shadow-techfeed.dropdown-menu::-webkit-scrollbar-track {
        background: transparent !important;
    }

    .dropdown-menu::-webkit-scrollbar-thumb,
    ul.shadow-techfeed::-webkit-scrollbar-thumb,
    .shadow-techfeed::-webkit-scrollbar-thumb,
    .shadow-techfeed.dropdown-menu::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.25) !important;
        border-radius: 10px !important;
    }

    .dropdown-menu::-webkit-scrollbar-thumb:hover,
    ul.shadow-techfeed::-webkit-scrollbar-thumb:hover,
    .shadow-techfeed::-webkit-scrollbar-thumb:hover,
    .shadow-techfeed.dropdown-menu::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 0, 0, 0.5) !important;
    }

    @supports (-moz-appearance: none) {
        .shadow-techfeed.dropdown-menu,
        ul.shadow-techfeed {
            scrollbar-width: thin !important;
            scrollbar-color: rgba(0, 0, 0, 0.25) transparent !important;
        }
    }

    .shadow-techfeed .dropdown-item {
        display: flex !important;
        align-items: center !important;
        padding: 8px 14px !important;
        font-size: 13.5px !important;
        color: #1f2937 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        transition: background-color 0.15s ease, color 0.15s ease !important;
        border-radius: 8px !important;
        margin: 2px 6px !important;
        width: calc(100% - 12px) !important;
        box-sizing: border-box !important;
    }

    .shadow-techfeed .dropdown-item:hover,
    .shadow-techfeed .dropdown-item:focus {
        background-color: rgba(255, 94, 0, 0.08) !important;
        color: #ff5e00 !important;
    }

    .shadow-techfeed button.dropdown-item.text-danger:hover,
    .shadow-techfeed button.dropdown-item.text-danger:focus {
        color: #dc2626 !important;
        background-color: rgba(220, 38, 38, 0.08) !important;
    }

    .shadow-techfeed .dropdown-item.active {
        background-color: rgba(255, 94, 0, 0.12) !important;
        color: #ff5e00 !important;
        font-weight: 700;
    }

    @media (max-width: 576px) {
        .shadow-techfeed.dropdown-menu {
            right: 6px !important;
            left: auto !important;
            max-width: calc(100vw - 20px) !important;
            width: 250px !important;
        }
    }

    .contact-modal-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
        border-color: rgba(255, 94, 0, 0.25) !important;
        background-color: #fafbfc !important;
    }
    .contact-modal-item:hover .contact-modal-icon-wrap {
        transform: scale(1.05);
    }


    @keyframes pulseDotLive {
        0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
        70% { transform: scale(1.1); box-shadow: 0 0 0 5px rgba(220, 38, 38, 0); }
        100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
    }
    .live-dot-pulse {
        animation: pulseDotLive 1.5s infinite;
    }
    .mobile-live-online-float {
        position: fixed;
        bottom: 122px;
        right: 12px;
        z-index: 9999;
        padding: 4px 10px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(220, 38, 38, 0.3);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
        pointer-events: auto;
        transition: all 0.35s ease;
    }
    @media (max-width: 576px) {
        .mobile-live-online-float {
            bottom: 118px;
            right: 10px;
        }
    }
    /* Chế độ mặc định (Thu gọn): Ẩn chữ "người đang xem", chỉ hiện Icon Mắt + Số */
    .live-online-interactive-pill .online-extra-text {
        max-width: 0;
        opacity: 0;
        overflow: hidden;
        white-space: nowrap;
        display: inline-block;
        vertical-align: bottom;
        transition: max-width 0.35s ease, opacity 0.25s ease, margin 0.25s ease;
        margin-left: 0 !important;
    }
    /* Khi Click mở rộng: Hiện đầy đủ "X người đang xem" trong 3 giây */
    .live-online-interactive-pill.is-expanded .online-extra-text {
        max-width: 140px;
        opacity: 1;
        margin-left: 4px !important;
    }
    
    /* Animation cho Icon Chuông lắc lắc & Badge ! nhấp nháy liên tục */
    @keyframes bellBadgePulse {
        0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.8); }
        50% { transform: scale(1.25); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
        100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
    }
    @keyframes bellShakeContinuous {
        0%, 100% { transform: rotate(0deg); }
        10% { transform: rotate(18deg); }
        20% { transform: rotate(-16deg); }
        30% { transform: rotate(14deg); }
        40% { transform: rotate(-12deg); }
        50% { transform: rotate(8deg); }
        60% { transform: rotate(-6deg); }
        70% { transform: rotate(0deg); }
    }
    .notification-bell-btn .fa-bell {
        animation: bellShakeContinuous 2s infinite ease-in-out;
        transform-origin: top center;
        display: inline-block;
    }
    .notification-pulse-badge {
        animation: bellBadgePulse 1.3s infinite ease-in-out;
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
        color: #ffffff !important;
        font-weight: 900 !important;
        border: 1.5px solid #ffffff;
    }


/* ============================================
   MODERN CHAT SYSTEM - PREMIUM DESIGN
   ============================================ */

:root {
    --chat-primary: #6366f1;
    --chat-primary-dark: #4f46e5;
    --chat-secondary: #8b5cf6;
    --chat-ai-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --chat-admin-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --chat-user-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --chat-support-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --chat-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    --chat-shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* User support widget */
.chat-widget.user-support {
    --widget-gradient: var(--chat-support-gradient);
    --widget-color: #6366f1;
}
.chat-fab.user-support {
    background: var(--chat-support-gradient);
}

/* ============================================
   FLOATING CHAT BUTTONS
   ============================================ */

.chat-fab-container {
    position: fixed;
    bottom: 80px; /* Default above mobile nav */
    right: 24px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-end;
    touch-action: none; /* Critical for dragging on touch */
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 992px) {
    .chat-fab-container {
        bottom: 24px;
    }
}

/* Hide pill button & popover when chat widget is active */
.chat-widget.active ~ .contact-us-pill-wrapper,
.chat-widget.active ~ .support-menu-popover {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(15px) !important;
}

/* ============================================
   CONTACT US PILL BUTTON & POPOVER (NEW DESIGN)
   ============================================ */
.contact-us-pill-wrapper {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100000;
    transition: all 0.3s ease;
}

.contact-us-pill-btn {
    display: inline-flex;
    align-items: center;
    padding: 5px 18px 5px 5px;
    background: #ffffff;
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    text-decoration: none !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2.5px solid transparent;
    background-image: linear-gradient(#ffffff, #ffffff), linear-gradient(135deg, #ff7e5f 0%, #feb47b 30%, #4682b4 70%, #00d2ff 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    user-select: none;
    outline: none;
}

.contact-us-pill-btn .pill-icon-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #2d2926;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.contact-us-pill-btn .pill-text {
    font-size: 14.5px;
    font-weight: 700;
    color: #1f2937;
    margin-left: 10px;
    white-space: nowrap;
    letter-spacing: -0.2px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 160px;
    opacity: 1;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
    transition: max-width 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease, margin 0.35s ease;
}

/* 5s Auto Collapse State */
.contact-us-pill-btn.is-collapsed {
    padding-right: 5px !important;
}

.contact-us-pill-btn.is-collapsed .pill-text {
    max-width: 0 !important;
    opacity: 0 !important;
    margin-left: 0 !important;
}

/* Hover: Always expand full text */
.contact-us-pill-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    padding-right: 18px !important;
}

.contact-us-pill-btn:hover .pill-text {
    max-width: 160px !important;
    opacity: 1 !important;
    margin-left: 10px !important;
}

.contact-us-pill-btn .pill-red-dot {
    position: absolute;
    top: 2px;
    right: 4px;
    width: 14px;
    height: 14px;
    background-color: #ff0000;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(255, 0, 0, 0.5);
    animation: pillDotPulse 2s infinite ease-in-out;
}

@keyframes pillDotPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.25); }
}

/* POPOVER MENU */
.support-menu-popover {
    position: fixed;
    bottom: 80px;
    right: 24px;
    width: 290px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 100001;
    display: none;
    overflow: hidden;
    animation: supportPopoverAnim 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

@keyframes supportPopoverAnim {
    from { opacity: 0; transform: translateY(12px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.support-menu-popover.active {
    display: block;
}

.support-popover-header {
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.support-popover-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.support-popover-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    text-decoration: none !important;
    color: #1e293b;
    transition: all 0.2s ease;
    background: #ffffff;
    cursor: pointer;
}

.support-popover-item:hover {
    background: #f1f5f9;
    transform: translateX(-2px);
}

.popover-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.popover-item-info {
    flex: 1;
    min-width: 0;
}

.popover-item-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.popover-item-sub {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.popover-arrow {
    font-size: 11px;
    color: #cbd5e1;
    transition: transform 0.2s ease;
}

.support-popover-item:hover .popover-arrow {
    color: #475569;
    transform: translateX(2px);
}

@media (max-width: 991px) {
    .contact-us-pill-wrapper {
        bottom: 72px;
        right: 12px;
    }
    .support-menu-popover {
        bottom: 124px;
        right: 12px;
        width: 275px;
    }
}

@media (max-width: 576px) {
    .contact-us-pill-wrapper {
        bottom: 70px;
        right: 10px;
    }
    .support-menu-popover {
        bottom: 120px;
        right: 10px;
        width: 270px;
    }
    .contact-us-pill-btn {
        padding: 4px 14px 4px 4px;
    }
    .contact-us-pill-btn .pill-icon-circle {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }
    .contact-us-pill-btn .pill-text {
        font-size: 12.5px;
        margin-left: 8px;
    }
    .contact-us-pill-btn .pill-red-dot {
        top: 1px;
        right: 3px;
        width: 12px;
        height: 12px;
    }
}
.chat-widget.active ~ .chat-fab-container {
    opacity: 0;
    pointer-events: none;
    transform: translateY(15px);
}

.chat-fab {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    box-shadow: var(--chat-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-fab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    filter: blur(20px);
    opacity: 0.6;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.chat-fab:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}

@keyframes giftBoxWiggleContinuous {
    0%, 100% { transform: rotate(0deg) scale(1); }
    10% { transform: rotate(14deg) scale(1.08); }
    20% { transform: rotate(-16deg) scale(1.08); }
    30% { transform: rotate(14deg) scale(1.08); }
    40% { transform: rotate(-12deg) scale(1.08); }
    50% { transform: rotate(8deg) scale(1.05); }
    60% { transform: rotate(-5deg) scale(1.02); }
    70% { transform: rotate(0deg) scale(1); }
}

.gift-box-fab.is-wiggling {
    animation: giftBoxWiggleContinuous 1.8s infinite ease-in-out;
    box-shadow: 0 0 18px rgba(255, 65, 108, 0.7) !important;
}

.gift-box-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.chat-fab:hover::before {
    opacity: 0.8;
}

.chat-fab:active {
    transform: translateY(-2px) scale(1.02);
}

.chat-fab.ai-bot {
    background: var(--chat-ai-gradient);
}

.chat-fab.admin-chat {
    background: var(--chat-admin-gradient);
}

.chat-fab .fab-icon {
    position: relative;
    z-index: 1;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.chat-fab .unread-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: white;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(255, 65, 108, 0.5);
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.chat-fab .fab-tooltip {
    position: absolute;
    right: 76px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.chat-fab .fab-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.9);
}

.chat-fab:hover .fab-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   CHAT WIDGET CONTAINER
   ============================================ */

.chat-widget {
    position: fixed;
    bottom: 110px;
    right: 24px;
    width: 420px;
    height: 640px;
    max-width: calc(100vw - 48px);
    max-height: calc(100vh - 150px);
    background: white;
    border-radius: 24px;
    box-shadow: var(--chat-shadow);
    display: none;
    flex-direction: column;
    z-index: 9999;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-widget.active {
    display: flex;
    transform: scale(1) translateY(0);
    opacity: 1;
}

.chat-widget.ai-bot {
    --widget-gradient: var(--chat-ai-gradient);
    --widget-color: #667eea;
}

.chat-widget.admin-chat {
    --widget-gradient: var(--chat-admin-gradient);
    --widget-color: #f5576c;
}

/* ============================================
   CHAT HEADER
   ============================================ */

.chat-header {
    background: var(--widget-gradient);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.chat-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.chat-header-content {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.chat-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.chat-header-text h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.chat-header-text p {
    margin: 4px 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.chat-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.chat-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.3);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.chat-close-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.chat-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* ============================================
   CHAT BODY
   ============================================ */

.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.chat-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.chat-body::-webkit-scrollbar {
    width: 6px;
}

.chat-body::-webkit-scrollbar-track {
    background: transparent;
}

.chat-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.chat-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.chat-welcome {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.chat-welcome i {
    font-size: 64px;
    background: var(--widget-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    display: block;
}

.chat-welcome h4 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.chat-welcome p {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
}

/* ============================================
   CHAT MESSAGES
   ============================================ */

.chat-message {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    animation: messageSlideIn 0.3s ease;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message.user {
    align-items: flex-end;
}

.chat-message.bot,
.chat-message.admin {
    align-items: flex-start;
}

.message-bubble {
    max-width: 75%;
    position: relative;
}

.message-content {
    padding: 14px 18px;
    border-radius: 20px;
    font-size: 15px;
    line-height: 1.5;
    word-wrap: break-word;
    position: relative;
    box-shadow: var(--chat-shadow-sm);
    white-space: pre-wrap;
}

.chat-message.user .message-content {
    background: var(--chat-user-gradient);
    color: white;
    border-bottom-right-radius: 6px;
}

.chat-message.bot .message-content,
.chat-message.admin .message-content {
    background: white;
    color: #1f2937;
    border-bottom-left-radius: 6px;
    border: 1px solid #e5e7eb;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 6px;
    font-weight: 500;
}

.chat-message.user .message-time {
    text-align: right;
}

.typing-indicator {
    display: flex;
    gap: 6px;
    padding: 14px 18px;
    background: white;
    border-radius: 20px;
    border-bottom-left-radius: 6px;
    width: fit-content;
    box-shadow: var(--chat-shadow-sm);
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--widget-color);
    animation: typingBounce 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-10px); }
}

/* ============================================
   CHAT FOOTER
   ============================================ */

.chat-footer {
    padding: 20px 24px;
    background: white;
    border-top: 1px solid #e5e7eb;
}

.chat-input-wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.chat-input {
    flex: 1;
    border: 2px solid #e5e7eb;
    border-radius: 24px;
    padding: 12px 20px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    background: #f9fafb;
    resize: none;
    height: 48px;
    max-height: 120px;
    overflow-y: hidden;
    box-sizing: border-box;
    font-family: inherit;
    line-height: 20px;
}

.chat-input:focus {
    border-color: var(--widget-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.chat-send-btn {
    padding: 0;
    width: 44px;
    min-width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--widget-color, #6366f1);
    font-size: 21px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: none;
    flex-shrink: 0;
}

.chat-send-btn:hover:not(:disabled) {
    transform: scale(1.08);
    background: rgba(99, 102, 241, 0.1);
    box-shadow: none;
}

.chat-send-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-disclaimer {
    margin-top: 12px;
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
    line-height: 1.4;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .chat-fab-container {
        bottom: 55px;
        right: 8px;
        gap: 6px;
    }

    .chat-fab {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .chat-fab.gift-box-fab i {
        font-size: 16px !important;
    }

    .gift-box-badge {
        width: 16px;
        height: 16px;
        font-size: 9px;
        top: -3px;
        right: -3px;
        border-width: 1px;
    }

    .chat-fab .unread-badge {
        min-width: 18px;
        height: 18px;
        font-size: 9px;
        top: -3px;
        right: -3px;
        border-width: 1.5px;
        padding: 0 4px;
    }

    /* Scaling Zalo custom icon elements for mobile */
    .chat-fab .position-relative {
        width: 24px !important;
        height: 24px !important;
    }

    .chat-fab .position-relative i.fa-comment {
        font-size: 22px !important;
    }

    .chat-fab .position-relative span {
        font-size: 11px !important;
    }

    .chat-fab .fab-tooltip {
        display: none;
    }

    /* Toggle Button for Mobile Collapsible Menu */
    .chat-fab-toggle-btn {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: rgba(30, 41, 59, 0.85);
        backdrop-filter: blur(4px);
        color: #ffffff;
        border: 1.5px solid rgba(255, 255, 255, 0.5);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0,0,0,0.25);
        transition: all 0.25s ease;
        margin-bottom: 2px;
        align-self: flex-end;
    }

    .chat-fab-toggle-btn:hover, .chat-fab-toggle-btn:active {
        background: rgba(15, 23, 42, 0.95);
        transform: scale(1.1);
    }

    /* When Collapsed on Mobile: hide secondary icons, show main chat button + toggle */
    .chat-fab-container.is-collapsed .chat-fab:not(.user-support):not(.admin-chat) {
        display: none !important;
    }

    .chat-fab-container.is-collapsed #chatFabToggleIcon {
        transform: rotate(180deg);
    }

    .chat-widget {
        bottom: 110px; 
        right: 8px;
        left: auto;
        width: 300px; 
        height: 480px; 
        max-height: calc(100vh - 160px);
        border-radius: 16px;
    }

    .chat-header {
        padding: 12px 16px;
    }

    .chat-avatar {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .chat-header-text h3 {
        font-size: 16px;
    }

    .chat-header-text p {
        font-size: 11px;
    }

    .chat-body {
        padding: 12px;
    }

    .message-bubble {
        max-width: 85%;
    }

    .chat-footer {
        padding: 12px;
    }

    .chat-input {
        padding: 10px 14px;
        font-size: 14px;
        height: 44px;
        line-height: 20px;
    }

    .chat-send-btn {
        padding: 0 14px;
        height: 40px;
        font-size: 13px;
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .chat-widget {
        bottom: 110px;
        right: 8px;
        left: 8px;
        width: auto;
        height: 420px;
        border-radius: 16px;
    }

    .chat-fab-container {
        bottom: 50px;
        right: 8px;
    }

    .chat-footer {
        padding: 10px 8px;
    }

    .chat-input-wrapper {
        gap: 6px;
        width: 100%;
        min-width: 0;
    }

    .chat-tool-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .chat-tool-btn i {
        font-size: 15px;
    }

    .chat-input-container {
        min-width: 0;
    }

    .chat-input {
        width: 100%;
        min-width: 0;
        height: 40px;
        padding: 9px 12px;
    }

    .chat-send-btn {
        width: 40px;
        min-width: 40px;
        height: 40px;
        padding: 0;
        flex-shrink: 0;
    }
}

/* Chat Tools & Image Preview */
.chat-tool-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--widget-color, #6366f1);
    background: #f3f4f6;
    border: 1.5px dashed var(--widget-color, #6366f1);
    cursor: pointer;
    transition: all 0.25s ease;
    border-radius: 50%;
    flex-shrink: 0;
}
.chat-tool-btn i {
    font-size: 18px;
}
.chat-tool-btn:hover {
    background: var(--widget-color, #6366f1);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border-style: solid;
}

/* Emoji Picker CSS */
.emoji-picker-container {
    position: relative;
    display: inline-block;
}
.emoji-popover {
    position: absolute;
    bottom: 56px;
    left: -10px;
    width: 280px;
    height: 220px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    display: none;
    z-index: 100000;
    flex-direction: column;
    overflow: hidden;
    animation: popEmoji 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes popEmoji {
    from { opacity: 0; transform: translateY(10px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.emoji-popover-header {
    padding: 8px 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    background: #f8fafc;
}
.emoji-list {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    padding: 8px;
    overflow-y: auto;
}
.emoji-item {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.15s ease;
    user-select: none;
    width: 32px;
    height: 32px;
}
.emoji-item:hover {
    background: #f1f5f9;
    transform: scale(1.15);
}

.chat-input-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
#imagePreviewContainer, #affiliateImagePreviewContainer, #userImagePreviewContainer {
    padding: 8px;
    background: #f9fafb;
    border-radius: 12px;
}
.preview-item {
    position: relative;
    display: inline-block;
}
.preview-item img {
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}
.preview-item button {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.message-image {
    max-width: 100%;
    border-radius: 12px;
    margin-top: 8px;
    cursor: pointer;
}


    @media (max-width: 576px) {
        #spamWarningWelcomeModal .spam-modal-dialog {
            max-width: 350px !important;
            margin: 0.5rem auto !important;
        }
        #spamWarningWelcomeModal .modal-content {
            border-radius: 16px !important;
        }
        #spamWarningWelcomeModal .spam-modal-header {
            padding: 10px 14px !important;
        }
        #spamWarningWelcomeModal .modal-title {
            font-size: 14px !important;
        }
        #spamWarningWelcomeModal .header-subtext {
            font-size: 10.5px !important;
        }
        #spamWarningWelcomeModal .spam-modal-body {
            padding: 12px !important;
        }
        #spamWarningWelcomeModal .box-email-delivery {
            padding: 8px 10px !important;
            margin-bottom: 10px !important;
            border-left-width: 4px !important;
        }
        #spamWarningWelcomeModal .box-email-icon {
            width: 32px !important;
            height: 32px !important;
        }
        #spamWarningWelcomeModal .box-email-icon i {
            font-size: 13px !important;
        }
        #spamWarningWelcomeModal .box-email-title {
            font-size: 12px !important;
        }
        #spamWarningWelcomeModal .box-email-desc {
            font-size: 11px !important;
            line-height: 1.35 !important;
        }
        #spamWarningWelcomeModal .contact-section-header {
            margin-bottom: 8px !important;
            font-size: 10.5px !important;
        }
        #spamWarningWelcomeModal .card-contact {
            padding: 10px 6px !important;
        }
        #spamWarningWelcomeModal .card-contact-icon {
            width: 32px !important;
            height: 32px !important;
            margin-bottom: 4px !important;
        }
        #spamWarningWelcomeModal .card-contact-icon i {
            font-size: 14px !important;
        }
        #spamWarningWelcomeModal .card-contact-title {
            font-size: 12px !important;
            margin-bottom: 2px !important;
        }
        #spamWarningWelcomeModal .card-contact-sub {
            font-size: 10px !important;
            margin-bottom: 6px !important;
        }
        #spamWarningWelcomeModal .card-contact-btn {
            font-size: 10.5px !important;
            padding: 4px 6px !important;
        }
        #spamWarningWelcomeModal .hotline-bar {
            padding: 8px 10px !important;
            border-left-width: 3px !important;
        }
        #spamWarningWelcomeModal .hotline-icon {
            width: 32px !important;
            height: 32px !important;
        }
        #spamWarningWelcomeModal .hotline-icon i {
            font-size: 13px !important;
        }
        #spamWarningWelcomeModal .hotline-label {
            font-size: 10px !important;
        }
        #spamWarningWelcomeModal .hotline-number {
            font-size: 13px !important;
        }
        #spamWarningWelcomeModal .hotline-badge {
            font-size: 8px !important;
            padding: 1px 4px !important;
        }
        #spamWarningWelcomeModal .hotline-btn {
            font-size: 10px !important;
            padding: 4px 8px !important;
        }
        #spamWarningWelcomeModal .spam-modal-footer {
            padding: 8px 12px !important;
        }
        #spamWarningWelcomeModal .spam-modal-footer .btn {
            font-size: 11px !important;
            padding: 5px 10px !important;
        }
    }


    /* Styling for App Download Modal Tabs */
    #appPlatformTabs {
        background-color: #ffffff !important;
    }
    #appPlatformTabs .nav-link {
        color: #475569 !important;
        background: #f8fafc;
        border: 1px solid #e2e8f0 !important;
        transition: all 0.2s ease-in-out;
        font-size: 0.9rem;
    }
    #appPlatformTabs .nav-link:hover {
        background: #f1f5f9;
        color: #0f172a !important;
    }
    #appPlatformTabs .nav-link.active {
        background: linear-gradient(135deg, #ff5e00 0%, #ff8e43 100%) !important;
        color: #ffffff !important;
        border-color: #ff5e00 !important;
        box-shadow: 0 4px 14px rgba(255, 94, 0, 0.3) !important;
    }
    #appPlatformTabs .nav-link.active i {
        color: #ffffff !important;
    }
    
    /* Specific icon colors when inactive */
    #appPlatformTabs .nav-link:not(.active) .icon-tab-android { color: #16a34a !important; }
    #appPlatformTabs .nav-link:not(.active) .icon-tab-ios { color: #0f172a !important; }
    #appPlatformTabs .nav-link:not(.active) .icon-tab-desktop { color: #2563eb !important; }


        .small-toast {
            font-size: 13px !important;
        }
        .small-toast-title {
            font-size: 15px !important;
            margin-bottom: 5px !important;
        }
        .small-toast-text {
            font-size: 13px !important;
        }
        .swal2-toast .swal2-icon {
            width: 2em !important;
            height: 2em !important;
            margin: 0.5em 0.8em 0.5em 0 !important;
            font-size: 1.5em !important;
        }
        .swal2-toast .swal2-icon .swal2-icon-content {
            font-size: 1.5em !important;
        }
        .swal2-toast .swal2-success-ring {
            width: 2em !important;
            height: 2em !important;
        }
        .small-close-btn {
            font-size: 18px !important;
            width: 24px !important;
            height: 24px !important;
        }
        .swal2-toast {
            flex-direction: row !important;
            align-items: center !important;
        }
        .swal2-toast .swal2-content {
            flex-grow: 1 !important;
        }

        /* Prevent double-tap to zoom on mobile devices */
        html, body {
            touch-action: manipulation;
        }
    
