
/* ============================================
   BASTANI CHATR
   PREMIUM SUPPORT CENTER
   Complete Support Design
============================================ */

.support-fab,
.support-panel,
.support-panel * {
    box-sizing: border-box;
    font-family: inherit;
}

.support-fab,
.support-panel {
    direction: rtl;
}

/* ============================================
   FLOATING SUPPORT BUTTON
============================================ */

.support-fab {
    position: fixed !important;
    right: 25px !important;
    bottom: 25px !important;
    z-index: 99990 !important;

    width: 68px;
    height: 68px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 2px solid rgba(255,255,255,.7);
    border-radius: 23px;

    color: #fff;
    background: linear-gradient(140deg, #ff70a6, #a45bd5 75%);

    box-shadow:
        0 12px 35px rgba(164,91,213,.35),
        inset 0 1px 2px rgba(255,255,255,.5);

    cursor: pointer;

    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-radius .35s ease;
}

.support-fab:hover {
    transform: translateY(-6px) rotate(-5deg);
    border-radius: 19px;
    box-shadow: 0 18px 42px rgba(164,91,213,.5);
}

.support-fab-icon {
    position: relative;
    z-index: 2;
    font-size: 30px;
    line-height: 1;
}

.support-fab-pulse {
    position: absolute;
    inset: -6px;

    border: 2px solid #d98cc9;
    border-radius: 26px;

    animation: supportPulse 2.4s infinite;
    pointer-events: none;
}

@keyframes supportPulse {
    0% {
        transform: scale(.9);
        opacity: .7;
    }

    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

.support-fab-tooltip {
    position: absolute;
    right: 80px;

    padding: 10px 15px;

    color: #fff;
    background: #282033;

    border-radius: 11px;

    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;

    opacity: 0;
    transform: translateX(10px);

    pointer-events: none;
    transition: .25s ease;
}

.support-fab:hover .support-fab-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   MAIN SUPPORT PANEL
============================================ */

.support-panel {
    position: fixed !important;

    right: 25px !important;
    bottom: 108px !important;

    z-index: 99989 !important;

    width: 410px;
    max-width: calc(100vw - 30px);

    max-height: calc(100dvh - 130px);

    padding: 0;

    overflow-x: hidden;
    overflow-y: auto;

    color: #fff;
    background: #171323;

    border: 1px solid rgba(255,255,255,.1);
    border-radius: 27px;

    box-shadow:
        0 30px 90px rgba(20,10,35,.45),
        0 0 50px rgba(174,85,201,.13);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(25px) scale(.94);
    transform-origin: bottom right;

    transition:
        opacity .35s ease,
        transform .4s cubic-bezier(.2,.8,.2,1),
        visibility .35s ease;

    scrollbar-width: thin;
    scrollbar-color: #8050a4 #211a2c;
}

.support-panel.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateY(0) scale(1);
}

.support-panel::-webkit-scrollbar {
    width: 5px;
}

.support-panel::-webkit-scrollbar-thumb {
    background: #8050a4;
    border-radius: 10px;
}

.support-panel::-webkit-scrollbar-track {
    background: #211a2c;
}

/* ============================================
   HERO BACKGROUND
============================================ */

.support-panel-glow {
    position: absolute;

    top: 130px;
    left: -100px;

    width: 220px;
    height: 220px;

    background: #a34cce;
    filter: blur(110px);
    opacity: .18;

    pointer-events: none;
}

/* ============================================
   HEADER
============================================ */

.support-hero {
    position: relative;
    overflow: hidden;

    padding: 22px 21px 18px;

    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(255,255,255,.18),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #663b91,
            #a44fbd 55%,
            #e76d9d
        );

    border-radius: 26px 26px 0 0;
}

.support-hero::after {
    content: "";

    position: absolute;

    width: 190px;
    height: 190px;

    left: -75px;
    bottom: -125px;

    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;

    box-shadow:
        0 0 0 20px rgba(255,255,255,.035),
        0 0 0 40px rgba(255,255,255,.025);

    pointer-events: none;
}

.support-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.support-brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.support-brand-icon {
    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    background: rgba(255,255,255,.19);
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 15px;

    font-size: 25px;

    backdrop-filter: blur(10px);
}

.support-brand-name,
.support-brand-subtitle {
    display: block;
}

.support-brand-name {
    color: #fff;
    font-size: 15px;
    font-weight: 900;
}

.support-brand-subtitle {
    margin-top: 4px;
    color: rgba(255,255,255,.8);
    font-size: 10px;
}

.support-close {
    width: 37px;
    height: 37px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255,255,255,.25);
    border-radius: 12px;

    color: white;
    background: rgba(255,255,255,.15);

    font-size: 25px;
    line-height: 1;

    cursor: pointer;
    transition: .25s ease;
}

.support-close:hover {
    color: #873c83;
    background: white;
    transform: rotate(90deg);
}

/* ============================================
   HERO CONTENT
============================================ */

.support-hero-content {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    gap: 14px;

    margin-top: 25px;
}

.support-headset {
    width: 59px;
    height: 59px;
    min-width: 59px;

    display: grid;
    place-items: center;

    background: rgba(255,255,255,.17);
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 19px;

    font-size: 30px;
}

.support-hero-content h3 {
    margin: 0 0 7px;

    color: #fff;
    font-size: 16px;
    font-weight: 900;
}

.support-hero-content p {
    margin: 0;

    color: rgba(255,255,255,.82);

    font-size: 11px;
    line-height: 1.9;
}

/* ============================================
   WORKING HOURS
============================================ */

.support-status {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    gap: 8px;

    margin-top: 20px;
    padding: 12px;

    border: 1px solid rgba(255,255,255,.18);
    border-radius: 13px;

    background: rgba(255,255,255,.12);
    backdrop-filter: blur(12px);

    color: #fff;
    font-size: 11px;
}

.support-status-dot {
    width: 9px;
    height: 9px;
    min-width: 9px;

    border-radius: 50%;

    background: #8bffbb;
    box-shadow: 0 0 12px #8bffbb;
}

.support-status strong {
    margin-right: auto;
    color: white;
    font-size: 11px;
}

/* ============================================
   CONTENT
============================================ */

.support-content {
    position: relative;
    z-index: 1;

    padding: 20px 18px 15px;
}

.support-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 14px;
}

.support-section-eyebrow {
    display: block;
    margin-bottom: 5px;

    color: #b78ad8;

    font-size: 8px;
    font-weight: 900;
    letter-spacing: 2px;
}

.support-section-heading h4 {
    margin: 0;

    color: #fff;

    font-size: 15px;
    font-weight: 900;
}

.support-heading-icon {
    width: 35px;
    height: 35px;

    display: grid;
    place-items: center;

    border-radius: 12px;
    background: #30243e;

    color: #e8a4d1;
    font-size: 17px;
}

/* ============================================
   SOCIAL CARDS
============================================ */

.support-social-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.support-social-card {
    position: relative;

    min-width: 0;

    display: flex;
    align-items: center;
    gap: 9px;

    padding: 13px 10px;

    border: 1px solid rgba(255,255,255,.07);
    border-radius: 16px;

    background: #241c31;
    color: white;

    text-decoration: none !important;

    transition:
        transform .25s ease,
        border-color .25s ease,
        background .25s ease,
        box-shadow .25s ease;
}

.support-social-card:hover {
    transform: translateY(-4px);

    background: #30243e;
    border-color: rgba(225,151,220,.45);

    box-shadow: 0 9px 25px rgba(0,0,0,.2);
}

.support-social-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;

    display: grid;
    place-items: center;

    border-radius: 13px;
    font-size: 20px;
}

.instagram-card .support-social-icon {
    background: linear-gradient(135deg, #7339a8, #e94f91, #f5a34b);
}

.telegram-card .support-social-icon {
    background: linear-gradient(135deg, #1689c8, #55c3ed);
}

.whatsapp-card .support-social-icon {
    background: linear-gradient(135deg, #139d65, #52d69b);
}

.phone-card .support-social-icon {
    background: linear-gradient(135deg, #d78b35, #f3c66d);
}

.support-social-info {
    min-width: 0;
    display: block;
}

.support-social-info strong,
.support-social-info small {
    display: block;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.support-social-info strong {
    color: white;
    font-size: 11px;
    font-weight: 900;
}

.support-social-info small {
    margin-top: 5px;

    color: #b9aabe;
    font-size: 9px;
}

.support-card-arrow {
    position: absolute;
    top: 8px;
    left: 8px;

    color: #bda3ca;
    font-size: 13px;

    transition: .25s ease;
}

.support-social-card:hover .support-card-arrow {
    color: white;
    transform: translate(2px,-2px);
}

/* ============================================
   BRANCHES
============================================ */

.support-branch-heading {
    margin-top: 25px;
}

.support-branch-card {
    margin-top: 11px;
    padding: 15px;

    border: 1px solid rgba(255,255,255,.08);
    border-radius: 17px;

    background:
        linear-gradient(
            145deg,
            #292035,
            #211a2d
        );

    transition:
        transform .25s ease,
        border-color .25s ease;
}

.support-branch-card:hover {
    transform: translateY(-3px);
    border-color: rgba(200,139,218,.4);
}

.support-branch-top {
    display: flex;
    align-items: center;
    gap: 11px;
}

.support-branch-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;

    display: grid;
    place-items: center;

    border-radius: 13px;

    background: linear-gradient(135deg, #75459b, #b55baf);

    font-size: 21px;
}

.support-branch-title {
    min-width: 0;
    flex: 1;
}

.support-branch-title strong {
    display: block;

    color: white;
    font-size: 12px;
    font-weight: 900;
}

.support-branch-title span {
    display: block;

    margin-top: 5px;

    color: #bbaac6;
    font-size: 10px;
}

.support-branch-number {
    color: rgba(255,255,255,.15);

    font-size: 25px;
    font-weight: 900;
}

.support-branch-address {
    display: flex;
    align-items: flex-start;
    gap: 8px;

    margin-top: 13px;
    padding: 10px;

    border-radius: 11px;

    background: rgba(255,255,255,.045);
}

.support-branch-address > span {
    font-size: 16px;
}

.support-branch-address p {
    margin: 0;

    color: #d2c4d9;

    font-size: 10px;
    line-height: 2;
}

.support-branch-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;

    margin-top: 12px;
}

.support-branch-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 10px 5px;

    border-radius: 10px;

    background: #3a2946;
    color: #fff;

    font-size: 10px;
    font-weight: 800;

    text-decoration: none !important;

    transition: .25s ease;
}

.support-branch-actions a:hover {
    background: #a052b4;
    transform: translateY(-2px);
}

.support-branch-actions a span {
    font-size: 15px;
}

/* ============================================
   BOTTOM SIGNATURE
============================================ */

.support-footer-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-top: 20px;
    padding: 13px 8px;

    border-top: 1px solid rgba(255,255,255,.08);

    color: #c8b1d2;
    font-size: 10px;
    font-weight: 700;
}

.support-footer-note span:first-child {
    font-size: 16px;
}

.support-footer-note span:last-child {
    color: #ff80ae;
}

/* ============================================
   DARK MODE
============================================ */

.dark-mode .support-panel {
    background: #171323;
    color: white;
}

.dark-mode .support-social-card {
    background: #241c31;
    color: white;
}

.dark-mode .support-branch-card {
    background: linear-gradient(145deg,#292035,#211a2d);
}

/* ============================================
   RESPONSIVE
============================================ */

@media (max-width: 600px) {

    .support-fab {
        right: 15px !important;
        bottom: 15px !important;

        width: 58px;
        height: 58px;

        border-radius: 20px;
    }

    .support-fab-icon {
        font-size: 26px;
    }

    .support-fab-tooltip {
        display: none;
    }

    .support-panel {
        right: 12px !important;
        bottom: 84px !important;

        width: calc(100vw - 24px);
        max-width: none;

        max-height: calc(100dvh - 100px);

        border-radius: 22px;
    }

    .support-hero {
        padding: 18px 15px 15px;
        border-radius: 21px 21px 0 0;
    }

    .support-content {
        padding: 17px 13px 13px;
    }

    .support-social-grid {
        gap: 8px;
    }

    .support-social-card {
        padding: 11px 8px;
    }

    .support-social-icon {
        width: 35px;
        height: 35px;
        min-width: 35px;
        font-size: 17px;
    }

    .support-social-info strong {
        font-size: 10px;
    }

    .support-social-info small {
        font-size: 8px;
    }

}

@media (max-width: 350px) {

    .support-social-grid {
        grid-template-columns: 1fr;
    }

    .support-hero-content h3 {
        font-size: 14px;
    }

}

/* کاهش انیمیشن برای تنظیمات دسترس‌پذیری */

@media (prefers-reduced-motion: reduce) {
    .support-panel,
    .support-fab,
    .support-social-card,
    .support-branch-card {
        animation: none !important;
        transition: none !important;
    }

    .support-fab-pulse {
        animation: none !important;
    }
}
