/* Dealsmoto AI Assistant - Premium Fresh Design */
/* Completely Redesigned for Maximum Elegance */

/* Overlay - Full Screen Agent */
.ai-assistant-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.ai-assistant-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Main Popup Container - Full Screen Agent Interface */
.ai-assistant-popup {
    background: #ffffff;
    border-radius: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    box-shadow: none;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ai-assistant-overlay.show .ai-assistant-popup {
    transform: translateY(0);
}

/* Top Gradient Accent Bar - Full Width */
.ai-assistant-popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg,
        #42a5f5 0%,
        #1877f2 25%,
        #0c63d4 50%,
        #0056c0 75%,
        #42a5f5 100%);
    box-shadow: 0 2px 20px rgba(24, 119, 242, 0.6);
    z-index: 10;
}

@keyframes gradientFlow {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 30px rgba(24, 119, 242, 0.8);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 40px rgba(66, 165, 245, 1);
    }
}

/* Elegant Header - Premium Facebook Blue Gradient with Depth */
.ai-assistant-header {
    background: linear-gradient(135deg, #1877f2 0%, #0c63d4 50%, #0056c0 100%);
    padding: 3rem 2rem 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 10px 40px rgba(24, 119, 242, 0.55),
        inset 0 2px 6px rgba(255, 255, 255, 0.3),
        0 0 60px rgba(66, 165, 245, 0.4);
    animation: headerPulse 6s ease-in-out infinite;
}

@keyframes headerPulse {
    0%, 100% {
        box-shadow:
            0 10px 40px rgba(24, 119, 242, 0.55),
            0 0 60px rgba(66, 165, 245, 0.4);
    }
    50% {
        box-shadow:
            0 12px 50px rgba(24, 119, 242, 0.65),
            0 0 80px rgba(66, 165, 245, 0.5);
    }
}

/* Premium Animated Pattern Overlay */
.ai-assistant-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(66, 165, 245, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(24, 119, 242, 0.15) 0%, transparent 60%);
    animation: rotatePattern 20s linear infinite;
}

@keyframes rotatePattern {
    0% {
        transform: rotate(0deg);
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: rotate(360deg);
        opacity: 0.6;
    }
}

/* Exquisite Avatar with Glow */
.ai-avatar {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        0 15px 40px rgba(24, 119, 242, 0.3),
        0 8px 20px rgba(0, 0, 0, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 1),
        inset 0 -2px 4px rgba(24, 119, 242, 0.1);
    position: relative;
    z-index: 1;
    animation: floatAvatar 3s ease-in-out infinite;
}

/* Rotating gradient ring around avatar - Facebook Blue */
.ai-avatar::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 36px;
    background: linear-gradient(45deg, #1877f2, #42a5f5, #0c63d4, #1877f2);
    background-size: 300% 300%;
    animation: avatar-ring 4s ease-in-out infinite;
    opacity: 0.7;
    z-index: -1;
    filter: blur(10px);
}

@keyframes avatar-ring {
    0%, 100% {
        background-position: 0% 50%;
        transform: rotate(0deg) scale(1);
    }
    50% {
        background-position: 100% 50%;
        transform: rotate(180deg) scale(1.05);
    }
}

@keyframes floatAvatar {
    0%, 100% {
        transform: translateY(0px) scale(1);
        box-shadow:
            0 15px 40px rgba(24, 119, 242, 0.3),
            0 8px 20px rgba(0, 0, 0, 0.15);
    }
    50% {
        transform: translateY(-12px) scale(1.03);
        box-shadow:
            0 20px 50px rgba(24, 119, 242, 0.45),
            0 12px 30px rgba(66, 165, 245, 0.25);
    }
}

.ai-assistant-header h2 {
    color: white;
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    position: relative;
    z-index: 1;
    text-align: center;
    letter-spacing: -0.5px;
}

.ai-assistant-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin: 0;
    position: relative;
    z-index: 1;
    text-align: center;
    font-weight: 500;
}

/* Elegant Close Button */
.ai-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
}

.ai-close-btn:hover {
    background: rgba(255, 255, 255, 0.98);
    color: #1877f2;
    transform: rotate(90deg) scale(1.15);
    box-shadow:
        0 6px 16px rgba(24, 119, 242, 0.4),
        0 0 20px rgba(66, 165, 245, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Content Area */
.ai-assistant-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2rem 1.75rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

/* Welcome Card - Premium Facebook Blue */
.ai-message {
    background: linear-gradient(135deg, #EBF5FF 0%, #D6EAFF 100%);
    border-radius: 18px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(24, 119, 242, 0.15);
    box-shadow:
        0 8px 30px rgba(24, 119, 242, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
}

.ai-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #42a5f5, #1877f2, #0c63d4);
    box-shadow: 0 0 15px rgba(24, 119, 242, 0.6);
    animation: message-pulse 2s ease-in-out infinite;
}

@keyframes message-pulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(24, 119, 242, 0.6);
    }
    50% {
        box-shadow: 0 0 25px rgba(66, 165, 245, 0.8);
    }
}

.ai-message h3 {
    color: #0056c0;
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 1px 2px rgba(24, 119, 242, 0.1);
}

.ai-message p {
    color: #4a5568;
    margin: 0;
    line-height: 1.6;
    font-size: 0.925rem;
}

/* Premium CTA Button - Facebook Blue Gradient */
.ai-cta-button {
    width: 100%;
    padding: 1.35rem 1.85rem;
    background: linear-gradient(135deg, #1877f2 0%, #0c63d4 50%, #0056c0 100%);
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 18px;
    font-size: 1.08rem;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.95rem;
    box-shadow:
        0 12px 35px rgba(24, 119, 242, 0.55),
        0 5px 18px rgba(12, 99, 212, 0.4),
        inset 0 2px 6px rgba(255, 255, 255, 0.35),
        inset 0 -2px 6px rgba(0, 0, 0, 0.12),
        0 0 60px rgba(66, 165, 245, 0.4);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(66, 165, 245, 0.4);
    letter-spacing: 0.4px;
    animation: ctaBreath 5s ease-in-out infinite;
}

@keyframes ctaBreath {
    0%, 100% {
        box-shadow:
            0 12px 35px rgba(24, 119, 242, 0.55),
            0 0 60px rgba(66, 165, 245, 0.4);
    }
    50% {
        box-shadow:
            0 14px 40px rgba(24, 119, 242, 0.65),
            0 0 80px rgba(66, 165, 245, 0.5);
    }
}

/* Ripple effect on CTA button */
.ai-cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.ai-cta-button:hover::before {
    width: 400px;
    height: 400px;
}

.ai-cta-button:hover {
    transform: translateY(-4px) scale(1.03);
    background: linear-gradient(135deg, #42a5f5 0%, #1877f2 50%, #0c63d4 100%);
    box-shadow:
        0 18px 50px rgba(24, 119, 242, 0.7),
        0 10px 25px rgba(66, 165, 245, 0.5),
        inset 0 3px 6px rgba(255, 255, 255, 0.45),
        0 0 100px rgba(66, 165, 245, 0.6),
        0 0 50px rgba(24, 119, 242, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
    animation: none;
}

.ai-cta-button:active {
    transform: translateY(-1px) scale(0.99);
    box-shadow:
        0 8px 20px rgba(24, 119, 242, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
}

/* Feature Grid - Modern Cards */
.ai-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ai-feature-card {
    background: white;
    border-radius: 16px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid #e8ecf1;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
}

.ai-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1877f2, #42a5f5, #0c63d4);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    box-shadow: 0 2px 8px rgba(24, 119, 242, 0.3);
}

.ai-feature-card:hover::before {
    transform: scaleX(1);
}

.ai-feature-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow:
        0 16px 40px rgba(24, 119, 242, 0.25),
        0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: #1877f2;
    background: linear-gradient(135deg, #EBF5FF 0%, #D6EAFF 100%);
}

.ai-feature-icon {
    font-size: 2.2rem;
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #D6EAFF, #B3DBFF);
    border-radius: 18px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.15);
}

.ai-feature-card:hover .ai-feature-icon {
    background: linear-gradient(135deg, #1877f2, #0c63d4, #42a5f5);
    transform: scale(1.18) rotate(-10deg);
    box-shadow:
        0 10px 25px rgba(24, 119, 242, 0.55),
        0 0 40px rgba(66, 165, 245, 0.5),
        0 0 20px rgba(12, 99, 212, 0.4);
}

.ai-feature-card:hover .ai-feature-icon::before {
    filter: brightness(0) invert(1);
}

.ai-feature-text {
    flex: 1;
    width: 100%;
}

.ai-feature-card h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 0.25rem;
}

.ai-feature-card p {
    font-size: 0.75rem;
    color: #718096;
    margin: 0;
    line-height: 1.4;
}

/* AI Icon Button - Floating Assistant Button */
.ai-floating-rectangle {
    display: flex !important;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1877f2 0%, #0c63d4 50%, #0a54b8 100%);
    box-shadow: 0 12px 50px rgba(24, 119, 242, 0.65), 0 6px 30px rgba(12, 99, 212, 0.5);
    cursor: pointer;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.35);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: breathe 4s ease-in-out infinite;
}

/* Hide mobile button when interest selection is active */
body.interest-selection-active .ai-floating-rectangle {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Breathe animation for floating icon button - Facebook Blue */
@keyframes breathe {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow:
            0 12px 50px rgba(24, 119, 242, 0.65),
            0 6px 30px rgba(12, 99, 212, 0.5),
            0 0 80px rgba(66, 165, 245, 0.6);
    }
    50% {
        transform: translateY(-5px) scale(1.05);
        box-shadow:
            0 16px 60px rgba(24, 119, 242, 0.75),
            0 8px 40px rgba(12, 99, 212, 0.6),
            0 0 100px rgba(66, 165, 245, 0.7);
    }
}

.ai-floating-rectangle::before {
    content: '';
    position: absolute;
    inset: -6px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(66, 165, 245, 0.3) 50%, transparent 100%);
    border-radius: 50%;
    animation: gradientShift 5s ease-in-out infinite;
    z-index: -1;
    filter: blur(8px);
}

.ai-floating-rectangle::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4) 0%, transparent 60%);
    animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: translate(30%, 30%) rotate(45deg);
        opacity: 1;
    }
}

@keyframes gradientShift {
    0%, 100% {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(66, 165, 245, 0.3) 50%, transparent 100%);
    }
    50% {
        background: linear-gradient(135deg, rgba(66, 165, 245, 0.35) 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    }
}

.ai-floating-rectangle.show {
    transform: translateY(0) scale(1) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    animation: breathe 4s ease-in-out infinite !important;
}

.ai-floating-rectangle.hide {
    transform: translateY(150px) scale(0) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.ai-floating-rectangle:hover {
    background: linear-gradient(135deg, #42a5f5 0%, #1877f2 50%, #0c63d4 100%);
    box-shadow:
        0 20px 70px rgba(24, 119, 242, 0.8),
        0 10px 40px rgba(66, 165, 245, 0.65),
        inset 0 3px 8px rgba(255, 255, 255, 0.5),
        0 0 120px rgba(66, 165, 245, 0.75),
        0 0 50px rgba(24, 119, 242, 0.6);
    transform: translateY(-5px) scale(1.15) !important;
    border-color: rgba(255, 255, 255, 0.5);
    animation: pulseGlow 1.2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow:
            0 20px 70px rgba(24, 119, 242, 0.8),
            0 10px 40px rgba(66, 165, 245, 0.65),
            0 0 120px rgba(66, 165, 245, 0.75);
    }
    50% {
        box-shadow:
            0 24px 80px rgba(24, 119, 242, 0.9),
            0 12px 50px rgba(66, 165, 245, 0.75),
            0 0 150px rgba(66, 165, 245, 0.85);
    }
}

.ai-rect-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.ai-rect-icon {
    width: 100%;
    height: 100%;
    background: transparent;
    backdrop-filter: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    flex-shrink: 0;
    box-shadow: none;
    animation: mobile-icon-pulse 2.5s ease-in-out infinite;
    position: relative;
    overflow: visible;
}

.ai-rect-icon::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    animation: iconShine 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes iconShine {
    0%, 100% {
        transform: scale(0.5);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.6;
    }
}

@keyframes mobile-icon-pulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
    }
    50% {
        transform: scale(1.1) rotate(10deg);
        filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8));
    }
}

/* FORCE HIDE ALL TEXT ELEMENTS - MAXIMUM PRIORITY */
.ai-rect-text,
.ai-rect-text *,
div.ai-rect-text,
.ai-floating-rectangle .ai-rect-text,
#aiFloatingRectangle .ai-rect-text {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    max-width: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
}

.ai-rect-title,
.ai-rect-title *,
div.ai-rect-title,
.ai-floating-rectangle .ai-rect-title,
#aiFloatingRectangle .ai-rect-title {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

.ai-rect-subtitle,
.ai-rect-subtitle *,
div.ai-rect-subtitle,
.ai-floating-rectangle .ai-rect-subtitle,
#aiFloatingRectangle .ai-rect-subtitle {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

.ai-notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF6347 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    box-shadow:
        0 4px 16px rgba(255, 99, 71, 0.7),
        inset 0 2px 4px rgba(255, 255, 255, 0.5),
        0 0 35px rgba(255, 165, 0, 0.6);
    border: 3px solid rgba(255, 255, 255, 0.9);
    animation: badgePulse 1.8s ease-in-out infinite;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        box-shadow:
            0 4px 16px rgba(255, 99, 71, 0.7),
            0 0 35px rgba(255, 165, 0, 0.6);
    }
    50% {
        transform: scale(1.25) rotate(15deg);
        box-shadow:
            0 6px 20px rgba(255, 99, 71, 0.9),
            0 0 50px rgba(255, 165, 0, 0.8);
    }
}

/* Chat Interface */
.ai-chat-interface {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ai-chat-message {
    max-width: 85%;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    font-size: 0.925rem;
    line-height: 1.5;
    animation: messageSlide 0.3s ease;
}

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

.ai-chat-user {
    align-self: flex-end;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.ai-chat-bot {
    align-self: flex-start;
    background: #f7fafc;
    color: #2d3748;
    border: 1px solid #e8ecf1;
    border-bottom-left-radius: 4px;
}

.ai-chat-input-container {
    padding: 1.5rem;
    background: white;
    border-top: 1px solid #e8ecf1;
    display: flex;
    gap: 1rem;
}

.ai-chat-input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 2px solid #e8ecf1;
    border-radius: 24px;
    font-size: 0.925rem;
    outline: none;
    transition: all 0.3s ease;
}

.ai-chat-input:focus {
    border-color: #F59E0B;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.ai-send-button {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 4px 15px rgba(245, 158, 11, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.ai-send-button:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
    box-shadow:
        0 6px 20px rgba(245, 158, 11, 0.5),
        inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.ai-send-button:active {
    transform: scale(0.95);
}

/* Typing Indicator */
.ai-typing-indicator {
    display: inline-flex;
    gap: 4px;
    padding: 0.5rem;
}

.ai-typing-indicator span {
    width: 8px;
    height: 8px;
    background: #F59E0B;
    border-radius: 50%;
    animation: typing 1.4s ease-in-out infinite;
    box-shadow: 0 0 4px rgba(245, 158, 11, 0.5);
}

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

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

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Custom Scrollbar */
.ai-assistant-content::-webkit-scrollbar,
.ai-chat-messages::-webkit-scrollbar {
    width: 6px;
}

.ai-assistant-content::-webkit-scrollbar-track,
.ai-chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.ai-assistant-content::-webkit-scrollbar-thumb,
.ai-chat-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #F59E0B, #D97706);
    border-radius: 10px;
}

.ai-assistant-content::-webkit-scrollbar-thumb:hover,
.ai-chat-messages::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #FBBF24, #F59E0B);
}

/* Responsive Design */
@media (max-width: 768px) {
    .ai-assistant-popup {
        width: 100vw;
        max-width: 100vw;
        border-radius: 0;
    }

    .ai-assistant-header {
        padding: 2rem 1.5rem 1.75rem;
    }

    .ai-avatar {
        width: 70px;
        height: 70px;
        font-size: 36px;
    }

    .ai-assistant-header h2 {
        font-size: 1.5rem;
    }

    .ai-assistant-content {
        padding: 1.5rem 1.25rem;
    }

    .ai-features {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }

    .ai-feature-card {
        flex-direction: row;
        text-align: left;
        padding: 1rem 1.25rem;
    }

    .ai-feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.75rem;
    }

    /* Hide floating AI button on mobile - already available in floating banner */
    .ai-floating-rectangle {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

@media (max-width: 480px) {
    .ai-assistant-header {
        padding: 1.75rem 1.25rem 1.5rem;
    }

    .ai-assistant-content {
        padding: 1.25rem 1rem;
    }

    .ai-feature-card {
        padding: 0.875rem 1rem;
    }

    .ai-feature-icon {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
}

/* ==================== AGENT UI STYLES ==================== */

/* Compact Header Bar for Full Screen Agent */
.ai-compact-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #1877f2 0%, #0c63d4 100%);
    border-bottom: 3px solid rgba(66, 165, 245, 0.3);
    box-shadow: 0 4px 20px rgba(24, 119, 242, 0.3);
}

.ai-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ai-header-avatar {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.ai-header-info h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

.ai-header-info p {
    margin: 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.ai-header-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 2px;
}

.ai-status-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

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

.ai-header-close {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ai-header-close:hover {
    background: white;
    color: #1877f2;
    transform: rotate(90deg);
}

/* Quick Actions Bar */
.ai-quick-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    overflow-x: auto;
    scrollbar-width: none;
}

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

.ai-quick-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ai-quick-btn:hover {
    background: linear-gradient(135deg, #1877f2 0%, #0c63d4 100%);
    color: white;
    border-color: #1877f2;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.35);
}

.ai-quick-btn:active {
    transform: translateY(0);
}

.ai-quick-btn span:first-child {
    font-size: 1.1rem;
}

/* Booking Confirmation Modal */
.ai-booking-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000001;
    padding: 1.5rem;
}

.ai-booking-modal.show {
    display: flex;
}

.ai-booking-content {
    background: white;
    border-radius: 24px;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.ai-booking-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #1877f2 0%, #0c63d4 100%);
    border-radius: 24px 24px 0 0;
    text-align: center;
}

.ai-booking-header h3 {
    margin: 0;
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
}

.ai-booking-header p {
    margin: 0.5rem 0 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
}

.ai-booking-details {
    padding: 1.5rem;
}

.ai-booking-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.ai-booking-item:last-child {
    border-bottom: none;
}

.ai-booking-label {
    color: #64748b;
    font-size: 0.875rem;
}

.ai-booking-value {
    color: #1e293b;
    font-weight: 600;
    font-size: 0.875rem;
}

.ai-booking-actions {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem 1.5rem;
}

.ai-booking-btn {
    flex: 1;
    padding: 1rem;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.ai-booking-btn.cancel {
    background: #f1f5f9;
    color: #64748b;
}

.ai-booking-btn.cancel:hover {
    background: #e2e8f0;
}

.ai-booking-btn.confirm {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

.ai-booking-btn.confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.5);
}

/* Tool Results Display */
.ai-tool-results {
    margin: 1rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 16px;
    border: 1px solid rgba(24, 119, 242, 0.15);
}

.ai-tool-results h4 {
    margin: 0 0 0.75rem;
    color: #0c63d4;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ai-result-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ai-result-card:last-child {
    margin-bottom: 0;
}

.ai-result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #1877f2;
}

.ai-result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.ai-result-name {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.95rem;
}

.ai-result-price {
    color: #22c55e;
    font-weight: 800;
    font-size: 1rem;
}

.ai-result-info {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #64748b;
}

.ai-result-rating {
    color: #f59e0b;
}

.ai-result-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Agent Action Indicator */
.ai-action-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    margin: 0.75rem 0;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.ai-action-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(245, 158, 11, 0.3);
    border-top-color: #f59e0b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.ai-action-text {
    color: #92400e;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Main Chat Area for Full Screen */
.ai-main-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    overflow: hidden;
}

.ai-messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Enhanced Chat Input for Agent */
.ai-input-area {
    padding: 1rem 1.5rem 1.5rem;
    background: white;
    border-top: 1px solid #e2e8f0;
}

.ai-input-wrapper {
    display: flex;
    gap: 0.75rem;
    background: #f8fafc;
    border-radius: 28px;
    padding: 0.5rem 0.5rem 0.5rem 1.25rem;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.ai-input-wrapper:focus-within {
    border-color: #1877f2;
    box-shadow: 0 0 0 4px rgba(24, 119, 242, 0.1);
}

.ai-input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    outline: none;
    color: #1e293b;
}

.ai-input-wrapper input::placeholder {
    color: #94a3b8;
}

.ai-send-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1877f2 0%, #0c63d4 100%);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
}

.ai-send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(24, 119, 242, 0.5);
}

.ai-send-btn:active {
    transform: scale(0.95);
}

/* Full Screen Mobile Adjustments */
@media (max-width: 768px) {
    .ai-compact-header {
        padding: 0.875rem 1rem;
    }

    .ai-header-avatar {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .ai-header-info h2 {
        font-size: 1rem;
    }

    .ai-quick-actions {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }

    .ai-quick-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.8rem;
    }

    .ai-messages-container {
        padding: 1rem;
    }

    .ai-input-area {
        padding: 0.875rem 1rem 1rem;
    }
}

