:root {
    --aivc-primary-color: #2563eb;
    --aivc-primary-hover: #1d4ed8;
    --aivc-primary-light: #3b82f6;
    --aivc-bg-color: #ffffff;
    --aivc-text-color: #1f2937;
    --aivc-text-secondary: #6b7280;
    --aivc-border-color: #e5e7eb;
    --aivc-user-bg: #2563eb;
    --aivc-user-text: #ffffff;
    --aivc-assistant-bg: #f3f4f6;
    --aivc-assistant-text: #1f2937;
    --aivc-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --aivc-shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --aivc-radius: 20px;
    --aivc-radius-sm: 14px;
    --aivc-header-bg: linear-gradient(135deg, var(--aivc-primary-light) 0%, var(--aivc-primary-color) 100%);
    --aivc-btn-radius: 12px;
}

#aivc-chatbot-widget {
    position: fixed;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#aivc-chatbot-widget * {
    box-sizing: border-box;
}

#aivc-chatbot-widget.aivc-bottom-right {
    bottom: 24px;
    right: 24px;
}

#aivc-chatbot-widget.aivc-bottom-left {
    bottom: 24px;
    left: 24px;
}

#aivc-toggle-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--aivc-header-bg);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--aivc-shadow), 0 0 0 0 rgba(37, 99, 235, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

#aivc-toggle-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    border-radius: 50%;
}

#aivc-toggle-btn:hover {
    transform: scale(1.08);
    box-shadow: var(--aivc-shadow), 0 0 0 8px rgba(37, 99, 235, 0.15);
}

#aivc-toggle-btn:active {
    transform: scale(0.98);
}

#aivc-toggle-btn.aivc-hidden {
    display: none;
}

#aivc-toggle-btn svg {
    width: 28px;
    height: 28px;
    color: white;
}

#aivc-toggle-btn svg path {
    stroke: white;
    fill: white;
}

#aivc-chat-window {
    position: absolute;
    bottom: 0;
    width: 400px;
    height: 580px;
    background: var(--aivc-bg-color);
    border-radius: var(--aivc-radius);
    box-shadow: var(--aivc-shadow);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.aivc-bottom-right #aivc-chat-window {
    right: 0;
}

.aivc-bottom-left #aivc-chat-window {
    left: 0;
}

#aivc-chat-window.aivc-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.aivc-chat-header {
    background: var(--aivc-header-bg);
    color: white;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.aivc-chat-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.aivc-header-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.aivc-bot-avatar {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.aivc-bot-avatar svg {
    width: 24px;
    height: 24px;
    color: white;
}

.aivc-bot-avatar svg path,
.aivc-bot-avatar svg circle {
    stroke: white;
}

.aivc-bot-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.aivc-bot-name {
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -0.01em;
}

.aivc-bot-status {
    font-size: 12px;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 6px;
}

.aivc-status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.3);
    animation: aivc-status-pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes aivc-status-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.aivc-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

#aivc-chatbot-widget .aivc-header-btn {
    width: 36px !important;
    height: 36px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    backdrop-filter: blur(4px) !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    overflow: visible !important;
}

#aivc-chatbot-widget .aivc-header-btn:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: scale(1.05) !important;
}

#aivc-chatbot-widget .aivc-header-btn:active {
    transform: scale(0.95) !important;
}

.aivc-header-btn svg {
    width: 20px !important;
    height: 20px !important;
    display: block !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#aivc-chatbot-widget .aivc-header-btn svg circle,
#aivc-chatbot-widget #aivc-menu-btn svg circle {
    fill: #ffffff !important;
    stroke: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

#aivc-chatbot-widget .aivc-header-btn svg path,
#aivc-chatbot-widget #aivc-close-btn svg path {
    stroke: #ffffff !important;
    stroke-width: 2px !important;
    fill: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.aivc-voice-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.15);
}

.aivc-voice-toggle-wrapper span {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.95;
}

.aivc-voice-switch {
    position: relative;
    width: 36px;
    height: 20px;
}

.aivc-voice-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.aivc-voice-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.25);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
}

.aivc-voice-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.aivc-voice-switch input:checked + .aivc-voice-slider {
    background: rgba(255, 255, 255, 0.5);
}

.aivc-voice-switch input:checked + .aivc-voice-slider:before {
    transform: translateX(16px);
}

#aivc-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scroll-behavior: smooth;
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
}

#aivc-messages::-webkit-scrollbar {
    width: 6px;
}

#aivc-messages::-webkit-scrollbar-track {
    background: transparent;
}

#aivc-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

#aivc-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.aivc-message {
    display: flex;
    max-width: 85%;
    animation: aivc-message-in 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes aivc-message-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.aivc-message-user {
    align-self: flex-end;
}

.aivc-message-assistant {
    align-self: flex-start;
}

.aivc-message-content {
    padding: 12px 16px;
    border-radius: var(--aivc-radius-sm);
    word-wrap: break-word;
    line-height: 1.55;
    position: relative;
}

.aivc-message-user .aivc-message-content {
    background: var(--aivc-header-bg);
    color: var(--aivc-user-text);
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.aivc-message-assistant .aivc-message-content {
    background: white;
    color: var(--aivc-assistant-text);
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0,0,0,0.04);
}

.aivc-message-content code {
    background: rgba(0, 0, 0, 0.08);
    padding: 2px 6px;
    border-radius: 6px;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 13px;
}

.aivc-message-user .aivc-message-content code {
    background: rgba(255, 255, 255, 0.2);
}

.aivc-typing .aivc-message-content {
    padding: 16px 20px;
    background: white;
    border: 1px solid rgba(0,0,0,0.04);
}

.aivc-typing-dots {
    display: flex;
    gap: 5px;
    align-items: center;
}

.aivc-typing-dots span {
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    border-radius: 50%;
    animation: aivc-typing-bounce 1.4s infinite ease-in-out both;
}

.aivc-typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

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

@keyframes aivc-typing-bounce {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.4;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.aivc-input-area {
    padding: 12px 16px 10px;
    background: var(--aivc-bg-color);
    flex-shrink: 0;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.aivc-branding {
    text-align: center;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 8px;
    padding-bottom: 2px;
}

.aivc-branding a {
    color: var(--aivc-primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.aivc-branding a:hover {
    color: var(--aivc-primary-hover);
    text-decoration: underline;
}

.aivc-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 24px;
    padding: 4px 4px 4px 16px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.aivc-input-wrapper:focus-within {
    border-color: var(--aivc-primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

#aivc-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 0;
    font-size: 14px;
    color: var(--aivc-text-color);
    outline: none;
    resize: none;
    font-family: inherit;
    min-width: 0;
}

#aivc-input::placeholder {
    color: #94a3b8;
}

.aivc-input-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

#aivc-chatbot-widget .aivc-input-btn {
    width: 36px !important;
    height: 36px !important;
    border: none !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: #f1f5f9 !important;
    position: relative !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
}

#aivc-chatbot-widget .aivc-input-btn svg {
    width: 18px !important;
    height: 18px !important;
    display: block !important;
}

#aivc-chatbot-widget .aivc-input-btn svg path,
#aivc-chatbot-widget .aivc-input-btn svg polyline,
#aivc-chatbot-widget .aivc-input-btn svg line,
#aivc-chatbot-widget .aivc-input-btn svg rect,
#aivc-chatbot-widget .aivc-input-btn svg circle {
    stroke: #64748b !important;
    fill: none !important;
}

#aivc-chatbot-widget .aivc-input-btn:hover {
    background: #e2e8f0 !important;
}

#aivc-chatbot-widget .aivc-input-btn:hover svg path,
#aivc-chatbot-widget .aivc-input-btn:hover svg polyline,
#aivc-chatbot-widget .aivc-input-btn:hover svg line,
#aivc-chatbot-widget .aivc-input-btn:hover svg rect,
#aivc-chatbot-widget .aivc-input-btn:hover svg circle {
    stroke: #475569 !important;
}

#aivc-chatbot-widget .aivc-input-btn:active {
    transform: scale(0.92) !important;
}

#aivc-chatbot-widget #aivc-send-btn {
    background: var(--aivc-primary-color) !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3) !important;
}

#aivc-chatbot-widget #aivc-send-btn svg path {
    stroke: #ffffff !important;
}

#aivc-chatbot-widget #aivc-send-btn:hover {
    background: var(--aivc-primary-hover) !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4) !important;
}

#aivc-chatbot-widget #aivc-send-btn:active {
    transform: scale(0.95) !important;
}

#aivc-chatbot-widget #aivc-send-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

#aivc-chatbot-widget #aivc-mic-btn {
    background: #f1f5f9 !important;
    box-shadow: none !important;
}

#aivc-chatbot-widget #aivc-mic-btn svg path {
    stroke: #64748b !important;
}

#aivc-chatbot-widget #aivc-mic-btn:hover {
    background: #e2e8f0 !important;
}

#aivc-chatbot-widget #aivc-mic-btn:hover svg path {
    stroke: var(--aivc-primary-color) !important;
}

#aivc-chatbot-widget #aivc-mic-btn.aivc-listening {
    background: #fef2f2 !important;
    animation: aivc-mic-pulse 1.5s infinite !important;
}

#aivc-chatbot-widget #aivc-mic-btn.aivc-listening svg path {
    stroke: #ef4444 !important;
}

@keyframes aivc-mic-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
}

#aivc-chatbot-widget #aivc-speaker-btn {
    background: #f1f5f9 !important;
    box-shadow: none !important;
}

#aivc-chatbot-widget #aivc-speaker-btn svg path {
    stroke: #64748b !important;
}

#aivc-chatbot-widget #aivc-speaker-btn:hover {
    background: #e2e8f0 !important;
}

#aivc-chatbot-widget #aivc-speaker-btn:hover svg path {
    stroke: var(--aivc-primary-color) !important;
}

#aivc-chatbot-widget #aivc-speaker-btn.aivc-speaking {
    background: #eff6ff !important;
    animation: aivc-speaker-pulse 1s infinite !important;
}

#aivc-chatbot-widget #aivc-speaker-btn.aivc-speaking svg path {
    stroke: var(--aivc-primary-color) !important;
}

@keyframes aivc-speaker-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

#aivc-chatbot-widget .aivc-attach-btn {
    background: transparent !important;
    box-shadow: none !important;
    width: 32px !important;
    height: 32px !important;
}

#aivc-chatbot-widget .aivc-attach-btn svg path {
    stroke: #94a3b8 !important;
}

#aivc-chatbot-widget .aivc-attach-btn:hover {
    background: #f1f5f9 !important;
}

#aivc-chatbot-widget .aivc-attach-btn:hover svg path {
    stroke: #64748b !important;
}

#aivc-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 20px 16px;
}

.aivc-quick-reply-btn {
    background: white;
    border: 1px solid var(--aivc-primary-color);
    color: var(--aivc-primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.aivc-quick-reply-btn:hover {
    background: var(--aivc-primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.aivc-lead-form,
.aivc-handoff-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.aivc-lead-form input,
.aivc-lead-form textarea,
.aivc-handoff-form input,
.aivc-handoff-form textarea {
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.aivc-lead-form input:focus,
.aivc-lead-form textarea:focus,
.aivc-handoff-form input:focus,
.aivc-handoff-form textarea:focus {
    outline: none;
    border-color: var(--aivc-primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.aivc-lead-submit,
.aivc-handoff-form button {
    background: var(--aivc-header-bg);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.aivc-lead-submit:hover,
.aivc-handoff-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.aivc-proactive-bubble {
    position: absolute;
    bottom: 80px;
    right: 0;
    background: white;
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    max-width: 280px;
    opacity: 0;
    transform: translateY(10px) scale(0.9);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.05);
}

.aivc-proactive-bubble.aivc-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.aivc-proactive-bubble p {
    margin: 0;
    font-size: 14px;
    color: #1f2937;
    line-height: 1.5;
}

.aivc-proactive-close {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 18px;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
}

.aivc-proactive-close:hover {
    color: #6b7280;
}

.aivc-handoff-container {
    text-align: center;
    padding: 8px 0;
}

.aivc-handoff-btn {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.aivc-handoff-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #475569;
}

.aivc-rating-buttons {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    justify-content: center;
}

.aivc-rate-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.aivc-rate-btn:hover {
    border-color: var(--aivc-primary-color);
    color: var(--aivc-primary-color);
    transform: scale(1.1);
}

.aivc-rate-btn:active {
    transform: scale(0.95);
    background: var(--aivc-primary-color);
    color: white;
}

.aivc-message-content a {
    color: var(--aivc-primary-color);
    text-decoration: underline;
}

.aivc-message-user .aivc-message-content a {
    color: white;
}

.aivc-notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.aivc-gdpr-consent {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.98);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    border-radius: var(--aivc-radius);
}

.aivc-gdpr-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.aivc-gdpr-consent p {
    color: var(--aivc-text-color);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.aivc-gdpr-consent a {
    color: var(--aivc-primary-color);
    text-decoration: underline;
}

.aivc-gdpr-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.aivc-gdpr-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--aivc-primary-color);
}

.aivc-gdpr-accept {
    background: var(--aivc-header-bg);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.aivc-gdpr-accept:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.aivc-gdpr-accept:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.aivc-header-menu {
    position: absolute;
    top: 100%;
    right: 20px;
    margin-top: 4px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    min-width: 180px;
    z-index: 100;
    overflow: hidden;
}

.aivc-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--aivc-text-color);
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.aivc-menu-item:hover {
    background: #f3f4f6;
}

.aivc-menu-item svg {
    width: 16px;
    height: 16px;
    color: #6b7280;
    flex-shrink: 0;
}

.aivc-menu-item svg path,
.aivc-menu-item svg polyline,
.aivc-menu-item svg line,
.aivc-menu-item svg rect {
    stroke: #6b7280;
}

.aivc-file-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: #f8fafc;
    border-radius: 10px;
    margin-top: 10px;
}

.aivc-file-preview-info {
    flex: 1;
    min-width: 0;
}

.aivc-file-preview-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--aivc-text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aivc-file-preview-size {
    font-size: 11px;
    color: #6b7280;
}

.aivc-file-preview-remove {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 6px;
    background: #fee2e2;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    padding: 0;
    flex-shrink: 0;
}

.aivc-file-preview-remove svg {
    width: 14px;
    height: 14px;
}

.aivc-file-preview-remove svg path {
    stroke: #dc2626;
}

.aivc-file-preview-remove:hover {
    background: #fecaca;
}

.aivc-file-preview-img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}

.aivc-suggested-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 20px;
    background: #fafafa;
    border-top: 1px solid #e5e7eb;
}

.aivc-suggested-questions span {
    font-size: 11px;
    color: #6b7280;
    width: 100%;
    margin-bottom: 4px;
}

.aivc-suggested-btn {
    background: white;
    border: 1px solid #e2e8f0;
    color: var(--aivc-text-color);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.aivc-suggested-btn:hover {
    border-color: var(--aivc-primary-color);
    color: var(--aivc-primary-color);
    background: #eff6ff;
}

.aivc-modal {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.aivc-modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 360px;
    max-height: 90%;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.aivc-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.aivc-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--aivc-text-color);
}

.aivc-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: #f3f4f6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    font-size: 20px;
    color: #6b7280;
    padding: 0;
}

.aivc-modal-close:hover {
    background: #e5e7eb;
}

.aivc-modal-body {
    padding: 20px;
}

.aivc-form-group {
    margin-bottom: 16px;
}

.aivc-form-group:last-child {
    margin-bottom: 0;
}

.aivc-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--aivc-text-color);
    margin-bottom: 6px;
}

.aivc-form-group input,
.aivc-form-group select,
.aivc-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: white;
}

.aivc-form-group input:focus,
.aivc-form-group select:focus,
.aivc-form-group textarea:focus {
    outline: none;
    border-color: var(--aivc-primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.aivc-btn-primary {
    background: var(--aivc-header-bg);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.aivc-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.aivc-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.aivc-time-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.aivc-time-slot {
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}

.aivc-time-slot:hover {
    border-color: var(--aivc-primary-color);
    background: #eff6ff;
}

.aivc-time-slot.selected {
    background: var(--aivc-primary-color);
    color: white;
    border-color: var(--aivc-primary-color);
}

.aivc-survey-question {
    margin-bottom: 20px;
}

.aivc-survey-question p {
    font-size: 14px;
    font-weight: 500;
    color: var(--aivc-text-color);
    margin: 0 0 10px;
}

.aivc-rating-scale {
    display: flex;
    gap: 6px;
}

.aivc-rating-scale button {
    flex: 1;
    padding: 10px 0;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.aivc-rating-scale button:hover {
    border-color: var(--aivc-primary-color);
    background: #eff6ff;
}

.aivc-rating-scale button.selected {
    background: var(--aivc-primary-color);
    color: white;
    border-color: var(--aivc-primary-color);
}

.aivc-survey-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.aivc-survey-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.aivc-survey-option:hover {
    border-color: var(--aivc-primary-color);
    background: #eff6ff;
}

.aivc-survey-option.selected {
    border-color: var(--aivc-primary-color);
    background: #eff6ff;
}

.aivc-survey-option input {
    width: 16px;
    height: 16px;
    accent-color: var(--aivc-primary-color);
}

.aivc-survey-option span {
    font-size: 13px;
    color: var(--aivc-text-color);
}

.aivc-flow-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.aivc-flow-option {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
}

.aivc-flow-option:hover {
    border-color: var(--aivc-primary-color);
    background: #eff6ff;
    color: var(--aivc-primary-color);
}

.aivc-message-attachment {
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(0,0,0,0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.aivc-message-attachment svg {
    width: 16px;
    height: 16px;
}

.aivc-message-attachment svg path {
    stroke: #6b7280;
}

.aivc-message-attachment a {
    font-size: 12px;
    color: var(--aivc-primary-color);
    text-decoration: none;
}

.aivc-message-attachment a:hover {
    text-decoration: underline;
}

.aivc-message-user .aivc-message-attachment {
    background: rgba(255,255,255,0.15);
}

.aivc-message-user .aivc-message-attachment svg path {
    stroke: rgba(255,255,255,0.8);
}

.aivc-message-user .aivc-message-attachment a {
    color: white;
}

.aivc-success-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.aivc-success-message svg {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
}

.aivc-success-message svg path {
    stroke: #22c55e;
    fill: none;
}

.aivc-success-message h4 {
    margin: 0 0 8px;
    font-size: 16px;
    color: var(--aivc-text-color);
}

.aivc-success-message p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

@media (max-width: 480px) {
    #aivc-chatbot-widget {
        bottom: 0 !important;
        right: 0 !important;
        left: 0 !important;
    }

    #aivc-toggle-btn {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
    }

    #aivc-chat-window {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        max-height: 100dvh;
        border-radius: 0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }

    .aivc-bottom-right #aivc-chat-window,
    .aivc-bottom-left #aivc-chat-window {
        right: 0;
        left: 0;
    }

    .aivc-chat-header {
        padding: 16px;
        padding-top: max(16px, env(safe-area-inset-top));
    }

    .aivc-input-area {
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }

    .aivc-proactive-bubble {
        right: 20px;
        bottom: 90px;
        max-width: calc(100vw - 100px);
    }

    .aivc-modal-content {
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: 80vh;
    }

    .aivc-time-slots {
        grid-template-columns: repeat(2, 1fr);
    }
}
