
/* Floating Support Widget */
.support-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999999;
    font-family: Inter, Arial, sans-serif;
}

/* Medium Floating Button With Soft Glow */
.support-button {
    position: relative;
    width: 58px;
    height: 58px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #0f172a);
    color: #ffffff;
    font-size: 25px;
    cursor: pointer;
    box-shadow:
        0 0 0 8px rgba(37, 99, 235, 0.10),
        0 10px 28px rgba(37, 99, 235, 0.35),
        0 0 26px rgba(37, 99, 235, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s ease;
    overflow: visible;
    outline: none;
}

/* Soft Default Glow Behind Button */
.support-button::before {
    content: "";
    position: absolute;
    inset: -9px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.28), transparent 68%);
    animation: supportSoftGlow 2.4s ease-in-out infinite;
    z-index: -1;
}

.support-button:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow:
        0 0 0 9px rgba(37, 99, 235, 0.12),
        0 14px 34px rgba(37, 99, 235, 0.42),
        0 0 32px rgba(37, 99, 235, 0.34);
}

.support-button.active {
    background: linear-gradient(135deg, #0f172a, #020617);
    transform: rotate(180deg);
}

.support-open-icon {
    line-height: 1;
}

.support-close-icon {
    display: none;
    font-size: 34px;
    line-height: 1;
    font-weight: 300;
}

.support-button.active .support-open-icon {
    display: none;
}

.support-button.active .support-close-icon {
    display: block;
}

/* Popup Box */
.support-popup {
    width: 335px;
    position: absolute;
    bottom: 80px;
    right: 0;
    padding: 16px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(248,250,252,0.97));
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow:
        0 22px 55px rgba(15, 23, 42, 0.22),
        0 0 35px rgba(37, 99, 235, 0.10),
        inset 0 1px 0 rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(20px) scale(0.94);
    transform-origin: bottom right;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.support-popup.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* Header */
.support-header {
    position: relative;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.65), transparent 38%),
        linear-gradient(135deg, #0f172a, #1e293b 55%, #2563eb);
    color: #ffffff;
    border-radius: 20px;
    padding: 22px 16px;
    margin-bottom: 14px;
}

.support-header::before {
    content: "";
    position: absolute;
    width: 135px;
    height: 135px;
    right: -60px;
    top: -60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
}

.support-header::after {
    content: "";
    position: absolute;
    width: 95px;
    height: 95px;
    left: -40px;
    bottom: -48px;
    border-radius: 50%;
    background: rgba(37,99,235,0.32);
}

.support-head-icon {
    position: relative;
    z-index: 1;
    width: 46px;
    height: 46px;
    margin: 0 auto 10px;
    border-radius: 15px;
    background: rgba(255,255,255,0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
}

.support-header span,
.support-header h2,
.support-header p {
    position: relative;
    z-index: 1;
}

.support-header span {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #bfdbfe;
    margin-bottom: 6px;
}

.support-header h2 {
    margin: 0 0 7px;
    font-size: 25px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.15;
}

.support-header p {
    margin: 0 auto;
    max-width: 245px;
    color: #dbeafe;
    font-size: 13px;
    line-height: 1.5;
}

/* Options */
.support-options {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.support-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    text-decoration: none !important;
    color: #0f172a;
    background: #ffffff;
    transition: all 0.28s ease;
    overflow: hidden;
}

.support-item::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: 0.28s ease;
}

.support-item:hover {
    transform: translateY(-2px);
    border-color: transparent;
    box-shadow: 0 13px 28px rgba(15, 23, 42, 0.11);
    color: #0f172a;
}

.support-item:hover::before {
    opacity: 1;
}

.support-item.whatsapp::before {
    background: linear-gradient(135deg, rgba(34,197,94,0.13), rgba(255,255,255,0));
}

.support-item.telegram::before {
    background: linear-gradient(135deg, rgba(14,165,233,0.14), rgba(255,255,255,0));
}

.support-item.ticket::before {
    background: linear-gradient(135deg, rgba(37,99,235,0.14), rgba(255,255,255,0));
}

.support-icon-box {
    position: relative;
    z-index: 1;
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 14px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px #eef2f7;
}

.support-icon-box img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.ticket-box {
    font-size: 23px;
}

.support-text {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.support-item strong {
    font-size: 14px;
    font-weight: 850;
    color: #0f172a;
}

.support-item small {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.support-arrow {
    position: relative;
    z-index: 1;
    margin-left: auto;
    font-size: 26px;
    font-weight: 300;
    color: #94a3b8;
    transition: all 0.28s ease;
}

.support-item:hover .support-arrow {
    transform: translateX(4px);
    color: #2563eb;
}

/* Footer */
.support-footer {
    margin-top: 13px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 13px;
    padding: 9px;
}

/* Soft Glow Animation */
@keyframes supportSoftGlow {
    0% {
        opacity: 0.55;
        transform: scale(0.95);
    }
    50% {
        opacity: 0.95;
        transform: scale(1.08);
    }
    100% {
        opacity: 0.55;
        transform: scale(0.95);
    }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .support-widget {
        right: 14px;
        bottom: 14px;
    }

    .support-button {
        width: 54px;
        height: 54px;
        font-size: 23px;
    }

    .support-button::before {
        inset: -7px;
    }

    .support-close-icon {
        font-size: 32px;
    }

    .support-popup {
        width: calc(100vw - 28px);
        max-width: 330px;
        right: 0;
        bottom: 72px;
        padding: 14px;
        border-radius: 22px;
    }

    .support-header {
        padding: 20px 14px;
        border-radius: 19px;
    }

    .support-header h2 {
        font-size: 23px;
    }

    .support-header p {
        font-size: 13px;
    }

    .support-item {
        padding: 12px;
        border-radius: 15px;
    }

    .support-icon-box {
        width: 40px;
        height: 40px;
        min-width: 40px;
        border-radius: 13px;
    }

    .support-icon-box img {
        width: 24px;
        height: 24px;
    }
}