:root {
    --azer-chat-primary: #18cebf;
    --azer-chat-primary-dark: #11abbf;
    --azer-chat-navy: #0f172a;
    --azer-chat-text: #172033;
    --azer-chat-muted: #64748b;
    --azer-chat-border: #e5e7eb;
    --azer-chat-light: #f8fafc;
    --azer-chat-white: #ffffff;
    --azer-chat-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
}

.azer-chatbot-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 60px;
    height: 60px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        var(--azer-chat-primary),
        var(--azer-chat-primary-dark)
    );
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9998;
    box-shadow:
        0 10px 30px rgba(24, 206, 191, 0.28),
        0 5px 15px rgba(15, 23, 42, 0.12);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

.azer-chatbot-fab::before {
    content: "";
    position: absolute;
    inset: -5px;
    border: 1px solid rgba(24, 206, 191, 0.25);
    border-radius: 50%;
    animation: azerChatPulse 2.5s infinite;
    pointer-events: none;
}

.azer-chatbot-fab:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow:
        0 16px 38px rgba(24, 206, 191, 0.34),
        0 8px 20px rgba(15, 23, 42, 0.14);
}

.azer-chatbot-fab:active {
    transform: scale(0.96);
}

.azer-chatbot-fab i {
    position: relative;
    z-index: 2;
    font-size: 22px;
}

.azer-chat-fab-status {
    position: absolute;
    right: 2px;
    bottom: 3px;
    width: 14px;
    height: 14px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: #22c55e;
    z-index: 3;
}

@keyframes azerChatPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }

    70% {
        transform: scale(1.15);
        opacity: 0;
    }

    100% {
        transform: scale(1.15);
        opacity: 0;
    }
}

.azer-chat-window {
    position: fixed;
    right: 24px;
    bottom: 96px;
    width: 380px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 120px);
    background: var(--azer-chat-white);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    overflow: hidden;
    z-index: 9997;
    box-shadow: var(--azer-chat-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px) scale(0.97);
    transform-origin: bottom right;
    pointer-events: none;
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;
}

.azer-chat-window.azer-chat-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.azer-chat-header {
    position: relative;
    padding: 18px 18px 17px;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(24, 206, 191, 0.32),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #0f172a 0%,
            #172554 100%
        );
    color: #ffffff;
}

.azer-chat-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 38px;
}

.azer-chat-avatar {
    position: relative;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        #18cebf,
        #0ea5e9
    );
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 7px 20px rgba(24, 206, 191, 0.25);
}

.azer-chat-avatar::after {
    content: "";
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 12px;
    height: 12px;
    border: 2px solid #172554;
    border-radius: 50%;
    background: #22c55e;
}

.azer-chat-header-text {
    min-width: 0;
}

.azer-chat-header-text strong {
    display: block;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
}

.azer-chat-header-text span {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    line-height: 1.3;
}

.azer-chat-header-text span::before {
    content: "";
    width: 6px;
    height: 6px;
    min-width: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

.azer-chat-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.azer-chat-close:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    transform: rotate(4deg);
}

.azer-chat-body {
    max-height: min(600px, calc(100vh - 150px));
    overflow-y: auto;
    padding: 18px;
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfdff 100%
        );
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.azer-chat-body::-webkit-scrollbar {
    width: 5px;
}

.azer-chat-body::-webkit-scrollbar-track {
    background: transparent;
}

.azer-chat-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 20px;
}

.azer-chat-welcome {
    position: relative;
    margin-bottom: 17px;
    padding: 15px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 5px 18px rgba(15, 23, 42, 0.04);
}

.azer-chat-welcome::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 3px;
    border-radius: 0 5px 5px 0;
    background: linear-gradient(
        180deg,
        #18cebf,
        #0ea5e9
    );
}

.azer-chat-welcome strong {
    display: block;
    margin-bottom: 5px;
    padding-left: 4px;
    color: var(--azer-chat-text);
    font-size: 15px;
    font-weight: 700;
}

.azer-chat-welcome span {
    display: block;
    padding-left: 4px;
    color: var(--azer-chat-muted);
    font-size: 12px;
    line-height: 1.55;
}

.azer-chat-options {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.azer-chat-option {
    position: relative;
    width: 100%;
    min-height: 64px;
    padding: 10px 11px;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    background: #ffffff;
    display: flex;
    align-items: center;
    gap: 11px;
    text-align: left;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.azer-chat-option:hover {
    border-color: rgba(24, 206, 191, 0.55);
    background: #f7fffe;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.azer-chat-option:active {
    transform: translateY(0);
}

.azer-chat-option:focus-visible,
.azer-inquiry-option:focus-visible,
.azer-inquiry-back:focus-visible,
.azer-chat-close:focus-visible,
.azer-chatbot-fab:focus-visible {
    outline: 3px solid rgba(14, 165, 233, 0.2);
    outline-offset: 2px;
}

.azer-chat-option-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 12px;
    background: linear-gradient(
        135deg,
        #ecfeff,
        #f0fdfa
    );
    color: #0ea5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.azer-chat-option:hover .azer-chat-option-icon {
    background: linear-gradient(
        135deg,
        #18cebf,
        #0ea5e9
    );
    color: #ffffff;
}

.azer-chat-option-content {
    flex: 1;
    min-width: 0;
}

.azer-chat-option-content strong {
    display: block;
    margin-bottom: 3px;
    color: var(--azer-chat-text);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.25;
}

.azer-chat-option-content small {
    display: block;
    color: var(--azer-chat-muted);
    font-size: 10.5px;
    line-height: 1.4;
}

.azer-chat-option-arrow {
    flex: 0 0 auto;
    color: #94a3b8;
    font-size: 10px;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.azer-chat-option:hover .azer-chat-option-arrow {
    color: #18b8aa;
    transform: translateX(2px);
}

.azer-chat-footer {
    margin-top: 15px;
    padding-top: 13px;
    border-top: 1px solid #eef2f7;
    text-align: center;
}

.azer-chat-footer span {
    color: #94a3b8;
    font-size: 9.5px;
}

.azer-chat-footer i {
    margin-right: 4px;
    color: #18cebf;
}

.azer-inquiry-panel {
    display: none;
}

.azer-inquiry-panel.azer-inquiry-active {
    display: block;
    animation: azerInquiryIn 0.22s ease;
}

@keyframes azerInquiryIn {
    from {
        opacity: 0;
        transform: translateX(8px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.azer-inquiry-header {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 15px;
}

.azer-inquiry-header-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 12px;
    background: linear-gradient(
        135deg,
        #ecfeff,
        #f0fdfa
    );
    color: #0ea5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.azer-inquiry-header-text {
    min-width: 0;
}

.azer-inquiry-header-text strong {
    display: block;
    color: var(--azer-chat-text);
    font-size: 14px;
    font-weight: 700;
}

.azer-inquiry-header-text span {
    display: block;
    margin-top: 3px;
    color: var(--azer-chat-muted);
    font-size: 10.5px;
    line-height: 1.4;
}

.azer-inquiry-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.azer-inquiry-option {
    width: 100%;
    min-height: 57px;
    padding: 9px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.azer-inquiry-option:hover {
    border-color: rgba(24, 206, 191, 0.55);
    background: #f7fffe;
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.05);
}

.azer-inquiry-option:active {
    transform: translateY(0);
}

.azer-inquiry-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    background: #f0fdfa;
    color: #0ea5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.azer-inquiry-option:hover .azer-inquiry-icon {
    background: linear-gradient(
        135deg,
        #18cebf,
        #0ea5e9
    );
    color: #ffffff;
}

.azer-inquiry-content {
    flex: 1;
    min-width: 0;
}

.azer-inquiry-content strong {
    display: block;
    margin-bottom: 2px;
    color: var(--azer-chat-text);
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.25;
}

.azer-inquiry-content small {
    display: block;
    color: var(--azer-chat-muted);
    font-size: 9.5px;
    line-height: 1.35;
}

.azer-inquiry-arrow {
    flex: 0 0 auto;
    color: #94a3b8;
    font-size: 9px;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.azer-inquiry-option:hover .azer-inquiry-arrow {
    color: #18b8aa;
    transform: translateX(2px);
}

.azer-inquiry-back {
    width: 100%;
    margin-top: 12px;
    padding: 8px;
    border: 0;
    border-radius: 10px;
    background: #f8fafc;
    color: #64748b;
    font-size: 11px;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.azer-inquiry-back:hover {
    background: #f0fdfa;
    color: #0ea5e9;
}

@media (max-width: 767.98px) {
    .azer-chatbot-fab {
        right: 16px;
        bottom: 16px;
        width: 56px;
        height: 56px;
    }

    .azer-chatbot-fab i {
        font-size: 20px;
    }

    .azer-chat-fab-status {
        right: 1px;
        bottom: 2px;
        width: 13px;
        height: 13px;
        border-width: 3px;
    }

    .azer-chat-window {
        right: 12px;
        bottom: 84px;
        width: calc(100vw - 24px);
        max-width: none;
        max-height: calc(100vh - 100px);
        border-radius: 21px;
    }

    .azer-chat-header {
        padding: 16px 15px;
    }

    .azer-chat-header-content {
        gap: 10px;
        padding-right: 36px;
    }

    .azer-chat-avatar {
        width: 40px;
        height: 40px;
        min-width: 40px;
        border-radius: 12px;
        font-size: 16px;
    }

    .azer-chat-header-text strong {
        font-size: 14px;
    }

    .azer-chat-header-text span {
        font-size: 10px;
    }

    .azer-chat-close {
        top: 13px;
        right: 13px;
        width: 30px;
        height: 30px;
    }

    .azer-chat-body {
        max-height: calc(100vh - 145px);
        padding: 15px;
    }

    .azer-chat-welcome {
        margin-bottom: 14px;
        padding: 13px 14px;
    }

    .azer-chat-welcome strong {
        font-size: 14px;
    }

    .azer-chat-welcome span {
        font-size: 11px;
        line-height: 1.5;
    }

    .azer-chat-option {
        min-height: 60px;
        padding: 9px 10px;
        gap: 10px;
        border-radius: 14px;
    }

    .azer-chat-option-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
        border-radius: 11px;
        font-size: 15px;
    }

    .azer-chat-option-content strong {
        font-size: 12px;
    }

    .azer-chat-option-content small {
        font-size: 10px;
    }

    .azer-inquiry-header {
        gap: 9px;
        margin-bottom: 13px;
    }

    .azer-inquiry-header-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }

    .azer-inquiry-header-text strong {
        font-size: 13px;
    }

    .azer-inquiry-header-text span {
        font-size: 10px;
    }

    .azer-inquiry-option {
        min-height: 54px;
        padding: 8px 9px;
    }
}

@media (max-width: 380px) {
    .azer-chatbot-fab {
        right: 12px;
        bottom: 12px;
        width: 52px;
        height: 52px;
    }

    .azer-chat-window {
        right: 8px;
        bottom: 72px;
        width: calc(100vw - 16px);
        max-height: calc(100vh - 84px);
        border-radius: 18px;
    }

    .azer-chat-body {
        padding: 12px;
        max-height: calc(100vh - 130px);
    }

    .azer-chat-option {
        min-height: 56px;
        padding: 8px;
        gap: 8px;
    }

    .azer-chat-option-icon {
        width: 35px;
        height: 35px;
        min-width: 35px;
        border-radius: 10px;
    }

    .azer-chat-option-content strong {
        font-size: 11.5px;
    }

    .azer-chat-option-content small {
        font-size: 9.5px;
    }

    .azer-chat-option-arrow {
        font-size: 9px;
    }

    .azer-inquiry-option {
        gap: 8px;
    }

    .azer-inquiry-icon {
        width: 34px;
        height: 34px;
        min-width: 34px;
    }

    .azer-inquiry-content strong {
        font-size: 11px;
    }

    .azer-inquiry-content small {
        font-size: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .azer-chatbot-fab::before {
        animation: none;
    }

    .azer-chat-window,
    .azer-chat-option,
    .azer-inquiry-option,
    .azer-chat-close,
    .azer-chat-option-icon,
    .azer-chat-option-arrow,
    .azer-inquiry-icon,
    .azer-inquiry-arrow {
        transition: none;
    }

    .azer-inquiry-panel.azer-inquiry-active {
        animation: none;
    }
}