/* Extracted from app/views/layouts/footer.php (r6 2026-08-31, N3 split).
   Block 1: chat/offer widgets; Block 2: smart popups. */

    /* Chat Widget Container */
    .live-chat-widget {
        display: none;
        position: fixed;
        bottom: 100px;
        right: 20px;
        z-index: 9999;
    }

    .live-chat-box {
        width: 380px;
        max-width: calc(100vw - 40px);
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.04);
        overflow: hidden;
        animation: chatSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    @keyframes chatSlideUp {
        from { opacity: 0; transform: translateY(20px) scale(0.95); }
        to { opacity: 1; transform: translateY(0) scale(1); }
    }

    /* Chat Header */
    .live-chat-header {
        background: #0A0A0A;
        padding: 1rem 1.25rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .chat-header-left {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .chat-avatar {
        position: relative;
        width: 44px;
        height: 44px;
        background: #27272a;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #00D632;
        font-size: 1.25rem;
    }

    .chat-avatar .online-status {
        position: absolute;
        bottom: -2px;
        right: -2px;
        width: 12px;
        height: 12px;
        background: #00D632;
        border: 2px solid #0A0A0A;
        border-radius: 50%;
    }

    .chat-header-info h6 {
        color: #fff;
        font-size: 1rem;
        font-weight: 600;
        margin: 0 0 0.125rem 0;
    }

    .chat-status {
        display: flex;
        align-items: center;
        gap: 0.375rem;
        font-size: 0.75rem;
        color: #a1a1aa;
    }

    .status-dot {
        width: 6px;
        height: 6px;
        background: #00D632;
        border-radius: 50%;
        animation: statusPulse 2s infinite;
    }

    @keyframes statusPulse {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.5; }
    }

    .chat-header-actions {
        display: flex;
        gap: 0.25rem;
    }

    .chat-minimize, .chat-close {
        width: 32px;
        height: 32px;
        border: none;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        color: #a1a1aa;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
    }

    .chat-minimize:hover, .chat-close:hover {
        background: rgba(255, 255, 255, 0.15);
        color: #fff;
    }

    /* Booking Screen */
    .chat-booking-screen {
        padding: 2rem 1.5rem;
        text-align: center;
    }

    .chat-welcome-icon {
        width: 64px;
        height: 64px;
        margin: 0 auto 1.25rem;
        background: linear-gradient(135deg, #E6FBEC 0%, #CFF7DA 100%);
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .chat-welcome-icon i {
        font-size: 1.75rem;
        color: #00D632;
    }

    .chat-booking-screen h5 {
        font-size: 1.25rem;
        font-weight: 700;
        color: #0A0A0A;
        margin-bottom: 0.375rem;
    }

    .chat-booking-screen > p {
        font-size: 0.875rem;
        color: #71717a;
        margin-bottom: 1.5rem;
    }

    /* Chat Form */
    .chat-form {
        text-align: left;
    }

    .chat-input-group {
        margin-bottom: 1rem;
    }

    .chat-input-group label {
        display: block;
        font-size: 0.8125rem;
        font-weight: 500;
        color: #3f3f46;
        margin-bottom: 0.375rem;
    }

    .chat-input-group .required {
        color: #ef4444;
    }

    .input-with-icon {
        position: relative;
    }

    .input-with-icon i {
        position: absolute;
        left: 0.875rem;
        top: 50%;
        transform: translateY(-50%);
        color: #a1a1aa;
        font-size: 0.875rem;
        pointer-events: none;
        transition: color 0.2s;
    }

    .input-with-icon input {
        width: 100%;
        padding: 0.75rem 0.875rem 0.75rem 2.5rem;
        border: 1px solid #e4e4e7;
        border-radius: 10px;
        font-size: 0.9375rem;
        color: #0A0A0A;
        background: #fff;
        transition: all 0.2s;
    }

    .input-with-icon input::placeholder {
        color: #a1a1aa;
    }

    .input-with-icon input:focus {
        outline: none;
        border-color: #00D632;
        box-shadow: 0 0 0 3px rgba(0, 214, 50, 0.1);
    }

    .input-with-icon input:focus + i,
    .input-with-icon:focus-within i {
        color: #00D632;
    }

    .chat-start-btn {
        width: 100%;
        padding: 0.875rem;
        background: #0A0A0A;
        color: #fff;
        border: none;
        border-radius: 10px;
        font-size: 0.9375rem;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        transition: all 0.2s;
        margin-top: 0.5rem;
    }

    .chat-start-btn:hover {
        background: #27272a;
        transform: translateY(-1px);
    }

    .chat-start-btn i {
        transition: transform 0.2s;
    }

    .chat-start-btn:hover i {
        transform: translateX(3px);
    }

    .chat-start-btn:disabled {
        opacity: 0.7;
        cursor: not-allowed;
        transform: none;
    }

    /* Inline Form Error */
    .chat-form-error {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-top: 0.75rem;
        padding: 0.75rem 1rem;
        background: #fef2f2;
        border: 1px solid #fecaca;
        border-radius: 8px;
        font-size: 0.8125rem;
        color: #dc2626;
        animation: errorShake 0.4s ease;
    }

    .chat-form-error i {
        flex-shrink: 0;
    }

    @keyframes errorShake {
        0%, 100% { transform: translateX(0); }
        20%, 60% { transform: translateX(-4px); }
        40%, 80% { transform: translateX(4px); }
    }

    .chat-alternatives {
        margin-top: 1.5rem;
        padding-top: 1.25rem;
        border-top: 1px solid #e4e4e7;
        font-size: 0.8125rem;
        color: #71717a;
    }

    .chat-alternatives a {
        color: #00D632;
        font-weight: 500;
        text-decoration: none;
        margin-left: 0.25rem;
    }

    .chat-alternatives a:hover {
        text-decoration: underline;
    }

    /* Messages Screen */
    .chat-messages-screen {
        display: none;
    }

    .chat-quick-actions {
        display: flex;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        background: #fafafa;
        border-bottom: 1px solid #e4e4e7;
        overflow-x: auto;
    }

    .chat-quick-actions::-webkit-scrollbar {
        display: none;
    }

    .chat-quick-actions button {
        flex-shrink: 0;
        padding: 0.375rem 0.75rem;
        background: #fff;
        border: 1px solid #e4e4e7;
        border-radius: 20px;
        font-size: 0.75rem;
        color: #52525b;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 0.375rem;
        transition: all 0.2s;
    }

    .chat-quick-actions button:hover {
        background: #0A0A0A;
        border-color: #0A0A0A;
        color: #fff;
    }

    .chat-quick-actions button i {
        font-size: 0.6875rem;
    }

    .chat-messages-area {
        height: 280px;
        overflow-y: auto;
        padding: 1rem;
        background: #fafafa;
    }

    .chat-messages-area::-webkit-scrollbar {
        width: 4px;
    }

    .chat-messages-area::-webkit-scrollbar-track {
        background: transparent;
    }

    .chat-messages-area::-webkit-scrollbar-thumb {
        background: #d4d4d8;
        border-radius: 4px;
    }

    /* Chat Messages */
    .chat-message {
        display: flex;
        gap: 0.625rem;
        margin-bottom: 1rem;
        animation: messageIn 0.3s ease;
    }

    @keyframes messageIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .chat-message.visitor {
        flex-direction: row-reverse;
    }

    .message-avatar {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.75rem;
        flex-shrink: 0;
    }

    .chat-message.admin .message-avatar {
        background: #0A0A0A;
        color: #00D632;
    }

    .chat-message.visitor .message-avatar {
        background: #00D632;
        color: #fff;
    }

    .message-content {
        max-width: 75%;
    }

    .message-bubble {
        padding: 0.75rem 1rem;
        border-radius: 12px;
        font-size: 0.875rem;
        line-height: 1.5;
    }

    .chat-message.admin .message-bubble {
        background: #fff;
        color: #0A0A0A;
        border: 1px solid #e4e4e7;
        border-bottom-left-radius: 4px;
    }

    .chat-message.visitor .message-bubble {
        background: #0A0A0A;
        color: #fff;
        border-bottom-right-radius: 4px;
    }

    .message-meta {
        display: flex;
        align-items: center;
        gap: 0.375rem;
        margin-top: 0.25rem;
        font-size: 0.6875rem;
        color: #a1a1aa;
    }

    .chat-message.visitor .message-meta {
        justify-content: flex-end;
    }

    .message-sender {
        font-weight: 500;
    }

    /* Typing Indicator */
    .typing-indicator {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        background: #fafafa;
    }

    .typing-avatar {
        width: 28px;
        height: 28px;
        background: #0A0A0A;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #00D632;
        font-size: 0.6875rem;
    }

    .typing-dots {
        display: flex;
        gap: 0.25rem;
        padding: 0.5rem 0.75rem;
        background: #fff;
        border-radius: 12px;
        border: 1px solid #e4e4e7;
    }

    .typing-dots span {
        width: 6px;
        height: 6px;
        background: #a1a1aa;
        border-radius: 50%;
        animation: typingBounce 1.4s infinite;
    }

    .typing-dots span:nth-child(2) {
        animation-delay: 0.2s;
    }

    .typing-dots span:nth-child(3) {
        animation-delay: 0.4s;
    }

    @keyframes typingBounce {
        0%, 60%, 100% { transform: translateY(0); }
        30% { transform: translateY(-4px); }
    }

    /* Chat Input Area */
    .chat-input-area {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.875rem;
        background: #fff;
        border-top: 1px solid #e4e4e7;
    }

    .chat-attach-btn {
        width: 36px;
        height: 36px;
        border: none;
        background: transparent;
        color: #a1a1aa;
        border-radius: 8px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
    }

    .chat-attach-btn:hover {
        background: #f4f4f5;
        color: #52525b;
    }

    .chat-input-area input {
        flex: 1;
        padding: 0.625rem 0.875rem;
        border: 1px solid #e4e4e7;
        border-radius: 20px;
        font-size: 0.875rem;
        color: #0A0A0A;
        background: #fafafa;
        transition: all 0.2s;
    }

    .chat-input-area input::placeholder {
        color: #a1a1aa;
    }

    .chat-input-area input:focus {
        outline: none;
        border-color: #0A0A0A;
        background: #fff;
    }

    .chat-send-btn {
        width: 36px;
        height: 36px;
        border: none;
        background: #0A0A0A;
        color: #fff;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
    }

    .chat-send-btn:hover {
        background: #27272a;
        transform: scale(1.05);
    }

    .chat-send-btn i {
        font-size: 0.8125rem;
        margin-left: 1px;
    }

    /* Floating Chat Button */
    .live-chat-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        height: 56px;
        padding: 0 1.25rem 0 0.875rem;
        border-radius: 28px;
        background: #0A0A0A;
        color: #fff;
        border: none;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
        cursor: pointer;
        z-index: 9998;
        display: flex;
        align-items: center;
        gap: 0.625rem;
        transition: all 0.3s;
    }

    .live-chat-button:hover {
        background: #27272a;
        transform: translateY(-2px);
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
    }

    .chat-button-icon {
        width: 40px;
        height: 40px;
        background: #00D632;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.125rem;
    }

    .chat-button-text {
        font-size: 0.9375rem;
        font-weight: 500;
    }

    .chat-notification-badge {
        position: absolute;
        top: -4px;
        right: -4px;
        min-width: 20px;
        height: 20px;
        padding: 0 6px;
        background: #ef4444;
        color: #fff;
        border-radius: 10px;
        font-size: 0.6875rem;
        font-weight: 600;
        display: none;
        align-items: center;
        justify-content: center;
        animation: badgePop 0.3s ease;
    }

    @keyframes badgePop {
        0% { transform: scale(0); }
        50% { transform: scale(1.2); }
        100% { transform: scale(1); }
    }

    /* Minimized State */
    .live-chat-widget.minimized .live-chat-box {
        height: auto;
    }

    .live-chat-widget.minimized .chat-booking-screen,
    .live-chat-widget.minimized .chat-messages-screen {
        display: none !important;
    }

    /* Mobile Responsive */
    @media (max-width: 768px) {
        .live-chat-widget {
            bottom: 0;
            right: 0;
            left: 0;
        }

        .live-chat-box {
            width: 100%;
            max-width: 100%;
            border-radius: 16px 16px 0 0;
            max-height: 85vh;
        }

        .live-chat-button {
            bottom: 16px;
            right: 16px;
            height: 52px;
            padding: 0 1rem 0 0.625rem;
        }

        .chat-button-icon {
            width: 36px;
            height: 36px;
            font-size: 1rem;
        }

        .chat-button-text {
            font-size: 0.875rem;
        }

        .chat-messages-area {
            height: 240px;
        }

        .chat-quick-actions button {
            padding: 0.5rem 0.875rem;
            font-size: 0.8125rem;
        }
    }

    @media (max-width: 480px) {
        .chat-button-text {
            display: none;
        }

        .live-chat-button {
            width: 52px;
            height: 52px;
            padding: 0;
            border-radius: 50%;
            justify-content: center;
        }

        .chat-button-icon {
            margin: 0;
        }
    }
    

    /* Base Popup Styles */
    .smart-popup {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 99999;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1rem;
    }

    .smart-popup-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
    }

    .smart-popup-content {
        position: relative;
        background: white;
        border-radius: 20px;
        padding: 2.5rem;
        max-width: 420px;
        width: 100%;
        text-align: center;
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
        animation: popupSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    @keyframes popupSlideIn {
        from {
            opacity: 0;
            transform: scale(0.9) translateY(20px);
        }
        to {
            opacity: 1;
            transform: scale(1) translateY(0);
        }
    }

    .smart-popup-close {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
        border: none;
        background: #f4f4f5;
        border-radius: 50%;
        font-size: 1.25rem;
        color: #71717a;
        cursor: pointer;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .smart-popup-close:hover {
        background: #e4e4e7;
        color: #0A0A0A;
    }

    .popup-badge {
        display: inline-block;
        padding: 0.375rem 1rem;
        background: linear-gradient(135deg, #00D632 0%, #00B32A 100%);
        color: white;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border-radius: 20px;
        margin-bottom: 1.25rem;
    }

    .popup-badge.urgent {
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    }

    .popup-icon-wrapper {
        width: 80px;
        height: 80px;
        background: linear-gradient(135deg, #E6FBEC 0%, #CFF7DA 100%);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 1.25rem;
    }

    .popup-icon-wrapper i {
        font-size: 2rem;
        color: #00D632;
    }

    .popup-icon-wrapper.exit {
        background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    }

    .popup-icon-wrapper.exit i {
        color: #ef4444;
    }

    .smart-popup-content h3 {
        font-size: 1.5rem;
        font-weight: 700;
        color: #0A0A0A;
        margin-bottom: 0.5rem;
    }

    .smart-popup-content p {
        color: #52525b;
        margin-bottom: 1.5rem;
        font-size: 1rem;
    }

    .smart-popup-content p strong {
        color: #00D632;
    }

    /* Coupon Display */
    .coupon-display {
        background: #f4f4f5;
        border-radius: 12px;
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .coupon-display.compact {
        padding: 0.75rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    .coupon-label {
        display: block;
        font-size: 0.75rem;
        color: #71717a;
        margin-bottom: 0.5rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .coupon-code-box {
        font-family: 'SF Mono', 'Consolas', monospace;
        font-size: 1.5rem;
        font-weight: 700;
        color: #0A0A0A;
        background: white;
        padding: 0.75rem 1.5rem;
        border-radius: 8px;
        border: 2px dashed #d4d4d8;
        display: inline-block;
        letter-spacing: 2px;
        margin-bottom: 0.75rem;
    }

    .coupon-code-box.exit-code {
        border-color: #fca5a5;
        background: #fef2f2;
    }

    .copy-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.375rem;
        padding: 0.5rem 1rem;
        background: #0A0A0A;
        color: white;
        border: none;
        border-radius: 6px;
        font-size: 0.8125rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s;
    }

    .copy-btn:hover {
        background: #27272a;
        transform: translateY(-1px);
    }

    .copy-btn.small {
        padding: 0.375rem 0.625rem;
    }

    .copy-btn.copied {
        background: #00D632;
    }

    /* Popup CTA */
    .popup-cta {
        display: block;
        width: 100%;
        padding: 1rem;
        background: linear-gradient(135deg, #00D632 0%, #00B32A 100%);
        color: white;
        font-weight: 600;
        font-size: 1rem;
        border-radius: 10px;
        text-decoration: none;
        transition: all 0.2s;
        margin-bottom: 1rem;
    }

    .popup-cta:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 214, 50, 0.3);
        color: white;
        text-decoration: none;
    }

    .popup-cta.gradient {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    }

    .popup-cta.gradient:hover {
        box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
    }

    .popup-dismiss {
        background: none;
        border: none;
        color: #a1a1aa;
        font-size: 0.8125rem;
        cursor: pointer;
        text-decoration: underline;
    }

    .popup-dismiss:hover {
        color: #71717a;
    }

    .popup-footer, .popup-urgency {
        font-size: 0.8125rem;
        color: #71717a;
        margin-bottom: 0;
    }

    .popup-urgency {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        color: #ef4444;
        font-weight: 500;
    }

    .pulse-dot {
        width: 8px;
        height: 8px;
        background: #ef4444;
        border-radius: 50%;
        animation: pulse 1.5s infinite;
    }

    @keyframes pulse {
        0%, 100% { opacity: 1; transform: scale(1); }
        50% { opacity: 0.5; transform: scale(1.2); }
    }

    /* Benefits List */
    .popup-benefits {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
        text-align: left;
    }

    .benefit {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.875rem;
        color: #52525b;
    }

    .benefit i {
        color: #00D632;
    }

    .popup-actions {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    /* Offer Bar */
    .offer-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #0A0A0A 0%, #27272a 100%);
        z-index: 45; /* below fixed navbar (z-50) and chat widget */
        padding: 0.75rem 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
        border-top: 1px solid rgba(0, 214, 50, 0.25);
        animation: slideDown 0.4s ease-out;
    }

    @keyframes slideDown {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }

    @media (min-width: 1024px) {
        .offer-bar-content { padding-right: 200px; } /* clear the chat pill */
    }

    .offer-bar-content {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .offer-bar-left {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .offer-bar-badge {
        background: #ef4444;
        color: white;
        padding: 0.25rem 0.625rem;
        border-radius: 4px;
        font-size: 0.6875rem;
        font-weight: 600;
        text-transform: uppercase;
    }

    .offer-bar-text {
        color: white;
        font-size: 0.875rem;
    }

    .offer-bar-text .highlight {
        color: #fcd34d;
        font-weight: 700;
    }

    .offer-bar-right {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .offer-bar-code {
        font-family: monospace;
        background: rgba(255, 255, 255, 0.1);
        color: #fcd34d;
        padding: 0.375rem 0.75rem;
        border-radius: 4px;
        font-weight: 600;
        font-size: 0.875rem;
    }

    .offer-bar-copy {
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.3);
        color: white;
        padding: 0.375rem 0.75rem;
        border-radius: 4px;
        font-size: 0.75rem;
        cursor: pointer;
        transition: all 0.2s;
    }

    .offer-bar-copy:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .offer-bar-cta {
        background: #00D632;
        color: white;
        padding: 0.5rem 1rem;
        border-radius: 6px;
        font-size: 0.8125rem;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.2s;
    }

    .offer-bar-cta:hover {
        background: #00B32A;
        color: white;
        text-decoration: none;
    }

    .offer-bar-close {
        background: none;
        border: none;
        color: rgba(255, 255, 255, 0.5);
        font-size: 1.25rem;
        cursor: pointer;
        padding: 0 0.25rem;
    }

    .offer-bar-close:hover {
        color: white;
    }

    /* Discount Bubble */
    .discount-bubble {
        position: fixed;
        bottom: 100px;
        left: 20px;
        z-index: 9997;
    }

    .bubble-content {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        background: white;
        padding: 0.75rem 1rem;
        border-radius: 50px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        cursor: pointer;
        transition: all 0.3s;
        border: 2px solid #00D632;
    }

    .bubble-content:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
    }

    .bubble-icon {
        width: 36px;
        height: 36px;
        background: linear-gradient(135deg, #00D632 0%, #00B32A 100%);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 0.875rem;
    }

    .bubble-text {
        display: flex;
        flex-direction: column;
    }

    .bubble-title {
        font-size: 0.6875rem;
        color: #71717a;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .bubble-discount {
        font-size: 0.9375rem;
        font-weight: 700;
        color: #00D632;
    }

    .bubble-expanded {
        display: none;
        position: absolute;
        bottom: calc(100% + 10px);
        left: 0;
        background: white;
        padding: 1.25rem;
        border-radius: 12px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
        width: 220px;
        text-align: center;
    }

    .bubble-expanded.show {
        display: block;
        animation: bubbleExpand 0.3s ease-out;
    }

    @keyframes bubbleExpand {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .bubble-close {
        position: absolute;
        top: 8px;
        right: 8px;
        background: none;
        border: none;
        color: #a1a1aa;
        font-size: 1rem;
        cursor: pointer;
    }

    .bubble-expanded h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        color: #0A0A0A;
    }

    .bubble-expanded p {
        font-size: 0.8125rem;
        color: #52525b;
        margin-bottom: 0.75rem;
    }

    .bubble-copy {
        width: 100%;
        padding: 0.625rem;
        background: #0A0A0A;
        color: white;
        border: none;
        border-radius: 6px;
        font-size: 0.8125rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s;
    }

    .bubble-copy:hover {
        background: #27272a;
    }

    /* Timed Offer Modal */
    .timed-offer {
        max-width: 380px;
    }

    .timed-offer-header {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
        color: white;
        padding: 0.75rem;
        margin: -2.5rem -2.5rem 1.5rem;
        border-radius: 20px 20px 0 0;
        font-weight: 600;
    }

    .timed-offer-body h3 {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }

    .timed-offer-body p {
        font-size: 0.9375rem;
        margin-bottom: 1rem;
    }

    .timed-offer-discount {
        display: flex;
        align-items: baseline;
        justify-content: center;
        gap: 0.375rem;
        margin-bottom: 1rem;
    }

    .discount-amount {
        font-size: 3rem;
        font-weight: 800;
        color: #f59e0b;
        line-height: 1;
    }

    .discount-label {
        font-size: 1.25rem;
        font-weight: 600;
        color: #71717a;
    }

    .timed-offer-timer {
        font-size: 0.8125rem;
        color: #71717a;
        margin-top: 0.75rem;
    }

    .timed-offer-timer span {
        font-weight: 600;
        color: #ef4444;
    }

    /* Happy New Year Popup Styles */
    .newyear-popup {
        background: linear-gradient(180deg, #fff 0%, #fefce8 100%);
        overflow: hidden;
    }

    .newyear-popup::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #f59e0b, #eab308, #facc15, #eab308, #f59e0b);
        background-size: 200% 100%;
        animation: shimmer 2s linear infinite;
    }

    @keyframes shimmer {
        0% { background-position: 200% 0; }
        100% { background-position: -200% 0; }
    }

    .popup-badge.newyear {
        background: linear-gradient(135deg, #f59e0b 0%, #eab308 100%);
        color: #0A0A0A;
        font-weight: 700;
    }

    .popup-icon-wrapper.newyear {
        background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
        position: relative;
    }

    .popup-icon-wrapper.newyear i {
        color: #f59e0b;
        font-size: 2.25rem;
    }

    .popup-icon-wrapper.newyear::after {
        content: '';
        position: absolute;
        inset: -4px;
        border-radius: 50%;
        border: 2px dashed #f59e0b;
        animation: rotate 10s linear infinite;
    }

    @keyframes rotate {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
    }

    .newyear-popup h3 {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-size: 1.75rem;
    }

    .newyear-popup p strong {
        color: #d97706 !important;
        font-size: 1.1em;
    }

    .newyear-price-display {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        margin: 1rem 0 1.5rem;
        padding: 1rem;
        background: #fffbeb;
        border-radius: 12px;
        border: 1px dashed #f59e0b;
    }

    .newyear-price-display .original-price {
        font-size: 1.5rem;
        font-weight: 600;
        color: #a1a1aa;
        text-decoration: line-through;
    }

    .newyear-price-display .arrow-icon {
        color: #f59e0b;
        font-size: 1.25rem;
    }

    .newyear-price-display .new-price {
        font-size: 2.5rem;
        font-weight: 800;
        color: #00D632;
    }

    .coupon-code-box.newyear-code {
        border-color: #f59e0b;
        background: #fffbeb;
        color: #d97706;
    }

    .popup-cta.newyear-cta {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
        color: #0A0A0A;
        font-weight: 700;
    }

    .popup-cta.newyear-cta:hover {
        box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
        color: #0A0A0A;
    }

    .newyear-popup .popup-footer {
        color: #92400e;
    }

    .newyear-popup .benefit i {
        color: #f59e0b;
    }

    /* Mobile Responsive */
    @media (max-width: 768px) {
        .smart-popup-content {
            padding: 2rem 1.5rem;
            margin: 0.5rem;
        }

        .offer-bar-content {
            justify-content: center;
            text-align: center;
        }

        .offer-bar-left, .offer-bar-right {
            flex-wrap: wrap;
            justify-content: center;
        }

        .discount-bubble {
            bottom: 90px;
            left: 10px;
        }

        .bubble-content {
            padding: 0.5rem 0.75rem;
        }

        .bubble-text {
            display: none;
        }

        .coupon-code-box {
            font-size: 1.25rem;
            padding: 0.625rem 1rem;
        }
    }
    