@font-face {
    font-family: YekanBakh;
    src: url('../fonts/yekanBakh/woff2/YekanBakhFaNum-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: YekanBakh;
    src: url('../fonts/yekanBakh/woff2/YekanBakhFaNum-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: YekanBakh;
    src: url('../fonts/yekanBakh/woff2/YekanBakhFaNum-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: YekanBakh;
    src: url('../fonts/yekanBakh/woff2/YekanBakhFaNum-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}


/* =========================================================
   DANA CHATBOT ROOT
========================================================= */

#danaChatbotRoot {
    direction: rtl;
    font-family: YekanBakh, Tahoma, "Segoe UI", sans-serif;
    position: relative;
    z-index: 2147483000;
}


/* =========================================================
   GLOBAL FONT INHERIT
========================================================= */

#danaChatbotRoot,
#danaChatbotRoot * {
    font-family: inherit;
}


/* =========================================================
   FONT AWESOME ICONS
========================================================= */

#danaChatbotRoot i,
#danaChatbotRoot svg,
#danaChatbotRoot .fa,
#danaChatbotRoot .fas,
#danaChatbotRoot .far,
#danaChatbotRoot .fab,
#danaChatbotRoot [class*="fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", sans-serif;
}

#danaChatbotRoot .fas,
#danaChatbotRoot .fa-solid {
    font-weight: 900;
}

#danaChatbotRoot .far,
#danaChatbotRoot .fa-regular {
    font-weight: 400;
}

#danaChatbotRoot .fab,
#danaChatbotRoot .fa-brands {
    font-weight: 400;
}


/* =========================================================
   CHATBOT LAUNCHER
========================================================= */

.dana-chatbot-launcher {
    position: fixed;

    inset-inline-start: 22px;
    bottom: 22px;

    width: 58px;
    height: 58px;

    border: 0;
    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            #e0d9d9,
            #a21c43
        );

    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow:
        0 16px 38px rgba(15,23,42,.22),
        0 8px 20px rgba(162,28,67,.18);

    cursor: pointer;

    z-index: 2147483001;

    /* Continuous looping animation */
    animation:
        danaLauncherFloat 3.2s ease-in-out infinite,
        danaLauncherGlow 3.2s ease-in-out infinite;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}


/* =========================================================
   LAUNCHER HOVER
========================================================= */

.dana-chatbot-launcher:hover {
    animation-play-state: paused;

    transform: translateY(-4px) scale(1.04);

    background:
        linear-gradient(
            145deg,
            #c12a59,
            #a21c43
        );

    box-shadow:
        0 20px 48px rgba(15,23,42,.25),
        0 10px 28px rgba(162,28,67,.30);
}

.dana-chatbot-launcher:active {
    animation-play-state: paused;

    transform: translateY(-1px) scale(.98);
}


/* =========================================================
   LAUNCHER ICON
========================================================= */

.dana-chatbot-launcher::before {
    content: "";

    width: 46px;
    height: 46px;

    display: block;

    background: url("../images/icons/dana-3.png") center / contain no-repeat;

    transform-origin: center;

    animation:
        danaLauncherIcon 3.2s ease-in-out infinite;
}


/* =========================================================
   OUTER BREATHING / FLOATING ANIMATION
========================================================= */

@keyframes danaLauncherFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-4px) scale(1.025);
    }
}


/* =========================================================
   SOFT RED GLOW
========================================================= */

@keyframes danaLauncherGlow {

    0%,
    100% {
        box-shadow:
            0 16px 38px rgba(15,23,42,.22),
            0 8px 20px rgba(162,28,67,.18);
    }

    50% {
        box-shadow:
            0 18px 42px rgba(15,23,42,.20),
            0 10px 30px rgba(162,28,67,.34),
            0 0 0 7px rgba(162,28,67,.045);
    }
}


/* =========================================================
   ICON MICRO ANIMATION
========================================================= */

@keyframes danaLauncherIcon {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    45% {
        transform: scale(1.05) rotate(-2deg);
    }

    55% {
        transform: scale(1.08) rotate(2deg);
    }

    65% {
        transform: scale(1) rotate(0deg);
    }
}


/* =========================================================
   LAUNCHER STATUS DOT
========================================================= */

.dana-chatbot-launcher__dot {
    position: absolute;

    inset-inline-end: -2px;
    inset-block-start: -2px;

    width: 11px;
    height: 11px;

    border-radius: 50%;

    background: #22c55e;

    border: 2px solid #fff;

    box-shadow:
        0 2px 7px rgba(0,0,0,.15);

    animation:
        danaLauncherStatusPulse 2s ease-in-out infinite;
}


/* =========================================================
   STATUS DOT PULSE
========================================================= */

@keyframes danaLauncherStatusPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow:
            0 2px 7px rgba(0,0,0,.15),
            0 0 0 0 rgba(34,197,94,.0);
    }

    50% {
        transform: scale(1.12);
        box-shadow:
            0 2px 8px rgba(0,0,0,.15),
            0 0 0 4px rgba(34,197,94,.12);
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .dana-chatbot-launcher,
    .dana-chatbot-launcher::before,
    .dana-chatbot-launcher__dot {
        animation: none;
    }
}
/* =========================================================
   CHAT PANEL
========================================================= */

.dana-chatbot-panel {
    position: fixed;

    inset-inline-start: 22px;
    bottom: 92px;

    width: min(410px, calc(100vw - 28px));
    height: min(680px, calc(100vh - 120px));

    background: #fff;

    border: 1px solid rgba(15,23,42,.09);
    border-radius: 25px;

    overflow: hidden;

    box-shadow:
        0 30px 90px rgba(2,8,23,.22),
        0 8px 30px rgba(162,28,67,.06);

    display: none;
    flex-direction: column;

    z-index: 2147483002;
}

.dana-chatbot-panel.is-open {
    display: flex;
}


/* =========================================================
   CHAT HEADER
========================================================= */

.dana-chatbot-head {
    padding: 16px 17px;

    background:
        linear-gradient(
            135deg,
            #0b1220 0%,
            #351421 58%,
            #351421 100%
        );

    color: #fff;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    border-bottom: 1px solid rgba(162,28,67,.28);
}


/* =========================================================
   CHAT HEADER BRAND
========================================================= */

.dana-chatbot-head__brand {
    display: flex;
    align-items: center;

    gap: 11px;

    min-width: 0;
}


/* =========================================================
   DANA AVATAR
========================================================= */

.dana-chatbot-head__avatar {
    width: 42px;
    height: 42px;

    border-radius: 15px;

    background:
        linear-gradient(
            145deg,
            #fff,
            #fdf1f5
        );

    color: #a21c43;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: 900;

    flex: 0 0 auto;

    box-shadow:
        0 5px 16px rgba(0,0,0,.15),
        0 0 0 1px rgba(162,28,67,.08);
}


/* Avatar Icon */

.dana-chatbot-head__avatar::before {
    content: "";

    width: 42px;
    height: 42px;

    display: block;

    background: url("../images/icons/dana-3.png") center / contain no-repeat;
}


/* =========================================================
   HEADER TITLE
========================================================= */

.dana-chatbot-head__title {
    font-size: 13px;
    font-weight: 900;

    line-height: 1.7;
}

.dana-chatbot-head__sub {
    font-size: 10px;

    color: rgba(255,255,255,.62);

    margin-top: 1px;
}


/* =========================================================
   CLOSE BUTTON
========================================================= */

.dana-chatbot-close {
    width: 34px;
    height: 34px;

    border: 1px solid rgba(255,255,255,.08);
    border-radius: 11px;

    background: rgba(255,255,255,.055);
    color: rgba(255,255,255,.82);

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition:
        background-color .2s ease,
        color .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.dana-chatbot-close:hover {
    background: rgba(162,28,67,.28);
    border-color: rgba(162,28,67,.4);
    color: #fff;
    transform: rotate(3deg);
}


/* Close Icon */

.dana-chatbot-close::before {
    content: "\f00d";

    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-weight: 900;

    font-size: 13px;
    line-height: 1;
}


/* =========================================================
   MESSAGES AREA
========================================================= */

.dana-chatbot-messages {
    flex: 1;

    overflow: auto;

    padding: 15px;

    background:
        radial-gradient(
            circle at top right,
            rgba(162,28,67,.035),
            transparent 34%
        ),
        linear-gradient(
            180deg,
            #f8fafc 0%,
            #fff 100%
        );
}


/* =========================================================
   MESSAGE BUBBLES
========================================================= */

.dana-message {
    max-width: 88%;

    padding: 10px 12px;

    border-radius: 16px;

    margin: 0 0 9px;

    font-size: 12px;

    line-height: 2;

    white-space: pre-wrap;
    word-break: break-word;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}


/* Bot */

.dana-message--bot {
    margin-inline-end: auto;

    background: #fff;

    border: 1px solid rgba(15,23,42,.09);

    color: #1f2937;

    border-top-right-radius: 6px;

    box-shadow:
        0 4px 14px rgba(15,23,42,.035);
}

.dana-message--bot:hover {
    border-color: rgba(162,28,67,.14);

    box-shadow:
        0 7px 18px rgba(15,23,42,.05);
}


/* User */

.dana-message--user {
    margin-inline-start: auto;

    background:
        linear-gradient(
            145deg,
            #a21c43,
            #861735
        );

    color: #fff;

    border-top-left-radius: 6px;

    box-shadow:
        0 7px 18px rgba(162,28,67,.15);
}


/* Typing */

.dana-message--typing {
    opacity: .7;
}


/* =========================================================
   QUICK QUESTIONS
========================================================= */

.dana-chatbot-quick {
    padding: 6px 14px 6px;

    display: flex;

    gap: 7px;

    overflow: auto;

    background: #fff;

    border-top: 1px solid rgba(15,23,42,.045);
}

.dana-quick-btn {
    white-space: nowrap;

    border: 1px solid rgba(162,28,67,.14);

    background:
        rgba(162,28,67,.035);

    color: #6b1b35;

    border-radius: 999px;

    padding: 7px 10px;

    font-size: 10px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.dana-quick-btn:hover {
    background: rgba(162,28,67,.09);

    border-color: rgba(162,28,67,.28);

    color: #a21c43;

    transform: translateY(-1px);

    box-shadow:
        0 5px 12px rgba(162,28,67,.08);
}


/* =========================================================
   CHAT COMPOSER
========================================================= */

.dana-chatbot-compose {
    display: flex;

    gap: 8px;

    padding: 10px;

    border-top: 1px solid rgba(15,23,42,.08);

    background: #fff;
}


/* =========================================================
   INPUT
========================================================= */

.dana-chatbot-input {
    flex: 1;

    min-width: 0;

    height: 44px;

    border: 1px solid #e2e8f0;

    border-radius: 14px;

    padding: 0 12px;

    outline: none;

    font-size: 12px;

    background: #f8fafc;

    color: #0f172a;

    transition:
        border-color .2s ease,
        background-color .2s ease,
        box-shadow .2s ease;
}

.dana-chatbot-input::placeholder {
    color: #94a3b8;
}

.dana-chatbot-input:focus {
    border-color: rgba(162,28,67,.45);

    background: #fff;

    box-shadow:
        0 0 0 3px rgba(162,28,67,.08);
}


/* =========================================================
   SEND BUTTON
========================================================= */

.dana-chatbot-send {
    width: 44px;
    height: 44px;

    border: 0;
    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            #a21c43,
            #861735
        );

    color: #fff;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow:
        0 7px 16px rgba(162,28,67,.15);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        opacity .2s ease;
}

.dana-chatbot-send:hover {
    transform: translateY(-1px);

    box-shadow:
        0 10px 20px rgba(162,28,67,.22);
}

.dana-chatbot-send:active {
    transform: translateY(0);
}


/* Send Icon */

.dana-chatbot-send::before {
    content: "\f1d8";

    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-weight: 900;

    font-size: 14px;
    line-height: 1;
}


/* Disabled */

.dana-chatbot-send:disabled {
    opacity: .4;

    cursor: not-allowed;

    box-shadow: none;

    transform: none;
}


/* =========================================================
   CHATBOT LINKS
========================================================= */

.dana-chatbot-link {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    margin-top: 5px;

    color: #a21c43;

    text-decoration: none;

    font-weight: 800;

    transition:
        color .2s ease,
        transform .2s ease;
}

.dana-chatbot-link:hover {
    color: #821735;

    text-decoration: underline;

    transform: translateX(-2px);
}


/* Link Arrow */

.dana-chatbot-link::after {
    content: "\f060";

    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-weight: 900;

    font-size: 9px;

    line-height: 1;
}


/* =========================================================
   SCROLLBAR
========================================================= */

.dana-chatbot-messages::-webkit-scrollbar,
.dana-chatbot-quick::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

.dana-chatbot-messages::-webkit-scrollbar-track,
.dana-chatbot-quick::-webkit-scrollbar-track {
    background: transparent;
}

.dana-chatbot-messages::-webkit-scrollbar-thumb,
.dana-chatbot-quick::-webkit-scrollbar-thumb {
    background: rgba(162,28,67,.22);
    border-radius: 999px;
}

.dana-chatbot-messages::-webkit-scrollbar-thumb:hover,
.dana-chatbot-quick::-webkit-scrollbar-thumb:hover {
    background: rgba(162,28,67,.38);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width:640px) {

    .dana-chatbot-launcher {
        inset-inline-start: 15px;

        bottom: 15px;

        width: 54px;
        height: 54px;

        border-radius: 18px;
    }

    .dana-chatbot-panel {
        inset-inline: 10px;

        bottom: 79px;

        width: auto;

        height: min(
            650px,
            calc(100vh - 95px)
        );

        border-radius: 21px;
    }

    .dana-chatbot-head {
        padding: 14px;
    }

    .dana-chatbot-messages {
        padding: 12px;
    }

    .dana-message {
        max-width: 92%;
    }
}