

/* ════════════════════════════════════════════════════════════════
   VIONDA CHATBOT MODAL
   ════════════════════════════════════════════════════════════════ */

.vionda-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 10, 20, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.vionda-overlay.open {
    visibility: visible;
    opacity: 1;
    pointer-events: all;
}

.vionda-chat {
    width: 100%;
    max-width: 500px;
    height: 88vh;
    max-height: 720px;
    background: #ffffff;
    border-radius: 28px 28px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(110%);
    transition: transform 0.45s cubic-bezier(0.34, 1.3, 0.64, 1);
    box-shadow: 0 -24px 80px rgba(123, 45, 139, 0.18), 0 -4px 20px rgba(0,0,0,0.15);
}

.vionda-overlay.open .vionda-chat {
    transform: translateY(0);
}

@media (min-width: 640px) {
    .vionda-overlay {
        align-items: center;
        padding: 20px;
    }
    .vionda-chat {
        border-radius: 28px;
        height: 78vh;
    }
}

/* ── Header ─────────────────────────────────────────────────────── */
.vionda-header {
    background: linear-gradient(135deg, #7B2D8B 0%, #5a1f6b 100%);
    padding: 18px 18px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    position: relative;
}

.vionda-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: rgba(255,255,255,0.12);
}

.vionda-avatar {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    position: relative;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.25);
}

.vionda-avatar-pulse {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    animation: vionda-pulse 2.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes vionda-pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50%       { transform: scale(1.15); opacity: 0.2; }
}

.vionda-header-info { flex: 1; min-width: 0; }

.vionda-name {
    color: #fff;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.3px;
}

.vionda-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255,255,255,0.75);
    margin-top: 2px;
}

.vionda-status-dot {
    width: 7px;
    height: 7px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 6px #4ade80;
    animation: vionda-blink 1.8s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes vionda-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.35; }
}

.vionda-close {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background 0.2s, transform 0.15s;
    flex-shrink: 0;
}

.vionda-close:hover {
    background: rgba(255,255,255,0.22);
    transform: scale(1.05);
}

/* ── Messages ────────────────────────────────────────────────────── */
.vionda-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #f8f5fc;
    scroll-behavior: smooth;
}

.vionda-messages::-webkit-scrollbar { width: 4px; }
.vionda-messages::-webkit-scrollbar-track { background: transparent; }
.vionda-messages::-webkit-scrollbar-thumb { background: #c49ad6; border-radius: 2px; }

.vionda-msg {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    animation: vionda-msg-in 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes vionda-msg-in {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.vionda-msg.user { flex-direction: row-reverse; }

.vionda-msg-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #7B2D8B, #5a1f6b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(123, 45, 139, 0.3);
}

.vionda-msg-bubble {
    max-width: 78%;
    padding: 12px 16px;
    border-radius: 20px;
    font-size: 14px;
    line-height: 1.55;
    color: #1e293b;
    word-break: break-word;
}

.vionda-msg.bot .vionda-msg-bubble {
    background: #ffffff;
    border-bottom-left-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.vionda-msg.user .vionda-msg-bubble {
    background: linear-gradient(135deg, #7B2D8B 0%, #5a1f6b 100%);
    color: #fff;
    border-bottom-right-radius: 6px;
    box-shadow: 0 4px 14px rgba(123, 45, 139, 0.35);
}

/* ── Typing indicator ───────────────────────────────────────────── */
.vionda-typing {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    animation: vionda-msg-in 0.32s ease;
}

.vionda-typing-bubble {
    background: #ffffff;
    border-radius: 20px;
    border-bottom-left-radius: 6px;
    padding: 14px 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    display: flex;
    gap: 5px;
    align-items: center;
}

.vionda-typing-dot {
    width: 7px;
    height: 7px;
    background: #7B2D8B;
    border-radius: 50%;
    animation: vionda-bounce 1.3s ease-in-out infinite;
}
.vionda-typing-dot:nth-child(2) { animation-delay: 0.18s; }
.vionda-typing-dot:nth-child(3) { animation-delay: 0.36s; }

@keyframes vionda-bounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
    40%            { transform: translateY(-9px); opacity: 1; }
}

/* ── Suggestion chips ───────────────────────────────────────────── */
.vionda-suggestions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 16px 12px;
    background: #fff;
    border-top: 1px solid #f0e8f5;
    flex-shrink: 0;
}

.vionda-chip {
    background: #fdf0fb;
    border: 1.5px solid #e8b6dc;
    color: #7B2D8B;
    font-size: 12px;
    padding: 7px 13px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: 'DM Sans', 'Inter', sans-serif;
    white-space: nowrap;
    line-height: 1;
}

.vionda-chip:hover {
    background: #7B2D8B;
    color: #fff;
    border-color: #7B2D8B;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(123, 45, 139, 0.3);
}

.vionda-chip:active { transform: translateY(0); }

/* ── Input area ─────────────────────────────────────────────────── */
.vionda-input-area {
    padding: 12px 14px 18px;
    background: #fff;
    border-top: 1px solid #ede8f5;
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-shrink: 0;
}

.vionda-input {
    flex: 1;
    border: 1.5px solid #e2d8f0;
    border-radius: 22px;
    padding: 11px 18px;
    font-size: 14px;
    font-family: 'DM Sans', 'Inter', sans-serif;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #faf8fd;
    resize: none;
    max-height: 110px;
    overflow-y: hidden;
    line-height: 1.5;
}

.vionda-input:focus {
    border-color: #7B2D8B;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(123, 45, 139, 0.12);
}

.vionda-input::placeholder { color: #a0a0b0; }

.vionda-send {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #7B2D8B 0%, #5a1f6b 100%);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: transform 0.18s, box-shadow 0.18s, opacity 0.2s;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(123, 45, 139, 0.4);
}

.vionda-send:hover  { transform: scale(1.07); box-shadow: 0 6px 18px rgba(123, 45, 139, 0.5); }
.vionda-send:active { transform: scale(0.93); }
.vionda-send:disabled { opacity: 0.45; cursor: default; transform: none; box-shadow: none; }
