/* ══════════ HESAP MENÜSÜ (sağ üst) ══════════ */
.account-slot {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 40px;
    font-family: 'Outfit', system-ui, sans-serif;
}

.account-skeleton {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #1f1f1f;
    animation: acc-pulse 1.4s ease-in-out infinite;
}

@keyframes acc-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.account-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fafafa !important;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}

.account-login:hover {
    border-color: #1DB954;
    background: rgba(29, 185, 84, 0.08);
}

.account-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 40px;
    padding: 3px 12px 3px 3px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #fafafa;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.account-chip:hover,
.account-chip[aria-expanded="true"] {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.07);
}

.account-chip .chev {
    color: #8a8a8a;
    transition: transform 0.2s;
}

.account-chip[aria-expanded="true"] .chev { transform: rotate(180deg); }

.account-chip-name {
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.acc-avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    flex-shrink: 0;
    background: #A78BFA;
    background-size: cover;
    background-position: center;
    color: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 15px;
    text-transform: uppercase;
}

.acc-avatar.has-photo { color: transparent; }
.acc-avatar.is-empty { background: #2a2a2a; color: #8a8a8a; }

.account-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 300;
    width: 270px;
    padding: 8px;
    border-radius: 18px;
    background: #161616;
    border: 1px solid #2a2a2a;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    transform-origin: top right;
    animation: acc-pop 0.16s ease-out;
}

.account-menu[hidden] { display: none; }

@keyframes acc-pop {
    from { opacity: 0; transform: scale(0.96) translateY(-4px); }
    to { opacity: 1; transform: none; }
}

.account-menu-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px 12px;
    border-bottom: 1px solid #242424;
    margin-bottom: 6px;
}

.account-menu-head .acc-avatar { width: 42px; height: 42px; font-size: 18px; }

.account-menu-id { display: flex; flex-direction: column; min-width: 0; }

.account-menu-id strong,
.account-menu-id span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-menu-id strong { font-size: 15px; color: #fafafa; }
.account-menu-id span { font-size: 12.5px; color: #8a8a8a; }

.account-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: #e5e5e5 !important;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 500;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.account-menu-item svg { color: #8a8a8a; flex-shrink: 0; }

.account-menu-item:hover,
.account-menu-item:focus-visible {
    background: #222;
    color: #fff !important;
    outline: none;
}

.account-menu-item:hover svg { color: #1DB954; }

.account-menu-item.danger:hover { color: #ff6b6b !important; }
.account-menu-item.danger:hover svg { color: #ff6b6b; }

.account-menu-sep { height: 1px; background: #242424; margin: 6px 4px; }

@media (max-width: 560px) {
    .account-chip-name { display: none; }
    .account-chip { padding-right: 8px; gap: 6px; }
}
