/* Menu da conta — carregado pelo header em todas as páginas */

.header .header-content {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.header .logo {
    min-width: 0;
    flex: 1;
}

.header .logo h1 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header .user-info,
.netflix-header .user-info {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    position: relative;
    flex-shrink: 0;
    margin-left: auto;
    z-index: 1100;
}

.header .menu-toggle,
.netflix-header .menu-toggle {
    display: flex !important;
    align-items: center;
    gap: 0.55rem;
    background: rgba(255, 255, 255, 0.18) !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    color: #fff !important;
    padding: 0.25rem 0.7rem 0.25rem 0.25rem !important;
    border-radius: 999px !important;
    cursor: pointer;
    min-height: 44px;
    width: auto !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header .menu-toggle:hover,
.header .menu-toggle:focus,
.netflix-header .menu-toggle:hover,
.netflix-header .menu-toggle:focus {
    background: rgba(255, 255, 255, 0.3) !important;
    outline: none;
}

.header .user-avatar,
.netflix-header .user-avatar {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.28) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem !important;
    color: #fff !important;
}

.header .user-details,
.netflix-header .user-details {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    max-width: 170px;
    min-width: 0;
}

.header .user-name,
.header .user-role,
.netflix-header .user-name,
.netflix-header .user-role {
    display: block;
    max-width: 170px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    color: #fff !important;
}

.header .user-name,
.netflix-header .user-name {
    font-weight: 600;
    font-size: 0.85rem;
}

.header .user-role,
.netflix-header .user-role {
    font-size: 0.75rem;
    opacity: 0.9;
}

.header .menu-toggle-icon,
.netflix-header .menu-toggle-icon {
    font-size: 0.8rem;
    flex-shrink: 0;
    color: #fff !important;
}

.header .menu-dropdown,
.netflix-header .menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff !important;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    border: 1px solid #E6E7E8;
    z-index: 1200;
}

.header .user-info:hover .menu-dropdown,
.header .user-info:focus-within .menu-dropdown,
.header .menu-dropdown.show,
.netflix-header .user-info:hover .menu-dropdown,
.netflix-header .user-info:focus-within .menu-dropdown,
.netflix-header .menu-dropdown.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.header .menu-dropdown a,
.netflix-header .menu-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 0.8rem;
    color: #2c3e50 !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
}

.header .menu-dropdown a i,
.netflix-header .menu-dropdown a i {
    color: #2c3e50 !important;
}

.header .menu-dropdown a:hover,
.netflix-header .menu-dropdown a:hover {
    background: #E6E7E8;
    color: #F07335 !important;
}

@media (max-width: 768px) {
    .header .user-details,
    .netflix-header .user-details {
        display: none !important;
    }

    .header .menu-toggle,
    .netflix-header .menu-toggle {
        padding: 0 !important;
        width: 44px !important;
        height: 44px !important;
        justify-content: center;
        border-radius: 50% !important;
    }

    .header .menu-toggle-icon,
    .netflix-header .menu-toggle-icon {
        display: none !important;
    }

    .header .user-avatar,
    .netflix-header .user-avatar {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
        background: rgba(255, 255, 255, 0.35) !important;
        border: 2px solid rgba(255, 255, 255, 0.85);
    }
}
