/* =====================================================
   Elnur AI - Gemini tərzi tam-ekran transparent overlay
   ===================================================== */

html.ai-locked,
body.ai-locked {
    overflow: hidden;
}

.ai-overlay__messages {
    overscroll-behavior: contain;
}

/* ---------- Overlay ---------- */
.ai-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overscroll-behavior: none;
    background:
        linear-gradient(rgba(255, 255, 255, .48), rgba(255, 255, 255, .48)),
        radial-gradient(120% 60% at 50% 112%, rgba(255, 255, 255, .2), transparent 58%),
        linear-gradient(115deg,
            color-mix(in srgb, var(--aurora-a, var(--primary)) 15%, transparent),
            color-mix(in srgb, var(--aurora-b, var(--secondary)) 15%, transparent),
            color-mix(in srgb, var(--aurora-a, var(--primary)) 15%, transparent),
            color-mix(in srgb, var(--aurora-b, var(--secondary)) 15%, transparent),
            color-mix(in srgb, var(--aurora-a, var(--primary)) 15%, transparent),
            color-mix(in srgb, var(--aurora-b, var(--secondary)) 15%, transparent));
    background-size: 300% 300%;
    backdrop-filter: blur(28px) saturate(1.05);
    -webkit-backdrop-filter: blur(28px) saturate(1.05);
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s ease, visibility .28s ease;
}

.ai-overlay--open {
    opacity: 1;
    visibility: visible;
    animation:
        ai-overlay-in .3s cubic-bezier(.2, .8, .3, 1),
        ai-overlay-color 4.5s steps(9, end) infinite;
}

@keyframes ai-overlay-color {
    0%, 100% {
        background-position: 0% 0%;
    }
    18% {
        background-position: 45% 90%;
    }
    34% {
        background-position: 100% 15%;
    }
    51% {
        background-position: 10% 70%;
    }
    68% {
        background-position: 80% 100%;
    }
    84% {
        background-position: 35% 10%;
    }
}

@keyframes ai-overlay-in {
    from {
        opacity: 0;
        transform: scale(.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ---------- Yuxarı pill başlıq ---------- */
.ai-overlay__top {
    position: absolute;
    top: 14px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    padding: 0 16px;
    z-index: 3;
    pointer-events: none;
}

.ai-overlay__pill {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px 6px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, .08);
    box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .28);
}

.chatbot-modal__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, .9);
    flex-shrink: 0;
}

.chatbot-modal__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

/* Müsahibə avatarı: herodakı kimi hərəkətli aurora dairəsi (profil şəkli yox) */
.chatbot-avatar-aurora {
    position: relative;
    background: #eef4ff;
    padding: 0;
    /* Hero ilə eyni mavi + qırmızı palitra (açıq fonda) */
    --aurora-a: #38BDF8;
    --aurora-b: #EF4444;
}
.chatbot-avatar-aurora .aurora-blob {
    /* Kiçik avatar üçün öz hərəkət keyframe-i (hero ilə eyni ruhda,
       amma ölçüyə uyğun görünəcək şəkildə) */
    animation: aurora-avatar-drift var(--dur, 5s) ease-in-out infinite;
    animation-delay: var(--d, 0s);
    opacity: .55;
    filter: blur(2px);
}

/* Profil şəkli: aurora-nın üstündə, dairəyə sığdırılmış */
.chatbot-modal__avatar-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    border-radius: 50%;
    z-index: 2;
}

/* Mavi + qırmızı rənglər mərkəzdə üst-üstə düşüb qarışsın deyə
   blob-ları kiçik pəncərənin mərkəzinə yaxın yerləşdiririk */
@keyframes aurora-avatar-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25%      { transform: translate(26px, -20px) scale(1.12); }
    50%      { transform: translate(-20px, 24px) scale(.92); }
    75%      { transform: translate(16px, 15px) scale(1.06); }
}

/* Açılış qeyd bildirişi (söhbət balonu deyil, mərkəzdə qısa nota) */
.chatbot-note {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(90%, 440px);
    max-width: 90%;
    margin: 0;
    padding: 14px 20px;
    text-align: center;
    font-size: 13px;
    line-height: 1.45;
    color: var(--dark);
    background: rgba(56, 189, 248, .10);
    border: 1px dashed rgba(56, 189, 248, .55);
    border-radius: 14px;
    z-index: 5;
}

.chatbot-modal__meta {
    min-width: 0;
}

.chatbot-modal__menu-wrap {
    position: relative;
    width: fit-content;
}
.chatbot-modal__menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 6px;
    border: 0;
    background: transparent;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary, #0D6EFD);
    cursor: pointer;
    transition: background .15s ease;
}
.chatbot-modal__menu-btn:hover {
    background: rgba(13, 110, 253, .10);
}
.chatbot-modal__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22C55E;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .18);
    flex-shrink: 0;
}
.chatbot-modal__menu-caret {
    font-size: 10px;
    transition: transform .2s ease;
}
.chatbot-modal__menu-btn[aria-expanded="true"] .chatbot-modal__menu-caret {
    transform: rotate(180deg);
}

.ai-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    width: min(330px, 88vw);
    background: #ffffff;
    border: 1px solid rgba(17, 20, 29, .06);
    border-radius: 18px;
    box-shadow: 0 24px 60px -24px rgba(17, 20, 29, .45), 0 2px 10px rgba(17, 20, 29, .05);
    padding: 14px;
    z-index: 30;
    color: var(--dark, #12141D);
}
.ai-dropdown[hidden] {
    display: none;
}
.ai-dropdown__section + .ai-dropdown__section {
    margin-top: 6px;
}
.ai-dropdown__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--dark, #12141D);
    opacity: .5;
    padding: 0 4px 10px;
}
.ai-dropdown__empty {
    font-size: 13px;
    color: #6B7280;
    padding: 6px 4px 8px;
}
.ai-dropdown__day {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--primary, #0D6EFD);
    margin: 10px 4px 6px;
}
.ai-dropdown__day::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(var(--primary-rgb), .12), rgba(var(--primary-rgb), .03));
}
.ai-dropdown__day:first-child {
    margin-top: 2px;
}
.ai-dropdown__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 12px;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.ai-dropdown__item + .ai-dropdown__item {
    margin-top: 2px;
}
.ai-dropdown__item:hover {
    background: rgba(13, 110, 253, .06);
}
.ai-dropdown__item-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 1px;
}
.ai-dropdown__item-date {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark, #12141D);
    line-height: 1.25;
}
.ai-dropdown__item-count {
    font-size: 11px;
    font-weight: 500;
    color: #6B7280;
}
.ai-dropdown__dl {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50px;
    background: rgba(var(--primary-rgb), .08);
    color: var(--primary, #0D6EFD);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background .15s ease, transform .1s ease;
}
.ai-dropdown__dl:hover {
    background: rgba(var(--primary-rgb), .14);
}
.ai-dropdown__dl:active {
    transform: scale(.92);
}

.ai-dropdown__item--current {
    background: rgba(var(--primary-rgb), .08);
    border: 1px solid transparent;
}
.ai-dropdown__item--current:hover {
    background: rgba(var(--primary-rgb), .14);
}
.ai-dropdown__item--current:hover {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), .22), rgba(var(--primary-rgb), .1));
}
.ai-dropdown__item--current .ai-dropdown__item-date {
    color: var(--primary, #0D6EFD);
}
.ai-dropdown__item--current .ai-dropdown__item-date::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--primary, #0D6EFD);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .2);
    vertical-align: middle;
}

.ai-dropdown__divider {
    height: 1px;
    width: 100%;
    margin: 10px 0;
    background: linear-gradient(to right,
        rgba(17, 20, 29, .02),
        rgba(17, 20, 29, .12),
        rgba(17, 20, 29, .02));
}

.ai-dropdown__actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.ai-dropdown__load {
    flex-shrink: 0;
    height: 34px;
    padding: 0 14px;
    border: 0;
    border-radius: 50px;
    background: rgba(var(--primary-rgb), .08);
    color: var(--primary, #0D6EFD);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    transition: background .15s ease, transform .1s ease;
}
.ai-dropdown__load:hover {
    background: rgba(var(--primary-rgb), .14);
}
.ai-dropdown__load:active {
    transform: scale(.94);
}

.ai-dropdown__del {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50px;
    background: rgba(var(--primary-rgb), .08);
    color: var(--primary, #0D6EFD);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background .15s ease, transform .1s ease;
}
.ai-dropdown__del:hover {
    background: rgba(var(--primary-rgb), .14);
}
.ai-dropdown__del:active {
    transform: scale(.92);
}

.ai-dropdown__save {
    flex-shrink: 0;
    height: 34px;
    padding: 0 14px;
    border: 0;
    border-radius: 50px;
    background: var(--primary, #0D6EFD);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    transition: filter .15s ease, transform .1s ease, box-shadow .15s ease;
    box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--primary, #0D6EFD) 70%, transparent);
}
.ai-dropdown__save:hover {
    filter: brightness(1.07);
}
.ai-dropdown__save:active {
    transform: scale(.95);
}

.ai-dropdown__clear-current {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50px;
    background: rgba(var(--primary-rgb), .08);
    color: var(--primary, #0D6EFD);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background .15s ease, transform .1s ease;
}
.ai-dropdown__clear-current:hover {
    background: rgba(var(--primary-rgb), .14);
}
.ai-dropdown__clear-current:active {
    transform: scale(.92);
}
html[data-theme="black"] .ai-dropdown__clear-current {
    background: rgba(var(--primary-rgb), .14);
    color: var(--primary, #5cc8ff);
}
html[data-theme="black"] .ai-dropdown__clear-current:hover {
    background: rgba(var(--primary-rgb), .22);
}

.ai-dropdown__clear {
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 50px;
    background: rgba(var(--primary-rgb), .08);
    color: var(--primary, #0D6EFD);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background .15s ease;
}
.ai-dropdown__clear:hover {
    background: rgba(var(--primary-rgb), .14);
}

.chatbot-modal__name {
    color: var(--dark);
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
    margin: 0;
}

.chatbot-modal__status {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6c757d;
    font-size: 11px;
}

.chatbot-modal__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    display: inline-block;
}

.chatbot-modal__close {
    position: relative;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, .08);
    opacity: .85;
    margin: 0;
    padding: 0;
    cursor: pointer;
    transition: background .2s ease, opacity .2s ease;
}

.chatbot-modal__close::before,
.chatbot-modal__close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    border-radius: 2px;
    background: var(--dark);
    transform-origin: center;
}

.chatbot-modal__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.chatbot-modal__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.chatbot-modal__close:hover {
    background: rgba(0, 0, 0, .14);
    opacity: 1;
}

.chatbot-modal__close:hover::before {
    animation: chatbot-x-spin .35s ease;
}

.chatbot-modal__close:hover::after {
    animation: chatbot-x-spin-rev .35s ease;
}

.chatbot-modal__close:active {
    transform: scale(.9);
}

@keyframes chatbot-x-spin {
    0% {
        transform: translate(-50%, -50%) rotate(45deg) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) rotate(90deg) scale(.8);
    }
    100% {
        transform: translate(-50%, -50%) rotate(45deg) scale(1);
    }
}

@keyframes chatbot-x-spin-rev {
    0% {
        transform: translate(-50%, -50%) rotate(-45deg) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) rotate(-90deg) scale(.8);
    }
    100% {
        transform: translate(-50%, -50%) rotate(-45deg) scale(1);
    }
}

/* ---------- İki sütunlu layout ---------- */
.ai-overlay__layout {
    width: 100%;
    max-width: 980px;
    height: 88vh;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    align-items: stretch;
    padding: 24px;
}

.ai-overlay__chat {
    flex: 1 1 100%;
    width: 100%;
    max-width: 860px;
    max-height: 80vh;
    height: 100%;
    margin: 0 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* ---------- Mesaj sahəsi ---------- */
.ai-overlay__messages {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 14px 8px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .4) transparent;
}

.ai-overlay__messages::-webkit-scrollbar {
    width: 6px;
}

.ai-overlay__messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .35);
    border-radius: 999px;
}

.ai-overlay__messages::-webkit-scrollbar-track {
    background: transparent;
}

/* Mesajlar */
.chatbot-msg {
    display: flex;
    margin-bottom: 10px;
    transition: opacity .45s ease, transform .45s ease, max-height .45s ease, margin-bottom .45s ease;
}

.chatbot-msg--enter {
    animation: chatbot-in .38s cubic-bezier(.2, .8, .3, 1);
}

.chatbot-msg--leaving {
    opacity: 0;
    transform: translateY(-22px);
    overflow: hidden;
    pointer-events: none;
}

.chatbot-msg--bot {
    justify-content: flex-start;
}

.chatbot-msg--user {
    justify-content: flex-end;
}

.chatbot-bubble {
    max-width: min(78%, 460px);
    padding: 10px 15px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.chatbot-msg--bot .chatbot-bubble {
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--dark);
    border: 1px solid rgba(0, 0, 0, .07);
    border-bottom-left-radius: 5px;
    box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .18);
}

.chatbot-msg--user .chatbot-bubble {
    background: var(--primary);
    color: #fff;
    border-bottom-right-radius: 5px;
    box-shadow: 0 6px 18px -6px rgba(var(--primary-rgb), .55);
}

@keyframes chatbot-in {
    from {
        opacity: 0;
        transform: translateY(22px) scale(.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Yazır... göstəricisi */
.chatbot-bubble--typing {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 14px 16px;
}

.chatbot-bubble--typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    animation: chatbot-typing 1.2s ease-in-out infinite;
}

.chatbot-bubble--typing span:nth-child(2) {
    animation-delay: .15s;
}

.chatbot-bubble--typing span:nth-child(3) {
    animation-delay: .3s;
}

@keyframes chatbot-typing {
    0%, 60%, 100% {
        opacity: .3;
        transform: translateY(0);
    }
    30% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

/* ---------- Çiplər ---------- */
.ai-overlay__chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    padding: 12px 6px 4px 18px;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, .14);
}

.chatbot-chip {
    border: 1px solid rgba(255, 255, 255, .6);
    color: var(--dark);
    background: rgba(255, 255, 255, .75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 999px;
    padding: 6px 13px;
    font-size: 12.5px;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 4px 12px -6px rgba(0, 0, 0, .2);
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.chatbot-chip:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
}

/* Müsahibəyə başlama əsas düyməsi (default seçim) */
.chatbot-chip--start {
    border: none;
    color: #fff;
    background: var(--primary);
    font-weight: 600;
    box-shadow: 0 6px 16px -6px rgba(var(--primary-rgb), .7);
}
.chatbot-chip--start:hover {
    background: var(--primary);
    color: #fff;
    filter: brightness(1.08);
    transform: translateY(-1px);
}

/* Müsahibədə sualların (turların) arasını ayıran divider */
.chatbot-divider {
    height: 1px;
    width: 100%;
    margin: 10px 0;
    background: linear-gradient(to right,
        rgba(255, 255, 255, .02),
        rgba(255, 255, 255, .22),
        rgba(255, 255, 255, .02));
}

/* Müsahibə sual seçimləri: ağdan azca fərqlənsin (yüngül boz) + ayırdedici çərçivə */
.chatbot-chip--opt {
    background: rgba(238, 240, 245, .96);
    border: 1px solid rgba(var(--primary-rgb), .5);
    color: var(--dark);
}
.chatbot-chip--opt:hover {
    background: var(--primary);
    border-color: transparent;
    color: #fff;
}

/* ---------- Aşağı capsule ---------- */
.ai-overlay__footer {
    padding: 8px 0 calc(4px + env(safe-area-inset-bottom));
    display: flex;
    justify-content: center;
    width: 100%;
    z-index: 3;
}

.chatbot-input-capsule {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 999px;
    padding: 5px 6px 5px 18px;
    box-shadow: 0 12px 32px -10px rgba(0, 0, 0, .28);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.chatbot-input-capsule:focus-within {
    border-color: var(--primary);
    box-shadow: 0 12px 32px -10px rgba(0, 0, 0, .3), 0 0 0 3px rgba(var(--primary-rgb), .15);
}

.chatbot-modal__input {
    flex: 1 1 auto;
    min-width: 0;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 9px 4px;
    font-size: 15px;
    color: var(--dark);
}

.chatbot-modal__input:focus {
    outline: none;
}

.chatbot-modal__send {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* ---------- Mobil ---------- */
@media (max-width: 992px) {
    .ai-overlay {
        justify-content: flex-end;
    }

    .ai-overlay__layout {
        height: 100vh;
        height: 100dvh;
        max-height: 100dvh;
        padding: 84px 16px calc(16px + env(safe-area-inset-bottom));
        gap: 0;
    }

    .ai-overlay__chat {
        max-height: none;
    }

    .ai-overlay__side {
        display: none;
    }
}

@media (max-width: 576px) {
    .ai-overlay__layout {
        padding: 84px 12px calc(10px + env(safe-area-inset-bottom));
    }

    .ai-overlay__messages {
        padding: 6px 8px 6px 0;
    }

    .chatbot-bubble {
        max-width: 88%;
    }
}

@media (min-width: 993px) {
    .ai-overlay {
        justify-content: flex-end;
        padding-bottom: 26px;
    }
}

/* ---------- Navbar AI düyməsi ---------- */
.ai-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 4px 6px;
}

.ai-nav-badge {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 27px;
    padding: 0 11px;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--ai-aurora-a, #5cc8ff), var(--ai-aurora-b, #ff8fb6));
}

.ai-nav-badge::before,
.ai-nav-badge::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    filter: blur(7px);
    z-index: -1;
    pointer-events: none;
}

.ai-nav-badge::before {
    top: -8px;
    left: -6px;
    background: rgba(255, 255, 255, .9);
    animation: aiBlobA 2.4s ease-in-out infinite;
}

.ai-nav-badge::after {
    bottom: -8px;
    right: -6px;
    background: rgba(255, 255, 255, .9);
    animation: aiBlobB 2.4s ease-in-out infinite;
}

@keyframes aiBlobA {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(7px, 4px) scale(1.2); }
}

@keyframes aiBlobB {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-7px, -4px) scale(1.2); }
}

.ai-nav-icon {
    width: 17px;
    height: 17px;
    display: block;
}

/* interview: light rejimdə qara, dark rejimdə ağ */
.ai-nav-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .03em;
    color: #0b1020;
    display: inline-block;
    padding: 5px 0;
    text-align: left;
    white-space: nowrap;
    transition: opacity .3s ease, transform .3s ease;
}

html[data-theme="black"] .ai-nav-label { color: #d7e6ff; }

.ai-nav-btn[data-paused="1"] { cursor: pointer; }

@keyframes aiNavShift { to { background-position: 200% 0; } }



/* =====================================================
   Qara (tünd) rejim — html[data-theme="black"]
   ===================================================== */

html[data-theme="black"] .ai-overlay {
    background:
        linear-gradient(rgba(11, 14, 20, .78), rgba(11, 14, 20, .78)),
        radial-gradient(120% 60% at 50% 112%, rgba(11, 14, 20, .6), transparent 58%),
        linear-gradient(115deg,
            color-mix(in srgb, var(--aurora-a, var(--primary)) 14%, transparent),
            color-mix(in srgb, var(--aurora-b, var(--secondary)) 14%, transparent),
            color-mix(in srgb, var(--aurora-a, var(--primary)) 14%, transparent),
            color-mix(in srgb, var(--aurora-b, var(--secondary)) 14%, transparent),
            color-mix(in srgb, var(--aurora-a, var(--primary)) 14%, transparent),
            color-mix(in srgb, var(--aurora-b, var(--secondary)) 14%, transparent));
    background-size: 300% 300%;
}

html[data-theme="black"] .ai-overlay__pill {
    background: rgba(20, 24, 34, .85);
    border-color: rgba(255, 255, 255, .12);
    box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
}

html[data-theme="black"] .chatbot-modal__name {
    color: #F3F4F6;
}

html[data-theme="black"] .chatbot-modal__status {
    color: #9AA3B2;
}

html[data-theme="black"] .chatbot-modal__close {
    background: rgba(255, 255, 255, .1);
}

html[data-theme="black"] .chatbot-modal__close:hover {
    background: rgba(255, 255, 255, .18);
}

html[data-theme="black"] .ai-overlay__side {
    background: rgba(20, 24, 34, .55);
    border-color: rgba(255, 255, 255, .14);
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
}

html[data-theme="black"] .chatbot-msg--bot .chatbot-bubble {
    background: rgba(20, 24, 34, .92);
    color: #E5E7EB;
    border-color: rgba(255, 255, 255, .12);
    box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .45);
}

html[data-theme="black"] .chatbot-msg--user .chatbot-bubble {
    color: #12141D;
}

html[data-theme="black"] .chatbot-chip {
    background: rgba(20, 24, 34, .85);
    border-color: rgba(255, 255, 255, .2);
    color: #E5E7EB;
    box-shadow: 0 4px 12px -6px rgba(0, 0, 0, .45);
}

html[data-theme="black"] .chatbot-chip:hover {
    background: var(--primary);
    color: #12141D;
}

/* Dark temada sual seçimləri cavab balonundan (tünd) fərqlənsin - dark palitəyə uyğun açıq slate */
html[data-theme="black"] .chatbot-chip--opt {
    background: rgba(52, 60, 76, .96);
    border-color: rgba(255, 255, 255, .18);
    color: #E5E7EB;
}

html[data-theme="black"] .ai-dropdown {
    background: #11141D;
    border-color: rgba(255, 255, 255, .1);
    box-shadow: 0 24px 60px -22px rgba(0, 0, 0, .7), 0 2px 10px rgba(0, 0, 0, .4);
    color: #E5E7EB;
}
html[data-theme="black"] .ai-dropdown__title {
    color: #F3F4F6;
    opacity: .7;
}
html[data-theme="black"] .ai-dropdown__empty {
    color: #9AA3B2;
}
html[data-theme="black"] .ai-dropdown__day {
    color: var(--primary, #5cc8ff);
}
html[data-theme="black"] .ai-dropdown__day::after {
    background: linear-gradient(to right, rgba(var(--primary-rgb), .25), transparent);
}
html[data-theme="black"] .ai-dropdown__item-date {
    color: #F3F4F6;
}
html[data-theme="black"] .ai-dropdown__item-count {
    color: #9AA3B2;
}
html[data-theme="black"] .ai-dropdown__item:hover {
    background: rgba(255, 255, 255, .07);
}
html[data-theme="black"] .ai-dropdown__dl {
    background: rgba(var(--primary-rgb), .14);
}
html[data-theme="black"] .ai-dropdown__dl:hover {
    background: rgba(var(--primary-rgb), .22);
}
html[data-theme="black"] .ai-dropdown__item--current {
    background: rgba(var(--primary-rgb), .14);
    border-color: transparent;
}
html[data-theme="black"] .ai-dropdown__item--current .ai-dropdown__item-date {
    color: var(--primary, #5cc8ff);
}
html[data-theme="black"] .ai-dropdown__item--current:hover {
    background: rgba(var(--primary-rgb), .22);
}
html[data-theme="black"] .ai-dropdown__divider {
    background: linear-gradient(to right,
        rgba(255, 255, 255, .02),
        rgba(255, 255, 255, .14),
        rgba(255, 255, 255, .02));
}
html[data-theme="black"] .ai-dropdown__load {
    background: rgba(var(--primary-rgb), .14);
    color: var(--primary, #5cc8ff);
}
html[data-theme="black"] .ai-dropdown__load:hover {
    background: rgba(var(--primary-rgb), .22);
}
html[data-theme="black"] .ai-dropdown__del {
    background: rgba(var(--primary-rgb), .14);
    color: var(--primary, #5cc8ff);
}
html[data-theme="black"] .ai-dropdown__del:hover {
    background: rgba(var(--primary-rgb), .22);
}
html[data-theme="black"] .ai-dropdown__save {
    color: #F3F4F6;
    background: #1F2937;
    box-shadow: none;
}
html[data-theme="black"] .ai-dropdown__clear {
    background: rgba(var(--primary-rgb), .14);
    border-color: transparent;
    color: var(--primary, #5cc8ff);
}
html[data-theme="black"] .ai-dropdown__clear:hover {
    background: rgba(var(--primary-rgb), .22);
}

html[data-theme="black"] .chatbot-input-capsule {
    background: rgba(20, 24, 34, .92);
    border-color: rgba(255, 255, 255, .14);
    box-shadow: 0 12px 32px -10px rgba(0, 0, 0, .55);
}

html[data-theme="black"] .chatbot-modal__input::placeholder {
    color: #9AA3B2;
}

/* ---------- Müvəqqəti "Tezliklə" bildirişi ---------- */
.ai-toast {
    position: fixed;
    left: 50%;
    top: 32px;
    transform: translateX(-50%) translateY(-20px);
    background: #ffffff;
    color: #1f2430;
    border: 1px solid rgba(0, 0, 0, .08);
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .01em;
    box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .25);
    z-index: 1200;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease;
}

.ai-toast--show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

html[data-theme="black"] .ai-toast {
    background: rgba(8, 11, 18, .96);
    color: #fff;
    border-color: rgba(255, 255, 255, .14);
    box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .7);
}
