.adia-ai-chat {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1080;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.adia-ai-chat-toggle {
    border: 0;
    min-height: 58px;
    padding: 0 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0d6efd 0%, #05a3c7 100%);
    color: #fff;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 18px 42px rgba(13, 110, 253, .32);
    cursor: pointer;
}

.adia-ai-chat-toggle i {
    font-size: 20px;
}

.adia-ai-chat-panel {
    width: 390px;
    max-width: calc(100vw - 28px);
    height: 560px;
    max-height: calc(100vh - 110px);
    position: absolute;
    right: 0;
    bottom: 76px;
    background: #ffffff;
    border: 1px solid #dbe7f5;
    border-radius: 26px;
    box-shadow: 0 34px 90px rgba(15, 23, 42, .24);
    overflow: hidden;
    display: none;
}

.adia-ai-chat-panel.open {
    display: flex;
    flex-direction: column;
}

.adia-ai-chat-header {
    padding: 18px 20px;
    background: linear-gradient(135deg, #061526 0%, #0d2238 58%, #0c3a66 100%);
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.adia-ai-chat-header strong {
    display: block;
    font-size: 16px;
    font-weight: 900;
}

.adia-ai-chat-header small {
    display: block;
    color: rgba(255, 255, 255, .72);
    font-weight: 700;
    margin-top: 4px;
}

.adia-ai-chat-header button {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, .12);
}

.adia-ai-chat-body {
    flex: 1;
    padding: 18px;
    overflow-y: auto;
    background: #f6f9fd;
}

.adia-ai-message {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.adia-ai-message.user {
    justify-content: flex-end;
}

.adia-ai-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd 0%, #05a3c7 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
}

.adia-ai-bubble {
    max-width: 285px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #ffffff;
    color: #0f172a;
    font-size: 14px;
    line-height: 1.55;
    border: 1px solid #e5edf7;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .05);
}

.adia-ai-message.user .adia-ai-bubble {
    color: #ffffff;
    background: linear-gradient(135deg, #0d6efd 0%, #05a3c7 100%);
    border: 0;
}

.adia-ai-message.user .adia-ai-avatar {
    display: none;
}

.adia-ai-quick-actions {
    padding: 12px 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid #e5edf7;
    background: #ffffff;
}

.adia-ai-quick-actions button {
    border: 1px solid #dbe7f5;
    background: #f8fbff;
    color: #0f172a;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 800;
}

.adia-ai-chat-form {
    padding: 14px;
    display: flex;
    gap: 10px;
    border-top: 1px solid #e5edf7;
    background: #ffffff;
}

.adia-ai-chat-form input {
    flex: 1;
    min-height: 46px;
    border-radius: 14px;
    border: 1px solid #dbe7f5;
    background: #eef4ff;
    padding: 0 14px;
    font-weight: 700;
    outline: none;
}

.adia-ai-chat-form input:focus {
    border-color: #0d6efd;
    background: #ffffff;
}

.adia-ai-chat-form button {
    width: 48px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #0d6efd 0%, #05a3c7 100%);
}

@media (max-width: 575px) {
    .adia-ai-chat {
        right: 14px;
        bottom: 14px;
    }

    .adia-ai-chat-toggle span {
        display: none;
    }

    .adia-ai-chat-toggle {
        width: 58px;
        padding: 0;
        justify-content: center;
    }

    .adia-ai-chat-panel {
        right: -2px;
        bottom: 72px;
        width: calc(100vw - 24px);
        height: 72vh;
    }
}
