.chat-toggle {
    z-index: 1;
    position: fixed;
    bottom: 65px;
    right: 22px;
    background: linear-gradient(135deg, #801E33, #5e1425);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.8);
    transition: all 0.25s ease;
}

.chat-toggle:hover {
    transform: scale(1.1) rotate(5deg);
}

.chat-toggle:active {
    transform: scale(0.95);
}

.chat-widget {
    z-index: 9999;
    position: fixed;
    bottom: 60px;
    right: 20px;
    width: 420px;
    height: 450px;
    max-width: calc(100% - 40px);
    max-height: calc(100% - 100px);
    background: #f9fafc;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    transform: translateY(30px) scale(0.9);
    opacity: 0;
    pointer-events: none;
}

.chat-widget.active {
    animation: popup 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    pointer-events: auto;
}

@keyframes popup {
    0% {
        transform: translateY(30px) scale(0.9);
        opacity: 0;
    }
    70% {
        transform: translateY(-5px) scale(1.03);
        opacity: 1;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .chat-widget {
        width: 100%;
        height: 100vh;
        top: 0;
        bottom: 0;
    }
}

.chat-header {
    background: var(--color-primary);
    color: #ffffff;
    padding: 12px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-body {
    padding: 12px;
    overflow-y: auto;
    flex: 1;
    background: #eef2f7;
}

.bot-msg {
    background: var(--section-diagonal);
    color: white;
    padding: 10px 12px;
    border-radius: 12px;
    margin-bottom: 14px;
    max-width: 80%;
    font-size: 14px;
}

.option-btn {
    width: 100%;
    margin-bottom: 8px;
    text-align: left;
    background: #ffffff;
    border: 1px solid #d0d7e2;
    color: #2c3e50;
    font-size: 14px;
    border-radius: 10px;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
}

.option-btn:hover {
    color: white;
    transform: translateX(4px) scale(1.02);
}

.option-btn:active {
    transform: scale(0.97);
}

#chat-close {
    background: transparent;
    color: white;
    border: 0;
    cursor: pointer;
}

.typing {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.typing-bubble {
    background: #dfe6ee;
    padding: 10px 14px;
    border-radius: 12px;
    display: flex;
    gap: 4px;
}

.dot {
    width: 6px;
    height: 6px;
    background: #6b7c93;
    border-radius: 50%;
    animation: blink 1.4s infinite;
}

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

.link {
    color: #2ea0f7;
}

@keyframes blink {
    0%, 80%, 100% { opacity: 0.2; }
    40% { opacity: 1; }
}