/* v4 — header actions + bakiye binlik format (deploy-marker: yon-header-glass-v4) */

.yon-shell.yon-shell--yon.yon-shell--header-corp {
    --yh-glass-header: rgba(37, 39, 58, 0.82);
    --yh-glass-nav: rgba(50, 52, 72, 0.72);
    --yh-glass-header-scrolled: rgba(37, 39, 58, 0.92);
    --yh-glass-nav-scrolled: rgba(50, 52, 72, 0.84);
    --yh-glass-blur: blur(10px);
    --yh-balance-green: #28a745;
    --yh-balance-green-dark: #1e9e47;
    --yh-strip-bg: rgba(255, 255, 255, 0.05);
    --yh-strip-line: rgba(255, 255, 255, 0.11);
    --yh-strip-icon: 40px;
    --yh-strip-bar: 52px;
    --yn-hdr-balance-w: max-content;
}

/* Shell — cam katman */
.yon-shell.yon-shell--yon.yon-shell--header-corp .yon-shell__core {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}

.yon-shell.yon-shell--yon.yon-shell--header-corp.is-scrolled .yon-shell__core,
.yon-shell.yon-shell--yon.yon-shell--header-corp .yon-shell__core.is-scrolled {
    background: transparent !important;
    box-shadow: none !important;
}

/* Ana header */
.yon-shell.yon-shell--yon.yon-shell--header-corp .yon-site-header.yon-site-header--corp {
    background: var(--yh-glass-header) !important;
    backdrop-filter: var(--yh-glass-blur) saturate(160%) !important;
    -webkit-backdrop-filter: var(--yh-glass-blur) saturate(160%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.yon-shell.yon-shell--yon.yon-shell--header-corp.is-scrolled .yon-site-header.yon-site-header--corp,
.yon-shell.yon-shell--yon.yon-shell--header-corp .yon-shell__core.is-scrolled .yon-site-header.yon-site-header--corp {
    background: var(--yh-glass-header-scrolled) !important;
}

.yon-shell.yon-shell--yon.yon-shell--header-corp .yon-site-header.yon-site-header--corp::after {
    opacity: 0.35 !important;
}

/* Nav şeridi */
.yon-shell.yon-shell--yon.yon-shell--header-corp .yon-site-nav.yon-site-nav--yon {
    background: var(--yh-glass-nav) !important;
    backdrop-filter: var(--yh-glass-blur) saturate(160%) !important;
    -webkit-backdrop-filter: var(--yh-glass-blur) saturate(160%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.04) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: none !important;
}

.yon-shell.yon-shell--yon.yon-shell--header-corp.is-scrolled .yon-site-nav.yon-site-nav--yon,
.yon-shell.yon-shell--yon.yon-shell--header-corp .yon-shell__core.is-scrolled .yon-site-nav.yon-site-nav--yon {
    background: var(--yh-glass-nav-scrolled) !important;
}

/* —— Header actions —— */
.yon-shell.yon-shell--yon.yon-shell--header-corp .yon-site-header__actions.yon-site-header__actions--corp {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
    flex-shrink: 0 !important;
    min-width: 0 !important;
    padding-left: 8px !important;
}

.yon-shell.yon-shell--yon.yon-shell--header-corp .yon-site-header__actions--corp .yon-auth-trigger--corp {
    min-height: 46px !important;
    padding: 0 14px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    transition: background 0.14s ease, border-color 0.14s ease, transform 0.14s ease !important;
}

.yon-shell.yon-shell--yon.yon-shell--header-corp .yon-site-header__actions--corp .yon-auth-trigger--corp:hover {
    background: rgba(102, 122, 250, 0.14) !important;
    border-color: rgba(102, 122, 250, 0.35) !important;
}

/* —— User strip —— */
.yon-shell.yon-shell--yon.yon-shell--header-corp .yon-header-user-strip {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
    flex-shrink: 0 !important;
}

/* Bakiye hücresi */
.yon-shell.yon-shell--yon.yon-shell--header-corp .yon-header-balance-cell {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: calc(var(--yh-strip-bar) + 10px) !important;
    min-height: calc(var(--yh-strip-bar) + 10px) !important;
    padding: 5px 10px !important;
    border-radius: 11px !important;
    border: 1px solid var(--yh-strip-line) !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.12) !important;
    z-index: var(--yn-overlay-wrap, 10060);
    transition: background 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease !important;
}

.yon-shell.yon-shell--yon.yon-shell--header-corp .yon-header-balance-cell:hover,
.yon-shell.yon-shell--yon.yon-shell--header-corp .yon-header-balance-cell.is-open {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 4px 14px rgba(0, 0, 0, 0.18) !important;
}

/* İkon grubu */
.yon-shell.yon-shell--yon.yon-shell--header-corp .yon-header-icon-group {
    --yn-hdr-icon: var(--yh-strip-icon) !important;
    --yn-hdr-bar: var(--yh-strip-bar) !important;
    --yn-hdr-balance-w: max-content !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 5px 7px !important;
    min-height: calc(var(--yh-strip-bar) + 6px) !important;
    border-radius: 12px !important;
    border: 1px solid var(--yh-strip-line) !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 2px 8px rgba(0, 0, 0, 0.1) !important;
    overflow: visible !important;
}

.yon-shell.yon-shell--yon.yon-shell--header-corp .yon-header-balance-cell .yon-hdrop--balance,
.yon-shell.yon-shell--yon.yon-shell--header-corp .yon-header-balance-cell.yon-hdrop--balance {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: var(--yh-strip-bar) !important;
    min-height: var(--yh-strip-bar) !important;
    align-self: center !important;
}

.yon-shell.yon-shell--yon.yon-shell--header-corp .yon-balance-stack {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    cursor: pointer !important;
    color: rgba(255, 255, 255, 0.92) !important;
}

.yon-shell.yon-shell--yon.yon-shell--header-corp .yon-balance-stack__icon {
    display: grid !important;
    place-items: center !important;
    width: 22px !important;
    height: 22px !important;
    font-size: 20px !important;
    line-height: 1 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    flex-shrink: 0 !important;
}

.yon-shell.yon-shell--yon.yon-shell--header-corp .yon-balance-stack__pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: max-content !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 18px !important;
    padding: 3px 10px !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, var(--yh-balance-green) 0%, var(--yh-balance-green-dark) 100%) !important;
    color: #fff !important;
    font-size: clamp(9px, 0.72vw, 10.5px) !important;
    font-weight: 800 !important;
    font-variant-numeric: tabular-nums !important;
    letter-spacing: 0.005em !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.42) !important;
}

.yon-shell.yon-shell--yon.yon-shell--header-corp .yon-balance-stack__value {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    max-width: none !important;
    overflow: visible !important;
    text-overflow: unset !important;
    white-space: nowrap !important;
}

.yon-shell.yon-shell--yon.yon-shell--header-corp .yon-balance-stack__cur {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    font-size: 10px !important;
    line-height: 1 !important;
    opacity: 0.95 !important;
}

.yon-shell.yon-shell--yon.yon-shell--header-corp .yon-balance-stack__amount {
    display: inline !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    letter-spacing: inherit !important;
    white-space: nowrap !important;
}

.yon-shell.yon-shell--yon.yon-shell--header-corp .yon-header-balance-cell.is-open > .yon-balance-stack .yon-balance-stack__icon {
    color: #a5b4fc !important;
}

.yon-shell.yon-shell--yon.yon-shell--header-corp .yon-header-balance-cell.is-open > .yon-balance-stack .yon-balance-stack__pill {
    box-shadow:
        0 0 0 1.5px rgba(102, 122, 250, 0.35),
        0 2px 6px rgba(40, 167, 69, 0.42) !important;
}

/* Diğer ikonlar */
.yon-shell.yon-shell--yon.yon-shell--header-corp .yon-header-icon-group .yon-msg,
.yon-shell.yon-shell--yon.yon-shell--header-corp .yon-header-icon-group .yon-notify-wrap .yon-notify-trigger,
.yon-shell.yon-shell--yon.yon-shell--header-corp .yon-header-icon-group .yon-header-admin,
.yon-shell.yon-shell--yon.yon-shell--header-corp .yon-header-icon-group .yon-hdrop--cart > .yon-cart,
.yon-shell.yon-shell--yon.yon-shell--header-corp .yon-header-icon-group .yon-hdrop--user > .yon-user {
    border-radius: 9px !important;
    transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease !important;
}

.yon-shell.yon-shell--yon.yon-shell--header-corp .yon-header-icon-group .yon-msg:hover,
.yon-shell.yon-shell--yon.yon-shell--header-corp .yon-header-icon-group .yon-notify-wrap .yon-notify-trigger:hover,
.yon-shell.yon-shell--yon.yon-shell--header-corp .yon-header-icon-group .yon-hdrop--cart > .yon-cart:hover,
.yon-shell.yon-shell--yon.yon-shell--header-corp .yon-header-icon-group .yon-hdrop--user > .yon-user:hover,
.yon-shell.yon-shell--yon.yon-shell--header-corp .yon-header-icon-group .yon-hdrop.is-open > .yon-user,
.yon-shell.yon-shell--yon.yon-shell--header-corp .yon-header-icon-group .yon-hdrop--cart.is-open > .yon-cart {
    background: rgba(102, 122, 250, 0.14) !important;
    color: #c7d2fe !important;
}

.yon-shell.yon-shell--yon.yon-shell--header-corp .yon-header-icon-group .yon-user__icon {
    border-color: rgba(102, 122, 250, 0.35) !important;
}

.yon-shell.yon-shell--yon.yon-shell--header-corp .yon-header-icon-group .yon-msg__badge,
.yon-shell.yon-shell--yon.yon-shell--header-corp .yon-header-icon-group .ynm-bell-badge,
.yon-shell.yon-shell--yon.yon-shell--header-corp .yon-header-icon-group .yon-cart__badge {
    box-shadow: 0 0 0 2px rgba(37, 39, 58, 0.9) !important;
}

@media (min-width: 1400px) {
    .yon-shell.yon-shell--yon.yon-shell--header-corp {
        --yh-strip-icon: 42px;
        --yh-strip-bar: 54px;
        --yn-hdr-balance-w: max-content !important;
    }

    .yon-shell.yon-shell--yon.yon-shell--header-corp .yon-balance-stack__pill {
        font-size: 11px !important;
        padding: 3px 11px !important;
    }
}

@media (max-width: 1280px) {
    .yon-shell.yon-shell--yon.yon-shell--header-corp .yon-site-header__actions--corp {
        gap: 8px !important;
    }

    .yon-shell.yon-shell--yon.yon-shell--header-corp .yon-balance-stack__pill {
        font-size: 9.5px !important;
        padding: 2px 8px !important;
    }
}

@media (max-width: 1199px) {
    .yon-shell.yon-shell--yon.yon-shell--header-corp {
        --yn-hdr-balance-w: max-content !important;
    }

    .yon-shell.yon-shell--yon.yon-shell--header-corp .yon-header-icon-group {
        --yn-hdr-balance-w: max-content !important;
    }

    .yon-shell.yon-shell--yon.yon-shell--header-corp .yon-balance-stack__pill {
        font-size: 9px !important;
    }
}
