#darya-support-root,
#darya-support-root * {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

#darya-support-root {
    --ds-bottom-effective: var(--ds-bottom-desktop);
    position: fixed !important;
    top: auto !important;
    bottom: var(--ds-bottom-effective) !important;
    z-index: var(--ds-z);
    margin: 0 !important;
    direction: rtl;
    font-family: inherit;
    pointer-events: none;
    transition: none !important;
}

#darya-support-root.ds-side-right {
    right: var(--ds-side-desktop) !important;
    left: auto !important;
}
#darya-support-root.ds-side-left {
    left: var(--ds-side-desktop) !important;
    right: auto !important;
}

#darya-support-overlay {
    position: fixed;
    inset: 0;
    background: rgba(28, 25, 23, 0.12);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    backdrop-filter: blur(16px) saturate(130%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 220ms ease, visibility 220ms ease;
}

#darya-support-root.ds-open + #darya-support-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ds-launcher-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    pointer-events: auto;
}
.ds-side-right .ds-launcher-row { flex-direction: row-reverse; }
.ds-side-left .ds-launcher-row { flex-direction: row; }

.ds-launcher-text {
    padding: 10px 18px;
    border: 1px solid rgba(255,255,255,.50);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255,255,255,.75), rgba(255,250,245,.65));
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
    box-shadow: 0 8px 24px rgba(28,25,23,.08), 0 0 0 1px rgba(255,255,255,.60) inset;
    color: #1c1917;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 180ms ease, transform 180ms ease;
}
.ds-side-right .ds-launcher-text { transform: translateX(10px); }
.ds-side-left .ds-launcher-text { transform: translateX(-10px); }
@media (hover:hover) {
    .ds-launcher-row:hover .ds-launcher-text { opacity: 1; transform: translateX(0); }
}

.ds-launcher-shell {
    position: relative;
    width: var(--ds-launcher);
    height: var(--ds-launcher);
    display: grid;
    place-items: center;
}

.ds-launcher {
    -webkit-appearance: none !important;
    appearance: none !important;
    position: relative;
    z-index: 2;
    flex: 0 0 var(--ds-launcher);
    width: var(--ds-launcher) !important;
    min-width: var(--ds-launcher) !important;
    max-width: var(--ds-launcher) !important;
    height: var(--ds-launcher) !important;
    min-height: var(--ds-launcher) !important;
    max-height: var(--ds-launcher) !important;
    aspect-ratio: 1 / 1;
    display: grid !important;
    place-items: center;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid rgba(255,255,255,.42) !important;
    border-radius: 999px !important;
    clip-path: circle(50% at 50% 50%);
    line-height: 1 !important;
    color: #fff !important;
    cursor: pointer;
    outline: none;
    pointer-events: auto !important;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
    background: linear-gradient(
        145deg,
        #FF4B18 0%,
        var(--ds-c1) 52%,
        var(--ds-c2) 100%
    ) !important;
    background-clip: padding-box !important;
    box-shadow:
        0 7px 18px rgba(248,54,0,.24),
        inset 0 1px 0 rgba(255,255,255,.35),
        inset 0 -1px 0 rgba(0,0,0,.10) !important;
    isolation: isolate;
    transition: transform 180ms cubic-bezier(.34,1.3,.64,1), box-shadow 180ms ease;
}
.ds-launcher::before {
    content: none !important;
}
.ds-launcher::after {
    content: none !important;
}
@media (hover:hover) {
    .ds-launcher:hover {
        transform: scale(1.10);
        box-shadow:
            0 8px 22px rgba(248,54,0,.26),
            inset 0 1px 0 rgba(255,255,255,.38),
            inset 0 -1px 0 rgba(0,0,0,.10);
    }
}
.ds-launcher:active { transform: scale(.95); }
.ds-launcher:focus-visible { outline: 2px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 4px var(--ds-c1); }

.ds-launcher svg {
    width: 26px;
    height: 26px;
    display: block;
    position: relative;
    z-index: 3;
    color: #fff !important;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.10));
}

.ds-icon-open,
.ds-icon-close {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    transition: opacity 190ms cubic-bezier(.34,1.3,.64,1), transform 190ms cubic-bezier(.34,1.3,.64,1);
}
.ds-icon-open { opacity: 1; transform: rotate(0) scale(1); }
.ds-icon-close { opacity: 0; transform: rotate(-45deg) scale(.55); }
#darya-support-root.ds-open .ds-icon-open { opacity: 0; transform: rotate(35deg) scale(.58); }
#darya-support-root.ds-open .ds-icon-close { opacity: 1; transform: rotate(0) scale(1); }

.ds-pulse {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--ds-c1);
    opacity: .50;
    pointer-events: none;
    animation: ds-pulse 2.8s cubic-bezier(.4,0,.2,1) infinite;
}
.ds-pulse::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid var(--ds-c2);
    opacity: .35;
    animation: ds-pulse 2.8s .7s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes ds-pulse {
    0% { transform: scale(.9); opacity: .5; }
    60% { opacity: 0; }
    100% { transform: scale(1.5); opacity: 0; }
}

.ds-panel {
    position: absolute;
    bottom: calc(var(--ds-launcher) + 20px);
    width: min(420px, calc(100vw - 56px));
    max-height: min(560px, calc(100vh - 140px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1.5px solid rgba(255,255,255,.80);
    border-radius: 36px;
    background: linear-gradient(180deg, rgba(255,255,255,.78) 0%, rgba(255,250,245,.72) 50%, rgba(250,246,241,.76) 100%);
    -webkit-backdrop-filter: blur(50px) saturate(190%);
    backdrop-filter: blur(50px) saturate(190%);
    box-shadow: 0 32px 64px rgba(28,25,23,.12), 0 0 0 1px rgba(255,255,255,.55) inset, 0 1px 0 rgba(255,255,255,.90) inset, inset 0 0 80px rgba(255,255,255,.25);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(22px) scale(.94);
    transition: opacity 220ms cubic-bezier(.34,1.2,.64,1), transform 240ms cubic-bezier(.34,1.2,.64,1), visibility 220ms;
}
.ds-side-right .ds-panel { right: 0; transform-origin: right bottom; }
.ds-side-left .ds-panel { left: 0; transform-origin: left bottom; }
#darya-support-root.ds-open .ds-panel { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0) scale(1); }

.ds-panel-head {
    position: relative;
    padding: 28px 28px 20px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.ds-panel-head::after {
    content: "";
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 48px;
    height: 3px;
    border-radius: 2px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--ds-c1), transparent);
    opacity: .25;
}
.ds-panel-head h2 {
    margin: 0 0 6px;
    font: inherit;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.4;
    color: #1c1917;
    background: linear-gradient(135deg, var(--ds-c1), var(--ds-c2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.ds-panel-head p { margin: 0; font-size: 13.5px; line-height: 1.6; color: #78716c; }

.ds-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 16px 20px;
    scrollbar-width: thin;
    scrollbar-color: rgba(246,54,0,.12) transparent;
}
.ds-panel-body::-webkit-scrollbar { width: 5px; }
.ds-panel-body::-webkit-scrollbar-thumb { background: rgba(246,54,0,.15); border-radius: 10px; }

.ds-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 72px;
    padding: 14px 16px;
    margin-bottom: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.65);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255,255,255,.70), rgba(255,250,245,.55));
    box-shadow: 0 3px 12px rgba(28,25,23,.03), 0 0 0 1px rgba(255,255,255,.50) inset;
    color: #1c1917;
    text-decoration: none;
    transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
@media (hover:hover) {
    .ds-item:hover {
        transform: translateY(-2px);
        background: linear-gradient(135deg, rgba(255,255,255,.90), rgba(255,250,245,.75));
        border-color: rgba(246,54,0,.15);
        box-shadow: 0 10px 26px rgba(246,54,0,.07), 0 0 0 1px rgba(246,54,0,.08) inset;
    }
}
.ds-item:active { transform: scale(.99); }
.ds-item:focus-visible { outline: 2px solid var(--ds-c1); outline-offset: 2px; }

.ds-item-icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--ds-item-color), var(--ds-item-color-deep));
    box-shadow: 0 4px 14px rgba(0,0,0,.10), 0 0 0 1px rgba(255,255,255,.30) inset;
}
.ds-item-icon svg { width: 22px; height: 22px; display: block; }
.ds-item-copy { flex: 1; min-width: 0; max-width: 100%; overflow: hidden; display: block; }
.ds-item-label-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.ds-item-label { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 800; line-height: 1.3; }
.ds-item-desc {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    margin-top: 2px;
    overflow: hidden;
    white-space: nowrap;
    font-size: 12px;
    line-height: 1.5;
    color: #78716c;
}
.ds-desc-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ds-agent-separator {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    display: inline-block;
    align-self: center;
    border-radius: 50%;
    background: #78716c;
    opacity: .90;
}
.ds-agent {
    display: inline-flex;
    align-items: center;
    color: var(--ds-c1);
    font-weight: 800;
    line-height: 1.5;
    white-space: nowrap;
}
.ds-item-arrow { flex: 0 0 28px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: #78716c; opacity: .35; }
.ds-item-arrow svg { width: 16px; height: 16px; display: block; }
.ds-side-left .ds-item-arrow { transform: scaleX(-1); }

.ds-status {
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 9px;
    border-radius: 20px;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1;
}
.ds-status.is-online { background: rgba(37,211,102,.12); color: #128c7e; border: 1px solid rgba(37,211,102,.25); }
.ds-status.is-offline { background: rgba(239,68,68,.08); color: #dc2626; border: 1px solid rgba(239,68,68,.18); }
.ds-status-dot { width: 6px; height: 6px; display: block; flex-shrink: 0; border-radius: 50%; background: currentColor; }
.ds-status.is-online .ds-status-dot { background: #25d366; box-shadow: 0 0 6px rgba(37,211,102,.50); }
.ds-status.is-offline .ds-status-dot { background: #ef4444; }

.ds-panel-foot {
    padding: 12px 20px;
    flex-shrink: 0;
    border-top: 1px solid rgba(0,0,0,.035);
    background: rgba(255,255,255,.30);
    text-align: center;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.5;
}

@media (max-width: 767px) {
    #darya-support-root {
        --ds-bottom-effective: var(--ds-bottom-mobile);
        bottom: var(--ds-bottom-mobile) !important;
        transition: none !important;
    }
    #darya-support-root.ds-side-right {
        right: var(--ds-side-mobile) !important;
        left: auto !important;
    }
    #darya-support-root.ds-side-left {
        left: var(--ds-side-mobile) !important;
        right: auto !important;
    }
    .ds-panel { width: calc(100vw - 32px); max-height: calc(100dvh - 120px); bottom: calc(var(--ds-launcher) + 16px); border-radius: 28px; }
    .ds-panel-head { padding: 22px 20px 16px; }
    .ds-panel-head h2 { font-size: 18px; }
    .ds-panel-head p { font-size: 12.5px; }
    .ds-panel-body { padding: 6px 12px 16px; }
    .ds-item { min-height: 64px; padding: 12px 14px; border-radius: 18px; }
    .ds-item-icon { flex-basis: 40px; width: 40px; height: 40px; border-radius: 13px; }
    .ds-item-icon svg { width: 19px; height: 19px; }
    .ds-status { height: 18px; padding: 0 7px; font-size: 9.5px; }
    .ds-launcher-text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    #darya-support-root,
    #darya-support-root *,
    #darya-support-overlay { animation: none !important; transition-duration: .01ms !important; }
}
