@font-face {
    font-family: IRANYekanX;
    font-style: normal;
    font-weight: 100;
    src: local("IRANYekanX"), url("../fonts/IRANYekanX(pro)/Farsi numerals/Webfonts/Woff2/IRANYekanXFaNum-Thin.woff2") format("woff2"), url("../fonts/IRANYekanX(pro)/Farsi numerals/Webfonts/Woff/IRANYekanXFaNum-Thin.woff") format("woff"), url("../fonts/IRANYekanX(pro)/Farsi numerals/IRANYekanXFaNum-Thin.ttf") format("truetype");
}

@font-face {
    font-family: IRANYekanX;
    font-style: normal;
    font-weight: 200;
    src: local("IRANYekanX"), url("../fonts/IRANYekanX(pro)/Farsi numerals/Webfonts/Woff2/IRANYekanXFaNum-UltraLight.woff2") format("woff2"), url("../fonts/IRANYekanX(pro)/Farsi numerals/Webfonts/Woff/IRANYekanXFaNum-UltraLight.woff") format("woff"), url("../fonts/IRANYekanX(pro)/Farsi numerals/IRANYekanXFaNum-UltraLight.ttf") format("truetype");
}

@font-face {
    font-family: IRANYekanX;
    font-style: normal;
    font-weight: 300;
    src: local("IRANYekanX"), url("../fonts/IRANYekanX(pro)/Farsi numerals/Webfonts/Woff2/IRANYekanXFaNum-Light.woff2") format("woff2"), url("../fonts/IRANYekanX(pro)/Farsi numerals/Webfonts/Woff/IRANYekanXFaNum-Light.woff") format("woff"), url("../fonts/IRANYekanX(pro)/Farsi numerals/IRANYekanXFaNum-Light.ttf") format("truetype");
}

@font-face {
    font-family: IRANYekanX;
    font-style: normal;
    font-weight: 400;
    src: local("IRANYekanX"), url("../fonts/IRANYekanX(pro)/Farsi numerals/Webfonts/Woff2/IRANYekanXFaNum-Regular.woff2") format("woff2"), url("../fonts/IRANYekanX(pro)/Farsi numerals/Webfonts/Woff/IRANYekanXFaNum-Regular.woff") format("woff"), url("../fonts/IRANYekanX(pro)/Farsi numerals/IRANYekanXFaNum-Regular.ttf") format("truetype");
}

@font-face {
    font-family: IRANYekanX;
    font-style: normal;
    font-weight: 500;
    src: local("IRANYekanX"), url("../fonts/IRANYekanX(pro)/Farsi numerals/Webfonts/Woff2/IRANYekanXFaNum-Medium.woff2") format("woff2"), url("../fonts/IRANYekanX(pro)/Farsi numerals/Webfonts/Woff/IRANYekanXFaNum-Medium.woff") format("woff"), url("../fonts/IRANYekanX(pro)/Farsi numerals/IRANYekanXFaNum-Medium.ttf") format("truetype");
}

@font-face {
    font-family: IRANYekanX;
    font-style: normal;
    font-weight: 600;
    src: local("IRANYekanX"), url("../fonts/IRANYekanX(pro)/Farsi numerals/Webfonts/Woff2/IRANYekanXFaNum-DemiBold.woff2") format("woff2"), url("../fonts/IRANYekanX(pro)/Farsi numerals/Webfonts/Woff/IRANYekanXFaNum-DemiBold.woff") format("woff"), url("../fonts/IRANYekanX(pro)/Farsi numerals/IRANYekanXFaNum-DemiBold.ttf") format("truetype");
}

@font-face {
    font-family: IRANYekanX;
    font-style: normal;
    font-weight: 700;
    src: local("IRANYekanX"), url("../fonts/IRANYekanX(pro)/Farsi numerals/Webfonts/Woff2/IRANYekanXFaNum-Bold.woff2") format("woff2"), url("../fonts/IRANYekanX(pro)/Farsi numerals/Webfonts/Woff/IRANYekanXFaNum-Bold.woff") format("woff"), url("../fonts/IRANYekanX(pro)/Farsi numerals/IRANYekanXFaNum-Bold.ttf") format("truetype");
}

@font-face {
    font-family: IRANYekanX;
    font-style: normal;
    font-weight: 800;
    src: local("IRANYekanX"), url("../fonts/IRANYekanX(pro)/Farsi numerals/Webfonts/Woff2/IRANYekanXFaNum-ExtraBold.woff2") format("woff2"), url("../fonts/IRANYekanX(pro)/Farsi numerals/Webfonts/Woff/IRANYekanXFaNum-ExtraBold.woff") format("woff"), url("../fonts/IRANYekanX(pro)/Farsi numerals/IRANYekanXFaNum-ExtraBold.ttf") format("truetype");
}

@font-face {
    font-family: IRANYekanX;
    font-style: normal;
    font-weight: 900;
    src: local("IRANYekanX"), url("../fonts/IRANYekanX(pro)/Farsi numerals/Webfonts/Woff2/IRANYekanXFaNum-Black.woff2") format("woff2"), url("../fonts/IRANYekanX(pro)/Farsi numerals/Webfonts/Woff/IRANYekanXFaNum-Black.woff") format("woff"), url("../fonts/IRANYekanX(pro)/Farsi numerals/IRANYekanXFaNum-Black.ttf") format("truetype");
}

@font-face {
    font-family: Kalameh;
    font-style: normal;
    font-weight: 100;
    src: local("Kalameh"), url("../fonts/Kalameh/02- Farsi_Numerals/WebFonts/fonts/woff2/KalamehWebFaNum-Thin.woff2") format("woff2"), url("../fonts/Kalameh/02- Farsi_Numerals/WebFonts/fonts/Woff/KalamehWebFaNum-Thin.woff") format("woff"), url("../fonts/Kalameh/02- Farsi_Numerals/TTF/KalamehFaNum-Thin.ttf") format("truetype");
}

@font-face {
    font-family: Kalameh;
    font-style: normal;
    font-weight: 200;
    src: local("Kalameh"), url("../fonts/Kalameh/02- Farsi_Numerals/WebFonts/fonts/woff2/KalamehWebFaNum-ExtraLight.woff2") format("woff2"), url("../fonts/Kalameh/02- Farsi_Numerals/WebFonts/fonts/Woff/KalamehWebFaNum-ExtraLight.woff") format("woff"), url("../fonts/Kalameh/02- Farsi_Numerals/TTF/KalamehFaNum-ExtraLight.ttf") format("truetype");
}

@font-face {
    font-family: Kalameh;
    font-style: normal;
    font-weight: 300;
    src: local("Kalameh"), url("../fonts/Kalameh/02- Farsi_Numerals/WebFonts/fonts/woff2/KalamehWebFaNum-Light.woff2") format("woff2"), url("../fonts/Kalameh/02- Farsi_Numerals/WebFonts/fonts/Woff/KalamehWebFaNum-Light.woff") format("woff"), url("../fonts/Kalameh/02- Farsi_Numerals/TTF/KalamehFaNum-Light.ttf") format("truetype");
}

@font-face {
    font-family: Kalameh;
    font-style: normal;
    font-weight: 400;
    src: local("Kalameh"), url("../fonts/Kalameh/02- Farsi_Numerals/WebFonts/fonts/woff2/KalamehWebFaNum-Regular.woff2") format("woff2"), url("../fonts/Kalameh/02- Farsi_Numerals/WebFonts/fonts/Woff/KalamehWebFaNum-Regular.woff") format("woff"), url("../fonts/Kalameh/02- Farsi_Numerals/TTF/KalamehFaNum-Regular.ttf") format("truetype");
}

@font-face {
    font-family: Kalameh;
    font-style: normal;
    font-weight: 500;
    src: local("Kalameh"), url("../fonts/Kalameh/02- Farsi_Numerals/WebFonts/fonts/woff2/KalamehWebFaNum-Medium.woff2") format("woff2"), url("../fonts/Kalameh/02- Farsi_Numerals/WebFonts/fonts/Woff/KalamehWebFaNum-Medium.woff") format("woff"), url("../fonts/Kalameh/02- Farsi_Numerals/TTF/KalamehFaNum-Medium.ttf") format("truetype");
}

@font-face {
    font-family: Kalameh;
    font-style: normal;
    font-weight: 600;
    src: local("Kalameh"), url("../fonts/Kalameh/02- Farsi_Numerals/WebFonts/fonts/woff2/KalamehWebFaNum-SemiBold.woff2") format("woff2"), url("../fonts/Kalameh/02- Farsi_Numerals/WebFonts/fonts/Woff/KalamehWebFaNum-SemiBold.woff") format("woff"), url("../fonts/Kalameh/02- Farsi_Numerals/TTF/KalamehFaNum-SemiBold.ttf") format("truetype");
}

@font-face {
    font-family: Kalameh;
    font-style: normal;
    font-weight: 700;
    src: local("Kalameh"), url("../fonts/Kalameh/02- Farsi_Numerals/WebFonts/fonts/woff2/KalamehWebFaNum-Bold.woff2") format("woff2"), url("../fonts/Kalameh/02- Farsi_Numerals/WebFonts/fonts/Woff/KalamehWebFaNum-Bold.woff") format("woff"), url("../fonts/Kalameh/02- Farsi_Numerals/TTF/KalamehFaNum-Bold.ttf") format("truetype");
}

@font-face {
    font-family: Kalameh;
    font-style: normal;
    font-weight: 800;
    src: local("Kalameh"), url("../fonts/Kalameh/02- Farsi_Numerals/WebFonts/fonts/woff2/KalamehWebFaNum-ExtraBold.woff2") format("woff2"), url("../fonts/Kalameh/02- Farsi_Numerals/WebFonts/fonts/Woff/KalamehWebFaNum-ExtraBold.woff") format("woff"), url("../fonts/Kalameh/02- Farsi_Numerals/TTF/KalamehFaNum-ExtraBold.ttf") format("truetype");
}

@font-face {
    font-family: Kalameh;
    font-style: normal;
    font-weight: 900;
    src: local("Kalameh"), url("../fonts/Kalameh/02- Farsi_Numerals/WebFonts/fonts/woff2/KalamehWebFaNum-Black.woff2") format("woff2"), url("../fonts/Kalameh/02- Farsi_Numerals/WebFonts/fonts/Woff/KalamehWebFaNum-Black.woff") format("woff"), url("../fonts/Kalameh/02- Farsi_Numerals/TTF/KalamehFaNum-Black.ttf") format("truetype");
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    box-sizing: border-box;
    font-family: IRANYekanX, sans-serif !important;
    scroll-behavior: smooth;
    overflow: hidden;
    background: linear-gradient( 180deg, rgba(242, 244, 250, 0.9), rgba(242, 244, 250, 1) );
    color: #191c1d;
    display: flex;
    justify-content: center;
}

.offcanvas {
    position: fixed;
    z-index: 5000 !important;
}

.main-header .offcanvas {
    z-index: 5000 !important;
    height: 100vh;
}

.offcanvas-backdrop {
    z-index: 4990 !important;
    background-color: rgba(15, 23, 42, 0.55);
}

body,
.taraz-ai__main,
.taraz-ai__side-nav,
.taraz-ai__message,
.taraz-ai__suggestion,
.taraz-ai__card,
.taraz-ai__dropdown-menu,
.taraz-ai__bubble,
.taraz-ai__footer,
.taraz-ai__side-nav__item,
.taraz-ai__history-item,
.taraz-ai__side-nav__history-item,
.taraz-ai__message-input textarea {
    transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease, box-shadow 220ms ease, opacity 220ms ease;
}

.topNavbarBtn {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle-btn {
    font-family: IRANYekanX, sans-serif !important;
    display: inline-flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: 8px;
    border-radius: 24px;
    border: 1px solid rgba(23, 114, 255, 0.35);
    background: rgba(23, 114, 255, 0.12);
    color: #1e3a8a;
    padding: 6px;
    cursor: pointer;
    transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

    .theme-toggle-btn:hover {
        background: rgba(23, 114, 255, 0.2);
    }

    .theme-toggle-btn:active {
        transform: translateY(1px);
    }

    .theme-toggle-btn:focus-visible {
        outline: 2px solid rgba(23, 114, 255, 0.45);
        outline-offset: 2px;
    }

.theme-toggle-btn__icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    position: relative;
    display: inline-block;
    background: url("../img/moon-dark.svg") center/contain no-repeat;
    box-shadow: none;
    transition: background 220ms ease, box-shadow 220ms ease, transform 220ms ease, opacity 220ms ease;
}

    .theme-toggle-btn__icon::after {
        content: "";
        display: none;
    }

    .theme-toggle-btn__icon[data-icon="moon"] {
        background: url("../img/sun-white.svg") center/contain no-repeat;
        box-shadow: none;
        transform: none;
    }

        .theme-toggle-btn__icon[data-icon="moon"]::after {
            content: "";
            display: none;
        }

.theme-toggle-btn__label {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    color: #1e3a8a;
}

.theme-toggle-btn--dark {
    background: rgba(37, 99, 235, 0.18);
    border-color: rgba(96, 165, 250, 0.45);
    color: #cbd5f5;
}

    .theme-toggle-btn--dark:hover {
        background: rgba(37, 99, 235, 0.28);
    }

.taraz-ai__app {
    width: 100%;
    background: transparent;
    display: flex;
    height: calc(100vh - 82px);
    height: calc(100dvh - 82px);
    margin-top: 82px;
    padding-left: 24px;
    padding-top: 16px;
    gap: 24px;
}

body[data-user-mode="guest"] .taraz-ai__app {
    padding-left: 16px !important;
    padding-right: 16px !important;
    padding: 0px !important;
    width: 100% !important;
    border-radius: 0px !important;
    gap: 0 !important;
}

.taraz-ai__main {
    flex: 1;
    background: #ffffff;
    border-radius: 24px 24px 0px 0px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 16px 16px 0px 16px;
}

.taraz-ai__main-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    align-self: flex-end;
    position: sticky;
    top: 0;
    z-index: 110;
}

body[data-user-mode="guest"] .taraz-ai__main {
    border-radius: 0px !important;
}

body[data-user-mode="guest"] {
    background: white !important;
}

    body[data-user-mode="guest"] .taraz-ai__side-nav__toggle--mobile {
        display: none !important;
    }

    body[data-user-mode="guest"] .taraz-ai__main-actions {
        justify-content: flex-end !important;
    }

.taraz-ai__new-chat-button {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 10px;
    padding: 4px;
    background-color: transparent;
    background-image: url("../img/solar_document-add-linear.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.18s ease;
    position: static;
}

    .taraz-ai__new-chat-button:hover {
        background-color: rgba(23, 114, 255, 0.08);
    }

    .taraz-ai__new-chat-button:focus-visible {
        outline: 2px solid rgba(23, 114, 255, 0.35);
        outline-offset: 2px;
    }

.taraz-ai__title {
    font-family: Kalameh, sans-serif !important;
    font-size: 22px;
    line-height: 32px;
    font-weight: 500;
    color: #191c1d;
    margin: 0;
    flex: 1;
    text-align: right;
    white-space: nowrap;
}

.taraz-ai__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    overflow: hidden;
    position: relative;
    z-index: 100;
    overflow-anchor: none;
}

.taraz-ai__intro {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 16px;
    text-align: center;
    max-width: 476px;
}

.taraz-ai__intro-icon {
    width: 106px;
    height: 92px;
}

    .taraz-ai__intro-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.taraz-ai__intro-title {
    font-family: "Kalameh";
    font-size: 24px;
    line-height: 32px;
    font-weight: 600;
    margin-bottom: 16px;
    background: linear-gradient(90deg, #176fff 0%, #1772ff 50%, #3751ff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.taraz-ai__intro p {
    font-size: 14px;
    line-height: 24px;
    color: #5b5e66;
    margin: 0;
}

.taraz-ai__message {
    width: 100%;
    max-width: 700px;
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.039), 0px 0px 1px 0px rgba(0, 0, 0, 0.616);
    transition: box-shadow 180ms ease, border-color 180ms ease;
}

    .taraz-ai__message[aria-disabled="true"],
    .taraz-ai__message.taraz-ai__message--disabled {
        opacity: 0.5;
        position: relative;
    }

        .taraz-ai__message[aria-disabled="true"]::after,
        .taraz-ai__message.taraz-ai__message--disabled::after {
            content: "";
            position: absolute;
            inset: -1px;
            border-radius: inherit;
            background: transparent;
            cursor: not-allowed;
            z-index: 3;
        }

        .taraz-ai__message[aria-disabled="true"] textarea,
        .taraz-ai__message[aria-disabled="true"] button,
        .taraz-ai__message[aria-disabled="true"] .taraz-ai__message-input,
        .taraz-ai__message[aria-disabled="true"] .taraz-ai__actions,
        .taraz-ai__message.taraz-ai__message--disabled textarea,
        .taraz-ai__message.taraz-ai__message--disabled button,
        .taraz-ai__message.taraz-ai__message--disabled .taraz-ai__message-input,
        .taraz-ai__message.taraz-ai__message--disabled .taraz-ai__actions {
            pointer-events: none;
            -webkit-user-select: none;
            user-select: none;
        }

        .taraz-ai__message[aria-disabled="true"] .taraz-ai_chat-btn,
        .taraz-ai__message[aria-disabled="true"] .taraz-ai__btn,
        .taraz-ai__message.taraz-ai__message--disabled .taraz-ai_chat-btn,
        .taraz-ai__message.taraz-ai__message--disabled .taraz-ai__btn {
            filter: grayscale(0.15) saturate(0.8);
        }

.taraz-ai__message-input {
    position: relative;
    display: flex;
    align-items: center;
}

    .taraz-ai__message-input textarea {
        font-family: IRANYekanX, sans-serif !important;
        border: none;
        background: transparent;
        width: 100%;
        resize: none;
        font-size: 16px;
        line-height: 20px;
        color: #191c1d;
        outline: none;
    }

        .taraz-ai__message-input textarea::placeholder {
            color: #5b5e66;
            font-family: IRANYekanX, sans-serif !important;
            font-size: 13px;
            line-height: 16px;
        }


    .taraz-ai__message-input textarea,
    #tarazAIMessage {
        scrollbar-width: thin;
        scrollbar-color: #7c8fa1 transparent;
    }

        .taraz-ai__message-input textarea::-webkit-scrollbar,
        #tarazAIMessage::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        .taraz-ai__message-input textarea::-webkit-scrollbar-track,
        #tarazAIMessage::-webkit-scrollbar-track {
            background: transparent;
        }

        .taraz-ai__message-input textarea::-webkit-scrollbar-thumb,
        #tarazAIMessage::-webkit-scrollbar-thumb {
            background-color: rgba(25, 28, 29, 0.28);
            border-radius: 999px;
            border: 2px solid transparent;
            background-clip: padding-box;
        }

            .taraz-ai__message-input textarea::-webkit-scrollbar-thumb:hover,
            #tarazAIMessage::-webkit-scrollbar-thumb:hover {
                background-color: rgba(25, 28, 29, 0.4);
            }

        .taraz-ai__message-input textarea::-webkit-scrollbar-corner,
        #tarazAIMessage::-webkit-scrollbar-corner {
            background: transparent;
        }

.taraz-ai__input-actions {
    position: absolute;
    top: 16px;
    left: 20px;
    display: flex;
    gap: 8px;
}

    .taraz-ai__input-actions button {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        border: 1px solid #e1e3e3;
        background: #ffffff;
        display: grid;
        place-items: center;
        cursor: pointer;
        transition: border-color 0.2s ease, background-color 0.2s ease;
    }

        .taraz-ai__input-actions button:hover {
            border-color: #3751ff;
            background: rgba(55, 81, 255, 0.08);
        }

.taraz-ai_chat-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(268deg, #3751ff 0%, #1772ff 100%);
    border: none;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .taraz-ai_chat-btn img {
        width: 20px;
        height: 20px;
        fill: #ffffff;
    }

    .taraz-ai_chat-btn::before {
        content: "";
        width: 20px;
        height: 20px;
        background-repeat: no-repeat;
        background-position: center;
        background-size: 20px 20px;
        display: block;
    }

.taraz-ai__mic-btn::before {
    background-image: url("../img/solar_microphone-bold.svg");
}

.taraz-ai__submit-btn::before {
    background-image: url("../img/solar_plain-bold.svg");
}

.taraz-ai__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.taraz-ai__actions-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.taraz-ai__actions .taraz-ai__btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: none;
    background-color: rgba(55, 81, 255, 0.06);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .taraz-ai__actions .taraz-ai__btn:hover {
        background-color: rgba(55, 81, 255, 0.12);
    }

    .taraz-ai__actions .taraz-ai__btn:focus-visible {
        border: none !important;
        outline:none !important;
        box-shadow:none !important;
    }

    .taraz-ai__mic-warning {
        position: fixed;
        top: 0;
        left: 0;
        max-width: 300px;
        text-align: center;
        display: none;
        opacity: 0;
        padding: 8px 32px 8px 12px;
        font-size: 12px;
        color: #991b1b;
        background: #fee2e2;
        border: 1px solid #fecaca;
        border-radius: 8px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16), 0 2px 6px rgba(0, 0, 0, 0.08);
        z-index: 3000;
        pointer-events: auto;
        text-align: right;
        transition: opacity 180ms ease;
    }

    .taraz-ai__mic-warning.is-visible {
        display: block;
        opacity: 1;
    }

    .taraz-ai__mic-warning.is-hiding {
        opacity: 0;
    }

.taraz-ai__mic-warning__close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    background-image: url("../img/close_24px.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
}

.taraz-ai__suggestions {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 700px;
}

.taraz-ai__suggestion {
    font-family: IRANYekanX, sans-serif !important;
    flex: 1 1 calc(50% - 12px);
    border: 1px solid #e1e3e3;
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    background: #ffffff;
    font-size: 13px;
    color: #5b5e66;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
    min-width: 0;
}

    .taraz-ai__suggestion img {
        width: 16px;
        height: 16px;
        stroke: #000c61;
        fill: none;
        stroke-width: 1.6;
    }

    .taraz-ai__suggestion span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .taraz-ai__suggestion:hover {
        border-color: #3751ff;
        transform: translateY(-2px);
    }

.taraz-ai__footer {
    padding: 12px 32px 12px;
    text-align: center;
    font-size: 12px;
    line-height: 16px;
    color: #5b5e66;
    border-top: 1px solid rgba(225, 227, 227, 0.6);
    background: white;
    position: sticky;
    bottom: 0;
    z-index: 30;
    flex-shrink: 0;
}

.taraz-ai__app.taraz-ai--started .taraz-ai__footer {
    display: none !important;
}

.side-nav,
.taraz-ai__side-nav {
    direction: ltr;
    width: 240px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 24px 0 0 0px;
    background-color: white;
    min-height: 0;
}

body[data-user-mode="guest"] .taraz-ai__side-nav {
    display: none !important;
}

.taraz-ai__side-nav__top {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 16px;
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e1e3e3;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: white;
}

.taraz-ai__side-nav__top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    margin-bottom: 8px;
}

.taraz-ai__side-nav .taraz-ai__logo-link,
.taraz-ai__side-nav .taraz-ai__side-nav__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    width: 40px;
    height: 36px;
    background-image: url("../img/SW_AI.png");
}

.taraz-ai__toggle-button,
.taraz-ai__side-nav__toggle {
    width: 32px;
    height: 32px;
    padding: 8px;
    border: none;
    background: transparent;
    cursor: e-resize !important;
    background-image: url("../img/sidebar-code-linear.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 24px;
}

.taraz-ai__side-nav--collapsed {
    width: 72px !important;
}

    .taraz-ai__side-nav--collapsed .taraz-ai__logo-link,
    .taraz-ai__side-nav--collapsed .taraz-ai__side-nav__logo {
        display: none;
    }

    .taraz-ai__side-nav--collapsed .taraz-ai__side-nav__item {
        justify-content: center;
        padding: 10px;
    }

    .taraz-ai__side-nav--collapsed .taraz-ai__side-nav__item--active {
        border: none;
        background: rgba(23, 114, 255, 0.12);
        padding: 10px;
    }

        .side-nav--collapsed .side-nav__item--active img,
        .taraz-ai__side-nav--collapsed .taraz-ai__side-nav__item--active img {
            filter: none;
            opacity: 1;
        }

    .taraz-ai__side-nav--collapsed .taraz-ai__side-nav__item span,
    .taraz-ai__side-nav--collapsed .taraz-ai__side-nav__history-title,
    .taraz-ai__side-nav--collapsed .taraz-ai__side-nav__history-label,
    .taraz-ai__side-nav--collapsed .taraz-ai__side-nav__history-item,
    .taraz-ai__side-nav--collapsed .taraz-ai__history-toggle {
        display: none;
    }

    .taraz-ai__side-nav--collapsed .taraz-ai__side-nav__top {
        padding-left: 8px;
        padding-right: 8px;
        min-width: 0;
    }

    .taraz-ai__side-nav--collapsed .taraz-ai__side-nav__top-header {
        justify-content: center;
    }

    .taraz-ai__side-nav--collapsed .taraz-ai__side-nav__toggle {
        cursor: w-resize !important;
    }

    .taraz-ai__side-nav--collapsed .taraz-ai__side-nav__footer {
        padding: 6px 8px;
    }

        .taraz-ai__side-nav--collapsed .taraz-ai__side-nav__footer .theme-toggle-btn {
            width: 100%;
            justify-content: center;
            padding: 8px;
            border-radius: 24px;
        }

        .taraz-ai__side-nav--collapsed
        .taraz-ai__side-nav__footer
        .theme-toggle-btn__label {
            display: none;
        }

.taraz-ai__main,
.taraz-ai__side-nav {
    transition: width 220ms ease, margin 220ms ease, padding 220ms ease;
}

.taraz-ai__toggle-button[aria-expanded="false"],
.taraz-ai__side-nav__toggle[aria-expanded="false"] {
    transform: rotate(180deg);
    cursor: w-resize !important;
}

.taraz-ai__side-nav__toggle--mobile {
    display: none;
}

.taraz-ai__main-actions .taraz-ai__side-nav__toggle--mobile {
    margin-inline-start: 4px;
}

@media (max-width: 991px) {
    .taraz-ai__main-actions {
        width: 100%;
        justify-content: space-between;
        margin-bottom: 10px;
    }

    .taraz-ai__side-nav__toggle--mobile {
        display: inline-flex;
    }

    .taraz-ai__coins-btn--mobile {
        display: inline-flex !important;
    }

    .taraz-ai__side-nav__toggle {
        cursor: pointer !important;
    }

        .taraz-ai__side-nav--collapsed .taraz-ai__side-nav__toggle,
        .taraz-ai__side-nav__toggle[aria-expanded="false"],
        .taraz-ai__toggle-button[aria-expanded="false"],
        .taraz-ai__side-nav--collapsed .taraz-ai__toggle-button {
            cursor: pointer !important;
        }
}

.taraz-ai__app--sidebar-collapsed .taraz-ai__main {
    margin-left: 0;
}

@media (max-width: 768px) {
    .taraz-ai__side-nav {
        position: relative;
        z-index: 200;
        transition: transform 220ms ease, opacity 220ms ease;
    }

    .taraz-ai__side-nav--collapsed {
        transform: translateX(110%);
        opacity: 0;
        pointer-events: none;
        position: absolute;
        right: 0;
        left: auto;
        top: 0;
        bottom: 0;
        width: 272px !important;
    }

    .taraz-ai__app--sidebar-collapsed .taraz-ai__main {
        margin-left: 0;
    }

    .taraz-ai__app--sidebar-collapsed {
        padding-left: 0;
        gap: 0;
    }
}

.taraz-ai__side-nav__item {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: row-reverse;
    gap: 12px;
    border-radius: 14px;
    padding: 12px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    font-size: 14px;
    color: #5b5e66;
}

    .taraz-ai__side-nav__item img {
        transition: filter 0.2s ease, opacity 0.2s ease;
    }

.taraz-ai__side-nav__item-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
    opacity: 0.85;
    transition: filter 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.taraz-ai__side-nav__item[data-icon="chat"] .taraz-ai__side-nav__item-icon {
    background-image: url("../img/chat-round-linear.svg");
}

.taraz-ai__side-nav__item[data-icon="tools"] .taraz-ai__side-nav__item-icon {
    background-image: url("../img/lightbulb-linear.svg");
}

.taraz-ai__side-nav__item[data-icon="projects"] .taraz-ai__side-nav__item-icon {
    background-image: url("../img/library_books_solid.svg");
}

.taraz-ai__side-nav__item[data-icon="files"] .taraz-ai__side-nav__item-icon {
    background-image: url("../img/remove-folder-outline.svg");
}

.taraz-ai__side-nav__item.taraz-ai__side-nav__item--active[data-icon="chat"]
.taraz-ai__side-nav__item-icon {
    background-image: url("../img/chat-round-linear-blue.svg");
}

.taraz-ai__side-nav__item.taraz-ai__side-nav__item--active[data-icon="tools"]
.taraz-ai__side-nav__item-icon {
    background-image: url("../img/solar_lightbulb-linear-blue.svg");
}

.taraz-ai__side-nav__item.taraz-ai__side-nav__item--active[data-icon="projects"]
.taraz-ai__side-nav__item-icon {
    background-image: url("../img/library_books_solid.svg");
}

.taraz-ai__side-nav__item.taraz-ai__side-nav__item--active[data-icon="files"]
.taraz-ai__side-nav__item-icon {
    background-image: url("../img/remove-folder-outline.svg");
}

.taraz-ai__side-nav__item--active .taraz-ai__side-nav__item-icon {
    opacity: 1;
    transform: scale(1.05);
}

.taraz-ai__side-nav--collapsed .taraz-ai__side-nav__item-icon {
    width: 20px;
    height: 20px;
}

.taraz-ai__side-nav__item span {
    font-weight: 500;
}

html[data-theme="dark"]
.taraz-ai__side-nav__item--new-chat
.taraz-ai__side-nav__item-icon {
    background-color: transparent;
    background-image: url("../img/chat-round-linear-white.svg");
    -webkit-mask-image: none;
    mask-image: none;
}

.taraz-ai__side-nav__item--active {
    color: #1772ff;
    cursor: pointer;
    border-radius: 12px;
    padding: 12px 12px;
    background: rgba(23, 114, 255, 0.1);
    border: 1px solid rgba(23, 114, 255, 0.35);
}

.taraz-ai__side-nav__item:hover:not(.taraz-ai__side-nav__item--active) {
    background-color: rgba(23, 114, 255, 0.08);
}

.taraz-ai__history,
.taraz-ai__side-nav__history {
    flex: 1;
    padding: 16px 12px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: right;
    overflow-y: auto;
    min-height: 0;
}

.taraz-ai__side-nav__footer {
    padding: 10px 16px;
    border-top: 1px solid rgba(225, 227, 227, 0.6);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    bottom: 0;
    flex-shrink: 0;
    z-index: 60;
}

    .taraz-ai__side-nav__footer .theme-toggle-btn {
        width: 100%;
        justify-content: center;
    }

    .taraz-ai__side-nav__footer .theme-toggle-btn__label {
        white-space: nowrap;
    }

.taraz-ai__coins-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #1f2937;
    font-family: IRANYekanX, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 20px;
    min-height: 36px;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

    .taraz-ai__coins-btn:hover {
        background: rgba(37, 99, 235, 0.08);
        border-color: rgba(37, 99, 235, 0.4);
        box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.08) inset;
    }

    .taraz-ai__coins-btn:focus-visible {
        outline: 2px solid rgba(37, 99, 235, 0.35);
        outline-offset: 2px;
    }

    .taraz-ai__coins-btn:active {
        background: rgba(148, 163, 184, 0.18);
        border-color: rgba(37, 99, 235, 0.55);
    }

.taraz-ai__coins-btn--mobile {
    display: none;
    width: auto;
    gap: 8px;
    padding: 4px 12px;
    font-size: 12px;
    line-height: 16px;
    min-height: 32px;
    min-width: 80px;
}

.taraz-ai__coins-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.taraz-ai__coins-value {
    font-weight: 700;
}

.taraz-ai__coins-icon {
    width: 20px;
    height: 20px;
    background-image: url("../img/coins.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
    flex-shrink: 0;
}

.taraz-ai__side-nav--collapsed .taraz-ai__coins-label {
    display: none;
}

.taraz-ai__coins-btn--mobile .taraz-ai__coins-icon {
    width: 14px;
    height: 14px;
    background-size: 14px;
}

html[data-theme="dark"] .taraz-ai__coins-btn {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(148, 163, 184, 0.45);
    color: rgb(226, 232, 240);
}

    html[data-theme="dark"] .taraz-ai__coins-btn:hover {
        background: rgba(37, 99, 235, 0.24);
        border-color: rgba(96, 165, 250, 0.6);
    }

    html[data-theme="dark"] .taraz-ai__coins-btn:focus-visible {
        outline-color: rgba(129, 198, 255, 0.8);
    }

    html[data-theme="dark"] .taraz-ai__coins-btn:active {
        background: rgba(30, 64, 175, 0.35);
        border-color: rgba(96, 165, 250, 0.65);
    }

.taraz-ai__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.taraz-ai-token-modal {
    z-index: 10000;
    --token-modal-bg: linear-gradient( 140deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 255, 0.88) );
    --token-modal-border: rgba(148, 163, 184, 0.28);
    --token-modal-shadow: 0 32px 64px rgba(15, 23, 42, 0.18);
    --token-text-primary: #0f172a;
    --token-text-secondary: #475569;
    --token-plan-surface: rgba(255, 255, 255, 0.66);
    --token-plan-hover: rgba(255, 255, 255, 0.78);
    --token-plan-selected: rgba(192, 132, 252, 0.16);
    --token-plan-border: rgba(148, 163, 184, 0.24);
    --token-plan-popular: rgba(129, 140, 248, 0.18);
    --token-plan-shadow: 0 18px 40px rgba(15, 23, 42, 0.15);
    --token-plan-shadow-strong: 0 10px 20px rgba(129, 140, 248, 0.28);
    --token-check-icon: #a78bfa;
    --token-btn-secondary-bg: rgba(255, 255, 255, 0.32);
    --token-btn-secondary-color: #0f172a;
    --token-btn-primary-gradient: linear-gradient(135deg, #a78bfa, #818cf8);
    --token-btn-primary-shadow: 0 15px 35px rgba(129, 140, 248, 0.45);
    --token-glow-one: rgba(129, 140, 248, 0.32);
    --token-glow-two: rgba(192, 132, 252, 0.28);
}

html[data-theme="dark"] .taraz-ai-token-modal {
    --token-modal-bg: linear-gradient( 145deg, rgba(17, 24, 39, 0.94), rgba(15, 23, 42, 0.9) );
    --token-modal-border: rgba(99, 102, 241, 0.35);
    --token-modal-shadow: 0 40px 90px rgba(2, 6, 23, 0.65);
    --token-text-primary: #e2e8f0;
    --token-text-secondary: #cbd5f5;
    --token-plan-surface: rgba(30, 41, 59, 0.74);
    --token-plan-hover: rgba(59, 63, 112, 0.82);
    --token-plan-selected: rgba(129, 140, 248, 0.3);
    --token-plan-border: rgba(99, 102, 241, 0.24);
    --token-plan-popular: rgba(79, 70, 229, 0.32);
    --token-plan-shadow: 0 24px 54px rgba(2, 6, 23, 0.55);
    --token-plan-shadow-strong: 0 10px 20px rgba(129, 140, 248, 0.1);
    --token-check-icon: #c4b5fd;
    --token-btn-secondary-bg: rgba(148, 163, 184, 0.2);
    --token-btn-secondary-color: #f1f5f9;
    --token-btn-primary-gradient: linear-gradient(135deg, #818cf8, #6366f1);
    --token-btn-primary-shadow: 0 18px 45px rgba(99, 102, 241, 0.55);
    --token-glow-one: rgba(99, 102, 241, 0.38);
    --token-glow-two: rgba(192, 132, 252, 0.24);
}

.taraz-ai-token-modal .modal-dialog {
    width: 100% !important;
    max-width: 860px !important;
    margin: 24px auto;
    padding: 0 16px;
}

.taraz-ai__token-modal {
    position: relative;
    padding: 0px !important;
    border-radius: 24px;
    border: 1px solid var(--token-modal-border);
    background: var(--token-modal-bg);
    box-shadow: var(--token-modal-shadow);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    overflow: hidden;
    isolation: isolate;
}

.taraz-ai__token-modal__header {
    position: relative;
    z-index: 1;
    padding: 16px !important;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    direction: rtl;
}

.taraz-ai__token-modal__heading {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.taraz-ai__token-modal__title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--token-text-primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .taraz-ai__token-modal__title::before {
        content: "";
        width: 24px;
        height: 24px;
        background: url("../img/coins.svg") center/contain no-repeat;
        flex-shrink: 0;
    }

.taraz-ai__token-modal__subtitle {
    text-align: center;
    margin-top: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: var(--token-text-secondary);
}

.taraz-ai__token-modal__header .btn-close {
    margin: 0;
    padding: 0;
    opacity: 1;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background-color: var(--token-btn-secondary-bg);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

    .taraz-ai__token-modal__header .btn-close:hover {
        transform: rotate(-90deg);
        background-color: rgba(255, 255, 255, 0.45);
        box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
    }

    .taraz-ai__token-modal__header .btn-close:focus-visible {
        outline: 2px solid rgba(129, 140, 248, 0.7);
        outline-offset: 3px;
    }

.taraz-ai__token-modal__body {
    position: relative;
    z-index: 1;
    padding: 16px !important;
    margin: 0;
    border: 0;
    direction: rtl;
}

.taraz-ai__token-plans {
    margin: 0;
    padding: 16px;
    border: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    list-style: none;
}

.taraz-ai__token-plan {
    position: relative;
    display: flex;
    cursor: pointer;
    height: 100%;
}

.taraz-ai__token-plan-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.taraz-ai__token-plan__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: center;
    gap: 10px;
    padding: 16px 16px !important;
    border-radius: 16px;
    background: linear-gradient(to bottom right, #eff6ff, #dbeafe);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease, background-color 0.25s ease;
    overflow: hidden;
    width: 100%;
    height: 100%;
    transform: scale(0.9);
}

html[data-theme="dark"] .taraz-ai__token-plan__inner {
    background: linear-gradient( 140deg, rgba(37, 99, 235, 0.2), rgba(30, 64, 175, 0.3) ) border-box;
    border: 1px solid rgba(129, 140, 248, 0.2);
}

.taraz-ai__token-plan-input:focus-visible + .taraz-ai__token-plan__inner {
    outline: 2px solid rgba(129, 140, 248, 0.7);
    outline-offset: 4px;
}

.taraz-ai__token-plan-input:checked + .taraz-ai__token-plan__inner {
    transform: scale(1.05);
    border: 1px solid rgba(23, 114, 255, 0.4);
    box-shadow: rgba(23, 114, 255, 0.8) 0px 0px 10px 0px;
}

html[data-theme="dark"]
.taraz-ai__token-plan-input:checked + .taraz-ai__token-plan__inner {
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: rgba(255, 255, 255, 0.7) 0px 0px 8px 0px;
}

.taraz-ai__token-plan-input:checked + .taraz-ai__token-plan__inner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient( 120deg, transparent 35%, rgba(255, 255, 255, 0.45), transparent 65% );
    transform: translateX(120%);
    animation: wind-sweep 2.5s ease-in-out infinite;
    pointer-events: none;
}

/* Dark mode wind */
html[data-theme="dark"]
.taraz-ai__token-plan-input:checked + .taraz-ai__token-plan__inner::after {
    background: linear-gradient( 120deg, transparent 35%, rgba(129, 140, 248, 0.35), transparent 65% );
}

@keyframes wind-sweep {
    0% {
        transform: translateX(120%);
    }

    60% {
        transform: translateX(120%);
    }

    100% {
        transform: translateX(-120%);
    }
}

.taraz-ai__token-plan__inner::before {
    content: "";
    display: inline-block;
    background-image: url(../img/AI_star_Icon.svg);
    background-repeat: no-repeat;
    background-size: 36px;
    position: absolute;
    top: 12px;
    left: 12px;
    width: 40px;
    height: 40px;
    opacity: 0.12;
    transform: rotate(15deg);
}

.taraz-ai__token-plan:nth-child(3) .taraz-ai__token-plan__inner::before {
    top: auto !important;
    bottom: 20px !important;
}
.taraz-ai__token-plan:nth-child(4) .taraz-ai__token-plan__inner::before {
    top: auto !important;
    bottom: 20px !important;
}

html[data-theme="dark"] .taraz-ai__token-plan__inner::before {
    background-image: url(../img/AI_star_Icon_light.svg);
    opacity: 0.1;
}

.taraz-ai__token-plan-input:checked + .taraz-ai__token-plan__inner::before {
    animation: floating-star-1 2.5s ease-in-out infinite;
}

.taraz-ai__token-plan:nth-child(3)
.taraz-ai__token-plan-input:checked + .taraz-ai__token-plan__inner::before {
    animation: floating-star-2 2.5s ease-in-out infinite !important;
}

.taraz-ai__token-plan:nth-child(4)
.taraz-ai__token-plan-input:checked + .taraz-ai__token-plan__inner::before {
    animation: floating-star-2 2.5s ease-in-out infinite !important;
}

@keyframes floating-star-2 {
    0% {
        transform: translateY(0) rotate(15deg) scale(1);
    }

    50% {
        transform: translateY(-15px) rotate(45deg) scale(1.08);
    }

    100% {
        transform: translateY(0) rotate(15deg) scale(1);
    }
}

@keyframes floating-star-1 {
    0% {
        transform: translateY(0) rotate(15deg) scale(1);
    }

    50% {
        transform: translateY(15px) rotate(45deg) scale(1.08);
    }

    100% {
        transform: translateY(0) rotate(15deg) scale(1);
    }
}

.taraz-ai__token-plan__badge {
    position: absolute;
    top: 13px;
    left: -30px;
    width: 110px;
    margin: 0 auto;
    text-align: center;
    padding: 4px 16px;
    transform: rotate(-45deg);
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(268deg, #2f53ff 0%, #008fff 100%);
}

.taraz-ai__token-plan__icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

    .taraz-ai__token-plan__icon svg {
        width: 48px;
        height: 48px;
        filter: drop-shadow(0 6px 12px rgba(15, 23, 42, 0.18));
    }

.taraz-ai__token-plan__name {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--token-text-primary);
}

    .taraz-ai__token-plan__name::before {
        content: "";
        display: inline-flex;
        width: 28px;
        height: 28px;
        background-image: url(../img/AI_star_alt_blue.svg);
        background-repeat: no-repeat;
        background-size: 28px;
        z-index: inherit;
        opacity: 0.9;
    }

.taraz-ai__token-plan:nth-child(3) .taraz-ai__token-plan__name::before {
    background-image: url(../img/AI_star_alt_blue_2.svg);
}

.taraz-ai__token-plan:nth-child(4) .taraz-ai__token-plan__name::before {
    background-image: url(../img/AI_star_alt_blue_3.svg);
}

.taraz-ai__token-plan-input:checked + .taraz-ai__token-plan__inner
.taraz-ai__token-plan__name::before {
    animation: pulse-icon 1.1s ease-in-out infinite;
}

@keyframes pulse-icon {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(0.85);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}


.taraz-ai__token-plan__price {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--token-text-primary);
    line-height: 1.2;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 2px;
    width: 100%;
}

.taraz-ai__token-plan__price-amount {
    display: flex;
    align-items: center;
    gap: 8px;
}

.taraz-ai__token-plan__discount-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 0px 12px 12px 0px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    position: absolute;
    top: 18px;
    left: -4px;
    margin: 0 auto;
    text-align: center;
}

.taraz-ai__token-plan__original-price {
    display: block;
    font-size: 18px;
    font-weight: 500;
    color: var(--token-text-secondary);
    text-decoration: line-through;
    opacity: 0.6;
    margin-bottom: 0px;
}

.taraz-ai__token-plan__features {
    width: 100%;
    margin: 0;
    padding: 10px 0 0;
    border-top: 1px solid var(--token-plan-border);
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: right;
}

    .taraz-ai__token-plan__features li {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 12px;
        font-weight: 500;
        color: var(--token-text-secondary);
    }

.taraz-ai__token-plan__feature-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: rgba(0, 143, 255, 0.3);
    border-radius: 50%;
}

    .taraz-ai__token-plan__feature-icon::before {
        content: "";
        position: absolute;
        width: 20px;
        height: 20px;
        background-color: #1d4ed8;
        mask-image: url("../img/solar_check-circle-linear.svg");
        mask-size: 20px;
        mask-repeat: no-repeat;
        mask-position: center;
        -webkit-mask-image: url("../img/solar_check-circle-linear.svg");
        -webkit-mask-size: 20px;
        -webkit-mask-repeat: no-repeat;
        -webkit-mask-position: center;
    }

html[data-theme="dark"] .taraz-ai__token-plan__feature-icon::before {
    background-color: #cbd5f5;
}

.taraz-ai__coins-modal-note {
    margin-top: 16px;
    text-align: center;
    color: var(--token-text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

    .taraz-ai__coins-modal-note p {
        margin: 0;
    }

.taraz-ai__token-modal__footer {
    position: relative;
    z-index: 1;
    padding: 0px 16px 16px !important;
    border: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.taraz-ai__coins-modal-btn--cancel,
.taraz-ai__coins-modal-btn--confirm {
    border: none;
    outline: none;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 18px;
}

.taraz-ai__coins-modal-btn--cancel {
    border: 1px solid #e1e3e3;
    background: transparent;
    color: #1e293b;
}

html[data-theme="dark"] .taraz-ai__coins-modal-btn--cancel {
    background: var(--token-btn-secondary-bg);
    color: var(--token-btn-secondary-color);
    border: none;
}

.taraz-ai__coins-modal-btn--confirm {
    position: relative;
    overflow: hidden;
    background: linear-gradient(268deg, #2f53ff 0%, #008fff 100%);
    color: #ffffff;
}

html[data-theme="dark"] .taraz-ai__coins-modal-btn--confirm {
    background: rgba(37, 99, 235, 0.8);
}

.taraz-ai__coins-modal-btn--confirm::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient( 120deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) );
    transform: translateX(100%);
    transition: none;
    pointer-events: none;
    animation: shine 2s ease-in-out infinite;
}

@keyframes shine {
    0% {
        transform: translateX(100%);
    }

    50% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.taraz-ai__coins-modal-btn--confirm:focus-visible,
.taraz-ai__coins-modal-btn--cancel:focus-visible {
    outline: 2px solid rgba(129, 140, 248, 0.7);
    outline-offset: 3px;
}

html[data-theme="dark"] .taraz-ai__token-modal__body {
    scrollbar-color: #7c8fa1 rgba(18, 27, 44, 1);
}

@media (max-width: 768px) {
    .taraz-ai-token-modal .modal-dialog {
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        padding: 0 !important;
    }

    .taraz-ai-token-modal .modal-content {
        border-radius: 0 !important;
        height: 100% !important;
    }

    .taraz-ai__token-plans {
        grid-template-columns: 1fr;
    }

    .taraz-ai__token-plan__inner {
        position: relative;
        flex-direction: row !important;
        align-items: center;
        text-align: right;
        flex-wrap: wrap;
        gap: 6px;
        padding: 12px 12px !important;
        transform: scale(1);
        z-index: 10;
    }

    .taraz-ai__token-plan-input:checked + .taraz-ai__token-plan__inner {
        transform: scale(1);
    }

    .taraz-ai__token-plan .taraz-ai__token-plan__inner::before {
        top: auto !important;
        bottom: 20px !important;
    }

    .taraz-ai__token-plan-input:checked + .taraz-ai__token-plan__inner {
        animation: card-shake 0.35s linear;
    }

    @keyframes card-shake {
        0% {
            transform: translateX(0) rotate(0deg);
        }

        20% {
            transform: translateX(-3px) rotate(-0.5deg);
        }

        40% {
            transform: translateX(3px) rotate(0.5deg);
        }

        60% {
            transform: translateX(-2px) rotate(-0.3deg);
        }

        80% {
            transform: translateX(2px) rotate(0.3deg);
        }

        100% {
            transform: translateX(0) rotate(0deg);
        }
    }

    .taraz-ai__token-plan-input:checked + .taraz-ai__token-plan__inner::before {
        animation: floating-star-2 2.5s ease-in-out infinite !important;
    }

    .taraz-ai__token-plan__icon {
        align-self: center;
    }

    .taraz-ai__token-modal__header {
        padding: 8px 12px !important;
    }

    .taraz-ai__token-modal__title {
        font-size: 16px;
    }

        .taraz-ai__token-modal__title::before {
            content: "";
            width: 20px;
            height: 20px;
        }

    .taraz-ai__token-modal__body {
        padding: 12px !important;
    }

    .taraz-ai__token-modal__subtitle {
        margin-top: 0px;
        margin-bottom: 4px;
        font-size: 12px;
    }

    .taraz-ai__token-plans {
        gap: 8px;
        padding: 12px;
    }

    .taraz-ai__token-plan__name {
        font-size: 16px;
    }

    .taraz-ai__token-plan__price {
        font-size: 18px;
        flex-direction: row;
        gap: 16px;
    }

    .taraz-ai__token-plan__badge {
        font-size: 11px;
    }

    .taraz-ai__token-plan__features {
        padding: 8px 0 0;
        border-top: none;
    }

        .taraz-ai__token-plan__features li {
            font-size: 12px;
            gap: 4px;
        }

    .taraz-ai__token-plan__feature-icon {
        width: 18px;
        height: 18px;
    }

        .taraz-ai__token-plan__feature-icon::before {
            mask-size: 16px;
            -webkit-mask-size: 16px;
        }

    html[data-theme="dark"]
    .taraz-ai__token-plan-input:checked + .taraz-ai__token-plan__inner {
        box-shadow: rgba(255, 255, 255, 0.8) 0px 0px 14px 0px;
    }

    .taraz-ai__coins-modal-note {
        margin-top: 0 !important;
        font-size: 12px;
        line-height: 1.5;
    }

    .taraz-ai__token-modal__footer {
        padding: 12px !important;
        border-top: 1px solid #e0e7ff;
        border-radius: 12px 12px 0 0;
        box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15), 0px 1px 2px 0px rgba(0, 0, 0, 0.3);
    }

    html[data-theme="dark"] .taraz-ai__token-modal__footer {
        border-top: 1px solid rgba(148, 163, 184, 0.3);
        box-shadow: rgba(255, 255, 255, 0.3) 0px 0px 8px 0px;
    }

    .taraz-ai__coins-modal-btn--cancel,
    .taraz-ai__coins-modal-btn--confirm {
        margin: 0;
        flex-basis: calc(50% - 12px);
        padding: 12px;
        font-size: 13px;
    }
}

@media (max-width: 560px) {
    .taraz-ai__token-modal__subtitle {
        margin-bottom: 0;
    }

    .taraz-ai__token-modal__header .btn-close {
        width: 32px;
        height: 32px;
    }

    /* .taraz-ai__coins-modal-btn--cancel,
    .taraz-ai__coins-modal-btn--confirm {
        width: 100%;
        justify-content: center;
        padding: 8px;
    } */

    /* .taraz-ai__token-modal__footer {
        gap: 12px;
        flex-direction: column-reverse;
    } */
}

.taraz-ai__history-title,
.taraz-ai__side-nav__history-title {
    font-size: 14px;
    font-weight: 600;
    color: #191c1d;
    margin: 0 4px;
}

.taraz-ai__history-group,
.taraz-ai__side-nav__history-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-radius: 12px;
}

.taraz-ai__side-nav__history-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row-reverse;
    gap: 2px;
    margin: 0 0 8px;
}

.taraz-ai__history-toggle {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.18s ease;
}

    .taraz-ai__history-toggle::before {
        content: "";
        width: 12px;
        height: 12px;
        background-image: url("../img/chevron-down.svg");
        background-repeat: no-repeat;
        background-position: center;
        background-size: 10px 12px;
        transition: transform 0.2s ease;
    }

.taraz-ai__side-nav__history-group {
    --history-max-height: 720px;
    max-height: var(--history-max-height);
    overflow: visible;
    opacity: 1;
    transition: max-height 0.24s ease, opacity 0.24s ease;
}

.taraz-ai__side-nav__history--collapsed .taraz-ai__side-nav__history-group {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
}

.taraz-ai__side-nav__history--collapsed .taraz-ai__history-toggle::before {
    transform: rotate(90deg);
}

.taraz-ai__history-group--muted,
.taraz-ai__side-nav__history-group--muted {
    opacity: 0.6;
}

.taraz-ai__history-label,
.taraz-ai__side-nav__history-label {
    font-size: 12px;
    font-weight: 500;
    color: #5b5e66;
    margin: 0;
}

.taraz-ai__history-item,
.taraz-ai__side-nav__history-item {
    font-size: 12px;
    color: #5b5e66;
    padding: 8px 12px;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.18s ease;
    border-radius: 12px;
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: 8px;
}

    .taraz-ai__history-item:hover,
    .taraz-ai__side-nav__history-item:hover {
        color: #000c61;
        background: rgba(23, 114, 255, 0.12);
    }

    .taraz-ai__history-item.is-active,
    .taraz-ai__side-nav__history-item.is-active {
        background: rgba(23, 114, 255, 0.12);
    }

.taraz-ai__history-item-title,
.taraz-ai__side-nav__history-item-title {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
    direction: rtl;
}

    .taraz-ai__history-item-title.is-typing,
    .taraz-ai__side-nav__history-item-title.is-typing {
        border-inline-end: 1px solid currentColor;
        padding-inline-end: 3px;
        animation: tarazAiCaretBlink 0.85s steps(1, start) infinite;
    }

@keyframes tarazAiCaretBlink {
    0%, 49% {
        border-color: currentColor;
    }

    50%, 100% {
        border-color: transparent;
    }
}

.taraz-ai__history-item-title.is-hidden,
.taraz-ai__side-nav__history-item-title.is-hidden {
    display: none;
}

.taraz-ai__history-kebab,
.taraz-ai__side-nav__history-kebab {
    flex: none;
    width: 28px;
    height: 28px;
}

.taraz-ai__kebab-btn,
.taraz-ai__side-nav__kebab-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%233751FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='5' r='1.6'/><circle cx='12' cy='12' r='1.6'/><circle cx='12' cy='19' r='1.6'/></svg>");
    opacity: 0;
    border: 0;
    outline: 0;
    transition: background-color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

    .taraz-ai__history-item:hover .taraz-ai__kebab-btn,
    .taraz-ai__side-nav__history-item:hover .taraz-ai__side-nav__kebab-btn,
    .taraz-ai__kebab-btn:focus-visible,
    .taraz-ai__side-nav__kebab-btn:focus-visible {
        opacity: 1;
        border: none;
        outline: 0;
    }

.taraz-ai__history-item.is-menu-open,
.taraz-ai__side-nav__history-item.is-menu-open {
    color: #000c61;
    background: rgba(23, 114, 255, 0.12);
}

    .taraz-ai__history-item.is-menu-open .taraz-ai__kebab-btn,
    .taraz-ai__side-nav__history-item.is-menu-open .taraz-ai__side-nav__kebab-btn {
        opacity: 1;
    }

.taraz-ai__history-rename-input,
.taraz-ai__side-nav__history-rename-input {
    flex: 1 1 auto;
    min-width: 0;
    font-family: IRANYekanX, sans-serif !important;
    font-size: 12px;
    direction: rtl;
    color: #191c1d;
    background: transparent;
    box-shadow: none;
    border: none;
    outline: none;
}

    .taraz-ai__history-rename-input:focus,
    .taraz-ai__side-nav__history-rename-input:focus {
        box-shadow: none;
    }

@media (max-width: 1200px) {
    .taraz-ai-body {
        min-height: auto;
        height: 100vh;
        height: 100dvh;
    }

    .taraz-ai__side-nav__top {
        flex: none;
        min-width: 240px;
    }

    .taraz-ai__history {
        flex: 1;
        max-height: 240px;
    }
}

@media (max-width: 768px) {
    .taraz-ai__message {
        padding: 12px;
    }

    .taraz-ai__message-input {
        padding: 0;
        min-height: 40px;
    }

    .taraz-ai__mic-btn {
        left: 16px;
        bottom: -22px;
    }

    .taraz-ai__suggestion {
        width: 100%;
    }
}

.taraz-ai__dropdown {
    position: relative;
    display: inline-block;
}

.taraz-ai__dropdown-menu {
    position: absolute;
    top: 46px;
    right: 0;
    min-width: 220px;
    max-width: 196px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
    z-index: 50;
}

.taraz-ai__dropdown.is-open > .taraz-ai__dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.taraz-ai__dropdown.is-open > .taraz-ai__dropdown-toggle {
    background-color: rgba(23, 114, 255, 0.12);
    border: 1px solid rgba(23, 114, 255, 0.35);
}

.taraz-ai__dropdown[data-dropdown="magic"] > .taraz-ai__dropdown-toggle {
    background-image: url("../img/magic_pen_grey.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px 22px;
}

.taraz-ai__dropdown[data-dropdown="attach"] > .taraz-ai__dropdown-toggle {
    background-image: url("../img/attach_primary.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px 22px;
}

.taraz-ai__dropdown-menu.is-floating {
    position: fixed;
    z-index: 2000;
}

.taraz-ai__dropdown-item {
    width: 100%;
    border: none;
    background: transparent;
    text-align: right;
    font-family: IRANYekanX, sans-serif !important;
    font-size: 13px;
    color: #2f3136;
    padding: 10px 10px;
    border-radius: 8px;
    cursor: pointer;
}

    .taraz-ai__dropdown-item:hover {
        background: rgba(23, 114, 255, 0.08);
    }

    .taraz-ai__dropdown-item.is-disabled,
    .taraz-ai__dropdown-item[aria-disabled="true"] {
        color: #9aa0a6;
        cursor: not-allowed;
    }

        .taraz-ai__dropdown-item.is-disabled:hover,
        .taraz-ai__dropdown-item[aria-disabled="true"]:hover {
            background: transparent;
        }

.taraz-ai__hidden-file-input {
    display: none !important;
}

.taraz-ai__dropdown-login {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: space-between;
    padding: 6px 6px 2px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 4px;
}

.taraz-ai__dropdown-item.taraz-ai__guest-only:hover {
    background: transparent !important;
}

.taraz-ai__dropdown-note {
    flex: 1;
    white-space: nowrap;
    font-size: 12px;
    color: #6b7280;
}

.taraz-ai__dropdown-item.taraz-ai__guest-only {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 4px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.taraz-ai__dropdown-icon {
    width: 18px;
    height: 18px;
    background-image: url("../img/dark-arrow-left.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
    flex: none;
}

.taraz-ai__dropdown-icon {
    display: inline-block;
    width: 32px;
    height: 32px;
    min-width: 32px;
    padding: 0;
    background-image: url("../img/dark-arrow-left.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
}

.taraz-ai__dropdown-item--create-question,
.taraz-ai__dropdown-item--create-summary,
.taraz-ai__dropdown-item--create-exercise,
.taraz-ai__dropdown-item--create-teacher-help,
.taraz-ai__dropdown-item--upload-file,
.taraz-ai__dropdown-item--upload-image,
.taraz-ai__dropdown-item--upload-audio,
.taraz-ai__dropdown-item--rename,
.taraz-ai__dropdown-item--delete {
    position: relative;
    padding-right: 36px;
}

    .taraz-ai__dropdown-item--create-question::before,
    .taraz-ai__dropdown-item--create-summary::before,
    .taraz-ai__dropdown-item--create-exercise::before,
    .taraz-ai__dropdown-item--create-teacher-help::before,
    .taraz-ai__dropdown-item--upload-file::before,
    .taraz-ai__dropdown-item--upload-image::before,
    .taraz-ai__dropdown-item--upload-audio::before,
    .taraz-ai__dropdown-item--rename::before,
    .taraz-ai__dropdown-item--delete::before {
        content: "";
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        width: 18px;
        height: 18px;
        background-repeat: no-repeat;
        background-position: center;
        background-size: 18px 18px;
    }

   /* .taraz-ai__dropdown-item--create-question::before {
        background-image: url("../img/solar_question-square-linear.svg");
    }

    .taraz-ai__dropdown-item--create-summary::before {
        background-image: url("../img/solar_notebook-linear.svg");
    }

    .taraz-ai__dropdown-item--create-exercise::before {
        background-image: url("../img/solar_documents-linear.svg");
    }

    .taraz-ai__dropdown-item--create-teacher-help::before {
        background-image: url("../img/solar_lightbulb-minimalistic-linear.svg");
    }*/


.taraz-ai__dropdown-item[data-action="MoreExamples"]::before {
    background-image: url("../img/solar_question-square-linear.svg");
}

.taraz-ai__dropdown-item[data-action="HandoutGeneration"]::before {
    background-image: url("../img/solar_notebook-linear.svg");
}

.taraz-ai__dropdown-item[data-action="QuestionAndExerciseGeneration"]::before {
    background-image: url("../img/solar_documents-linear.svg");
}

.taraz-ai__dropdown-item[data-action="advisor"]::before {
    background-image: url("../img/Counselor.svg");
    background-size: 24px;
}

.taraz-ai__dropdown-item[data-action="freetalk"]::before {
    background-image: url("../img/chat-round-linear.svg");
}

.taraz-ai__dropdown-item--upload-file::before {
    background-image: url("../img/solar_file-send-linear.svg");
}

.taraz-ai__dropdown-item--upload-image::before {
    background-image: url("../img/solar_gallery-send-linear.svg");
}

.taraz-ai__dropdown-item--upload-audio::before {
    background-image: url("../img/solar_upload-track-2-linear.svg");
}

.taraz-ai__dropdown-item--rename::before {
    background-image: url("../img/solar_pen-2-outline.svg");
}

.taraz-ai__dropdown-item--delete::before {
    background-image: url("../img/solar_trash-bin-2-outline.svg");
}

body:not([data-user-mode="guest"]) .taraz-ai__guest-only {
    display: none !important;
}

body[data-user-mode="guest"] .taraz-ai__dropdown [data-requires-auth="true"] {
    position: relative;
    cursor: not-allowed !important;
    color: #9aa0a6;
}

    body[data-user-mode="guest"]
    .taraz-ai__dropdown
    [data-requires-auth="true"]:hover {
        background: transparent;
    }

    body[data-user-mode="guest"]
    .taraz-ai__dropdown
    [data-requires-auth="true"]::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: transparent;
        cursor: not-allowed;
        pointer-events: auto;
        z-index: 1;
    }

.tooltip,
.tooltip .tooltip-inner {
    font-size: 13px;
    font-family: IRANYekanX, sans-serif !important;
}

.tooltip {
    z-index: 1200 !important;
}

.taraz-ai__app.taraz-ai--started .taraz-ai__intro,
.taraz-ai__app.taraz-ai--started .taraz-ai__suggestions {
    display: none !important;
}

.taraz-ai__chat {
    width: 100%;
    max-width: 700px;
    display: none;
    flex-direction: column;
    gap: 12px;
}

.taraz-ai__app.taraz-ai--started .taraz-ai__chat {
    display: flex;
    flex: 1;
    min-height: 0;
    max-width: 100% !important;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    align-items: center;
}

html:not([data-theme="dark"]) .taraz-ai__app.taraz-ai--started .taraz-ai__chat {
    scrollbar-width: thin;
    scrollbar-color: rgba(25, 28, 29, 0.48) rgba(25, 28, 29, 0.08);
}

    html:not([data-theme="dark"]) .taraz-ai__app.taraz-ai--started .taraz-ai__chat::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    html:not([data-theme="dark"]) .taraz-ai__app.taraz-ai--started .taraz-ai__chat::-webkit-scrollbar-track {
        background: rgba(25, 28, 29, 0.08);
    }

    html:not([data-theme="dark"]) .taraz-ai__app.taraz-ai--started .taraz-ai__chat::-webkit-scrollbar-thumb {
        background-color: rgba(25, 28, 29, 0.38);
        border-radius: 999px;
        border: 2px solid transparent;
        background-clip: padding-box;
    }

        html:not([data-theme="dark"]) .taraz-ai__app.taraz-ai--started .taraz-ai__chat::-webkit-scrollbar-thumb:hover {
            background-color: rgba(25, 28, 29, 0.52);
        }

.taraz-ai__app.taraz-ai--started .taraz-ai__chat::-webkit-scrollbar-corner {
    background: transparent;
}


.taraz-ai__app.taraz-ai--started .taraz-ai__body {
    justify-content: flex-start;
    align-items: stretch;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0px;
    gap: 24px;
    min-height: 0;
}

    .taraz-ai__app.taraz-ai--started .taraz-ai__body::after {
        content: "";
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 24px);
        bottom: 0;
        height: 228px;
        background: linear-gradient(to top, #fff 65%, rgba(255, 255, 255, 0));
        pointer-events: none;
        z-index: 10;
    }


.taraz-ai__app.taraz-ai--started .taraz-ai__message {
    position: fixed;
    bottom: 20px;
    z-index: 1095; 
    margin-top: 0;
    margin-bottom: 0;
    align-self: center;
    width: min(100%, 700px);
}

.taraz-ai__app.taraz-ai--started .taraz-ai__body::before {
    content: none !important;
}

.taraz-ai__chat-list {
    margin: 0 auto;
    padding: 0 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 700px;
    align-items: stretch;
}

    .taraz-ai__chat-list::after {
        content: "";
        display: block;
        width: 100%;
        height: 180px;
        flex: none;
    }

.taraz-ai__app.taraz-ai--started .taraz-ai__chat-list {
    padding-bottom: 180px;
}

.taraz-ai__bubble {
    max-width: min(80%, 680px);
    padding: 16px;
    font-size: 14px;
    line-height: 24px;
    border-radius: 14px;
    word-break: break-word;
}

    .taraz-ai__bubble p {
        margin: 0;
    }

.taraz-ai__bubble--user {
    border-radius: 20px 0px 20px 20px;
    background-color: rgba(23, 114, 255, 0.1);
    color: #191c1d;
    border: none;
}

.taraz-ai__bubble--bot {
    align-self: flex-start;
    background: #f4f7ff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: #2f3136;
    border-radius: 16px 4px 16px 16px;
}

.taraz-ai__bubble-actions {
    display: flex;
    gap: 8px;
    width: 100%;
    justify-content: flex-start;
    margin-top: 8px;
}

.taraz-ai__bubble-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: none;
    background: none;
    color: #5b5e66;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    --taraz-bubble-icon: none;
}

    .taraz-ai__bubble-btn::before {
        content: "";
        width: 20px;
        height: 20px;
        display: block;
        background-color: currentColor;
        mask: var(--taraz-bubble-icon) center/contain no-repeat;
        -webkit-mask: var(--taraz-bubble-icon) center/contain no-repeat;
        mask-size: 18px;
        -webkit-mask-size: 18px;
    }

.taraz-ai__bubble-btn--copy {
    --taraz-bubble-icon: url("../img/solar_copy-linear.svg");
}

.taraz-ai__bubble-btn--edit {
    --taraz-bubble-icon: url("../img/solar_pen-linear.svg");
}

.taraz-ai__answer-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
    margin: 12px 0;
}

.taraz-ai__answer-content {
    width: 100%;
    max-width: 100%;
}

.taraz-ai__answer-text {
    width: 100%;
    max-width: 100%;
}

    .taraz-ai__answer-text h1,
    .taraz-ai__answer-text h2,
    .taraz-ai__answer-text h3,
    .taraz-ai__answer-text h4,
    .taraz-ai__answer-text h5,
    .taraz-ai__answer-text h6 {
        margin: 0 0 12px;
    }

    .taraz-ai__answer-text p {
        margin: 0 0 12px;
    }

    .taraz-ai__answer-text ul,
    .taraz-ai__answer-text ol {
        margin: 0 0 12px;
    }

    .taraz-ai__answer-text .ai-answer {
        font-family: IRANYekanX, sans-serif !important;
        direction: rtl;
        text-align: right;
        color: #191c1d;
        font-size: 15px;
        line-height: 1.95;
        -webkit-font-smoothing: antialiased;
        text-rendering: optimizeLegibility;
    }

html[data-theme="dark"] .taraz-ai__answer-text .ai-answer {
    color: #ffffff;
}

.taraz-ai__answer-text .ai-answer h2 {
    margin: 0 0 14px;
    font-size: 18px;
    line-height: 1.65;
    font-weight: 800;
}

.taraz-ai__answer-text .ai-answer h3 {
    margin: 14px 0 8px;
    font-size: 16px;
    line-height: 1.75;
    font-weight: 800;
}

.taraz-ai__answer-text .ai-answer p {
    margin: 0 0 14px;
}

.taraz-ai__answer-text .ai-answer strong {
    font-weight: 800;
}

.taraz-ai__answer-text .ai-answer em {
    font-style: italic;
}

.taraz-ai__answer-text .ai-answer ul,
.taraz-ai__answer-text .ai-answer ol {
    margin: 0 0 14px;
    padding: 0;
    padding-right: 14px;
}

.taraz-ai__answer-text .ai-answer li {
    margin: 0 0 8px;
}

    .taraz-ai__answer-text .ai-answer li:last-child {
        margin-bottom: 0;
    }

.taraz-ai__answer-text .ai-answer hr {
    border: none;
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin: 14px 0;
}

html[data-theme="dark"] .taraz-ai__answer-text .ai-answer hr {
    background: rgba(255, 255, 255, 0.14);
}

.taraz-ai__answer-text .ai-answer code {
    direction: ltr;
    unicode-bidi: plaintext;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.92em;
    padding: 2px 6px;
    border-radius: 8px;
    background: rgba(55, 81, 255, 0.08);
    border: 1px solid rgba(55, 81, 255, 0.18);
    color: inherit !important;
}

html[data-theme="dark"] .taraz-ai__answer-text .ai-answer code {
    background: rgba(37, 99, 235, 0.16);
    border-color: rgba(37, 99, 235, 0.26);
}

.taraz-ai__answer-text .ai-answer mjx-container {
    max-width: 100%;
}

    .taraz-ai__answer-text .ai-answer mjx-container[jax="CHTML"][display="true"] {
        display: block;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 8px 0;
    }

.taraz-ai__answer-text .ai-answer .MathJax,
.taraz-ai__answer-text .ai-answer .math {
    direction: ltr;
    unicode-bidi: plaintext;
}

.taraz-ai__answer-text.taraz-ai__answer-reveal {
    opacity: 0;
    transform: translateY(4px);
}

    .taraz-ai__answer-text.taraz-ai__answer-reveal.taraz-ai__answer-reveal--show {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 180ms ease, transform 180ms ease;
    }

.taraz-ai__answer-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    align-self: flex-start;
}

.taraz-ai__answer-btn {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    border: none;
    background-color: transparent;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

    .taraz-ai__answer-btn:hover {
        background-color: rgba(55, 81, 255, 0.12);
    }

    .taraz-ai__answer-btn:active {
        transform: translateY(1px);
    }

    .taraz-ai__answer-btn:focus-visible {
        outline: 2px solid rgba(23, 114, 255, 0.35);
        outline-offset: 2px;
    }

    .taraz-ai__answer-btn::before {
        content: "";
        width: 20px;
        height: 20px;
        display: block;
        background-repeat: no-repeat;
        background-position: center;
        background-size: 18px;
    }

.taraz-ai__answer-btn--copy::before {
    background-image: url("../img/solar_copy-linear.svg");
}

.taraz-ai__answer-btn--read-aloud::before {
    background-image: url("../img/solar_volume-loud-linear.svg");
}

.taraz-ai__answer-btn--dislike::before {
    background-image: url("../img/solar_dislike-linear.svg");
}

.taraz-ai__answer-btn--like::before {
    background-image: url("../img/solar_like-linear.svg");
}

.taraz-ai__answer-btn.is-active {
    background-color: unset;
    box-shadow: unset;
    border: none;
}

.taraz-ai__answer-btn--like.is-active::before {
    background-image: url("../img/solar_like-bold-filled.svg");
}

.taraz-ai__answer-btn--dislike.is-active::before {
    background-image: url("../img/solar_dislike-bold-filled.svg");
}

.taraz-ai__answer-btn::after {
    content: attr(aria-label);
    position: absolute;
    bottom: calc(100% + 10px);
    right: 50%;
    transform: translateX(50%) translateY(6px);
    white-space: nowrap;
    padding: 6px 10px;
    font-size: 11px;
    line-height: 1;
    font-family: IRANYekanX, sans-serif !important;
    color: #ffffff;
    background: rgba(25, 28, 29, 0.92);
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 140ms ease, transform 140ms ease;
    z-index: 30;
}

.taraz-ai__answer-btn:hover::after,
.taraz-ai__answer-btn:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(50%) translateY(0);
}

.taraz-ai__ai-answer-suggested-questions {
    width: 100%;
    max-width: 700px;
    margin-top: 32px;
    direction: rtl;
    font-family: IRANYekanX, sans-serif !important;
    color: inherit;
}

.taraz-ai__ai-answer-suggested-questions__title {
    margin: 0 0 20px !important;
    font-size: 16px !important;
    font-weight: 700;
    color: #0088b2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

html[data-theme="dark"] .taraz-ai__ai-answer-suggested-questions__title {
    color: #7dd3fc !important;
}

.taraz-ai__ai-answer-suggested-questions__title::before {
    content: "";
    width: 24px;
    height: 24px;
    background-color: currentColor;
    -webkit-mask-image: url(../img/AI_star_alt.svg);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: 20px 20px;
    mask-image: url(../img/AI_star_alt.svg);
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: 24px 24px;
}

.taraz-ai__ai-answer-suggested-questions__list {
    margin: 0;
    padding: 0;
    list-style: none;
    padding-right: 14px;
}

    .taraz-ai__ai-answer-suggested-questions__list li {
        margin: 0 0 16px;
    }

        .taraz-ai__ai-answer-suggested-questions__list li:last-child {
            margin-bottom: 0;
        }

.taraz-ai__ai-answer-suggested-questions__item {
    padding: 8px 12px;
    border: none;
    background: linear-gradient(98deg, #f2fcff 0%, #d9f6ff 98.05%) !important;
    color: #0088b2 !important;
    text-align: right;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.8;
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    border-radius: 20px 0px 20px 20px;
    transition: background-color 0.18s ease;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

html[data-theme="dark"] .taraz-ai__ai-answer-suggested-questions__item {
    color: #7dd3fc !important;
    background: linear-gradient( 98deg, rgba(14, 165, 233, 0.2), rgba(37, 99, 235, 0.18) ) !important;
}

.taraz-ai__ai-answer-suggested-questions__item::before {
    content: "";
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin-top: 2px;
    background-color: currentColor;
    -webkit-mask-image: url("../img/corner-down-left-icon.svg");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: 16px 16px;
    mask-image: url("../img/corner-down-left-icon.svg");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: 16px 16px;
}

html[data-theme="dark"] .taraz-ai__ai-answer-suggested-questions__item::before {
    color: #7dd3fc !important;
}
/*
.taraz-ai__ai-answer-suggested-questions__item:hover {
    text-decoration: none;
    background-color: rgba(55, 81, 255, 0.12);
}

html[data-theme="dark"] .taraz-ai__ai-answer-suggested-questions__item:hover {
    background: linear-gradient(120deg, rgba(59, 130, 246, 0.2), rgba(14, 165, 233, 0.18));
}*/

.taraz-ai__ai-answer-suggested-questions__item:focus-visible {
    outline: 2px solid rgba(23, 114, 255, 0.35);
    outline-offset: 3px;
    border-radius: 6px;
}

.taraz-ai__copy-tooltip {
    position: absolute;
    bottom: 100%;
    right: 50%;
    transform: translateX(50%);
    margin-bottom: 8px;
    padding: 6px 12px;
    background-color: #191c1d;
    color: #ffffff;
    font-size: 12px;
    font-family: IRANYekanX, sans-serif !important;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 150ms ease, visibility 150ms ease, transform 150ms ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

    .taraz-ai__copy-tooltip::after {
        content: "";
        position: absolute;
        top: 100%;
        right: 50%;
        transform: translateX(50%);
        width: 0;
        height: 0;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 5px solid #191c1d;
    }

    .taraz-ai__copy-tooltip.is-visible {
        opacity: 1;
        visibility: visible;
        transform: translateX(50%) translateY(-4px);
    }

.taraz-ai__bubble--editing {
    padding: 0;
    background-color: rgba(23, 114, 255, 0.1);
    border: 1px solid rgba(55, 81, 255, 0.3);
    border-radius: 14px;
    align-self: flex-end;
}

    .taraz-ai__bubble--editing .taraz-ai__bubble-textarea {
        width: 100%;
        min-height: 60px;
        max-height: 200px;
        padding: 12px 14px;
        font-family: IRANYekanX, sans-serif !important;
        font-size: 14px;
        line-height: 24px;
        color: #191c1d;
        background: transparent;
        border: none;
        outline: none;
        resize: none;
        overflow-y: auto;
        border-radius: 14px 14px 0 0;
    }

    .taraz-ai__bubble--editing .taraz-ai__bubble-edit-actions {
        display: flex;
        gap: 8px;
        padding: 8px 12px;
        justify-content: flex-end;
        border-top: 1px solid rgba(55, 81, 255, 0.15);
        background: rgba(55, 81, 255, 0.02);
        border-radius: 0 0 14px 14px;
    }

.taraz-ai__bubble-edit-btn {
    padding: 4px 20px;
    border-radius: 8px;
    font-family: IRANYekanX, sans-serif !important;
    font-size: 13px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.taraz-ai__bubble-edit-btn--cancel {
    background: transparent;
    color: #5b5e66;
}

    .taraz-ai__bubble-edit-btn--cancel:hover {
        background: rgba(0, 0, 0, 0.06);
    }

.taraz-ai__bubble-edit-btn--save {
    background: linear-gradient(to right, #3b82f6, #2563eb);
    color: #ffffff;
}

    .taraz-ai__bubble-edit-btn--save:hover {
        transform: translateY(-1px);
    }

    .taraz-ai__bubble-edit-btn--save:active {
        transform: translateY(0);
    }

.taraz-ai__overlay {
    display: none;
}

@media (max-width: 991px) {
    body.taraz-ai-body {
        background: #ffffff;
    }

    .taraz-ai__side-nav {
        position: fixed;
        z-index: 1100;
        top: 0px;
        bottom: 0;
        right: 0;
        width: 236px !important;
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
        overflow: visible;
        border-radius: 16px 0 0 16px;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18), 0 4px 8px rgba(0, 0, 0, 0.08);
        transition: transform 220ms ease, opacity 220ms ease;
    }

    .taraz-ai__side-nav--collapsed {
        transform: translateX(110%);
        opacity: 0;
        pointer-events: none;
    }

    .taraz-ai__app {
        padding-left: 0 !important;
        gap: 0 !important;
        padding-top: 0;
        margin-top: 70px;
        height: calc(100vh - 70px);
        height: calc(100dvh - 70px);
    }

    .taraz-ai__body {
        padding: 0px 4px;
    }

    .taraz-ai__app .taraz-ai__main {
        margin-left: 0 !important;
        border-radius: 0;
        padding: 12px 12px 0px 12px;
    }

    .taraz-ai__overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
        z-index: 1090;
        opacity: 0;
        visibility: hidden;
        transition: opacity 200ms ease, visibility 200ms ease;
        display: block;
    }

    .taraz-ai__app.taraz-ai__overlay--active .taraz-ai__overlay {
        opacity: 1;
        visibility: visible;
    }

    .taraz-ai__bubble--user {
        max-width: min(94%, 680px);
        padding: 12px !important;
    }

    .taraz-ai__answer-text {
        font-size: 14px;
        line-height: 24px;
    }

    .taraz-ai__card {
        padding: 12px !important;
    }

    .taraz-ai__app.taraz-ai--started .taraz-ai__message {
        width: min(94%, 700px);
    }

    .taraz-ai__footer {
        padding: 12px 8px;
    }

    .taraz-ai__intro-title {
        font-size: 18px;
        line-height: 24px;
    }

    .taraz-ai__bubble--editing .taraz-ai__bubble-textarea {
        padding: 0;
    }

    .taraz-ai__bubble--editing .taraz-ai__bubble-edit-actions {
        padding: 8px 0px 0px 0px;
    }

    .taraz-ai__chat-list::after {
        height: 46px;
    }

    .taraz-ai__app.taraz-ai--started .taraz-ai__body::after {
        height: 200px;
    }
}

.taraz-ai__recording {
    display: none;
    align-items: center;
    gap: 12px;
}

    .taraz-ai__recording.is-active {
        display: flex;
        width: 100%;
    }

.taraz-ai__recording-timer {
    min-width: 52px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    color: #111827;
}

.taraz-ai__recording-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: flex-end;
}

.taraz-ai__icon-btn {
    inline-size: 40px;
    block-size: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    background: transparent;
}

.taraz-ai__icon-btn--accept {
    border-radius: 8px;
    background: linear-gradient(268deg, #3751ff 0%, #1772ff 100%);
}

    .taraz-ai__icon-btn--accept::after {
        content: "";
        display: inline-block;
        width: 20px;
        height: 20px;
        background-image: url("../img/solar_plain-bold.svg");
        background-position: center;
        background-repeat: no-repeat;
        background-size: 20px 20px;
    }

.taraz-ai__icon-btn--cancel {
    display: inline-block;
    background-image: url("../img/close_24px.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 28px 28px;
}

.taraz-ai__message--recording .taraz-ai__message-textarea {
    display: none;
}

.taraz-ai__message--recording .taraz-ai__submit-btn,
.taraz-ai__message--recording .taraz-ai__mic-btn {
    display: none;
}

.taraz-ai__recording-controls {
    display: none;
    align-items: center;
    gap: 8px;
}

.taraz-ai__message--recording .taraz-ai__recording-controls {
    display: flex;
}

.taraz-ai__bubble--audio {
    background: #fff;
    border: none;
    border-radius: 0;
}

.taraz-ai__wave-wrapper {
    width: 100%;
    max-width: 700px;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 36px;
}

.taraz-ai__recording .baseline {
    flex: 1;
    border-bottom: 2px dashed #d1d1d1;
    height: 1px;
    opacity: 0.5;
}

.taraz-ai__recording .wave-group {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 10px;
    height: 100%;
}

.taraz-ai__recording .bar {
    width: 3px;
    background: #8e8e8e;
    border-radius: 3px;
    transform-origin: bottom;
    height: 6px;
    opacity: 0.8;
    transition: height 0.05s linear;
}

@media (max-width: 576px) {
    .taraz-ai__wave-wrapper #tarazWave2,
    .taraz-ai__wave-wrapper #tarazWave3,
    .taraz-ai__wave-wrapper #tarazWave2 + .baseline,
    .taraz-ai__wave-wrapper #tarazWave3 + .baseline {
        display: none !important;
    }
}

.taraz-ai__recordings {
    display: none;
    opacity: 0;
    width: 0;
    height: 0;
    overflow: hidden;
    visibility: hidden;
}

.taraz-ai__recordings-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.taraz-ai__magic-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 40px;
    padding: 4px 8px;
    color: #3751ff;
    font-size: 12px;
}

    .taraz-ai__magic-chip[hidden] {
        display: none !important;
    }

.taraz-ai__magic-chip-label {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 1;
}

.taraz-ai__magic-chip-remove {
    width: 22px;
    height: 22px;
    border-radius: 8px;
    border: none;
    background: transparent;
    background-image: url("../img/close_primary_24px.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
    cursor: pointer;
}

    .taraz-ai__magic-chip-remove:hover {
        background-color: rgba(23, 114, 255, 0.12);
    }

.taraz-ai__dropdown-item.is-selected {
    position: relative;
    background: rgba(23, 114, 255, 0.08);
}

    .taraz-ai__dropdown-item.is-selected::after {
        content: "";
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        width: 18px;
        height: 18px;
        background-image: url("../img/solar_check-circle-linear.svg");
        background-repeat: no-repeat;
        background-position: center;
        background-size: 18px 18px;
    }

.taraz-ai__dropdown.has-selection > .taraz-ai__dropdown-toggle {
    background-color: rgba(23, 114, 255, 0.08);
}

@media (max-width: 768px) {
    .taraz-ai__magic-chip {
        padding: 4px;
        font-size: 11px;
    }

    .taraz-ai__actions-group {
        gap: 8px;
    }

    .taraz-ai__actions {
        gap: 4px;
    }

    .taraz-ai__side-nav__history-item .taraz-ai__dropdown-menu {
        min-width: 140px;
        max-width: 160px;
    }
}

.taraz-ai__attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.taraz-ai__attachment {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    max-width: 80px;
    max-height: 80px;
    overflow: hidden;
}

.taraz-ai__attachment-thumb {
    inline-size: 64px;
    block-size: 64px;
    object-fit: cover;
    border-radius: 8px;
}

.taraz-ai__attachment-meta {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.taraz-ai__attachment-name {
    font-size: 12px;
    color: #2f3136;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.taraz-ai__attachment-format {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    font-size: 10px;
    color: #6b7280;
    text-transform: uppercase;
    padding-top: 8px;
}

.taraz-ai__attachment-remove {
    position: absolute;
    top: 6px;
    left: 6px;
    inline-size: 22px;
    block-size: 22px;
    border-radius: 6px;
    border: none;
    background: transparent;
    cursor: pointer;
    background-image: url("../img/close_primary_24px.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 22px 22px;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

    .taraz-ai__attachment-remove:hover {
        transform: scale(1.05);
        transition: all 0.2s ease-in-out;
    }

.taraz-ai__attachment--file,
.taraz-ai__attachment--audio {
    padding: 8px 8px 8px 36px;
    max-width: 136px;
}

.taraz-ai__card {
    width: 100%;
    border-radius: 20px;
    padding: 20px 16px;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

    .taraz-ai__card.taraz-ai__card--info::after {
        content: "";
        position: absolute;
        top: -24px;
        left: -23px;
        width: 60px;
        height: 60px;
        background-color: #bfdbfe;
        opacity: 0.5;
        border-radius: 50%;
        z-index: 1;
        filter: blur(10px);
    }

    .taraz-ai__card.taraz-ai__card--warning::after {
        content: "";
        position: absolute;
        top: -24px;
        left: -23px;
        width: 60px;
        height: 60px;
        background-color: #c7d2fe;
        opacity: 0.5;
        border-radius: 50%;
        z-index: 1;
        filter: blur(10px);
    }

    .taraz-ai__card.taraz-ai__card--info::before {
        content: "";
        position: absolute;
        bottom: -24px;
        right: -23px;
        width: 60px;
        height: 60px;
        background-color: #bfdbfe;
        opacity: 0.8;
        border-radius: 50%;
        z-index: 1;
        filter: blur(10px);
    }

    .taraz-ai__card.taraz-ai__card--warning::before {
        content: "";
        position: absolute;
        bottom: -24px;
        right: -23px;
        width: 60px;
        height: 60px;
        background-color: #c7d2fe;
        opacity: 0.8;
        border-radius: 50%;
        z-index: 1;
        filter: blur(10px);
    }

.taraz-ai__card-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.taraz-ai__card-text {
    font-family: IRANYekanX, sans-serif !important;
    font-size: 14px;
    line-height: 24px;
    font-weight: 600;
    margin: 0;
    text-align: right;
    width: 100%;
    padding: 0 8px;
}

.taraz-ai__card-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
}

.taraz-ai__card--info {
    background: linear-gradient(to bottom right, #eff6ff, #dbeafe);
    border: 1px solid #bfdbfe;
}

    .taraz-ai__card--info .taraz-ai__card-text {
        color: #1e3a8a;
    }

.taraz-ai__card--warning {
    background-image: linear-gradient(to bottom right, #eef2ff, #e0e7ff);
    border: 1px solid #c7d2fe;
    color: #3730a3;
}

    .taraz-ai__card--warning .taraz-ai__card-text {
        color: #3730a3;
    }

.taraz-ai__card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    font-size: 13px;
    line-height: 20px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.taraz-ai__card-btn--text {
    background: transparent;
    color: #1e3a8a;
    font-weight: 500;
    border: none;
    padding: 8px 24px;
}

.taraz-ai__card-btn--signup {
    background: transparent;
    border: 1px solid #2563eb;
    color: #2563eb;
}

.taraz-ai__card-btn--login {
    background: linear-gradient(to right, #3b82f6, #2563eb);
    color: #ffffff;
}

.taraz-ai__card-btn--more-info {
    background-color: transparent;
    color: #3730a3;
    border: 1px solid #3730a3;
}

.taraz-ai__card-btn--buy-subscription {
    color: #ffffff;
    background-image: linear-gradient(to right, #6366f1, #4f46e5);
    box-shadow: 0 6px 20px -5px #6366f199;
    padding: 8px 24px;
}

.taraz-ai__card--user-message {
    padding: 12px 16px;
    border-radius: 20px;
    border: 1px solid #0088b2 !important;
    background: linear-gradient(98deg, #f2fcff 0%, #d9f6ff 98.05%) !important;
    color: #0088b2 !important;
    cursor: pointer;
}

    .taraz-ai__card--user-message .taraz-ai__card-content {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        justify-content: flex-end;
    }

.taraz-ai__card-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0px;
    border-radius: 12px;
    flex-shrink: 0;
    cursor: pointer;
    transition: background-color 0.2s ease;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.1);
    border: none;
}

    .taraz-ai__card-action-btn:hover {
        background: rgba(255, 255, 255, 0.1);
    }

.taraz-ai__card-action-label {
    font-family: IRANYekanX, sans-serif !important;
    font-size: 14px;
    line-height: 24px;
    font-weight: 500;
    color: #ffffff;
    white-space: nowrap;
    background-color: #0088b2;
    padding: 8px 16px;
    border-radius: 16px;
}

.taraz-ai__card-user-info {
    flex: 1 1 auto;
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    text-align: right;
}

    .taraz-ai__card-user-info::before {
        content: "";
        width: 32px;
        height: 32px;
        min-width: 32px;
        display: inline-block;
        background-image: url("../img/AI_star_Icon.svg");
        background-repeat: no-repeat;
        background-position: center;
        background-size: 24px;
    }

.taraz-ai__card-user-info-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    width: 100%;
}

.taraz-ai__card-user-title {
    font-family: IRANYekanX, sans-serif !important;
    font-size: 14px;
    line-height: 24px;
    font-weight: 500;
    color: #0088b2;
    margin: 0;
    white-space: nowrap;
}

.taraz-ai__card-user-time {
    font-family: IRANYekanX, sans-serif !important;
    font-size: 12px;
    line-height: 24px;
    font-weight: 400;
    color: #0088b2;
    margin: 0;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .taraz-ai__card-actions {
        flex-direction: column-reverse;
        width: 100%;
    }

    .taraz-ai__card-btn {
        width: 100%;
    }

    .taraz-ai__card--user-message .taraz-ai__card-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .taraz-ai__card-user-info {
        width: 100%;
        align-items: flex-start;
    }

    .taraz-ai__card-action-btn,
    .taraz-ai__card-action-label {
        width: 100%;
    }

    .taraz-ai__card-user-info::before {
        margin-left: 0;
        margin-bottom: 12px;
    }

    .taraz-ai__suggestions {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-top: 4px;
        padding-bottom: 4px;
        padding-left: 12px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .taraz-ai__suggestion {
        min-width: max-content;
        width: 100%;
        white-space: nowrap;
    }
}

html[data-theme="dark"] body {
    background: rgb(15, 23, 42) !important;
    color: rgb(203, 213, 225) !important;
}

html[data-theme="dark"] .navbar {
    background-color: rgb(30, 41, 59) !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    backdrop-filter: blur(18px);
}

    html[data-theme="dark"] .navbar .nav-link,
    html[data-theme="dark"] .navbar .nav-link:focus {
        color: #e2e8f0 !important;
    }

        html[data-theme="dark"] .navbar .nav-link:hover {
            color: #93c5fd !important;
        }

    html[data-theme="dark"] .navbar .dropdown-menu {
        background-color: rgba(15, 23, 42, 0.95);
        border: 1px solid rgba(59, 130, 246, 0.25);
        box-shadow: 0 18px 40px rgba(2, 6, 23, 0.6);
    }

html[data-theme="dark"] .offcanvas {
    background-color: rgba(18, 27, 44, 0.98);
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.25);
}

    html[data-theme="dark"] .offcanvas .offcanvas-body {
        background-color: transparent;
    }

    html[data-theme="dark"] .offcanvas .navbar-nav .nav-link {
        color: #e2e8f0 !important;
    }

        html[data-theme="dark"] .offcanvas .navbar-nav .nav-link:hover {
            color: #93c5fd !important;
        }

html[data-theme="dark"]
.main-header
.navbar-nav
.nav-item:not(.custom-dropdown)
.nav-link:hover {
    color: #93c5fd !important;
    border-color: #93c5fd;
}

html[data-theme="dark"]
.main-header
.navbar-nav
.custom-dropdown.active
.dropdown-header {
    color: #93c5fd !important;
    border-color: #93c5fd;
}

html[data-theme="dark"] .main-header .nav-link:hover svg {
    fill: #93c5fd !important;
    filter: unset !important;
}

html[data-theme="dark"] .custom-dropdown.active .nav-link svg {
    fill: #93c5fd !important;
    filter: unset !important;
}

html[data-theme="dark"] .offcanvas .custom-dropdown .dropdown-content {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.65);
}

html[data-theme="dark"] .offcanvas .btn-close {
    filter: invert(1) brightness(1.1);
}

html[data-theme="dark"] .topNavbarBtn .user_entry_btn {
    background: linear-gradient(268deg, #1d4ed8 0%, #2563eb 100%);
    color: #f8fafc;
    border-color: rgba(96, 165, 250, 0.45);
}

html[data-theme="dark"] .taraz-ai__main {
    background: rgba(24, 33, 50, 0.96);
    color: rgb(203, 213, 225);
    box-shadow: 0 18px 45px rgba(2, 6, 23, 0.45);
}

html[data-theme="dark"] .taraz-ai__body {
    color: rgb(203, 213, 225);
}

html[data-theme="dark"] .taraz-ai__answer-text {
    color: #fff;
}

html[data-theme="dark"] .taraz-ai__intro-title {
    background: white;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

html[data-theme="dark"] .taraz-ai__intro p {
    color: rgb(203, 213, 225);
}

html[data-theme="dark"] .taraz-ai__side-nav {
    background: rgba(18, 27, 44, 1);
    box-shadow: 0 12px 36px rgba(2, 6, 23, 0.55);
    border-right: 1px solid rgba(15, 23, 42, 0.65);
}

html[data-theme="dark"] .taraz-ai__side-nav__history {
    scrollbar-color: #7c8fa1 rgba(18, 27, 44, 1);
}

html[data-theme="dark"] .taraz-ai__chat {
    scrollbar-width: thin;
    scrollbar-color: #7c8fa1 rgba(18, 27, 44, 0.75);
}

html[data-theme="dark"] .taraz-ai__side-nav__top {
    background: rgba(18, 27, 44, 0.96);
    border-bottom-color: rgba(148, 163, 184, 0.24);
}

html[data-theme="dark"] .taraz-ai__side-nav__footer {
    background: rgba(18, 27, 44, 0.96);
    border-top-color: rgba(51, 65, 85, 0.65);
}

html[data-theme="dark"] .taraz-ai__side-nav__item {
    color: rgb(203, 213, 225);
}

html[data-theme="dark"] .taraz-ai__history-toggle::before {
    background-image: url("../img/chevron-down-white.svg");
}

html[data-theme="dark"] .taraz-ai__side-nav__toggle {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M2 11C2 7.229 2 5.343 3.172 4.172C4.344 3.001 6.229 3 10 3H14C17.771 3 19.657 3 20.828 4.172C21.999 5.344 22 7.229 22 11V13C22 16.771 22 18.657 20.828 19.828C19.656 20.999 17.771 21 14 21H10C6.229 21 4.343 21 3.172 19.828C2.001 18.656 2 16.771 2 13V11Z' stroke='%23CBD5F5'/%3E%3Cpath d='M15 21V3' stroke='%23CBD5F5' stroke-linecap='round'/%3E%3Cpath d='M5.5 16L6.5 17L5.5 18' stroke='%2393C5FD' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

    html[data-theme="dark"] .taraz-ai__side-nav__toggle:hover,
    html[data-theme="dark"] .taraz-ai__side-nav__toggle:focus-visible {
        background-color: rgba(148, 163, 184, 0.18);
        border-radius: 10px;
    }

html[data-theme="dark"]
.taraz-ai__side-nav__item:hover:not(.taraz-ai__side-nav__item--active) {
    background-color: rgba(37, 99, 235, 0.2);
}

html[data-theme="dark"] .taraz-ai__side-nav__item--active {
    background: linear-gradient( 120deg, rgba(37, 99, 235, 0.28), rgba(129, 140, 248, 0.26) );
    color: #ffffff;
    border-color: rgba(129, 140, 248, 0.45);
}

html[data-theme="dark"]
.taraz-ai__side-nav__item.taraz-ai__side-nav__item--active
.taraz-ai__side-nav__item-icon {
    filter: brightness(0) invert(1);
    opacity: 1;
}

html[data-theme="dark"] .taraz-ai__history-title,
html[data-theme="dark"] .taraz-ai__side-nav__history-title,
html[data-theme="dark"] .taraz-ai__history-label,
html[data-theme="dark"] .taraz-ai__side-nav__history-label {
    color: #f0f0f0;
}

html[data-theme="dark"] .taraz-ai__history-item,
html[data-theme="dark"] .taraz-ai__side-nav__history-item {
    color: #dbe1ff;
}

    html[data-theme="dark"] .taraz-ai__history-item:hover,
    html[data-theme="dark"] .taraz-ai__side-nav__history-item:hover {
        color: #ffffff;
        background: rgba(59, 130, 246, 0.24);
    }

html[data-theme="dark"]
.main-header
.navbar-nav
.custom-dropdown
.dropdown-header
svg {
    filter: brightness(0) invert(1);
}

html[data-theme="dark"] .main-header .dropdown-content {
    background: rgba(17, 24, 39, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.65);
    color: #e2e8f0;
}

    html[data-theme="dark"] .main-header .dropdown-content h4 a {
        color: #93c5fd;
    }

    html[data-theme="dark"] .main-header .dropdown-content .drop-menu {
        border-top-color: rgba(148, 163, 184, 0.32);
    }

        html[data-theme="dark"] .main-header .dropdown-content .drop-menu .list li a,
        html[data-theme="dark"]
        .main-header
        .dropdown-content
        .drop-menu
        .sublist
        li
        a {
            color: #e2e8f0;
        }

    html[data-theme="dark"] .main-header .dropdown-content .dropdown-item,
    html[data-theme="dark"] .main-header .dropdown-content .dropdown-item a {
        color: #e2e8f0;
    }

        html[data-theme="dark"]
        .main-header
        .dropdown-content
        .drop-menu
        .list
        li
        a:hover,
        html[data-theme="dark"]
        .main-header
        .dropdown-content
        .drop-menu
        .sublist
        li
        a:hover,
        html[data-theme="dark"] .main-header .dropdown-content .dropdown-item:hover,
        html[data-theme="dark"] .main-header .dropdown-content .dropdown-item a:hover {
            color: #f8fafc;
            background-color: rgba(59, 130, 246, 0.18);
        }

html[data-theme="dark"] .main-header .drop-menu .main-items a {
    background-color: rgba(37, 99, 235, 0.24);
    color: #e0e7ff !important;
}

html[data-theme="dark"]
.taraz-ai__app.taraz-ai--started
.taraz-ai__body::after {
    background: rgba(24, 33, 50, 0.96);
    height: 36px;
}

html[data-theme="dark"] .taraz-ai__card {
    color: rgb(203, 213, 225);
}

    html[data-theme="dark"] .taraz-ai__card-text,
    html[data-theme="dark"] .taraz-ai__card p,
    html[data-theme="dark"] .taraz-ai__card-btn--text,
    html[data-theme="dark"] .taraz-ai__card-btn--signup,
    html[data-theme="dark"] .taraz-ai__card-btn--more-info {
        color: #e0f2fe;
    }

html[data-theme="dark"] .taraz-ai__card-btn--signup {
    background: rgba(203, 213, 225, 0.08);
    border-color: rgba(203, 213, 225, 0.35);
}

html[data-theme="dark"] .taraz-ai__card-btn--more-info {
    border-color: rgba(203, 213, 225, 0.4);
}

html[data-theme="dark"] .taraz-ai__card-user-title,
html[data-theme="dark"] .taraz-ai__card-action-label,
html[data-theme="dark"] .taraz-ai__card-btn--login,
html[data-theme="dark"] .taraz-ai__card-btn--buy-subscription,
html[data-theme="dark"] .taraz-ai__bubble--user p,
html[data-theme="dark"] .taraz-ai__bubble--bot p {
    color: #ffffff;
}

html[data-theme="dark"] .taraz-ai__recording-timer,
html[data-theme="dark"] .taraz-ai__card-user-time {
    color: rgba(255, 255, 255, 0.82);
}

html[data-theme="dark"] .taraz-ai__icon-btn--cancel {
    background-image: url("../img/close_24px_white.svg");
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6 {
    color: #ffffff;
}

html[data-theme="dark"] .taraz-ai__kebab-btn,
html[data-theme="dark"] .taraz-ai__side-nav__kebab-btn {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2393C5FD' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='5' r='1.6'/%3E%3Ccircle cx='12' cy='12' r='1.6'/%3E%3Ccircle cx='12' cy='19' r='1.6'/%3E%3C/svg%3E");
}

html[data-theme="dark"] .taraz-ai__dropdown-menu {
    background: rgba(12, 19, 33, 0.98);
    border-color: rgba(148, 163, 184, 0.24);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.6);
}

html[data-theme="dark"] .taraz-ai__dropdown-item {
    color: #e2e8f0;
}

    html[data-theme="dark"] .taraz-ai__dropdown-item:hover {
        background: rgba(59, 130, 246, 0.25);
    }

    html[data-theme="dark"] .taraz-ai__dropdown-item::before,
    html[data-theme="dark"] .taraz-ai__dropdown-item::after {
        filter: brightness(0) invert(1);
        opacity: 0.95;
    }

html[data-theme="dark"] .taraz-ai__dropdown-icon {
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

html[data-theme="dark"]
.taraz-ai__dropdown[data-dropdown="magic"] > .taraz-ai__dropdown-toggle {
    background-image: url("../img/magic_white.svg");
}

html[data-theme="dark"] .taraz-ai__magic-chip {
    color: #eff6ff;
}

html[data-theme="dark"] .taraz-ai__magic-chip-remove {
    background-image: url("../img/close_24px_white.svg");
    background-color: transparent;
}

    html[data-theme="dark"] .taraz-ai__magic-chip-remove:hover {
        background-color: rgba(148, 163, 184, 0.24);
    }

html[data-theme="dark"]
.taraz-ai__dropdown[data-dropdown="attach"] > .taraz-ai__dropdown-toggle {
    background-image: url("../img/attach_white.svg");
}

html[data-theme="dark"] .taraz-ai__dropdown-note {
    color: #9ca3af;
}

html[data-theme="dark"] .taraz-ai__message {
    background: rgba(24, 33, 50);
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: 0 12px 36px rgba(2, 6, 23, 0.5), 0 0 1px rgba(148, 163, 184, 0.6);
}

html[data-theme="dark"] .taraz-ai__attachments {
    border-color: rgba(148, 163, 184, 0.25);
}

html[data-theme="dark"] .taraz-ai__message-input textarea {
    color: #f1f5f9;
}

    html[data-theme="dark"] .taraz-ai__message-input textarea::placeholder {
        color: rgba(189, 200, 218, 0.75);
    }

html[data-theme="dark"] .taraz-ai__actions .taraz-ai__btn {
    background-color: rgba(51, 65, 85, 0.5);
}

    html[data-theme="dark"] .taraz-ai__actions .taraz-ai__btn:hover {
        background-color: rgba(148, 163, 184, 0.28);
    }

html[data-theme="dark"] .taraz-ai__new-chat-button {
    background-image: url("../img/solar_document-add-white.svg");
    filter: none;
}

    html[data-theme="dark"] .taraz-ai__new-chat-button:hover {
        background-color: rgba(59, 130, 246, 0.2);
    }

html[data-theme="dark"] .taraz-ai__suggestion {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(148, 163, 184, 0.25);
    color: #cbd5f5;
}

    html[data-theme="dark"] .taraz-ai__suggestion img,
    html[data-theme="dark"] .taraz-ai__suggestion svg {
        filter: brightness(0) invert(1);
        stroke: currentColor;
        opacity: 0.95;
    }

        html[data-theme="dark"] .taraz-ai__suggestion svg path,
        html[data-theme="dark"] .taraz-ai__suggestion svg circle,
        html[data-theme="dark"] .taraz-ai__suggestion svg rect,
        html[data-theme="dark"] .taraz-ai__suggestion svg line,
        html[data-theme="dark"] .taraz-ai__suggestion svg polyline,
        html[data-theme="dark"] .taraz-ai__suggestion svg polygon {
            stroke: currentColor;
            fill: currentColor;
        }

    html[data-theme="dark"] .taraz-ai__suggestion:hover {
        border-color: #60a5fa;
        background: rgba(37, 99, 235, 0.22);
    }

html[data-theme="dark"] .taraz-ai__footer {
    background: rgba(24, 33, 50, 0.96);
    border-top-color: rgba(148, 163, 184, 0.3);
    color: #94a3b8;
}

html[data-theme="dark"] .taraz-ai__bubble--user {
    background: linear-gradient( 120deg, rgba(59, 130, 246, 0.2), rgba(14, 165, 233, 0.18) );
    color: #e2e8f0;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

html[data-theme="dark"] .taraz-ai__bubble--bot {
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
}

html[data-theme="dark"] .taraz-ai__answer-btn:hover {
    background-color: rgba(148, 163, 184, 0.28);
}

html[data-theme="dark"] .taraz-ai__answer-btn::before {
    filter: brightness(0) invert(1);
}

html[data-theme="dark"] .taraz-ai__bubble-btn {
    color: #f8fafc;
}

html[data-theme="dark"] .taraz-ai__answer-btn.is-active {
    background-color: unset;
    box-shadow: unset;
    border: none;
}

    html[data-theme="dark"] .taraz-ai__answer-btn.is-active::before {
        filter: brightness(0) invert(1) saturate(1.4);
    }

html[data-theme="dark"] .taraz-ai__answer-btn:focus-visible {
    outline-color: rgba(96, 165, 250, 0.55);
}

html[data-theme="dark"] .taraz-ai__answer-btn::after {
    background: rgba(15, 23, 42, 0.92);
    color: #f8fafc;
}

html[data-theme="dark"] .taraz-ai__copy-tooltip {
    background-color: rgba(15, 23, 42, 0.95);
    color: #f8fafc;
}

    html[data-theme="dark"] .taraz-ai__copy-tooltip::after {
        border-top-color: rgba(15, 23, 42, 0.95);
    }

html[data-theme="dark"] .taraz-ai__bubble--editing {
    background-color: rgba(37, 99, 235, 0.18);
    border-color: rgba(96, 165, 250, 0.35);
}

    html[data-theme="dark"] .taraz-ai__bubble--editing .taraz-ai__bubble-textarea {
        color: #f8fafc;
    }

html[data-theme="dark"] .taraz-ai__bubble-edit-btn--cancel {
    color: #cbd5f5;
}

    html[data-theme="dark"] .taraz-ai__bubble-edit-btn--cancel:hover {
        background: rgba(148, 163, 184, 0.18);
    }

html[data-theme="dark"] .taraz-ai__bubble-edit-btn--save {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 12px 24px -10px rgba(59, 130, 246, 0.7);
}

html[data-theme="dark"] .taraz-ai__card {
    background: rgba(17, 24, 39, 0.85);
    border-color: rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
}

    html[data-theme="dark"] .taraz-ai__card.taraz-ai__card--info {
        background: linear-gradient( 140deg, rgba(37, 99, 235, 0.35), rgba(30, 64, 175, 0.45) ) border-box;
        border: 1px solid rgba(129, 140, 248, 0.45);
    }

        html[data-theme="dark"] .taraz-ai__card.taraz-ai__card--info::after,
        html[data-theme="dark"] .taraz-ai__card.taraz-ai__card--info::before {
            background-color: rgba(59, 130, 246, 0.35);
        }

        html[data-theme="dark"]
        .taraz-ai__card.taraz-ai__card--info
        .taraz-ai__card-text {
            color: #e0f2fe;
        }

    html[data-theme="dark"] .taraz-ai__card.taraz-ai__card--warning {
        background: linear-gradient( 140deg, rgba(124, 58, 237, 0.36), rgba(59, 130, 246, 0.34) ) border-box;
        border: 1px solid rgba(129, 140, 248, 0.45);
        color: #ede9fe;
    }

        html[data-theme="dark"] .taraz-ai__card.taraz-ai__card--warning::after,
        html[data-theme="dark"] .taraz-ai__card.taraz-ai__card--warning::before {
            background-color: rgba(139, 92, 246, 0.35);
        }

html[data-theme="dark"] .taraz-ai__card-btn {
    color: #e2e8f0;
}

html[data-theme="dark"] .taraz-ai__card-btn--signup {
    border-color: rgba(148, 163, 184, 0.4);
    color: #cbd5f5;
}

html[data-theme="dark"] .taraz-ai__card-btn--login {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 12px 24px -10px rgba(59, 130, 246, 0.7);
}

html[data-theme="dark"] .taraz-ai__card-btn--more-info {
    border-color: rgba(129, 140, 248, 0.5);
    color: #c7d2fe;
}

html[data-theme="dark"] .taraz-ai__card-btn--buy-subscription {
    background-image: linear-gradient(90deg, #4f46e5, #7c3aed);
    box-shadow: 0 16px 32px -14px rgba(99, 102, 241, 0.8);
}

html[data-theme="dark"] .taraz-ai__card--user-message {
    border-color: rgba(14, 165, 233, 0.4) !important;
    background: linear-gradient( 98deg, rgba(14, 165, 233, 0.2), rgba(37, 99, 235, 0.18) ) !important;
    color: #e0f2fe !important;
}

html[data-theme="dark"] .taraz-ai__card-action-btn {
    background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .taraz-ai__card-action-label {
    background-color: rgba(14, 165, 233, 0.25);
    color: #e0f2fe;
}

html[data-theme="dark"] .taraz-ai__card-user-title,
html[data-theme="dark"] .taraz-ai__card-user-time {
    color: #bae6fd;
}

html[data-theme="dark"] .taraz-ai__card-icon {
    filter: invert(0.9) hue-rotate(180deg);
}

html[data-theme="dark"] .taraz-ai__mic-warning {
    background: rgba(248, 113, 113, 0.12);
    border-color: rgba(248, 113, 113, 0.35);
    color: #fecaca;
}

html[data-theme="dark"] .taraz-ai__mic-warning__close {
    filter: invert(0.8);
}

html[data-theme="dark"] .taraz-ai__attachment {
    border-color: rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.6);
}

html[data-theme="dark"] .taraz-ai__attachment-name {
    color: #e2e8f0;
}

html[data-theme="dark"] .taraz-ai__attachment-format {
    color: #94a3b8;
}

html[data-theme="dark"] .taraz-ai__attachment-remove {
    background-color: rgba(15, 23, 42, 0.9);
    border-color: rgba(148, 163, 184, 0.25);
}

html[data-theme="dark"] .taraz-ai__recording .baseline {
    border-bottom-color: rgba(148, 163, 184, 0.3);
}

html[data-theme="dark"] .taraz-ai__recording .bar {
    background: rgba(165, 180, 252, 0.95);
}

html[data-theme="dark"] .taraz-ai__wave-wrapper {
    background: rgba(15, 23, 42, 0.4);
    border-radius: 12px;
}

html[data-theme="dark"] .theme-toggle-btn {
    box-shadow: 0 12px 26px -12px rgba(37, 99, 235, 0.6);
}

html[data-theme="dark"] .theme-toggle-btn__label {
    color: #e2e8f0;
}

html[data-theme="dark"] .theme-toggle-btn__icon {
    background: url("../img/sun-white.svg") center/contain no-repeat;
    box-shadow: none;
}

html[data-theme="dark"] .taraz-ai__history-rename-input,
html[data-theme="dark"] .taraz-ai__side-nav__history-rename-input {
    background-color: rgba(15, 23, 42, 0.6);
    color: #e2e8f0;
}

.taraz-ai__timeline-item.disappearing {
    animation: disappear-up 0.5s forwards;
}

@keyframes disappear-up {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-50px);
    }
}

.particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: #adb5bd;
    border-radius: 50%;
    animation: fly-away 0.7s forwards;
}

@keyframes fly-away {
    0% {
        opacity: 1;
        transform: translate(0, 0);
    }

    100% {
        opacity: 0;
        transform: translate(var(--x), var(--y));
    }
}

.taraz-ai__timeline {
    list-style: none;
    padding-right: 12px;
    padding-left: 12px;
    position: relative;
}

.taraz-ai__timeline-item {
    position: relative;
    margin-bottom: 16px;
    padding-right: 20px;
    z-index: 100;
}

    .taraz-ai__timeline-item:last-child {
        margin-bottom: 0;
    }

.taraz-ai__timeline-text {
    font-size: 12px;
    color: #191c1d;
    font-weight: 500;
    line-height: 16px;
    transition: all 0.3s ease;
}

.taraz-ai__timeline-item::before {
    content: "";
    position: absolute;
    right: -9px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    transition: all 0.3s ease;
    background-color: #000c61;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "bootstrap-icons";
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    z-index: 10;
}

.taraz-ai__timeline-item--current .taraz-ai__timeline-text {
    font-weight: 600;
    color: #191c1d;
}

.taraz-ai__timeline-item--current::before {
    background-color: #000c61;
    box-shadow: 0 0 8px 3px rgba(55, 81, 255, 0.7);
}

.taraz-ai__timeline-item--current .taraz-ai__timeline-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    --status-modal-current-start: rgba(0, 12, 97, 0.08);
    --status-modal-current-mid: rgba(0, 12, 97, 0.3);
    --status-modal-current-highlight: rgba(0, 12, 97, 0.95);
    --status-modal-current-end: rgba(0, 12, 97, 0.22);
    --status-modal-dot-gap: 10px;
    color: #000c61;
    background-image: linear-gradient( 110deg, var(--status-modal-current-start) 0%, var(--status-modal-current-mid) 20%, #000c61 55%, #22478d 70%, var(--status-modal-current-end) 100% );
    background-size: 240% 100%;
    background-position: 120% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: status-modal-current-text 2.8s ease-in-out infinite;
}

    .taraz-ai__timeline-item--current .taraz-ai__timeline-text::before {
        content: "";
        position: absolute;
        inset: -10%;
        width: 45%;
        background: linear-gradient( 90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 45%, rgba(255, 255, 255, 0) 100% );
        transform: translateX(150%) skewX(-18deg);
        opacity: 0;
        mix-blend-mode: screen;
        pointer-events: none;
        animation: status-modal-current-sheen 2.8s ease-in-out infinite;
        z-index: 1;
    }

    .taraz-ai__timeline-item--current .taraz-ai__timeline-text::after {
        content: "";
        display: inline-block;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        margin-inline-start: 6px;
        background: currentColor;
        opacity: 0.35;
        box-shadow: calc(-1 * var(--status-modal-dot-gap, 10px)) 0 0 0 rgba(0, 12, 97, 0.35), calc(-2 * var(--status-modal-dot-gap, 10px)) 0 0 0 rgba(0, 12, 97, 0.2);
        animation: status-modal-dots-bounce 1.6s ease-in-out infinite;
        transform-origin: center;
        vertical-align: middle;
    }

.taraz-ai__timeline-item--completed .taraz-ai__timeline-text {
    color: #191c1d;
    position: relative;
    animation: status-modal-completed-text 0.8s ease-out forwards;
}

    .taraz-ai__timeline-item--completed .taraz-ai__timeline-text::after {
        content: "";
        position: absolute;
        right: 0;
        left: auto;
        bottom: -8px;
        height: 2px;
        border-radius: 999px;
        background: linear-gradient( 90deg, rgba(30, 190, 93, 0), rgba(30, 190, 93, 0.65), rgba(30, 190, 93, 0) );
        width: 0;
        animation: status-modal-completed-underline 1s ease-out forwards;
    }

.taraz-ai__timeline-item--completed::before {
    content: "\2713";
    text-align: center;
    font-size: 12px;
    color: #fff;
    width: 20px;
    height: 20px;
    right: -11px;
    background-color: #1ebe5d;
    box-shadow: 0 0 12px 2px rgba(30, 190, 93, 0.35);
    box-shadow: 0 0 12px 2px rgba(30, 190, 93, 0.35);
}

.taraz-ai__timeline-item--pending .taraz-ai__timeline-text {
    color: #adb5bd;
}

.taraz-ai__timeline-item--pending::before {
    background-color: #a9b2c8;
}

.taraz-ai__timeline-item--rejected .taraz-ai__timeline-text {
    color: #d62733;
}

.taraz-ai__timeline-item--rejected::before {
    background-color: #d62733;
    box-shadow: 0 0 8px 2px rgba(214, 39, 51, 0.7);
}

html[data-theme="dark"] .taraz-ai__timeline-item::after {
    background-color: rgba(148, 163, 184, 0.35);
}

html[data-theme="dark"] .taraz-ai__timeline-text {
    color: #e2e8f0;
}

html[data-theme="dark"]
.taraz-ai__timeline-item--current
.taraz-ai__timeline-text {
    color: #e5f0ff;
    --status-modal-current-start: rgba(148, 197, 255, 0.35);
    --status-modal-current-mid: rgba(191, 219, 254, 0.75);
    --status-modal-current-highlight: rgba(240, 249, 255, 1);
    --status-modal-current-end: rgba(96, 165, 250, 0.55);
    background-image: linear-gradient( 110deg, var(--status-modal-current-start) 0%, var(--status-modal-current-mid) 30%, var(--status-modal-current-highlight) 55%, #93c5fd 78%, var(--status-modal-current-end) 100% );
}

    html[data-theme="dark"]
    .taraz-ai__timeline-item--current
    .taraz-ai__timeline-text::before {
        background: linear-gradient( 90deg, rgba(37, 99, 235, 0) 0%, rgba(37, 99, 235, 0) 100% ) !important;
        opacity: 0.65 !important;
    }

html[data-theme="dark"] .taraz-ai__timeline-item--current::before {
    background-color: #000c61;
    box-shadow: 0 0 8px 3px rgb(255 255 255 / 70%) !important;
}

html[data-theme="dark"]
.taraz-ai__timeline-item--current
.taraz-ai__timeline-text::after {
    box-shadow: calc(-1 * var(--status-modal-dot-gap, 10px)) 0 0 0 rgba(96, 165, 250, 0.45), calc(-2 * var(--status-modal-dot-gap, 10px)) 0 0 0 rgba(96, 165, 250, 0.2) !important;
}

html[data-theme="dark"]
.taraz-ai__timeline-item--completed
.taraz-ai__timeline-text {
    color: #1ebe5d !important;
}

html[data-theme="dark"]
.taraz-ai__timeline-item--pending
.taraz-ai__timeline-text {
    color: #94a3b8 !important;
}

html[data-theme="dark"]
.taraz-ai__timeline-item--rejected
.taraz-ai__timeline-text {
    color: #f87171 !important;
}

.taraz-ai__timeline-container {
    padding: 10px 0px;
    position: relative;
    z-index: 10;
}

@keyframes status-modal-completed-text {
    0% {
        opacity: 0.15;
        transform: translateX(-8px);
    }

    60% {
        opacity: 1;
        transform: translateX(4px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes status-modal-completed-underline {
    0% {
        width: 0;
        opacity: 0;
    }

    60% {
        width: 60%;
        opacity: 1;
    }

    100% {
        width: 100%;
        opacity: 0.8;
    }
}

@keyframes status-modal-current-text {
    0% {
        background-position: -140% 0;
        opacity: 0.82;
    }

    50% {
        background-position: 30% 0;
        opacity: 1;
    }

    100% {
        background-position: 140% 0;
        opacity: 0.82;
    }
}

@keyframes status-modal-current-sheen {
    0% {
        opacity: 0;
        transform: translateX(150%) skewX(-18deg);
    }

    40% {
        opacity: 0.9;
    }

    60% {
        opacity: 0;
    }

    100% {
        transform: translateX(-160%) skewX(-18deg);
        opacity: 0;
    }
}

@keyframes status-modal-dots-bounce {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.3;
        box-shadow: calc(-1 * var(--status-modal-dot-gap, 10px)) 0 0 0 rgba(0, 12, 97, 0.35), calc(-2 * var(--status-modal-dot-gap, 10px)) 0 0 0 rgba(0, 12, 97, 0.2);
    }

    20% {
        transform: translateY(-3px);
        opacity: 0.95;
        box-shadow: calc(-1 * var(--status-modal-dot-gap, 10px)) 0 0 0 rgba(0, 12, 97, 0.35), calc(-2 * var(--status-modal-dot-gap, 10px)) 0 0 0 rgba(0, 12, 97, 0.2);
    }

    40% {
        transform: translateY(0);
        opacity: 0.6;
        box-shadow: calc(-1 * var(--status-modal-dot-gap, 10px)) -3px 0 0 rgba(0, 12, 97, 0.85), calc(-2 * var(--status-modal-dot-gap, 10px)) 0 0 0 rgba(0, 12, 97, 0.25);
    }

    60% {
        transform: translateY(0);
        opacity: 0.45;
        box-shadow: calc(-1 * var(--status-modal-dot-gap, 10px)) 0 0 0 rgba(0, 12, 97, 0.35), calc(-2 * var(--status-modal-dot-gap, 10px)) -3px 0 0 rgba(0, 12, 97, 0.75);
    }
}

.taraz-ai__uploaded-image-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 8px 0px;
    gap: 16px;
    flex-wrap: wrap;
}

.taraz-ai__uploaded-image {
    width: 100%;
    height: 100%;
    max-width: 110px;
    max-height: 110px;
    border-radius: 8px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.3);
}

    .taraz-ai__uploaded-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 8px;
        cursor: pointer;
    }

html[data-theme="dark"] .taraz-ai__uploaded-image {
    box-shadow: 0 0 10px 0 rgba(255, 255, 255, 0.3);
}

.taraz-ai__image-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 12000;
}

html[data-theme="dark"] .taraz-ai__image-lightbox {
    background: rgba(2, 6, 23, 0.7);
}

.taraz-ai__image-lightbox.is-open {
    display: flex;
}

.taraz-ai__image-lightbox-content {
    position: relative;
    max-width: min(86vw, 920px);
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.taraz-ai__image-lightbox-img {
    display: block;
    max-width: 86vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    box-shadow: none;
    background: transparent;
}

.taraz-ai__image-lightbox-close {
    position: fixed;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: none;
    background: transparent;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.18s ease;
    z-index: 12001;
}

    .taraz-ai__image-lightbox-close::before {
        content: "";
        background-image: url("../img/close_24px_white.svg");
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;
        width: 36px;
        height: 36px;
        display: block;
    }

    .taraz-ai__image-lightbox-close:focus-visible {
        outline: none;
    }


html[data-theme="dark"] .modal_adaptive_placement .modal-content {
    background: linear-gradient( 145deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.96) 52%, rgba(15, 23, 42, 0.92) 100% );
    border: 1px solid rgba(96, 165, 250, 0.28);
    box-shadow: 0 28px 70px rgba(2, 6, 23, 0.65), 0 0 0 1px rgba(148, 163, 184, 0.12) inset;
    color: #e2e8f0;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

html[data-theme="dark"] .modal_adaptive_placement .modal-header {
    border-bottom-color: rgba(148, 163, 184, 0.18);
}

html[data-theme="dark"] .modal_adaptive_placement .modal-title {
    color: #f8fafc;
}

html[data-theme="dark"] .modal_adaptive_placement .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

    html[data-theme="dark"] .modal_adaptive_placement .btn-close:hover {
        opacity: 1;
        filter: brightness(1.1) invert(0.95);
    }

html[data-theme="dark"]
.modal_adaptive_placement
:is(.modal__lable, .modal-user__msg, .modal-user__question-text) {
    color: rgba(226, 232, 240, 0.88);
}

html[data-theme="dark"]
.modal_adaptive_placement
:is(.modal__input, .modal_select, .form-select) {
    background-color: rgba(15, 23, 42, 0.65) !important;
    border: 1px solid rgba(96, 165, 250, 0.28) !important;
    color: #f8fafc !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

html[data-theme="dark"] .modal_adaptive_placement :is(.form-select) {
    background-image: url("../img/arrow-drop-down-icon-white.svg") !important;
}

html[data-theme="dark"]
.modal_adaptive_placement
:is( .modal__input::placeholder, .modal_select::placeholder, .form-select::placeholder ) {
    color: rgba(148, 163, 184, 0.75);
}

html[data-theme="dark"]
.modal_adaptive_placement
:is(.modal__input:focus, .modal_select:focus, .form-select:focus) {
    background-color: rgba(15, 23, 42, 0.82);
    border-color: rgba(96, 165, 250, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
    color: #f8fafc;
}

html[data-theme="dark"]
.modal_adaptive_placement
.modal__input:-webkit-autofill,
html[data-theme="dark"]
.modal_adaptive_placement
.modal__input:-webkit-autofill:hover,
html[data-theme="dark"]
.modal_adaptive_placement
.modal__input:-webkit-autofill:focus,
html[data-theme="dark"]
.modal_adaptive_placement
.modal__input:-webkit-autofill:active {
    -webkit-text-fill-color: #f8fafc !important;
    box-shadow: 0 0 0 1000px rgba(15, 23, 42, 0.85) inset !important;
    border: 1px solid rgba(96, 165, 250, 0.4) !important;
    transition: background-color 5000s ease-in-out 0s;
}

html[data-theme="dark"] .modal_adaptive_placement .modal__divider-line {
    background-color: rgba(148, 163, 184, 0.28);
}

html[data-theme="dark"] .modal_adaptive_placement .modal__divider-text {
    color: rgba(148, 163, 184, 0.75);
}

html[data-theme="dark"]
.modal_adaptive_placement
:is(.modal-user__question-btn, .resend-timer__btn) {
    color: #93c5fd;
    background: transparent;
}

html[data-theme="dark"]
.modal_adaptive_placement
:is(.modal-user__question-btn:hover, .resend-timer__btn:hover) {
    color: #bfdbfe;
}

html[data-theme="dark"] .modal_adaptive_placement .resend-timer__countdown {
    color: rgba(226, 232, 240, 0.8);
}

html[data-theme="dark"] .modal_adaptive_placement .fullwidth-btn {
    border: none;
    border-radius: 14px;
    color: #f8fafc;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
}

html[data-theme="dark"]
.modal_adaptive_placement
:is(.signup-account-btn, .create-taraz-account-btn) {
    background: rgba(30, 41, 59, 0.85);
    color: #93c5fd;
    border: 1px solid rgba(96, 165, 250, 0.35) !important;
    box-shadow: 0 18px 42px rgba(2, 6, 23, 0.55);
}

html[data-theme="dark"]
.modal_adaptive_placement
:is(.signup-account-btn:hover, .create-taraz-account-btn:hover) {
    background: rgba(37, 99, 235, 0.28);
    color: #eff6ff;
}

html[data-theme="dark"] .modal_adaptive_placement .confirm__password-btn {
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    box-shadow: 0 18px 42px rgba(37, 99, 235, 0.35);
}

html[data-theme="dark"] .modal_adaptive_placement .form-check-label {
    color: rgba(226, 232, 240, 0.8);
}

html[data-theme="dark"] .modal_adaptive_placement .form-check-input {
    background-color: rgba(15, 23, 42, 0.5);
    border-color: rgba(96, 165, 250, 0.35);
}

    html[data-theme="dark"] .modal_adaptive_placement .form-check-input:checked {
        background-color: #3b82f6;
        border-color: #60a5fa;
    }

    html[data-theme="dark"] .modal_adaptive_placement .form-check-input:focus {
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    }

html[data-theme="dark"] .modal_adaptive_placement .role-selector__item {
    background: rgba(17, 24, 39, 0.92);
    border: 1px solid rgba(96, 165, 250, 0.25);
    color: #e2e8f0;
    box-shadow: 0 20px 48px rgba(2, 6, 23, 0.6);
}

    html[data-theme="dark"] .modal_adaptive_placement .role-selector__item:hover {
        border-color: rgba(129, 140, 248, 0.65);
        background: linear-gradient( 135deg, rgba(30, 41, 59, 1) 0%, rgba(37, 99, 235, 0.22) 100% );
        box-shadow: 0 24px 60px rgba(2, 6, 23, 0.7);
    }

    html[data-theme="dark"] .modal_adaptive_placement .role-selector__item.active {
        border-color: rgba(129, 140, 248, 0.75);
        background: linear-gradient( 130deg, rgba(37, 99, 235, 0.36) 0%, rgba(14, 165, 233, 0.22) 100% );
        box-shadow: 0 26px 66px rgba(37, 99, 235, 0.32);
    }

html[data-theme="dark"] .modal_adaptive_placement .role-selector__radio-button {
    border-color: rgba(148, 163, 184, 0.55);
}

    html[data-theme="dark"]
    .modal_adaptive_placement
    .role-selector__radio-button::after {
        background-color: #60a5fa;
    }

html[data-theme="dark"] .modal_adaptive_placement .role-selector__icon {
    filter: brightness(0) invert(1) saturate(0) contrast(105%);
}

html[data-theme="dark"]
.modal_adaptive_placement
.icon__wrapper
:is(.eye, .eye-slash) {
    filter: brightness(0) invert(0.95);
}

html[data-theme="dark"] .modal_adaptive_placement .modal-body {
    color: #e2e8f0;
}

html[data-theme="dark"] .modal_adaptive_placement .verification-code__input {
    letter-spacing: 4px;
}

.taraz-ai-coins-payment-modal {
    z-index: 10000;
}

.taraz-ai__coins-payment-content {
    border-radius: 24px;
    border: none;
    box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    background: #fff;
}

.taraz-ai__coins-payment-body {
    padding: 0px 24px 24px 24px;
    text-align: center;
}

.taraz-ai__coins-payment-close {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    opacity: 0.4;
    transition: opacity 0.2s ease;
    margin: 0 !important;
}

    .taraz-ai__coins-payment-close:hover {
        opacity: 1;
    }

.taraz-ai__coins-payment-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    animation: fadeInScale 0.3s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.taraz-ai__coins-payment-icon-bg {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.taraz-ai__coins-payment-state--success .taraz-ai__coins-payment-icon-bg {
    background-color: rgba(16, 185, 129, 0.1);
    color: #1e9970;
}

.taraz-ai__coins-payment-state--failure .taraz-ai__coins-payment-icon-bg {
    color: #ef4444;
}

.taraz-ai__coins-payment-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0;
}

.taraz-ai__coins-payment-state--success .taraz-ai__coins-payment-title {
    color: #1e9970;
}

.taraz-ai__coins-payment-state--failure .taraz-ai__coins-payment-title {
    color: #ef4444;
}

.taraz-ai__coins-payment-desc {
    font-size: 15px;
    line-height: 26px;
    color: #64748b;
    margin: 0;
    max-width: 320px;
}

.taraz-ai__coins-payment-amount {
    font-weight: 800;
    color: #1e293b;
    font-size: 16px;
    padding-left: 4px;
}

.taraz-ai__coins-payment-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    margin-top: 8px;
    width: 100%;
    max-width: 260px;
}

.taraz-ai__coins-payment-btn--confirm {
    margin-bottom: 12px;
    background: #1e9970;
    color: #fff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

    .taraz-ai__coins-payment-btn--confirm:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
    }

    .taraz-ai__coins-payment-btn--confirm:active {
        transform: translateY(0);
    }

.taraz-ai__coins-payment-btn--retry {
    background: #d62733;
    color: #fff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

    .taraz-ai__coins-payment-btn--retry:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(239, 68, 68, 0.35);
    }

.taraz-ai__coins-payment-btn--cancel {
    background: transparent;
    color: #64748b;
}

    .taraz-ai__coins-payment-btn--cancel:hover {
        background: #f1f5f9;
        color: #334155;
    }

.taraz-ai__coins-payment-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    align-items: center;
}

@media (max-width: 560px) {
    .taraz-ai__coins-payment-actions {
        flex-direction: column;
    }

    .taraz-ai__coins-payment-btn {
        width: 100%;
    }
}

html[data-theme="dark"] .taraz-ai__coins-payment-content {
    background: #1e293b;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .taraz-ai__coins-payment-desc {
    color: #94a3b8;
}

html[data-theme="dark"] .taraz-ai__coins-payment-amount {
    color: #f8fafc;
}

html[data-theme="dark"] .taraz-ai__coins-payment-close {
    filter: invert(1);
}

html[data-theme="dark"] .taraz-ai__coins-payment-btn--cancel {
    color: #94a3b8;
}

    html[data-theme="dark"] .taraz-ai__coins-payment-btn--cancel:hover {
        background: rgba(255, 255, 255, 0.05);
        color: #f1f5f9;
    }

/* Scroll-to-bottom button */
.taraz-ai__scroll-bottom {
    position: sticky;
    left: 50%;
    bottom: calc(var(--taraz-ai-message-height, 180px) + 36px);
    min-width: 32px;
    min-height: 32px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #d5d7e0;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.25s ease, transform 0.25s ease;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(10px);
    z-index: 4000;
}

    .taraz-ai__scroll-bottom::after {
        content: "";
        width: 20px;
        height: 20px;
        background-image: url("../img/dark-arrow-left.svg");
        background-repeat: no-repeat;
        background-position: center;
        background-size: 20px 20px;
        transform: rotate(270deg);
        display: block;
    }

    .taraz-ai__scroll-bottom.is-visible {
        opacity: 1;
        cursor: pointer;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }

    .taraz-ai__scroll-bottom:active {
        transform: translateX(-50%) translateY(0) scale(0.96);
    }

html[data-theme="dark"] .taraz-ai__scroll-bottom,
body.dark .taraz-ai__scroll-bottom,
.dark-theme .taraz-ai__scroll-bottom {
    background: #1f2430;
    border-color: #2e3445;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

    html[data-theme="dark"] .taraz-ai__scroll-bottom::after,
    body.dark .taraz-ai__scroll-bottom::after,
    .dark-theme .taraz-ai__scroll-bottom::after {
        filter: invert(1) brightness(1.2);
    }

.taraz-ai__message .taraz-ai__dropdown--model {
    display: inline-flex;
}

.taraz-ai__message.taraz-ai__message--recording .taraz-ai__dropdown--model {
    display: none !important;
}

.taraz-ai__message
.taraz-ai__dropdown[data-dropdown="model"] > .taraz-ai__dropdown-toggle {
    width: auto;
    min-width: 76px;
    height: 40px;
    padding: 0 12px 0 10px;
    border-radius: 12px;
    border: none;
    background-color: rgba(55, 81, 255, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

html[data-theme="dark"]
.taraz-ai__message
.taraz-ai__dropdown[data-dropdown="model"] > .taraz-ai__dropdown-toggle {
    background-color: rgba(51, 65, 85, 0.5);
}

#modelMenuButton:focus,
#modelMenuButton:focus-visible {
    outline: none;
    box-shadow: none;
}

.taraz-ai__message .taraz-ai__model-toggle-label {
    font-family: IRANYekanX, sans-serif !important;
    font-size: 12px;
    font-weight: 600;
    color: #3751ff;
    white-space: nowrap;
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.taraz-ai__message
.taraz-ai__dropdown[data-dropdown="model"] > .taraz-ai__dropdown-toggle::after {
    content: "";
    width: 10px;
    height: 10px;
    background-color: #3751ff;
    -webkit-mask-image: url("../img/chevron-down-primary.svg");
    mask-image: url("../img/chevron-down-primary.svg");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: 8px 8px;
    mask-size: 8px 8px;
    display: inline-block;
}

.taraz-ai__message
.taraz-ai__dropdown[data-dropdown="model"].is-open > .taraz-ai__dropdown-toggle::after {
    transform: rotate(180deg);
}

.taraz-ai__message
.taraz-ai__dropdown[data-dropdown="model"] > .taraz-ai__dropdown-menu {
    left: 0;
    right: auto;
    top: 46px;
    bottom: auto;
    min-width: 300px;
    max-width: 320px;
    max-height: 260px;
    overflow-y: auto;
    padding: 4px 6px;
}

.taraz-ai__app.taraz-ai--started
.taraz-ai__message
.taraz-ai__dropdown[data-dropdown="model"] > .taraz-ai__dropdown-menu:not(.is-floating) {
    top: auto;
    bottom: 46px;
    transform: translateY(6px);
}

html.taraz-ai--model-menu-open .taraz-ai__scroll-bottom {
    display: none !important;
}

.taraz-ai__model-canvas
.taraz-ai__dropdown-item.is-selected {
    background: linear-gradient(to bottom right, #eff6ff, #dbeafe);
    border: 1px solid rgba(55, 81, 255, 0.2);
}

html[data-theme="dark"]
.taraz-ai__model-canvas
.taraz-ai__dropdown-menu.taraz-ai__model-menu
.taraz-ai__dropdown-item.is-selected {
    background: linear-gradient( 140deg, rgba(37, 99, 235, 0.6), rgba(30, 64, 175, 0.4) ) border-box;
}

@media (max-height: 700px) {
    .taraz-ai__message
    .taraz-ai__dropdown[data-dropdown="model"] > .taraz-ai__dropdown-menu {
        top: auto;
        bottom: 46px;
        max-height: min(260px, calc(100vh - 180px));
    }
}
.taraz-ai__model-canvas #tarazAIModelCanvasLabel {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
}

.taraz-ai__message .taraz-ai__model-menu-header {
    font-family: Kalameh, IRANYekanX, sans-serif !important;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 8px 8px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
}

.taraz-ai__model-menu-header::before {
    content: "";
    display: inline-flex;
    width: 20px;
    height: 20px;
    background-image: url(../img/slider-dark.svg);
    background-repeat: no-repeat;
    background-size: 20px;
    z-index: inherit;
}

html[data-theme="dark"]
.taraz-ai__message
.taraz-ai__model-menu-header::before {
    background-image: url(../img/slider-light.svg);
}

.taraz-ai__model-canvas #tarazAIModelCanvasLabel::before {
    content: "";
    display: inline-flex;
    width: 20px;
    height: 20px;
    background-image: url(../img/slider-dark.svg);
    background-repeat: no-repeat;
    background-size: 20px;
    z-index: inherit;
}

html[data-theme="dark"]
.taraz-ai__model-canvas
#tarazAIModelCanvasLabel::before {
    background-image: url(../img/slider-light.svg);
}


.taraz-ai__dropdown[data-dropdown="model"]
.taraz-ai__dropdown-item.is-selected {
    background: linear-gradient(to bottom right, #eff6ff, #dbeafe);
    border: 1px solid rgba(55, 81, 255, 0.2);
}

html[data-theme="dark"]
.taraz-ai__dropdown[data-dropdown="model"]
.taraz-ai__dropdown-item.is-selected {
    background: linear-gradient( 140deg, rgba(37, 99, 235, 0.6), rgba(30, 64, 175, 0.4) ) border-box;
}


.taraz-ai__message
.taraz-ai__dropdown[data-dropdown="model"]
.taraz-ai__dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 8px;
}


.taraz-ai__message .taraz-ai__model-item-content,
.taraz-ai__model-canvas .taraz-ai__model-item-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: right;
}

 .taraz-ai__model-item-title {
    font-size: 13px;
    font-weight: 500;
    display: inline-flex !important;
    align-items: center !important;
}

.taraz-ai__model-item-title::before {
    content: "";
    content: "";
    width: 18px;
    height: 18px;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
}

.taraz-ai__dropdown-item[data-model="Auto"]
.taraz-ai__model-item-title::before {
    background-image: url("../img/bolt_svg_dark.svg");
    background-size: 18px;
}

html[data-theme="dark"]
.taraz-ai__dropdown-item[data-model="Auto"]
.taraz-ai__model-item-title::before {
    background-image: url("../img/bolt_svg_light.svg");
}


.taraz-ai__dropdown-item[data-model="Thinking"]
.taraz-ai__model-item-title::before {
    background-image: url("../img/AI_star_alt.svg");
    background-size: 18px;
    margin-inline-end: 3px;
}

html[data-theme="dark"]
.taraz-ai__dropdown-item[data-model="Thinking"]
.taraz-ai__model-item-title::before {
    background-image: url("../img/AI_star_alt_white.svg");
}


.taraz-ai__dropdown-item[data-model="Instant"]
.taraz-ai__model-item-title::before {
    background-image: url("../img/brain-dark.svg");
    background-size: 15px;
    margin-inline-end: 3px;
}

html[data-theme="dark"]
.taraz-ai__dropdown-item[data-model="Instant"]
.taraz-ai__model-item-title::before {
    background-image: url("../img/brain-light.svg");
}

.taraz-ai__message .taraz-ai__model-item-desc {
    font-size: 10px;
    opacity: 0.75;
}

.taraz-ai__model-item-used-credit {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    line-height: 16px;
    font-weight: 600;
    border: 1px solid rgba(55, 81, 255, 0.2);
    padding: 2px 8px;
    border-radius: 14px;
}

    .taraz-ai__model-item-used-credit::after {
        content: "";
        width: 12px;
        height: 12px;
        background-image: url("../img/coins.svg");
        background-repeat: no-repeat;
        background-size: 10px;
        display: inline-block;
    }
html[data-theme="dark"] .taraz-ai__model-item-used-credit {
    border: 1px solid rgba(255,255,255,0.3);
}

.taraz-ai__dropdown[data-dropdown="model"] .taraz-ai__dropdown-item.is-selected::after {
    display: none;
    visibility: hidden;
}

.taraz-ai__model-canvas .taraz-ai__dropdown-item.is-selected::after {
    display: none;
    visibility: hidden;
}

.taraz-ai__dropdown[data-dropdown="model"] .taraz-ai__dropdown-item:not(:last-child) {
    margin-bottom: 4px;
}


.taraz-ai__message .taraz-ai__model-item-desc {
    font-size: 10px;
    opacity: 0.75;
}

.taraz-ai__message .taraz-ai__model-menu-footer {
    margin-top: 4px;
    padding: 4px 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.taraz-ai__message .taraz-ai__model-menu-footer-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.taraz-ai__message .taraz-ai__model-menu-footer-title {
    font-size: 11px;
    line-height: 16px;
    font-weight: 600;
}

.taraz-ai__message .taraz-ai__model-menu-footer-desc {
    font-size: 10px;
    opacity: 0.85;
    margin-bottom: 0;
}

.taraz-ai__message .taraz-ai__model-menu-upgrade {
    display: inline-flex !important;
    margin-inline-start: auto;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    padding: 2px 12px;
    border-radius: 8px;
    color: #3751ff !important;
    border: 1px solid rgba(23, 114, 255, 0.35);
    background: rgba(23, 114, 255, 0.08) !important;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 180ms ease;
}

    .taraz-ai__message .taraz-ai__model-menu-upgrade:hover {
        color: #3751ff !important;
        background: rgba(23, 114, 255, 0.18) !important;
        border-color: rgba(23, 114, 255, 0.5);
    }

    .taraz-ai__message .taraz-ai__model-menu-upgrade:focus-visible {
        outline: 2px solid rgba(23, 114, 255, 0.35);
        outline-offset: 2px;
    }

html[data-theme="dark"] .taraz-ai__message .taraz-ai__model-menu-footer {
    border-top-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .taraz-ai__message .taraz-ai__model-menu-upgrade {
    color: #e7eaf0 !important;
    border: 1px solid rgba(23, 114, 255, 0.45);
    background: rgba(23, 114, 255, 0.14) !important;
}

    html[data-theme="dark"] .taraz-ai__message .taraz-ai__model-menu-upgrade:hover {
        color: #ffffff !important;
        background: rgba(23, 114, 255, 0.24) !important;
        border-color: rgba(23, 114, 255, 0.6);
    }

html[data-theme="dark"] .taraz-ai__message .taraz-ai__model-toggle-label {
    color: #e7eaf0;
}

html[data-theme="dark"]
.taraz-ai__message
.taraz-ai__dropdown[data-dropdown="model"] > .taraz-ai__dropdown-toggle::after {
    background-color: #e7eaf0 !important;
}

@media (max-width: 420px) {
    .taraz-ai__message
    .taraz-ai__dropdown[data-dropdown="model"] > .taraz-ai__dropdown-toggle {
        min-width: 44px;
        padding: 0 10px;
    }

    .taraz-ai__message .taraz-ai__model-toggle-label {
        max-width: 110px;
    }
}

@media (max-width: 991px) {
    .taraz-ai__dropdown-menu.taraz-ai__model-menu {
        display: none;
    }

    .taraz-ai__model-canvas {
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
        overflow: hidden;
        --bs-offcanvas-bg: #fff;
        background: #fff;
        min-height: 328px;
    }

    html[data-theme="dark"] .taraz-ai__model-canvas {
        --bs-offcanvas-bg: rgba(12, 19, 33, 0.98);
        background: rgba(12, 19, 33, 0.98);
    }

    .taraz-ai__model-canvas .taraz-ai__model-canvas-header {
        padding: 12px 14px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        font-family: Kalameh, IRANYekanX, sans-serif !important;
        direction: rtl;
    }

        .taraz-ai__model-canvas .taraz-ai__model-canvas-header .offcanvas-title {
            font-size: 16px;
            font-weight: 600;
            margin: 0;
        }

    .taraz-ai__model-canvas .btn-close {
        transition: transform 0.2s ease;
    }

        .taraz-ai__model-canvas .btn-close:hover {
            transform: rotate(-90deg);
        }

    html[data-theme="dark"] .taraz-ai__model-canvas .btn-close {
        filter: brightness(0) invert(1);
        opacity: 0.9;
    }

    html[data-theme="dark"]
    .taraz-ai__model-canvas
    .taraz-ai__model-canvas-header {
        border-bottom-color: rgba(255, 255, 255, 0.12);
    }

    .taraz-ai__model-canvas .taraz-ai__model-canvas-body {
        padding: 8px 10px 12px;
    }

    .taraz-ai__model-canvas .taraz-ai__dropdown-menu.taraz-ai__model-menu {
        display: flex;
        flex-direction: column;
        gap: 10px;
        position: static;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        min-width: 100%;
        max-width: 100%;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 4px !important;
        overflow-y: auto;
        box-shadow: none !important;
        border: none !important;
    }

    .taraz-ai__model-canvas .taraz-ai__model-menu-header {
        display: none;
    }

    .taraz-ai__model-canvas
    .taraz-ai__dropdown-menu.taraz-ai__model-menu
    .taraz-ai__dropdown-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 6px 16px;
    }

    .taraz-ai__model-canvas .taraz-ai__model-item-title {
        font-size: 13px;
        font-weight: 500;
    }

    .taraz-ai__model-canvas .taraz-ai__model-item-desc {
        font-size: 10px;
        opacity: 0.75;
    }

    .taraz-ai__model-canvas .taraz-ai__model-menu-footer {
        margin-top: 4px;
        padding: 4px 16px;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
    }

    .taraz-ai__model-canvas .taraz-ai__model-menu-footer-row {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .taraz-ai__model-canvas .taraz-ai__model-menu-footer-title {
        font-size: 11px;
        font-weight: 700;
    }

    .taraz-ai__model-canvas .taraz-ai__model-menu-footer-desc {
        font-size: 10px;
        opacity: 0.85;
        margin-bottom: 0;
    }

    .taraz-ai__model-canvas .taraz-ai__model-menu-upgrade {
        display: inline-flex !important;
        margin-inline-start: auto;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        font-weight: 500;
        padding: 4px 14px;
        border-radius: 6px;
        color: #3751ff !important;
        border: 1px solid rgba(23, 114, 255, 0.35);
        background: rgba(23, 114, 255, 0.08) !important;
        text-decoration: none !important;
        white-space: nowrap;
        transition: all 180ms ease;
    }

        .taraz-ai__model-canvas .taraz-ai__model-menu-upgrade:hover {
            color: #3751ff !important;
            background: rgba(23, 114, 255, 0.18) !important;
            border-color: rgba(23, 114, 255, 0.5);
        }

        .taraz-ai__model-canvas .taraz-ai__model-menu-upgrade:focus-visible {
            outline: 2px solid rgba(23, 114, 255, 0.35);
            outline-offset: 2px;
        }

    html[data-theme="dark"] .taraz-ai__model-canvas .taraz-ai__model-menu-footer {
        border-top-color: rgba(255, 255, 255, 0.12);
    }

    html[data-theme="dark"]
    .taraz-ai__model-canvas
    .taraz-ai__model-menu-upgrade {
        color: #e7eaf0 !important;
        border: 1px solid rgba(23, 114, 255, 0.45);
        background: rgba(23, 114, 255, 0.14) !important;
    }

        html[data-theme="dark"]
        .taraz-ai__model-canvas
        .taraz-ai__model-menu-upgrade:hover {
            color: #ffffff !important;
            background: rgba(23, 114, 255, 0.24) !important;
            border-color: rgba(23, 114, 255, 0.6);
        }
}
