/* =============================================
   HEADER KULLANICI MENÜSÜ
   ============================================= */

body.user-menu-open .site-header,
body.user-menu-open .header-main,
body.user-menu-open .header-main__inner,
body.user-menu-open .header-main__actions,
body.user-menu-open .hero__inner {
    overflow: visible;
}

.header-main__actions {
    overflow: visible;
}

.header-user-menu {
    position: relative;
    overflow: visible;
}

.header-user-menu__trigger {
    border: none;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.header-user-menu__chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-left: 0.15rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.7rem;
    transition: transform 0.25s ease;
}

.header-user-menu.is-open .header-user-menu__chevron {
    transform: rotate(180deg);
}

.header-user-menu__panel {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    z-index: 1300;
    display: block;
    min-width: 16rem;
    padding: 0.35rem 0 0.5rem;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e8edf5;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.16);
    color: #0f172a;
}

.header-user-menu__panel[hidden] {
    display: none !important;
}

.header-user-menu__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.header-user-menu__item {
    border-bottom: 1px solid #f1f5f9;
}

.header-user-menu__item:last-child {
    border-bottom: none;
}

.header-user-menu__link,
.header-user-menu__logout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.82rem 1rem;
    color: #0f172a !important;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.header-user-menu__label {
    color: inherit;
}

.header-user-menu__link:hover {
    background: #f8fafc;
    color: #0f172a !important;
}

.header-user-menu__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    color: #64748b !important;
    font-size: 0.95rem;
}

.header-user-menu__logout {
    border-top: 1px solid #f1f5f9;
    color: #b91c1c !important;
}

.header-user-menu__logout .header-user-menu__icon {
    color: #b91c1c !important;
}

.header-user-menu__logout:hover {
    background: #fef2f2;
    color: #991b1b !important;
}

.header-user-menu__topup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin: 0.55rem 0.75rem 0.35rem;
    min-height: 42px;
    padding: 0.65rem 0.9rem;
    border-radius: 10px;
    background: #dcfce7 !important;
    color: #15803d !important;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.header-user-menu__topup:hover {
    background: #bbf7d0 !important;
    color: #14532d !important;
    transform: translateY(-1px);
}

.header-user-menu__topup i {
    color: #15803d !important;
}

/* Mobil menü içi */
.header-user-menu--mobile {
    width: 100%;
}

.header-user-menu--mobile .header-user-menu__trigger {
    width: 100%;
}

.header-user-menu--mobile .header-user-menu__panel {
    position: static;
    width: 100%;
    margin-top: 0.55rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}
