/* Triple AI Booking Assistant Styling */
:root {
    --ai-primary: #0072FF;
    --ai-primary-hover: #005ECD;
    --ai-gradient: linear-gradient(135deg, #0072FF 0%, #00C6FF 100%);
    --ai-bg-glass: rgba(255, 255, 255, 0.95);
    --ai-dark-bg: #0F172A;
    --ai-card-bg: #FFFFFF;
    --ai-border: rgba(226, 232, 240, 0.8);
    --ai-text-main: #1E293B;
    --ai-text-muted: #64748B;
    --ai-shadow-xl: 0 20px 40px -15px rgba(0, 114, 255, 0.25), 0 0 20px rgba(0, 0, 0, 0.08);
}

/* Floating Action Button (FAB) */
.ai-fab-btn {
    position: fixed;
    bottom: 28px;
    left: 28px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.94) 0%, rgba(30, 41, 59, 0.98) 100%);
    color: #FFFFFF;
    padding: 8px 18px 8px 10px;
    border-radius: 50px;
    border: 1.5px solid rgba(56, 189, 248, 0.35);
    cursor: pointer;
    box-shadow: 0 14px 35px -6px rgba(0, 114, 255, 0.45), 0 0 20px rgba(0, 198, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: inherit;
    direction: rtl;
}

.ai-fab-btn:hover {
    transform: translateY(-4px) scale(1.03);
    border-color: rgba(56, 189, 248, 0.7);
    box-shadow: 0 20px 42px -6px rgba(0, 114, 255, 0.6), 0 0 28px rgba(0, 198, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.ai-fab-pulse {
    position: absolute;
    inset: -3px;
    border-radius: 50px;
    background: linear-gradient(135deg, #0072FF, #00C6FF);
    opacity: 0.25;
    z-index: -1;
    animation: aiPulse 3s infinite;
}

@keyframes aiPulse {
    0% { transform: scale(1); opacity: 0.35; }
    50% { transform: scale(1.06); opacity: 0.08; }
    100% { transform: scale(1); opacity: 0.35; }
}

.ai-fab-robot-wrap {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0052D4 0%, #00C6FF 100%);
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 114, 255, 0.45);
    flex-shrink: 0;
}

.ai-fab-robot-glow {
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.ai-fab-robot-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    animation: robotFloat 3s ease-in-out infinite;
}

@keyframes robotFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.ai-fab-status-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 11px;
    height: 11px;
    background: #10B981;
    border: 2px solid #0F172A;
    border-radius: 50%;
    box-shadow: 0 0 8px #10B981;
}

.ai-fab-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    text-align: right;
}

.ai-fab-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ai-fab-label {
    font-size: 13.5px;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.2px;
    line-height: 1.2;
}

.ai-fab-badge {
    background: linear-gradient(135deg, #0072FF, #00C6FF);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 8px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 198, 255, 0.4);
}

.ai-fab-sub {
    font-size: 11px;
    color: #94A3B8;
    font-weight: 500;
}

/* Chat Modal / Window */
.ai-modal-container {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 24px;
    direction: rtl;
}

.ai-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}

.ai-chat-window {
    position: relative;
    width: 440px;
    max-width: calc(100vw - 32px);
    height: 640px;
    max-height: calc(100vh - 48px);
    background: var(--ai-card-bg);
    border-radius: 24px;
    box-shadow: var(--ai-shadow-xl);
    border: 1px solid var(--ai-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 10;
    animation: aiSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes aiSlideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Header */
.ai-chat-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.ai-header-titles {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ai-avatar-wrapper {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ai-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #0052D4 0%, #00C6FF 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 14px rgba(0, 114, 255, 0.35);
}

.ai-header-robot-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

.ai-avatar-pulse {
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 2px solid #00C6FF;
    animation: aiAvatarPing 2s infinite;
}

@keyframes aiAvatarPing {
    0% { transform: scale(0.9); opacity: 0.8; }
    100% { transform: scale(1.3); opacity: 0; }
}

.ai-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.ai-agent-name {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

.ai-agent-badge {
    background: rgba(0, 198, 255, 0.2);
    color: #38BDF8;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 600;
    flex-shrink: 0;
    white-space: nowrap;
}

.ai-status-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    min-width: 0;
}

.ai-online-dot {
    width: 7px;
    height: 7px;
    background: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 6px #10B981;
    flex-shrink: 0;
}

.ai-status-text {
    font-size: 11px;
    color: #94A3B8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.ai-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-inline-start: 6px;
}

.ai-action-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: background 0.2s;
}

.ai-action-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Messages Container */
.ai-messages-container {
    flex: 1;
    min-height: 0;
    padding: 20px 14px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #F8FAFC;
    scroll-behavior: smooth;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.55) transparent;
}

.ai-msg {
    display: flex;
    gap: 8px;
    max-width: 88%;
    min-width: 0;
    align-items: flex-end;
    box-sizing: border-box;
}

.ai-msg-user {
    align-self: flex-start;
    margin-right: 0;
    margin-left: auto;
    flex-direction: row;
}

.ai-msg-bot {
    align-self: flex-end;
    margin-left: 0;
    margin-right: auto;
    flex-direction: row-reverse;
}

.ai-msg-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 114, 255, 0.15), rgba(0, 198, 255, 0.22));
    border: 1.5px solid rgba(0, 114, 255, 0.3);
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 114, 255, 0.2);
}

.ai-msg-robot-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.15));
}

.ai-msg-bubble {
    background: #FFFFFF;
    padding: 12px 16px;
    border-radius: 18px 18px 18px 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    border: 1px solid #E2E8F0;
    font-size: 13.5px;
    line-height: 1.75;
    color: var(--ai-text-main);
    word-break: break-word;
    overflow-wrap: anywhere;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    direction: rtl;
    text-align: right;
}

.ai-msg-text {
    min-width: 0;
    max-width: 100%;
    direction: rtl;
    text-align: right;
    overflow-wrap: anywhere;
}

.ai-msg-user .ai-msg-bubble {
    background: var(--ai-gradient);
    color: #FFFFFF;
    border-radius: 18px 18px 4px 18px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 114, 255, 0.25);
}

.ai-msg-time {
    font-size: 10px;
    color: var(--ai-text-muted);
    margin-top: 4px;
    text-align: left;
}

.ai-msg-user .ai-msg-time {
    color: rgba(255, 255, 255, 0.85);
    text-align: left;
}

/* Modifier for Bot Message containing service cards */
.ai-msg.ai-msg-has-cards {
    max-width: 100% !important;
    width: 100%;
}

.ai-msg.ai-msg-has-cards .ai-msg-bubble {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    padding: 12px 14px;
    overflow: hidden;
}

/* Modern Horizontal Service Cards Carousel */
.ai-carousel-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #E2E8F0;
    overflow: hidden;
    box-sizing: border-box;
}

.ai-carousel-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 0 4px;
}

.ai-carousel-title {
    font-size: 12px;
    font-weight: 700;
    color: #64748B;
}

.ai-carousel-nav-btns {
    display: flex;
    gap: 6px;
}

.ai-carousel-nav-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    color: #0F172A;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.2s;
}

.ai-carousel-nav-btn:hover {
    background: var(--ai-primary);
    color: #FFFFFF;
    border-color: var(--ai-primary);
}

.ai-cards-carousel {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 8px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    box-sizing: border-box;
}

.ai-cards-carousel::-webkit-scrollbar {
    display: none;
}

/* Service Card (Horizontal Carousel) */
.ai-service-card {
    width: 180px;
    min-width: 180px;
    max-width: 180px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    flex-shrink: 0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ai-service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.ai-service-card-media-wrap {
    position: relative;
    width: 100%;
    border-radius: 13px 13px 0 0;
    overflow: hidden;
}

.ai-card-media {
    position: relative;
    width: 100%;
    background: #0F172A;
    overflow: hidden;
}

.ai-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.ai-service-card:hover .ai-card-img {
    transform: scale(1.04);
}

/* Swipeable / Flippable Image Slider */
.ai-card-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.ai-card-slider-track::-webkit-scrollbar {
    display: none;
}

.ai-card-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
}

.ai-card-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ai-card-slider-controls {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    z-index: 3;
}

.ai-card-slider-btn {
    pointer-events: auto;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    color: #FFFFFF;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    transition: all 0.2s;
}

.ai-card-slider-btn:hover {
    background: rgba(0, 114, 255, 0.95);
    transform: scale(1.1);
}

.ai-card-slider-counter {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    color: #FFFFFF;
    font-size: 9.5px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    z-index: 3;
    letter-spacing: 0.5px;
}

.ai-card-badge-rating {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    color: #FFD700;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    z-index: 4;
}

.ai-card-badge-cat {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0, 114, 255, 0.88);
    backdrop-filter: blur(4px);
    color: #FFFFFF;
    font-size: 9.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    z-index: 4;
}

.ai-card-body {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.ai-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #0F172A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.ai-card-location {
    font-size: 11px;
    color: #64748B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ai-card-price-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-top: 3px;
}

.ai-card-price {
    font-size: 14px;
    font-weight: 800;
    color: var(--ai-primary);
}

.ai-card-price small {
    font-size: 10.5px;
    font-weight: 700;
}

.ai-card-unit {
    font-size: 10.5px;
    color: #64748B;
}

.ai-card-action-btn {
    margin-top: 6px;
    background: var(--ai-gradient);
    color: #FFFFFF;
    border: none;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: opacity 0.2s, transform 0.15s;
    box-shadow: 0 2px 6px rgba(0, 114, 255, 0.25);
}

.ai-card-action-btn:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

/* Featured Single Proposed Place Card */
.ai-featured-card {
    margin-top: 10px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.ai-featured-card-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ai-featured-details-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.ai-detail-pill {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    color: #334155;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.ai-featured-btn {
    margin-top: 6px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 10px;
    background: var(--ai-gradient);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 114, 255, 0.3);
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ai-featured-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 114, 255, 0.4);
}

.ai-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    padding: 4px 0;
    border-bottom: 1px solid #E2E8F0;
}

.ai-summary-total {
    font-size: 14px;
    font-weight: 800;
    color: #0072FF;
    border-bottom: none;
    margin-top: 4px;
}

/* Payment Action Button */
.ai-payment-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #FFFFFF;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.ai-payment-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

/* Quick Chips */
.ai-chips-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border-top: 1px solid #F1F5F9;
    padding: 8px 10px;
    gap: 6px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.ai-chips-nav-btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    z-index: 2;
    padding: 0;
}

.ai-chips-nav-btn:hover {
    background: var(--ai-primary, #0072FF);
    color: #FFFFFF;
    border-color: var(--ai-primary, #0072FF);
    box-shadow: 0 3px 10px rgba(0, 114, 255, 0.35);
    transform: scale(1.08);
}

.ai-chips-nav-btn:active {
    transform: scale(0.92);
}

.ai-chips-nav-btn svg {
    display: block;
    pointer-events: none;
}

.ai-quick-chips {
    display: flex;
    gap: 8px;
    padding: 2px;
    overflow-x: auto;
    overflow-y: hidden;
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    scrollbar-width: none;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

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

.ai-chip {
    background: #F1F5F9;
    color: #334155;
    border: 1px solid #E2E8F0;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.2s;
}

.ai-chip:hover {
    background: #E2E8F0;
    color: var(--ai-primary);
    border-color: #CBD5E1;
}

/* Footer & Input Form */
.ai-chat-footer {
    padding: 12px 16px;
    background: #FFFFFF;
    border-top: 1px solid #E2E8F0;
}

.ai-input-form {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    border-radius: 28px;
    padding: 4px 8px 4px 16px;
    transition: border-color 0.2s;
}

.ai-input-form:focus-within {
    border-color: var(--ai-primary);
    box-shadow: 0 0 0 3px rgba(0, 114, 255, 0.12);
}

.ai-text-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 13.5px;
    color: var(--ai-text-main);
    outline: none;
    font-family: inherit;
    padding: 8px 0;
}

.ai-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--ai-gradient);
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.ai-send-btn:hover {
    transform: scale(1.06);
}

/* Typing Indicator Animation */
.ai-typing-indicator {
    display: flex;
    gap: 5px;
    padding: 8px 12px;
}

.ai-typing-dot {
    width: 6px;
    height: 6px;
    background: #94A3B8;
    border-radius: 50%;
    animation: aiTyping 1.4s infinite ease-in-out;
}

.ai-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.ai-typing-dot:nth-child(3) { animation-delay: 0.4s; }

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .ai-modal-container {
        padding: 0;
        align-items: flex-end;
        justify-content: center;
    }

    .ai-chat-window {
        width: 100%;
        max-width: 100%;
        height: 82dvh;
        max-height: 82dvh;
        border-radius: 24px 24px 0 0;
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-bottom: none;
        box-shadow: 0 -12px 35px rgba(0, 0, 0, 0.35);
        transition: height 0.2s cubic-bezier(0.16, 1, 0.3, 1), max-height 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .ai-chat-header {
        padding: max(12px, env(safe-area-inset-top, 12px)) 12px 12px 12px;
        gap: 8px;
    }

    .ai-header-info {
        gap: 8px;
    }

    .ai-avatar-wrapper,
    .ai-avatar {
        width: 36px;
        height: 36px;
    }

    .ai-agent-name {
        font-size: 13.5px;
    }

    .ai-agent-badge {
        font-size: 9.5px;
        padding: 1.5px 5px;
    }

    .ai-status-row {
        gap: 5px;
    }

    .ai-status-text {
        font-size: 10.5px;
    }

    .ai-header-actions {
        gap: 4px;
        margin-inline-start: 4px;
    }

    .ai-action-btn {
        width: 30px;
        height: 30px;
    }

    .ai-chat-footer {
        padding-bottom: max(12px, env(safe-area-inset-bottom, 12px));
    }

    .ai-fab-btn {
        bottom: 20px;
        left: 20px;
        padding: 6px;
        border-radius: 50%;
    }

    body.sdp-body .ai-fab-btn,
    body:has(#sdp-mobile-bar) .ai-fab-btn,
    body.has-sdp-mobile-bar .ai-fab-btn {
        bottom: calc(76px + env(safe-area-inset-bottom, 12px));
    }

    .ai-fab-content {
        display: none;
    }

    .ai-fab-robot-wrap {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 380px) {
    .ai-chat-header {
        padding: max(10px, env(safe-area-inset-top, 10px)) 10px 10px 10px;
    }

    .ai-agent-name {
        font-size: 12.5px;
    }

    .ai-agent-badge {
        display: none;
    }

    .ai-status-text {
        font-size: 10px;
    }
}

@media (max-width: 860px) {
    body.sdp-body .ai-fab-btn,
    body:has(#sdp-mobile-bar) .ai-fab-btn,
    body.has-sdp-mobile-bar .ai-fab-btn {
        bottom: calc(76px + env(safe-area-inset-bottom, 12px));
    }
}

@media (max-width: 480px) {
    body.sdp-body .ai-fab-btn,
    body:has(#sdp-mobile-bar) .ai-fab-btn,
    body.has-sdp-mobile-bar .ai-fab-btn {
        bottom: calc(70px + env(safe-area-inset-bottom, 10px));
        left: 14px;
    }
}
