/* ==============================================================================
 * S&R CoreSync - Header Support Tools Dropdown (Enterprise Emerald Dark Luxury)
 * ============================================================================== */

.header-support-dropdown-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.btn-support-tools-header {
    background: rgba(16, 185, 129, 0.12) !important;
    border: 1px solid rgba(16, 185, 129, 0.45) !important;
    color: #a7f3d0 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    padding: 7px 14px !important;
    border-radius: 20px !important;
    font-size: 0.82rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer !important;
    font-family: inherit !important;
    line-height: 1 !important;
}

.btn-support-tools-header:hover,
.header-support-dropdown-wrap.is-active .btn-support-tools-header {
    background: rgba(16, 185, 129, 0.25) !important;
    border-color: #34d399 !important;
    color: #ffffff !important;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.45) !important;
    transform: translateY(-1px);
}

.btn-support-tools-header .support-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    display: inline-block;
    flex-shrink: 0;
    animation: srSupportPulse 2s infinite ease-in-out;
}

@keyframes srSupportPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.35;
        transform: scale(0.85);
    }
}

.btn-support-tools-header .dropdown-chevron {
    transition: transform 0.25s ease;
    opacity: 0.8;
}

.header-support-dropdown-wrap.is-active .dropdown-chevron {
    transform: rotate(180deg);
}

/* Dropdown Menu Overlay & Paper - Emerald Sovereign Luxe */
.header-support-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0 !important;
    right: auto !important;
    width: 325px;
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 85px);
    overflow-y: auto;
    background: rgba(6, 20, 16, 0.98) !important;
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(16, 185, 129, 0.45) !important;
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.85), 0 0 25px rgba(16, 185, 129, 0.25) !important;
    z-index: 9999999 !important;
    display: none;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    direction: rtl;
    text-align: right;
}

html[dir="ltr"] .header-support-menu {
    left: auto !important;
    right: 0 !important;
    direction: ltr;
    text-align: left;
}

.header-support-dropdown-wrap.is-active .header-support-menu {
    display: flex;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.support-menu-header {
    padding: 8px 12px 6px;
    border-bottom: 1px solid rgba(16, 185, 129, 0.22) !important;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.support-menu-header span {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #34d399 !important;
    text-transform: uppercase;
}

.support-menu-header .support-badge {
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.18) !important;
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
    color: #6ee7b7 !important;
}

.support-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(16, 185, 129, 0.06) !important;
    border: 1px solid rgba(16, 185, 129, 0.18) !important;
    border-radius: 12px;
    color: #ecfdf5 !important;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    font-family: inherit;
    box-sizing: border-box;
}

.support-menu-item:hover {
    background: rgba(16, 185, 129, 0.22) !important;
    border-color: #34d399 !important;
    transform: translateX(-3px);
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.35) !important;
}

html[dir="ltr"] .support-menu-item:hover {
    transform: translateX(3px);
}

.support-menu-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.18) !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #34d399 !important;
    transition: all 0.2s ease;
}

.support-menu-item:hover .support-menu-icon {
    background: rgba(16, 185, 129, 0.38) !important;
    border-color: #6ee7b7 !important;
    color: #ffffff !important;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.5) !important;
}

.support-menu-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-grow: 1;
}

.support-menu-text strong {
    font-size: 0.85rem;
    font-weight: 700;
    color: #a7f3d0 !important;
    line-height: 1.3;
}

.support-menu-item:hover .support-menu-text strong {
    color: #ffffff !important;
}

.support-menu-text span {
    font-size: 0.72rem;
    color: #9ca3af !important;
    line-height: 1.3;
}

.support-menu-item:hover .support-menu-text span {
    color: #d1fae5 !important;
}

@media (max-width: 768px) {
    .btn-support-tools-header span {
        display: none;
    }
    .btn-support-tools-header {
        padding: 7px 10px !important;
    }
    .header-support-menu {
        width: 285px;
        left: 0 !important;
        right: auto !important;
    }
    html[dir="ltr"] .header-support-menu {
        left: auto !important;
        right: 0 !important;
    }
}
